From de6d2c0df7d10fa202fcdef92566437a98afbe1f Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Sat, 9 Apr 2022 00:49:12 +0000 Subject: [PATCH 1/3] fix: use full link in comment to fix JSDoc broken link Committer: @summer-ji-eng PiperOrigin-RevId: 440481666 Source-Link: https://github.com/googleapis/googleapis/commit/6a211105d97cc92e053b2d281a4bb2df1366f3e0 Source-Link: https://github.com/googleapis/googleapis-gen/commit/e6e39aff33b90a63a18e9081e480b08a41c548ac Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZTZlMzlhZmYzM2I5MGE2M2ExOGU5MDgxZTQ4MGIwOGE0MWM1NDhhYyJ9 --- .../google/cloud/speech/v1/SpeechGrpc.java | 579 ----- .../speech/v1p1beta1/AdaptationGrpc.java | 1424 ------------ .../cloud/speech/v1p1beta1/SpeechGrpc.java | 589 ----- .../google/cloud/speech/v1/SpeechClient.java | 6 +- .../cloud/speech/v1/SpeechSettings.java | 7 +- .../cloud/speech/v1/gapic_metadata.json | 0 .../google/cloud/speech/v1/package-info.java | 0 .../v1/stub/GrpcSpeechCallableFactory.java | 0 .../cloud/speech/v1/stub/GrpcSpeechStub.java | 0 .../cloud/speech/v1/stub/SpeechStub.java | 0 .../speech/v1/stub/SpeechStubSettings.java | 6 +- .../google/cloud/speech/v1/MockSpeech.java | 0 .../cloud/speech/v1/MockSpeechImpl.java | 0 .../cloud/speech/v1/SpeechClientTest.java | 0 .../google/cloud/speech/v1/SpeechGrpc.java | 479 ++++ .../google/cloud/speech/v1/CustomClass.java | 823 +++---- .../cloud/speech/v1/CustomClassOrBuilder.java | 54 +- .../v1/LongRunningRecognizeMetadata.java | 536 ++--- ...LongRunningRecognizeMetadataOrBuilder.java | 46 +- .../v1/LongRunningRecognizeRequest.java | 685 ++---- .../LongRunningRecognizeRequestOrBuilder.java | 78 +- .../v1/LongRunningRecognizeResponse.java | 665 ++---- ...LongRunningRecognizeResponseOrBuilder.java | 60 +- .../com/google/cloud/speech/v1/PhraseSet.java | 812 +++---- .../cloud/speech/v1/PhraseSetOrBuilder.java | 48 +- .../cloud/speech/v1/RecognitionAudio.java | 417 ++-- .../speech/v1/RecognitionAudioOrBuilder.java | 36 +- .../cloud/speech/v1/RecognitionConfig.java | 1660 +++++--------- .../speech/v1/RecognitionConfigOrBuilder.java | 145 +- .../cloud/speech/v1/RecognitionMetadata.java | 1221 ++++------- .../v1/RecognitionMetadataOrBuilder.java | 92 +- .../cloud/speech/v1/RecognizeRequest.java | 525 ++--- .../speech/v1/RecognizeRequestOrBuilder.java | 66 + .../cloud/speech/v1/RecognizeResponse.java | 470 ++-- .../speech/v1/RecognizeResponseOrBuilder.java | 44 +- .../speech/v1/SpeakerDiarizationConfig.java | 398 ++-- .../v1/SpeakerDiarizationConfigOrBuilder.java | 36 +- .../cloud/speech/v1/SpeechAdaptation.java | 663 +++--- .../speech/v1/SpeechAdaptationOrBuilder.java | 84 +- .../google/cloud/speech/v1/SpeechContext.java | 367 ++-- .../speech/v1/SpeechContextOrBuilder.java | 39 +- .../google/cloud/speech/v1/SpeechProto.java | 406 ++++ .../v1/SpeechRecognitionAlternative.java | 499 ++--- ...SpeechRecognitionAlternativeOrBuilder.java | 49 +- .../speech/v1/SpeechRecognitionResult.java | 604 ++---- .../v1/SpeechRecognitionResultOrBuilder.java | 53 +- .../cloud/speech/v1/SpeechResourceProto.java | 121 ++ .../speech/v1/StreamingRecognitionConfig.java | 461 ++-- .../StreamingRecognitionConfigOrBuilder.java | 44 +- .../speech/v1/StreamingRecognitionResult.java | 681 +++--- .../StreamingRecognitionResultOrBuilder.java | 59 +- .../speech/v1/StreamingRecognizeRequest.java | 459 ++-- .../StreamingRecognizeRequestOrBuilder.java | 35 +- .../speech/v1/StreamingRecognizeResponse.java | 727 +++---- .../StreamingRecognizeResponseOrBuilder.java | 64 +- .../speech/v1/TranscriptOutputConfig.java | 368 ++-- .../v1/TranscriptOutputConfigOrBuilder.java | 30 +- .../com/google/cloud/speech/v1/WordInfo.java | 541 ++--- .../cloud/speech/v1/WordInfoOrBuilder.java | 49 +- .../google/cloud/speech/v1/cloud_speech.proto | 0 .../google/cloud/speech/v1/resource.proto | 0 .../speech/v1p1beta1/AdaptationClient.java | 96 +- .../speech/v1p1beta1/AdaptationSettings.java | 7 +- .../cloud/speech/v1p1beta1/SpeechClient.java | 6 +- .../speech/v1p1beta1/SpeechSettings.java | 7 +- .../speech/v1p1beta1/gapic_metadata.json | 0 .../cloud/speech/v1p1beta1/package-info.java | 0 .../speech/v1p1beta1/stub/AdaptationStub.java | 0 .../stub/AdaptationStubSettings.java | 9 +- .../stub/GrpcAdaptationCallableFactory.java | 0 .../v1p1beta1/stub/GrpcAdaptationStub.java | 1 + .../stub/GrpcSpeechCallableFactory.java | 0 .../speech/v1p1beta1/stub/GrpcSpeechStub.java | 0 .../speech/v1p1beta1/stub/SpeechStub.java | 0 .../v1p1beta1/stub/SpeechStubSettings.java | 6 +- .../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 .../speech/v1p1beta1/SpeechClientTest.java | 0 .../speech/v1p1beta1/AdaptationGrpc.java | 1085 ++++++++++ .../cloud/speech/v1p1beta1/SpeechGrpc.java | 479 ++++ .../v1p1beta1/CreateCustomClassRequest.java | 616 +++--- .../CreateCustomClassRequestOrBuilder.java | 78 +- .../v1p1beta1/CreatePhraseSetRequest.java | 616 +++--- .../CreatePhraseSetRequestOrBuilder.java | 78 +- .../cloud/speech/v1p1beta1/CustomClass.java | 831 +++---- .../speech/v1p1beta1/CustomClassName.java | 0 .../v1p1beta1/CustomClassOrBuilder.java | 54 +- .../v1p1beta1/DeleteCustomClassRequest.java | 370 ++-- .../DeleteCustomClassRequestOrBuilder.java | 43 +- .../v1p1beta1/DeletePhraseSetRequest.java | 342 ++- .../DeletePhraseSetRequestOrBuilder.java | 31 + .../v1p1beta1/GetCustomClassRequest.java | 342 ++- .../GetCustomClassRequestOrBuilder.java | 31 + .../speech/v1p1beta1/GetPhraseSetRequest.java | 370 ++-- .../GetPhraseSetRequestOrBuilder.java | 41 + .../v1p1beta1/ListCustomClassesRequest.java | 483 ++--- .../ListCustomClassesRequestOrBuilder.java | 55 +- .../v1p1beta1/ListCustomClassesResponse.java | 441 ++-- .../ListCustomClassesResponseOrBuilder.java | 45 +- .../v1p1beta1/ListPhraseSetRequest.java | 483 ++--- .../ListPhraseSetRequestOrBuilder.java | 55 +- .../v1p1beta1/ListPhraseSetResponse.java | 464 ++-- .../ListPhraseSetResponseOrBuilder.java | 45 +- .../cloud/speech/v1p1beta1/LocationName.java | 0 .../LongRunningRecognizeMetadata.java | 715 +++--- ...LongRunningRecognizeMetadataOrBuilder.java | 66 +- .../LongRunningRecognizeRequest.java | 701 ++---- .../LongRunningRecognizeRequestOrBuilder.java | 78 +- .../LongRunningRecognizeResponse.java | 704 +++--- ...LongRunningRecognizeResponseOrBuilder.java | 60 +- .../cloud/speech/v1p1beta1/PhraseSet.java | 826 +++---- .../cloud/speech/v1p1beta1/PhraseSetName.java | 0 .../speech/v1p1beta1/PhraseSetOrBuilder.java | 48 +- .../speech/v1p1beta1/RecognitionAudio.java | 427 ++-- .../v1p1beta1/RecognitionAudioOrBuilder.java | 36 +- .../speech/v1p1beta1/RecognitionConfig.java | 1921 ++++++----------- .../v1p1beta1/RecognitionConfigOrBuilder.java | 180 +- .../speech/v1p1beta1/RecognitionMetadata.java | 1335 ++++-------- .../RecognitionMetadataOrBuilder.java | 111 +- .../speech/v1p1beta1/RecognizeRequest.java | 531 ++--- .../v1p1beta1/RecognizeRequestOrBuilder.java | 66 + .../speech/v1p1beta1/RecognizeResponse.java | 489 ++--- .../v1p1beta1/RecognizeResponseOrBuilder.java | 44 +- .../v1p1beta1/SpeakerDiarizationConfig.java | 401 ++-- .../SpeakerDiarizationConfigOrBuilder.java | 36 +- .../speech/v1p1beta1/SpeechAdaptation.java | 658 ++---- .../v1p1beta1/SpeechAdaptationOrBuilder.java | 84 +- .../v1p1beta1/SpeechAdaptationProto.java | 292 +++ .../cloud/speech/v1p1beta1/SpeechContext.java | 373 ++-- .../v1p1beta1/SpeechContextOrBuilder.java | 39 +- .../cloud/speech/v1p1beta1/SpeechProto.java | 422 ++++ .../SpeechRecognitionAlternative.java | 518 ++--- ...SpeechRecognitionAlternativeOrBuilder.java | 48 +- .../v1p1beta1/SpeechRecognitionResult.java | 702 +++--- .../SpeechRecognitionResultOrBuilder.java | 67 +- .../speech/v1p1beta1/SpeechResourceProto.java | 154 ++ .../v1p1beta1/StreamingRecognitionConfig.java | 466 ++-- .../StreamingRecognitionConfigOrBuilder.java | 44 +- .../v1p1beta1/StreamingRecognitionResult.java | 783 +++---- .../StreamingRecognitionResultOrBuilder.java | 73 +- .../v1p1beta1/StreamingRecognizeRequest.java | 470 ++-- .../StreamingRecognizeRequestOrBuilder.java | 38 +- .../v1p1beta1/StreamingRecognizeResponse.java | 760 +++---- .../StreamingRecognizeResponseOrBuilder.java | 63 +- .../v1p1beta1/TranscriptNormalization.java | 931 ++++---- .../TranscriptNormalizationOrBuilder.java | 33 +- .../v1p1beta1/TranscriptOutputConfig.java | 371 ++-- .../TranscriptOutputConfigOrBuilder.java | 33 +- .../v1p1beta1/UpdateCustomClassRequest.java | 528 ++--- .../UpdateCustomClassRequestOrBuilder.java | 58 +- .../v1p1beta1/UpdatePhraseSetRequest.java | 528 ++--- .../UpdatePhraseSetRequestOrBuilder.java | 58 +- .../cloud/speech/v1p1beta1/WordInfo.java | 548 ++--- .../speech/v1p1beta1/WordInfoOrBuilder.java | 49 +- .../cloud/speech/v1p1beta1/cloud_speech.proto | 0 .../v1p1beta1/cloud_speech_adaptation.proto | 50 +- .../cloud/speech/v1p1beta1/resource.proto | 0 .../speech/v1/RecognizeRequestOrBuilder.java | 110 - .../google/cloud/speech/v1/SpeechProto.java | 463 ---- .../cloud/speech/v1/SpeechResourceProto.java | 140 -- .../DeletePhraseSetRequestOrBuilder.java | 56 - .../GetCustomClassRequestOrBuilder.java | 56 - .../GetPhraseSetRequestOrBuilder.java | 66 - .../v1p1beta1/RecognizeRequestOrBuilder.java | 110 - .../v1p1beta1/SpeechAdaptationProto.java | 318 --- .../cloud/speech/v1p1beta1/SpeechProto.java | 483 ----- .../speech/v1p1beta1/SpeechResourceProto.java | 179 -- 170 files changed, 17140 insertions(+), 28877 deletions(-) delete mode 100644 grpc-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechGrpc.java delete mode 100644 grpc-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/AdaptationGrpc.java delete mode 100644 grpc-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechGrpc.java rename {google-cloud-speech => owl-bot-staging/v1/google-cloud-speech}/src/main/java/com/google/cloud/speech/v1/SpeechClient.java (98%) rename {google-cloud-speech => owl-bot-staging/v1/google-cloud-speech}/src/main/java/com/google/cloud/speech/v1/SpeechSettings.java (96%) rename {google-cloud-speech => owl-bot-staging/v1/google-cloud-speech}/src/main/java/com/google/cloud/speech/v1/gapic_metadata.json (100%) rename {google-cloud-speech => owl-bot-staging/v1/google-cloud-speech}/src/main/java/com/google/cloud/speech/v1/package-info.java (100%) rename {google-cloud-speech => owl-bot-staging/v1/google-cloud-speech}/src/main/java/com/google/cloud/speech/v1/stub/GrpcSpeechCallableFactory.java (100%) rename {google-cloud-speech => owl-bot-staging/v1/google-cloud-speech}/src/main/java/com/google/cloud/speech/v1/stub/GrpcSpeechStub.java (100%) rename {google-cloud-speech => owl-bot-staging/v1/google-cloud-speech}/src/main/java/com/google/cloud/speech/v1/stub/SpeechStub.java (100%) rename {google-cloud-speech => owl-bot-staging/v1/google-cloud-speech}/src/main/java/com/google/cloud/speech/v1/stub/SpeechStubSettings.java (98%) rename {google-cloud-speech => owl-bot-staging/v1/google-cloud-speech}/src/test/java/com/google/cloud/speech/v1/MockSpeech.java (100%) rename {google-cloud-speech => owl-bot-staging/v1/google-cloud-speech}/src/test/java/com/google/cloud/speech/v1/MockSpeechImpl.java (100%) rename {google-cloud-speech => owl-bot-staging/v1/google-cloud-speech}/src/test/java/com/google/cloud/speech/v1/SpeechClientTest.java (100%) create mode 100644 owl-bot-staging/v1/grpc-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechGrpc.java rename {proto-google-cloud-speech-v1 => owl-bot-staging/v1/proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/CustomClass.java (73%) rename {proto-google-cloud-speech-v1 => owl-bot-staging/v1/proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/CustomClassOrBuilder.java (70%) rename {proto-google-cloud-speech-v1 => owl-bot-staging/v1/proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeMetadata.java (71%) rename {proto-google-cloud-speech-v1 => owl-bot-staging/v1/proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeMetadataOrBuilder.java (74%) rename {proto-google-cloud-speech-v1 => owl-bot-staging/v1/proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeRequest.java (60%) rename {proto-google-cloud-speech-v1 => owl-bot-staging/v1/proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeRequestOrBuilder.java (51%) rename {proto-google-cloud-speech-v1 => owl-bot-staging/v1/proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeResponse.java (74%) rename {proto-google-cloud-speech-v1 => owl-bot-staging/v1/proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeResponseOrBuilder.java (81%) rename {proto-google-cloud-speech-v1 => owl-bot-staging/v1/proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/PhraseSet.java (77%) rename {proto-google-cloud-speech-v1 => owl-bot-staging/v1/proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/PhraseSetOrBuilder.java (72%) rename {proto-google-cloud-speech-v1 => owl-bot-staging/v1/proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/RecognitionAudio.java (75%) rename {proto-google-cloud-speech-v1 => owl-bot-staging/v1/proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/RecognitionAudioOrBuilder.java (79%) rename {proto-google-cloud-speech-v1 => owl-bot-staging/v1/proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/RecognitionConfig.java (83%) rename {proto-google-cloud-speech-v1 => owl-bot-staging/v1/proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/RecognitionConfigOrBuilder.java (94%) rename {proto-google-cloud-speech-v1 => owl-bot-staging/v1/proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/RecognitionMetadata.java (72%) rename {proto-google-cloud-speech-v1 => owl-bot-staging/v1/proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/RecognitionMetadataOrBuilder.java (76%) rename {proto-google-cloud-speech-v1 => owl-bot-staging/v1/proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/RecognizeRequest.java (61%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeRequestOrBuilder.java rename {proto-google-cloud-speech-v1 => owl-bot-staging/v1/proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/RecognizeResponse.java (74%) rename {proto-google-cloud-speech-v1 => owl-bot-staging/v1/proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/RecognizeResponseOrBuilder.java (75%) rename {proto-google-cloud-speech-v1 => owl-bot-staging/v1/proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/SpeakerDiarizationConfig.java (71%) rename {proto-google-cloud-speech-v1 => owl-bot-staging/v1/proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/SpeakerDiarizationConfigOrBuilder.java (65%) rename {proto-google-cloud-speech-v1 => owl-bot-staging/v1/proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/SpeechAdaptation.java (79%) rename {proto-google-cloud-speech-v1 => owl-bot-staging/v1/proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/SpeechAdaptationOrBuilder.java (79%) rename {proto-google-cloud-speech-v1 => owl-bot-staging/v1/proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/SpeechContext.java (80%) rename {proto-google-cloud-speech-v1 => owl-bot-staging/v1/proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/SpeechContextOrBuilder.java (85%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechProto.java rename {proto-google-cloud-speech-v1 => owl-bot-staging/v1/proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/SpeechRecognitionAlternative.java (76%) rename {proto-google-cloud-speech-v1 => owl-bot-staging/v1/proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/SpeechRecognitionAlternativeOrBuilder.java (76%) rename {proto-google-cloud-speech-v1 => owl-bot-staging/v1/proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/SpeechRecognitionResult.java (76%) rename {proto-google-cloud-speech-v1 => owl-bot-staging/v1/proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/SpeechRecognitionResultOrBuilder.java (83%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechResourceProto.java rename {proto-google-cloud-speech-v1 => owl-bot-staging/v1/proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/StreamingRecognitionConfig.java (70%) rename {proto-google-cloud-speech-v1 => owl-bot-staging/v1/proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/StreamingRecognitionConfigOrBuilder.java (70%) rename {proto-google-cloud-speech-v1 => owl-bot-staging/v1/proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/StreamingRecognitionResult.java (77%) rename {proto-google-cloud-speech-v1 => owl-bot-staging/v1/proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/StreamingRecognitionResultOrBuilder.java (85%) rename {proto-google-cloud-speech-v1 => owl-bot-staging/v1/proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeRequest.java (73%) rename {proto-google-cloud-speech-v1 => owl-bot-staging/v1/proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeRequestOrBuilder.java (79%) rename {proto-google-cloud-speech-v1 => owl-bot-staging/v1/proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeResponse.java (77%) rename {proto-google-cloud-speech-v1 => owl-bot-staging/v1/proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeResponseOrBuilder.java (83%) rename {proto-google-cloud-speech-v1 => owl-bot-staging/v1/proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/TranscriptOutputConfig.java (70%) rename {proto-google-cloud-speech-v1 => owl-bot-staging/v1/proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/TranscriptOutputConfigOrBuilder.java (63%) rename {proto-google-cloud-speech-v1 => owl-bot-staging/v1/proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/WordInfo.java (77%) rename {proto-google-cloud-speech-v1 => owl-bot-staging/v1/proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/WordInfoOrBuilder.java (84%) rename {proto-google-cloud-speech-v1 => owl-bot-staging/v1/proto-google-cloud-speech-v1}/src/main/proto/google/cloud/speech/v1/cloud_speech.proto (100%) rename {proto-google-cloud-speech-v1 => owl-bot-staging/v1/proto-google-cloud-speech-v1}/src/main/proto/google/cloud/speech/v1/resource.proto (100%) rename {google-cloud-speech => owl-bot-staging/v1p1beta1/google-cloud-speech}/src/main/java/com/google/cloud/speech/v1p1beta1/AdaptationClient.java (94%) rename {google-cloud-speech => owl-bot-staging/v1p1beta1/google-cloud-speech}/src/main/java/com/google/cloud/speech/v1p1beta1/AdaptationSettings.java (97%) rename {google-cloud-speech => owl-bot-staging/v1p1beta1/google-cloud-speech}/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechClient.java (98%) rename {google-cloud-speech => owl-bot-staging/v1p1beta1/google-cloud-speech}/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechSettings.java (96%) rename {google-cloud-speech => owl-bot-staging/v1p1beta1/google-cloud-speech}/src/main/java/com/google/cloud/speech/v1p1beta1/gapic_metadata.json (100%) rename {google-cloud-speech => owl-bot-staging/v1p1beta1/google-cloud-speech}/src/main/java/com/google/cloud/speech/v1p1beta1/package-info.java (100%) rename {google-cloud-speech => owl-bot-staging/v1p1beta1/google-cloud-speech}/src/main/java/com/google/cloud/speech/v1p1beta1/stub/AdaptationStub.java (100%) rename {google-cloud-speech => owl-bot-staging/v1p1beta1/google-cloud-speech}/src/main/java/com/google/cloud/speech/v1p1beta1/stub/AdaptationStubSettings.java (98%) rename {google-cloud-speech => owl-bot-staging/v1p1beta1/google-cloud-speech}/src/main/java/com/google/cloud/speech/v1p1beta1/stub/GrpcAdaptationCallableFactory.java (100%) rename {google-cloud-speech => owl-bot-staging/v1p1beta1/google-cloud-speech}/src/main/java/com/google/cloud/speech/v1p1beta1/stub/GrpcAdaptationStub.java (99%) rename {google-cloud-speech => owl-bot-staging/v1p1beta1/google-cloud-speech}/src/main/java/com/google/cloud/speech/v1p1beta1/stub/GrpcSpeechCallableFactory.java (100%) rename {google-cloud-speech => owl-bot-staging/v1p1beta1/google-cloud-speech}/src/main/java/com/google/cloud/speech/v1p1beta1/stub/GrpcSpeechStub.java (100%) rename {google-cloud-speech => owl-bot-staging/v1p1beta1/google-cloud-speech}/src/main/java/com/google/cloud/speech/v1p1beta1/stub/SpeechStub.java (100%) rename {google-cloud-speech => owl-bot-staging/v1p1beta1/google-cloud-speech}/src/main/java/com/google/cloud/speech/v1p1beta1/stub/SpeechStubSettings.java (98%) rename {google-cloud-speech => owl-bot-staging/v1p1beta1/google-cloud-speech}/src/test/java/com/google/cloud/speech/v1p1beta1/AdaptationClientTest.java (100%) rename {google-cloud-speech => owl-bot-staging/v1p1beta1/google-cloud-speech}/src/test/java/com/google/cloud/speech/v1p1beta1/MockAdaptation.java (100%) rename {google-cloud-speech => owl-bot-staging/v1p1beta1/google-cloud-speech}/src/test/java/com/google/cloud/speech/v1p1beta1/MockAdaptationImpl.java (100%) rename {google-cloud-speech => owl-bot-staging/v1p1beta1/google-cloud-speech}/src/test/java/com/google/cloud/speech/v1p1beta1/MockSpeech.java (100%) rename {google-cloud-speech => owl-bot-staging/v1p1beta1/google-cloud-speech}/src/test/java/com/google/cloud/speech/v1p1beta1/MockSpeechImpl.java (100%) rename {google-cloud-speech => owl-bot-staging/v1p1beta1/google-cloud-speech}/src/test/java/com/google/cloud/speech/v1p1beta1/SpeechClientTest.java (100%) create mode 100644 owl-bot-staging/v1p1beta1/grpc-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/AdaptationGrpc.java create mode 100644 owl-bot-staging/v1p1beta1/grpc-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechGrpc.java rename {proto-google-cloud-speech-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/CreateCustomClassRequest.java (66%) rename {proto-google-cloud-speech-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/CreateCustomClassRequestOrBuilder.java (58%) rename {proto-google-cloud-speech-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/CreatePhraseSetRequest.java (66%) rename {proto-google-cloud-speech-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/CreatePhraseSetRequestOrBuilder.java (58%) rename {proto-google-cloud-speech-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/CustomClass.java (74%) rename {proto-google-cloud-speech-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/CustomClassName.java (100%) rename {proto-google-cloud-speech-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/CustomClassOrBuilder.java (70%) rename {proto-google-cloud-speech-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/DeleteCustomClassRequest.java (66%) rename {proto-google-cloud-speech-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/DeleteCustomClassRequestOrBuilder.java (50%) rename {proto-google-cloud-speech-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/DeletePhraseSetRequest.java (66%) create mode 100644 owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeletePhraseSetRequestOrBuilder.java rename {proto-google-cloud-speech-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/GetCustomClassRequest.java (66%) create mode 100644 owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetCustomClassRequestOrBuilder.java rename {proto-google-cloud-speech-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/GetPhraseSetRequest.java (66%) create mode 100644 owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetPhraseSetRequestOrBuilder.java rename {proto-google-cloud-speech-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesRequest.java (70%) rename {proto-google-cloud-speech-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesRequestOrBuilder.java (64%) rename {proto-google-cloud-speech-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesResponse.java (75%) rename {proto-google-cloud-speech-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesResponseOrBuilder.java (69%) rename {proto-google-cloud-speech-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetRequest.java (70%) rename {proto-google-cloud-speech-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetRequestOrBuilder.java (63%) rename {proto-google-cloud-speech-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetResponse.java (73%) rename {proto-google-cloud-speech-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetResponseOrBuilder.java (67%) rename {proto-google-cloud-speech-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/LocationName.java (100%) rename {proto-google-cloud-speech-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeMetadata.java (68%) rename {proto-google-cloud-speech-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeMetadataOrBuilder.java (70%) rename {proto-google-cloud-speech-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeRequest.java (59%) rename {proto-google-cloud-speech-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeRequestOrBuilder.java (51%) rename {proto-google-cloud-speech-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeResponse.java (73%) rename {proto-google-cloud-speech-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeResponseOrBuilder.java (81%) rename {proto-google-cloud-speech-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/PhraseSet.java (77%) rename {proto-google-cloud-speech-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/PhraseSetName.java (100%) rename {proto-google-cloud-speech-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/PhraseSetOrBuilder.java (74%) rename {proto-google-cloud-speech-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionAudio.java (75%) rename {proto-google-cloud-speech-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionAudioOrBuilder.java (79%) rename {proto-google-cloud-speech-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionConfig.java (82%) rename {proto-google-cloud-speech-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionConfigOrBuilder.java (93%) rename {proto-google-cloud-speech-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionMetadata.java (69%) rename {proto-google-cloud-speech-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionMetadataOrBuilder.java (70%) rename {proto-google-cloud-speech-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeRequest.java (61%) create mode 100644 owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeRequestOrBuilder.java rename {proto-google-cloud-speech-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeResponse.java (73%) rename {proto-google-cloud-speech-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeResponseOrBuilder.java (75%) rename {proto-google-cloud-speech-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/SpeakerDiarizationConfig.java (71%) rename {proto-google-cloud-speech-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/SpeakerDiarizationConfigOrBuilder.java (65%) rename {proto-google-cloud-speech-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptation.java (79%) rename {proto-google-cloud-speech-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptationOrBuilder.java (80%) create mode 100644 owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptationProto.java rename {proto-google-cloud-speech-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechContext.java (80%) rename {proto-google-cloud-speech-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechContextOrBuilder.java (85%) create mode 100644 owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechProto.java rename {proto-google-cloud-speech-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionAlternative.java (75%) rename {proto-google-cloud-speech-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionAlternativeOrBuilder.java (76%) rename {proto-google-cloud-speech-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionResult.java (73%) rename {proto-google-cloud-speech-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionResultOrBuilder.java (79%) create mode 100644 owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechResourceProto.java rename {proto-google-cloud-speech-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionConfig.java (70%) rename {proto-google-cloud-speech-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionConfigOrBuilder.java (70%) rename {proto-google-cloud-speech-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionResult.java (75%) rename {proto-google-cloud-speech-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionResultOrBuilder.java (82%) rename {proto-google-cloud-speech-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeRequest.java (72%) rename {proto-google-cloud-speech-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeRequestOrBuilder.java (78%) rename {proto-google-cloud-speech-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeResponse.java (75%) rename {proto-google-cloud-speech-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeResponseOrBuilder.java (81%) rename {proto-google-cloud-speech-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptNormalization.java (73%) rename {proto-google-cloud-speech-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptNormalizationOrBuilder.java (78%) rename {proto-google-cloud-speech-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptOutputConfig.java (70%) rename {proto-google-cloud-speech-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptOutputConfigOrBuilder.java (61%) rename {proto-google-cloud-speech-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/UpdateCustomClassRequest.java (67%) rename {proto-google-cloud-speech-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/UpdateCustomClassRequestOrBuilder.java (64%) rename {proto-google-cloud-speech-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/UpdatePhraseSetRequest.java (67%) rename {proto-google-cloud-speech-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/UpdatePhraseSetRequestOrBuilder.java (64%) rename {proto-google-cloud-speech-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/WordInfo.java (77%) rename {proto-google-cloud-speech-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/WordInfoOrBuilder.java (84%) rename {proto-google-cloud-speech-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1}/src/main/proto/google/cloud/speech/v1p1beta1/cloud_speech.proto (100%) rename {proto-google-cloud-speech-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1}/src/main/proto/google/cloud/speech/v1p1beta1/cloud_speech_adaptation.proto (89%) rename {proto-google-cloud-speech-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1}/src/main/proto/google/cloud/speech/v1p1beta1/resource.proto (100%) delete mode 100644 proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeRequestOrBuilder.java delete mode 100644 proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechProto.java delete mode 100644 proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechResourceProto.java delete mode 100644 proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeletePhraseSetRequestOrBuilder.java delete mode 100644 proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetCustomClassRequestOrBuilder.java delete mode 100644 proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetPhraseSetRequestOrBuilder.java delete mode 100644 proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeRequestOrBuilder.java delete mode 100644 proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptationProto.java delete mode 100644 proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechProto.java delete mode 100644 proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechResourceProto.java diff --git a/grpc-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechGrpc.java b/grpc-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechGrpc.java deleted file mode 100644 index 846458da2..000000000 --- a/grpc-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechGrpc.java +++ /dev/null @@ -1,579 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package com.google.cloud.speech.v1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - * - * - *
- * Service that implements Google Cloud Speech API.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/speech/v1/cloud_speech.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class SpeechGrpc { - - private SpeechGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.speech.v1.Speech"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.speech.v1.RecognizeRequest, com.google.cloud.speech.v1.RecognizeResponse> - getRecognizeMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "Recognize", - requestType = com.google.cloud.speech.v1.RecognizeRequest.class, - responseType = com.google.cloud.speech.v1.RecognizeResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.speech.v1.RecognizeRequest, com.google.cloud.speech.v1.RecognizeResponse> - getRecognizeMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.speech.v1.RecognizeRequest, - com.google.cloud.speech.v1.RecognizeResponse> - getRecognizeMethod; - if ((getRecognizeMethod = SpeechGrpc.getRecognizeMethod) == null) { - synchronized (SpeechGrpc.class) { - if ((getRecognizeMethod = SpeechGrpc.getRecognizeMethod) == null) { - SpeechGrpc.getRecognizeMethod = - getRecognizeMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Recognize")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v1.RecognizeRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v1.RecognizeResponse.getDefaultInstance())) - .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("Recognize")) - .build(); - } - } - } - return getRecognizeMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.speech.v1.LongRunningRecognizeRequest, com.google.longrunning.Operation> - getLongRunningRecognizeMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "LongRunningRecognize", - requestType = com.google.cloud.speech.v1.LongRunningRecognizeRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.speech.v1.LongRunningRecognizeRequest, com.google.longrunning.Operation> - getLongRunningRecognizeMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.speech.v1.LongRunningRecognizeRequest, - com.google.longrunning.Operation> - getLongRunningRecognizeMethod; - if ((getLongRunningRecognizeMethod = SpeechGrpc.getLongRunningRecognizeMethod) == null) { - synchronized (SpeechGrpc.class) { - if ((getLongRunningRecognizeMethod = SpeechGrpc.getLongRunningRecognizeMethod) == null) { - SpeechGrpc.getLongRunningRecognizeMethod = - getLongRunningRecognizeMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "LongRunningRecognize")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v1.LongRunningRecognizeRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new SpeechMethodDescriptorSupplier("LongRunningRecognize")) - .build(); - } - } - } - return getLongRunningRecognizeMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.speech.v1.StreamingRecognizeRequest, - com.google.cloud.speech.v1.StreamingRecognizeResponse> - getStreamingRecognizeMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "StreamingRecognize", - requestType = com.google.cloud.speech.v1.StreamingRecognizeRequest.class, - responseType = com.google.cloud.speech.v1.StreamingRecognizeResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING) - public static io.grpc.MethodDescriptor< - com.google.cloud.speech.v1.StreamingRecognizeRequest, - com.google.cloud.speech.v1.StreamingRecognizeResponse> - getStreamingRecognizeMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.speech.v1.StreamingRecognizeRequest, - com.google.cloud.speech.v1.StreamingRecognizeResponse> - getStreamingRecognizeMethod; - if ((getStreamingRecognizeMethod = SpeechGrpc.getStreamingRecognizeMethod) == null) { - synchronized (SpeechGrpc.class) { - if ((getStreamingRecognizeMethod = SpeechGrpc.getStreamingRecognizeMethod) == null) { - SpeechGrpc.getStreamingRecognizeMethod = - getStreamingRecognizeMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StreamingRecognize")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v1.StreamingRecognizeRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v1.StreamingRecognizeResponse - .getDefaultInstance())) - .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("StreamingRecognize")) - .build(); - } - } - } - return getStreamingRecognizeMethod; - } - - /** Creates a new async stub that supports all call types for the service */ - public static SpeechStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public SpeechStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SpeechStub(channel, callOptions); - } - }; - return SpeechStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static SpeechBlockingStub newBlockingStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public SpeechBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SpeechBlockingStub(channel, callOptions); - } - }; - return SpeechBlockingStub.newStub(factory, channel); - } - - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static SpeechFutureStub newFutureStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public SpeechFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SpeechFutureStub(channel, callOptions); - } - }; - return SpeechFutureStub.newStub(factory, channel); - } - - /** - * - * - *
-   * Service that implements Google Cloud Speech API.
-   * 
- */ - public abstract static class SpeechImplBase implements io.grpc.BindableService { - - /** - * - * - *
-     * Performs synchronous speech recognition: receive results after all audio
-     * has been sent and processed.
-     * 
- */ - public void recognize( - com.google.cloud.speech.v1.RecognizeRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRecognizeMethod(), responseObserver); - } - - /** - * - * - *
-     * Performs asynchronous speech recognition: receive results via the
-     * google.longrunning.Operations interface. Returns either an
-     * `Operation.error` or an `Operation.response` which contains
-     * a `LongRunningRecognizeResponse` message.
-     * For more information on asynchronous speech recognition, see the
-     * [how-to](https://cloud.google.com/speech-to-text/docs/async-recognize).
-     * 
- */ - public void longRunningRecognize( - com.google.cloud.speech.v1.LongRunningRecognizeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getLongRunningRecognizeMethod(), responseObserver); - } - - /** - * - * - *
-     * Performs bidirectional streaming speech recognition: receive results while
-     * sending audio. This method is only available via the gRPC API (not REST).
-     * 
- */ - public io.grpc.stub.StreamObserver - streamingRecognize( - io.grpc.stub.StreamObserver - responseObserver) { - return io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall( - getStreamingRecognizeMethod(), responseObserver); - } - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getRecognizeMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.speech.v1.RecognizeRequest, - com.google.cloud.speech.v1.RecognizeResponse>(this, METHODID_RECOGNIZE))) - .addMethod( - getLongRunningRecognizeMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.speech.v1.LongRunningRecognizeRequest, - com.google.longrunning.Operation>(this, METHODID_LONG_RUNNING_RECOGNIZE))) - .addMethod( - getStreamingRecognizeMethod(), - io.grpc.stub.ServerCalls.asyncBidiStreamingCall( - new MethodHandlers< - com.google.cloud.speech.v1.StreamingRecognizeRequest, - com.google.cloud.speech.v1.StreamingRecognizeResponse>( - this, METHODID_STREAMING_RECOGNIZE))) - .build(); - } - } - - /** - * - * - *
-   * Service that implements Google Cloud Speech API.
-   * 
- */ - public static final class SpeechStub extends io.grpc.stub.AbstractAsyncStub { - private SpeechStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected SpeechStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SpeechStub(channel, callOptions); - } - - /** - * - * - *
-     * Performs synchronous speech recognition: receive results after all audio
-     * has been sent and processed.
-     * 
- */ - public void recognize( - com.google.cloud.speech.v1.RecognizeRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getRecognizeMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Performs asynchronous speech recognition: receive results via the
-     * google.longrunning.Operations interface. Returns either an
-     * `Operation.error` or an `Operation.response` which contains
-     * a `LongRunningRecognizeResponse` message.
-     * For more information on asynchronous speech recognition, see the
-     * [how-to](https://cloud.google.com/speech-to-text/docs/async-recognize).
-     * 
- */ - public void longRunningRecognize( - com.google.cloud.speech.v1.LongRunningRecognizeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getLongRunningRecognizeMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Performs bidirectional streaming speech recognition: receive results while
-     * sending audio. This method is only available via the gRPC API (not REST).
-     * 
- */ - public io.grpc.stub.StreamObserver - streamingRecognize( - io.grpc.stub.StreamObserver - responseObserver) { - return io.grpc.stub.ClientCalls.asyncBidiStreamingCall( - getChannel().newCall(getStreamingRecognizeMethod(), getCallOptions()), responseObserver); - } - } - - /** - * - * - *
-   * Service that implements Google Cloud Speech API.
-   * 
- */ - public static final class SpeechBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private SpeechBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected SpeechBlockingStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SpeechBlockingStub(channel, callOptions); - } - - /** - * - * - *
-     * Performs synchronous speech recognition: receive results after all audio
-     * has been sent and processed.
-     * 
- */ - public com.google.cloud.speech.v1.RecognizeResponse recognize( - com.google.cloud.speech.v1.RecognizeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getRecognizeMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Performs asynchronous speech recognition: receive results via the
-     * google.longrunning.Operations interface. Returns either an
-     * `Operation.error` or an `Operation.response` which contains
-     * a `LongRunningRecognizeResponse` message.
-     * For more information on asynchronous speech recognition, see the
-     * [how-to](https://cloud.google.com/speech-to-text/docs/async-recognize).
-     * 
- */ - public com.google.longrunning.Operation longRunningRecognize( - com.google.cloud.speech.v1.LongRunningRecognizeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getLongRunningRecognizeMethod(), getCallOptions(), request); - } - } - - /** - * - * - *
-   * Service that implements Google Cloud Speech API.
-   * 
- */ - public static final class SpeechFutureStub - extends io.grpc.stub.AbstractFutureStub { - private SpeechFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected SpeechFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SpeechFutureStub(channel, callOptions); - } - - /** - * - * - *
-     * Performs synchronous speech recognition: receive results after all audio
-     * has been sent and processed.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.speech.v1.RecognizeResponse> - recognize(com.google.cloud.speech.v1.RecognizeRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getRecognizeMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Performs asynchronous speech recognition: receive results via the
-     * google.longrunning.Operations interface. Returns either an
-     * `Operation.error` or an `Operation.response` which contains
-     * a `LongRunningRecognizeResponse` message.
-     * For more information on asynchronous speech recognition, see the
-     * [how-to](https://cloud.google.com/speech-to-text/docs/async-recognize).
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - longRunningRecognize(com.google.cloud.speech.v1.LongRunningRecognizeRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getLongRunningRecognizeMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_RECOGNIZE = 0; - private static final int METHODID_LONG_RUNNING_RECOGNIZE = 1; - private static final int METHODID_STREAMING_RECOGNIZE = 2; - - private static final class MethodHandlers - implements io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final SpeechImplBase serviceImpl; - private final int methodId; - - MethodHandlers(SpeechImplBase serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_RECOGNIZE: - serviceImpl.recognize( - (com.google.cloud.speech.v1.RecognizeRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_LONG_RUNNING_RECOGNIZE: - serviceImpl.longRunningRecognize( - (com.google.cloud.speech.v1.LongRunningRecognizeRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_STREAMING_RECOGNIZE: - return (io.grpc.stub.StreamObserver) - serviceImpl.streamingRecognize( - (io.grpc.stub.StreamObserver< - com.google.cloud.speech.v1.StreamingRecognizeResponse>) - responseObserver); - default: - throw new AssertionError(); - } - } - } - - private abstract static class SpeechBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { - SpeechBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.speech.v1.SpeechProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("Speech"); - } - } - - private static final class SpeechFileDescriptorSupplier extends SpeechBaseDescriptorSupplier { - SpeechFileDescriptorSupplier() {} - } - - private static final class SpeechMethodDescriptorSupplier extends SpeechBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - SpeechMethodDescriptorSupplier(String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (SpeechGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new SpeechFileDescriptorSupplier()) - .addMethod(getRecognizeMethod()) - .addMethod(getLongRunningRecognizeMethod()) - .addMethod(getStreamingRecognizeMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/grpc-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/AdaptationGrpc.java b/grpc-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/AdaptationGrpc.java deleted file mode 100644 index 5a5395620..000000000 --- a/grpc-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/AdaptationGrpc.java +++ /dev/null @@ -1,1424 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package com.google.cloud.speech.v1p1beta1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - * - * - *
- * Service that implements Google Cloud Speech Adaptation API.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/speech/v1p1beta1/cloud_speech_adaptation.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class AdaptationGrpc { - - private AdaptationGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.speech.v1p1beta1.Adaptation"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest, - com.google.cloud.speech.v1p1beta1.PhraseSet> - getCreatePhraseSetMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreatePhraseSet", - requestType = com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest.class, - responseType = com.google.cloud.speech.v1p1beta1.PhraseSet.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest, - com.google.cloud.speech.v1p1beta1.PhraseSet> - getCreatePhraseSetMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest, - com.google.cloud.speech.v1p1beta1.PhraseSet> - getCreatePhraseSetMethod; - if ((getCreatePhraseSetMethod = AdaptationGrpc.getCreatePhraseSetMethod) == null) { - synchronized (AdaptationGrpc.class) { - if ((getCreatePhraseSetMethod = AdaptationGrpc.getCreatePhraseSetMethod) == null) { - AdaptationGrpc.getCreatePhraseSetMethod = - getCreatePhraseSetMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreatePhraseSet")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v1p1beta1.PhraseSet.getDefaultInstance())) - .setSchemaDescriptor( - new AdaptationMethodDescriptorSupplier("CreatePhraseSet")) - .build(); - } - } - } - return getCreatePhraseSetMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest, - com.google.cloud.speech.v1p1beta1.PhraseSet> - getGetPhraseSetMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetPhraseSet", - requestType = com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest.class, - responseType = com.google.cloud.speech.v1p1beta1.PhraseSet.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest, - com.google.cloud.speech.v1p1beta1.PhraseSet> - getGetPhraseSetMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest, - com.google.cloud.speech.v1p1beta1.PhraseSet> - getGetPhraseSetMethod; - if ((getGetPhraseSetMethod = AdaptationGrpc.getGetPhraseSetMethod) == null) { - synchronized (AdaptationGrpc.class) { - if ((getGetPhraseSetMethod = AdaptationGrpc.getGetPhraseSetMethod) == null) { - AdaptationGrpc.getGetPhraseSetMethod = - getGetPhraseSetMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetPhraseSet")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v1p1beta1.PhraseSet.getDefaultInstance())) - .setSchemaDescriptor(new AdaptationMethodDescriptorSupplier("GetPhraseSet")) - .build(); - } - } - } - return getGetPhraseSetMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest, - com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse> - getListPhraseSetMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListPhraseSet", - requestType = com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest.class, - responseType = com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest, - com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse> - getListPhraseSetMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest, - com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse> - getListPhraseSetMethod; - if ((getListPhraseSetMethod = AdaptationGrpc.getListPhraseSetMethod) == null) { - synchronized (AdaptationGrpc.class) { - if ((getListPhraseSetMethod = AdaptationGrpc.getListPhraseSetMethod) == null) { - AdaptationGrpc.getListPhraseSetMethod = - getListPhraseSetMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListPhraseSet")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse - .getDefaultInstance())) - .setSchemaDescriptor(new AdaptationMethodDescriptorSupplier("ListPhraseSet")) - .build(); - } - } - } - return getListPhraseSetMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest, - com.google.cloud.speech.v1p1beta1.PhraseSet> - getUpdatePhraseSetMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdatePhraseSet", - requestType = com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest.class, - responseType = com.google.cloud.speech.v1p1beta1.PhraseSet.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest, - com.google.cloud.speech.v1p1beta1.PhraseSet> - getUpdatePhraseSetMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest, - com.google.cloud.speech.v1p1beta1.PhraseSet> - getUpdatePhraseSetMethod; - if ((getUpdatePhraseSetMethod = AdaptationGrpc.getUpdatePhraseSetMethod) == null) { - synchronized (AdaptationGrpc.class) { - if ((getUpdatePhraseSetMethod = AdaptationGrpc.getUpdatePhraseSetMethod) == null) { - AdaptationGrpc.getUpdatePhraseSetMethod = - getUpdatePhraseSetMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdatePhraseSet")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v1p1beta1.PhraseSet.getDefaultInstance())) - .setSchemaDescriptor( - new AdaptationMethodDescriptorSupplier("UpdatePhraseSet")) - .build(); - } - } - } - return getUpdatePhraseSetMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest, com.google.protobuf.Empty> - getDeletePhraseSetMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeletePhraseSet", - requestType = com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest, com.google.protobuf.Empty> - getDeletePhraseSetMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest, com.google.protobuf.Empty> - getDeletePhraseSetMethod; - if ((getDeletePhraseSetMethod = AdaptationGrpc.getDeletePhraseSetMethod) == null) { - synchronized (AdaptationGrpc.class) { - if ((getDeletePhraseSetMethod = AdaptationGrpc.getDeletePhraseSetMethod) == null) { - AdaptationGrpc.getDeletePhraseSetMethod = - getDeletePhraseSetMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeletePhraseSet")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor( - new AdaptationMethodDescriptorSupplier("DeletePhraseSet")) - .build(); - } - } - } - return getDeletePhraseSetMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest, - com.google.cloud.speech.v1p1beta1.CustomClass> - getCreateCustomClassMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateCustomClass", - requestType = com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest.class, - responseType = com.google.cloud.speech.v1p1beta1.CustomClass.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest, - com.google.cloud.speech.v1p1beta1.CustomClass> - getCreateCustomClassMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest, - com.google.cloud.speech.v1p1beta1.CustomClass> - getCreateCustomClassMethod; - if ((getCreateCustomClassMethod = AdaptationGrpc.getCreateCustomClassMethod) == null) { - synchronized (AdaptationGrpc.class) { - if ((getCreateCustomClassMethod = AdaptationGrpc.getCreateCustomClassMethod) == null) { - AdaptationGrpc.getCreateCustomClassMethod = - getCreateCustomClassMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateCustomClass")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v1p1beta1.CustomClass.getDefaultInstance())) - .setSchemaDescriptor( - new AdaptationMethodDescriptorSupplier("CreateCustomClass")) - .build(); - } - } - } - return getCreateCustomClassMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.speech.v1p1beta1.GetCustomClassRequest, - com.google.cloud.speech.v1p1beta1.CustomClass> - getGetCustomClassMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetCustomClass", - requestType = com.google.cloud.speech.v1p1beta1.GetCustomClassRequest.class, - responseType = com.google.cloud.speech.v1p1beta1.CustomClass.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.speech.v1p1beta1.GetCustomClassRequest, - com.google.cloud.speech.v1p1beta1.CustomClass> - getGetCustomClassMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.speech.v1p1beta1.GetCustomClassRequest, - com.google.cloud.speech.v1p1beta1.CustomClass> - getGetCustomClassMethod; - if ((getGetCustomClassMethod = AdaptationGrpc.getGetCustomClassMethod) == null) { - synchronized (AdaptationGrpc.class) { - if ((getGetCustomClassMethod = AdaptationGrpc.getGetCustomClassMethod) == null) { - AdaptationGrpc.getGetCustomClassMethod = - getGetCustomClassMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetCustomClass")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v1p1beta1.GetCustomClassRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v1p1beta1.CustomClass.getDefaultInstance())) - .setSchemaDescriptor(new AdaptationMethodDescriptorSupplier("GetCustomClass")) - .build(); - } - } - } - return getGetCustomClassMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest, - com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse> - getListCustomClassesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListCustomClasses", - requestType = com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest.class, - responseType = com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest, - com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse> - getListCustomClassesMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest, - com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse> - getListCustomClassesMethod; - if ((getListCustomClassesMethod = AdaptationGrpc.getListCustomClassesMethod) == null) { - synchronized (AdaptationGrpc.class) { - if ((getListCustomClassesMethod = AdaptationGrpc.getListCustomClassesMethod) == null) { - AdaptationGrpc.getListCustomClassesMethod = - getListCustomClassesMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListCustomClasses")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new AdaptationMethodDescriptorSupplier("ListCustomClasses")) - .build(); - } - } - } - return getListCustomClassesMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest, - com.google.cloud.speech.v1p1beta1.CustomClass> - getUpdateCustomClassMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateCustomClass", - requestType = com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest.class, - responseType = com.google.cloud.speech.v1p1beta1.CustomClass.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest, - com.google.cloud.speech.v1p1beta1.CustomClass> - getUpdateCustomClassMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest, - com.google.cloud.speech.v1p1beta1.CustomClass> - getUpdateCustomClassMethod; - if ((getUpdateCustomClassMethod = AdaptationGrpc.getUpdateCustomClassMethod) == null) { - synchronized (AdaptationGrpc.class) { - if ((getUpdateCustomClassMethod = AdaptationGrpc.getUpdateCustomClassMethod) == null) { - AdaptationGrpc.getUpdateCustomClassMethod = - getUpdateCustomClassMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateCustomClass")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v1p1beta1.CustomClass.getDefaultInstance())) - .setSchemaDescriptor( - new AdaptationMethodDescriptorSupplier("UpdateCustomClass")) - .build(); - } - } - } - return getUpdateCustomClassMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest, com.google.protobuf.Empty> - getDeleteCustomClassMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteCustomClass", - requestType = com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest, com.google.protobuf.Empty> - getDeleteCustomClassMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest, com.google.protobuf.Empty> - getDeleteCustomClassMethod; - if ((getDeleteCustomClassMethod = AdaptationGrpc.getDeleteCustomClassMethod) == null) { - synchronized (AdaptationGrpc.class) { - if ((getDeleteCustomClassMethod = AdaptationGrpc.getDeleteCustomClassMethod) == null) { - AdaptationGrpc.getDeleteCustomClassMethod = - getDeleteCustomClassMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteCustomClass")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor( - new AdaptationMethodDescriptorSupplier("DeleteCustomClass")) - .build(); - } - } - } - return getDeleteCustomClassMethod; - } - - /** Creates a new async stub that supports all call types for the service */ - public static AdaptationStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public AdaptationStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AdaptationStub(channel, callOptions); - } - }; - return AdaptationStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static AdaptationBlockingStub newBlockingStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public AdaptationBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AdaptationBlockingStub(channel, callOptions); - } - }; - return AdaptationBlockingStub.newStub(factory, channel); - } - - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static AdaptationFutureStub newFutureStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public AdaptationFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AdaptationFutureStub(channel, callOptions); - } - }; - return AdaptationFutureStub.newStub(factory, channel); - } - - /** - * - * - *
-   * Service that implements Google Cloud Speech Adaptation API.
-   * 
- */ - public abstract static class AdaptationImplBase implements io.grpc.BindableService { - - /** - * - * - *
-     * Create a set of phrase hints. Each item in the set can be a single word or
-     * a multi-word phrase. The items in the PhraseSet are favored by the
-     * recognition model when you send a call that includes the PhraseSet.
-     * 
- */ - public void createPhraseSet( - com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreatePhraseSetMethod(), responseObserver); - } - - /** - * - * - *
-     * Get a phrase set.
-     * 
- */ - public void getPhraseSet( - com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetPhraseSetMethod(), responseObserver); - } - - /** - * - * - *
-     * List phrase sets.
-     * 
- */ - public void listPhraseSet( - com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListPhraseSetMethod(), responseObserver); - } - - /** - * - * - *
-     * Update a phrase set.
-     * 
- */ - public void updatePhraseSet( - com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdatePhraseSetMethod(), responseObserver); - } - - /** - * - * - *
-     * Delete a phrase set.
-     * 
- */ - public void deletePhraseSet( - com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeletePhraseSetMethod(), responseObserver); - } - - /** - * - * - *
-     * Create a custom class.
-     * 
- */ - public void createCustomClass( - com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateCustomClassMethod(), responseObserver); - } - - /** - * - * - *
-     * Get a custom class.
-     * 
- */ - public void getCustomClass( - com.google.cloud.speech.v1p1beta1.GetCustomClassRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetCustomClassMethod(), responseObserver); - } - - /** - * - * - *
-     * List custom classes.
-     * 
- */ - public void listCustomClasses( - com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListCustomClassesMethod(), responseObserver); - } - - /** - * - * - *
-     * Update a custom class.
-     * 
- */ - public void updateCustomClass( - com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateCustomClassMethod(), responseObserver); - } - - /** - * - * - *
-     * Delete a custom class.
-     * 
- */ - public void deleteCustomClass( - com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteCustomClassMethod(), responseObserver); - } - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getCreatePhraseSetMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest, - com.google.cloud.speech.v1p1beta1.PhraseSet>( - this, METHODID_CREATE_PHRASE_SET))) - .addMethod( - getGetPhraseSetMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest, - com.google.cloud.speech.v1p1beta1.PhraseSet>(this, METHODID_GET_PHRASE_SET))) - .addMethod( - getListPhraseSetMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest, - com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse>( - this, METHODID_LIST_PHRASE_SET))) - .addMethod( - getUpdatePhraseSetMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest, - com.google.cloud.speech.v1p1beta1.PhraseSet>( - this, METHODID_UPDATE_PHRASE_SET))) - .addMethod( - getDeletePhraseSetMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest, - com.google.protobuf.Empty>(this, METHODID_DELETE_PHRASE_SET))) - .addMethod( - getCreateCustomClassMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest, - com.google.cloud.speech.v1p1beta1.CustomClass>( - this, METHODID_CREATE_CUSTOM_CLASS))) - .addMethod( - getGetCustomClassMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.speech.v1p1beta1.GetCustomClassRequest, - com.google.cloud.speech.v1p1beta1.CustomClass>( - this, METHODID_GET_CUSTOM_CLASS))) - .addMethod( - getListCustomClassesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest, - com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse>( - this, METHODID_LIST_CUSTOM_CLASSES))) - .addMethod( - getUpdateCustomClassMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest, - com.google.cloud.speech.v1p1beta1.CustomClass>( - this, METHODID_UPDATE_CUSTOM_CLASS))) - .addMethod( - getDeleteCustomClassMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest, - com.google.protobuf.Empty>(this, METHODID_DELETE_CUSTOM_CLASS))) - .build(); - } - } - - /** - * - * - *
-   * Service that implements Google Cloud Speech Adaptation API.
-   * 
- */ - public static final class AdaptationStub extends io.grpc.stub.AbstractAsyncStub { - private AdaptationStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected AdaptationStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AdaptationStub(channel, callOptions); - } - - /** - * - * - *
-     * Create a set of phrase hints. Each item in the set can be a single word or
-     * a multi-word phrase. The items in the PhraseSet are favored by the
-     * recognition model when you send a call that includes the PhraseSet.
-     * 
- */ - public void createPhraseSet( - com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreatePhraseSetMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Get a phrase set.
-     * 
- */ - public void getPhraseSet( - com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetPhraseSetMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * List phrase sets.
-     * 
- */ - public void listPhraseSet( - com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListPhraseSetMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Update a phrase set.
-     * 
- */ - public void updatePhraseSet( - com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdatePhraseSetMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Delete a phrase set.
-     * 
- */ - public void deletePhraseSet( - com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeletePhraseSetMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Create a custom class.
-     * 
- */ - public void createCustomClass( - com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateCustomClassMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Get a custom class.
-     * 
- */ - public void getCustomClass( - com.google.cloud.speech.v1p1beta1.GetCustomClassRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetCustomClassMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * List custom classes.
-     * 
- */ - public void listCustomClasses( - com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListCustomClassesMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Update a custom class.
-     * 
- */ - public void updateCustomClass( - com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateCustomClassMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Delete a custom class.
-     * 
- */ - public void deleteCustomClass( - com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteCustomClassMethod(), getCallOptions()), - request, - responseObserver); - } - } - - /** - * - * - *
-   * Service that implements Google Cloud Speech Adaptation API.
-   * 
- */ - public static final class AdaptationBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private AdaptationBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected AdaptationBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AdaptationBlockingStub(channel, callOptions); - } - - /** - * - * - *
-     * Create a set of phrase hints. Each item in the set can be a single word or
-     * a multi-word phrase. The items in the PhraseSet are favored by the
-     * recognition model when you send a call that includes the PhraseSet.
-     * 
- */ - public com.google.cloud.speech.v1p1beta1.PhraseSet createPhraseSet( - com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreatePhraseSetMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Get a phrase set.
-     * 
- */ - public com.google.cloud.speech.v1p1beta1.PhraseSet getPhraseSet( - com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetPhraseSetMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * List phrase sets.
-     * 
- */ - public com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse listPhraseSet( - com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListPhraseSetMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Update a phrase set.
-     * 
- */ - public com.google.cloud.speech.v1p1beta1.PhraseSet updatePhraseSet( - com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdatePhraseSetMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Delete a phrase set.
-     * 
- */ - public com.google.protobuf.Empty deletePhraseSet( - com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeletePhraseSetMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Create a custom class.
-     * 
- */ - public com.google.cloud.speech.v1p1beta1.CustomClass createCustomClass( - com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateCustomClassMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Get a custom class.
-     * 
- */ - public com.google.cloud.speech.v1p1beta1.CustomClass getCustomClass( - com.google.cloud.speech.v1p1beta1.GetCustomClassRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetCustomClassMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * List custom classes.
-     * 
- */ - public com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse listCustomClasses( - com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListCustomClassesMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Update a custom class.
-     * 
- */ - public com.google.cloud.speech.v1p1beta1.CustomClass updateCustomClass( - com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateCustomClassMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Delete a custom class.
-     * 
- */ - public com.google.protobuf.Empty deleteCustomClass( - com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteCustomClassMethod(), getCallOptions(), request); - } - } - - /** - * - * - *
-   * Service that implements Google Cloud Speech Adaptation API.
-   * 
- */ - public static final class AdaptationFutureStub - extends io.grpc.stub.AbstractFutureStub { - private AdaptationFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected AdaptationFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AdaptationFutureStub(channel, callOptions); - } - - /** - * - * - *
-     * Create a set of phrase hints. Each item in the set can be a single word or
-     * a multi-word phrase. The items in the PhraseSet are favored by the
-     * recognition model when you send a call that includes the PhraseSet.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.speech.v1p1beta1.PhraseSet> - createPhraseSet(com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreatePhraseSetMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Get a phrase set.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.speech.v1p1beta1.PhraseSet> - getPhraseSet(com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetPhraseSetMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * List phrase sets.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse> - listPhraseSet(com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListPhraseSetMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Update a phrase set.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.speech.v1p1beta1.PhraseSet> - updatePhraseSet(com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdatePhraseSetMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Delete a phrase set.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deletePhraseSet(com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeletePhraseSetMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Create a custom class.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.speech.v1p1beta1.CustomClass> - createCustomClass(com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateCustomClassMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Get a custom class.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.speech.v1p1beta1.CustomClass> - getCustomClass(com.google.cloud.speech.v1p1beta1.GetCustomClassRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetCustomClassMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * List custom classes.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse> - listCustomClasses(com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListCustomClassesMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Update a custom class.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.speech.v1p1beta1.CustomClass> - updateCustomClass(com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateCustomClassMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Delete a custom class.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deleteCustomClass(com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteCustomClassMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_CREATE_PHRASE_SET = 0; - private static final int METHODID_GET_PHRASE_SET = 1; - private static final int METHODID_LIST_PHRASE_SET = 2; - private static final int METHODID_UPDATE_PHRASE_SET = 3; - private static final int METHODID_DELETE_PHRASE_SET = 4; - private static final int METHODID_CREATE_CUSTOM_CLASS = 5; - private static final int METHODID_GET_CUSTOM_CLASS = 6; - private static final int METHODID_LIST_CUSTOM_CLASSES = 7; - private static final int METHODID_UPDATE_CUSTOM_CLASS = 8; - private static final int METHODID_DELETE_CUSTOM_CLASS = 9; - - private static final class MethodHandlers - implements io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final AdaptationImplBase serviceImpl; - private final int methodId; - - MethodHandlers(AdaptationImplBase serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_CREATE_PHRASE_SET: - serviceImpl.createPhraseSet( - (com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_GET_PHRASE_SET: - serviceImpl.getPhraseSet( - (com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_LIST_PHRASE_SET: - serviceImpl.listPhraseSet( - (com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_UPDATE_PHRASE_SET: - serviceImpl.updatePhraseSet( - (com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_DELETE_PHRASE_SET: - serviceImpl.deletePhraseSet( - (com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_CUSTOM_CLASS: - serviceImpl.createCustomClass( - (com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_GET_CUSTOM_CLASS: - serviceImpl.getCustomClass( - (com.google.cloud.speech.v1p1beta1.GetCustomClassRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_LIST_CUSTOM_CLASSES: - serviceImpl.listCustomClasses( - (com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse>) - responseObserver); - break; - case METHODID_UPDATE_CUSTOM_CLASS: - serviceImpl.updateCustomClass( - (com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_DELETE_CUSTOM_CLASS: - serviceImpl.deleteCustomClass( - (com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - default: - throw new AssertionError(); - } - } - } - - private abstract static class AdaptationBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { - AdaptationBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("Adaptation"); - } - } - - private static final class AdaptationFileDescriptorSupplier - extends AdaptationBaseDescriptorSupplier { - AdaptationFileDescriptorSupplier() {} - } - - private static final class AdaptationMethodDescriptorSupplier - extends AdaptationBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - AdaptationMethodDescriptorSupplier(String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (AdaptationGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new AdaptationFileDescriptorSupplier()) - .addMethod(getCreatePhraseSetMethod()) - .addMethod(getGetPhraseSetMethod()) - .addMethod(getListPhraseSetMethod()) - .addMethod(getUpdatePhraseSetMethod()) - .addMethod(getDeletePhraseSetMethod()) - .addMethod(getCreateCustomClassMethod()) - .addMethod(getGetCustomClassMethod()) - .addMethod(getListCustomClassesMethod()) - .addMethod(getUpdateCustomClassMethod()) - .addMethod(getDeleteCustomClassMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/grpc-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechGrpc.java b/grpc-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechGrpc.java deleted file mode 100644 index c3bc87f0f..000000000 --- a/grpc-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechGrpc.java +++ /dev/null @@ -1,589 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package com.google.cloud.speech.v1p1beta1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - * - * - *
- * Service that implements Google Cloud Speech API.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/speech/v1p1beta1/cloud_speech.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class SpeechGrpc { - - private SpeechGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.speech.v1p1beta1.Speech"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.speech.v1p1beta1.RecognizeRequest, - com.google.cloud.speech.v1p1beta1.RecognizeResponse> - getRecognizeMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "Recognize", - requestType = com.google.cloud.speech.v1p1beta1.RecognizeRequest.class, - responseType = com.google.cloud.speech.v1p1beta1.RecognizeResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.speech.v1p1beta1.RecognizeRequest, - com.google.cloud.speech.v1p1beta1.RecognizeResponse> - getRecognizeMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.speech.v1p1beta1.RecognizeRequest, - com.google.cloud.speech.v1p1beta1.RecognizeResponse> - getRecognizeMethod; - if ((getRecognizeMethod = SpeechGrpc.getRecognizeMethod) == null) { - synchronized (SpeechGrpc.class) { - if ((getRecognizeMethod = SpeechGrpc.getRecognizeMethod) == null) { - SpeechGrpc.getRecognizeMethod = - getRecognizeMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Recognize")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v1p1beta1.RecognizeRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v1p1beta1.RecognizeResponse - .getDefaultInstance())) - .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("Recognize")) - .build(); - } - } - } - return getRecognizeMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest, - com.google.longrunning.Operation> - getLongRunningRecognizeMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "LongRunningRecognize", - requestType = com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest, - com.google.longrunning.Operation> - getLongRunningRecognizeMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest, - com.google.longrunning.Operation> - getLongRunningRecognizeMethod; - if ((getLongRunningRecognizeMethod = SpeechGrpc.getLongRunningRecognizeMethod) == null) { - synchronized (SpeechGrpc.class) { - if ((getLongRunningRecognizeMethod = SpeechGrpc.getLongRunningRecognizeMethod) == null) { - SpeechGrpc.getLongRunningRecognizeMethod = - getLongRunningRecognizeMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "LongRunningRecognize")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new SpeechMethodDescriptorSupplier("LongRunningRecognize")) - .build(); - } - } - } - return getLongRunningRecognizeMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest, - com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse> - getStreamingRecognizeMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "StreamingRecognize", - requestType = com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest.class, - responseType = com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING) - public static io.grpc.MethodDescriptor< - com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest, - com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse> - getStreamingRecognizeMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest, - com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse> - getStreamingRecognizeMethod; - if ((getStreamingRecognizeMethod = SpeechGrpc.getStreamingRecognizeMethod) == null) { - synchronized (SpeechGrpc.class) { - if ((getStreamingRecognizeMethod = SpeechGrpc.getStreamingRecognizeMethod) == null) { - SpeechGrpc.getStreamingRecognizeMethod = - getStreamingRecognizeMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StreamingRecognize")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse - .getDefaultInstance())) - .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("StreamingRecognize")) - .build(); - } - } - } - return getStreamingRecognizeMethod; - } - - /** Creates a new async stub that supports all call types for the service */ - public static SpeechStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public SpeechStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SpeechStub(channel, callOptions); - } - }; - return SpeechStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static SpeechBlockingStub newBlockingStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public SpeechBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SpeechBlockingStub(channel, callOptions); - } - }; - return SpeechBlockingStub.newStub(factory, channel); - } - - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static SpeechFutureStub newFutureStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public SpeechFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SpeechFutureStub(channel, callOptions); - } - }; - return SpeechFutureStub.newStub(factory, channel); - } - - /** - * - * - *
-   * Service that implements Google Cloud Speech API.
-   * 
- */ - public abstract static class SpeechImplBase implements io.grpc.BindableService { - - /** - * - * - *
-     * Performs synchronous speech recognition: receive results after all audio
-     * has been sent and processed.
-     * 
- */ - public void recognize( - com.google.cloud.speech.v1p1beta1.RecognizeRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRecognizeMethod(), responseObserver); - } - - /** - * - * - *
-     * Performs asynchronous speech recognition: receive results via the
-     * google.longrunning.Operations interface. Returns either an
-     * `Operation.error` or an `Operation.response` which contains
-     * a `LongRunningRecognizeResponse` message.
-     * For more information on asynchronous speech recognition, see the
-     * [how-to](https://cloud.google.com/speech-to-text/docs/async-recognize).
-     * 
- */ - public void longRunningRecognize( - com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getLongRunningRecognizeMethod(), responseObserver); - } - - /** - * - * - *
-     * Performs bidirectional streaming speech recognition: receive results while
-     * sending audio. This method is only available via the gRPC API (not REST).
-     * 
- */ - public io.grpc.stub.StreamObserver - streamingRecognize( - io.grpc.stub.StreamObserver< - com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse> - responseObserver) { - return io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall( - getStreamingRecognizeMethod(), responseObserver); - } - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getRecognizeMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.speech.v1p1beta1.RecognizeRequest, - com.google.cloud.speech.v1p1beta1.RecognizeResponse>( - this, METHODID_RECOGNIZE))) - .addMethod( - getLongRunningRecognizeMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest, - com.google.longrunning.Operation>(this, METHODID_LONG_RUNNING_RECOGNIZE))) - .addMethod( - getStreamingRecognizeMethod(), - io.grpc.stub.ServerCalls.asyncBidiStreamingCall( - new MethodHandlers< - com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest, - com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse>( - this, METHODID_STREAMING_RECOGNIZE))) - .build(); - } - } - - /** - * - * - *
-   * Service that implements Google Cloud Speech API.
-   * 
- */ - public static final class SpeechStub extends io.grpc.stub.AbstractAsyncStub { - private SpeechStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected SpeechStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SpeechStub(channel, callOptions); - } - - /** - * - * - *
-     * Performs synchronous speech recognition: receive results after all audio
-     * has been sent and processed.
-     * 
- */ - public void recognize( - com.google.cloud.speech.v1p1beta1.RecognizeRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getRecognizeMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Performs asynchronous speech recognition: receive results via the
-     * google.longrunning.Operations interface. Returns either an
-     * `Operation.error` or an `Operation.response` which contains
-     * a `LongRunningRecognizeResponse` message.
-     * For more information on asynchronous speech recognition, see the
-     * [how-to](https://cloud.google.com/speech-to-text/docs/async-recognize).
-     * 
- */ - public void longRunningRecognize( - com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getLongRunningRecognizeMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Performs bidirectional streaming speech recognition: receive results while
-     * sending audio. This method is only available via the gRPC API (not REST).
-     * 
- */ - public io.grpc.stub.StreamObserver - streamingRecognize( - io.grpc.stub.StreamObserver< - com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse> - responseObserver) { - return io.grpc.stub.ClientCalls.asyncBidiStreamingCall( - getChannel().newCall(getStreamingRecognizeMethod(), getCallOptions()), responseObserver); - } - } - - /** - * - * - *
-   * Service that implements Google Cloud Speech API.
-   * 
- */ - public static final class SpeechBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private SpeechBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected SpeechBlockingStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SpeechBlockingStub(channel, callOptions); - } - - /** - * - * - *
-     * Performs synchronous speech recognition: receive results after all audio
-     * has been sent and processed.
-     * 
- */ - public com.google.cloud.speech.v1p1beta1.RecognizeResponse recognize( - com.google.cloud.speech.v1p1beta1.RecognizeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getRecognizeMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Performs asynchronous speech recognition: receive results via the
-     * google.longrunning.Operations interface. Returns either an
-     * `Operation.error` or an `Operation.response` which contains
-     * a `LongRunningRecognizeResponse` message.
-     * For more information on asynchronous speech recognition, see the
-     * [how-to](https://cloud.google.com/speech-to-text/docs/async-recognize).
-     * 
- */ - public com.google.longrunning.Operation longRunningRecognize( - com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getLongRunningRecognizeMethod(), getCallOptions(), request); - } - } - - /** - * - * - *
-   * Service that implements Google Cloud Speech API.
-   * 
- */ - public static final class SpeechFutureStub - extends io.grpc.stub.AbstractFutureStub { - private SpeechFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected SpeechFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SpeechFutureStub(channel, callOptions); - } - - /** - * - * - *
-     * Performs synchronous speech recognition: receive results after all audio
-     * has been sent and processed.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.speech.v1p1beta1.RecognizeResponse> - recognize(com.google.cloud.speech.v1p1beta1.RecognizeRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getRecognizeMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Performs asynchronous speech recognition: receive results via the
-     * google.longrunning.Operations interface. Returns either an
-     * `Operation.error` or an `Operation.response` which contains
-     * a `LongRunningRecognizeResponse` message.
-     * For more information on asynchronous speech recognition, see the
-     * [how-to](https://cloud.google.com/speech-to-text/docs/async-recognize).
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - longRunningRecognize( - com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getLongRunningRecognizeMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_RECOGNIZE = 0; - private static final int METHODID_LONG_RUNNING_RECOGNIZE = 1; - private static final int METHODID_STREAMING_RECOGNIZE = 2; - - private static final class MethodHandlers - implements io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final SpeechImplBase serviceImpl; - private final int methodId; - - MethodHandlers(SpeechImplBase serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_RECOGNIZE: - serviceImpl.recognize( - (com.google.cloud.speech.v1p1beta1.RecognizeRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_LONG_RUNNING_RECOGNIZE: - serviceImpl.longRunningRecognize( - (com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_STREAMING_RECOGNIZE: - return (io.grpc.stub.StreamObserver) - serviceImpl.streamingRecognize( - (io.grpc.stub.StreamObserver< - com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse>) - responseObserver); - default: - throw new AssertionError(); - } - } - } - - private abstract static class SpeechBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { - SpeechBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("Speech"); - } - } - - private static final class SpeechFileDescriptorSupplier extends SpeechBaseDescriptorSupplier { - SpeechFileDescriptorSupplier() {} - } - - private static final class SpeechMethodDescriptorSupplier extends SpeechBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - SpeechMethodDescriptorSupplier(String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (SpeechGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new SpeechFileDescriptorSupplier()) - .addMethod(getRecognizeMethod()) - .addMethod(getLongRunningRecognizeMethod()) - .addMethod(getStreamingRecognizeMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/SpeechClient.java b/owl-bot-staging/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/SpeechClient.java similarity index 98% rename from google-cloud-speech/src/main/java/com/google/cloud/speech/v1/SpeechClient.java rename to owl-bot-staging/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/SpeechClient.java index 186dd5aa2..414cd087f 100644 --- a/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/SpeechClient.java +++ b/owl-bot-staging/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/SpeechClient.java @@ -52,13 +52,13 @@ * methods: * *
    - *
  1. A "flattened" method. With this type of method, the fields of the request type have been + *
  2. A "flattened" method. With this type of method, the fields of the request type have been * converted into function parameters. It may be the case that not all fields are available as * parameters, and not every API method will have a flattened method entry point. - *
  3. A "request object" method. This type of method only takes one parameter, a request object, + *
  4. A "request object" method. This type of method only takes one parameter, a request object, * which must be constructed before the call. Not every API method will have a request object * method. - *
  5. A "callable" method. This type of method takes no parameters and returns an immutable API + *
  6. A "callable" method. This type of method takes no parameters and returns an immutable API * callable object, which can be used to initiate calls to the service. *
* diff --git a/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/SpeechSettings.java b/owl-bot-staging/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/SpeechSettings.java similarity index 96% rename from google-cloud-speech/src/main/java/com/google/cloud/speech/v1/SpeechSettings.java rename to owl-bot-staging/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/SpeechSettings.java index 3234b5f66..c8e69daaa 100644 --- a/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/SpeechSettings.java +++ b/owl-bot-staging/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/SpeechSettings.java @@ -26,6 +26,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; @@ -41,9 +42,9 @@ *

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

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

The builder of this class is recursive, so contained classes are themselves builders. When diff --git a/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/gapic_metadata.json b/owl-bot-staging/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/gapic_metadata.json similarity index 100% rename from google-cloud-speech/src/main/java/com/google/cloud/speech/v1/gapic_metadata.json rename to owl-bot-staging/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/gapic_metadata.json diff --git a/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/package-info.java b/owl-bot-staging/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/package-info.java similarity index 100% rename from google-cloud-speech/src/main/java/com/google/cloud/speech/v1/package-info.java rename to owl-bot-staging/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/package-info.java diff --git a/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/GrpcSpeechCallableFactory.java b/owl-bot-staging/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/GrpcSpeechCallableFactory.java similarity index 100% rename from google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/GrpcSpeechCallableFactory.java rename to owl-bot-staging/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/GrpcSpeechCallableFactory.java diff --git a/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/GrpcSpeechStub.java b/owl-bot-staging/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/GrpcSpeechStub.java similarity index 100% rename from google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/GrpcSpeechStub.java rename to owl-bot-staging/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/GrpcSpeechStub.java diff --git a/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/SpeechStub.java b/owl-bot-staging/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/SpeechStub.java similarity index 100% rename from google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/SpeechStub.java rename to owl-bot-staging/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/SpeechStub.java diff --git a/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/SpeechStubSettings.java b/owl-bot-staging/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/SpeechStubSettings.java similarity index 98% rename from google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/SpeechStubSettings.java rename to owl-bot-staging/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/SpeechStubSettings.java index c55156e5c..3fe6ed944 100644 --- a/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/SpeechStubSettings.java +++ b/owl-bot-staging/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/SpeechStubSettings.java @@ -60,9 +60,9 @@ *

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

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

The builder of this class is recursive, so contained classes are themselves builders. When diff --git a/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/MockSpeech.java b/owl-bot-staging/v1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/MockSpeech.java similarity index 100% rename from google-cloud-speech/src/test/java/com/google/cloud/speech/v1/MockSpeech.java rename to owl-bot-staging/v1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/MockSpeech.java diff --git a/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/MockSpeechImpl.java b/owl-bot-staging/v1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/MockSpeechImpl.java similarity index 100% rename from google-cloud-speech/src/test/java/com/google/cloud/speech/v1/MockSpeechImpl.java rename to owl-bot-staging/v1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/MockSpeechImpl.java diff --git a/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/SpeechClientTest.java b/owl-bot-staging/v1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/SpeechClientTest.java similarity index 100% rename from google-cloud-speech/src/test/java/com/google/cloud/speech/v1/SpeechClientTest.java rename to owl-bot-staging/v1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/SpeechClientTest.java diff --git a/owl-bot-staging/v1/grpc-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechGrpc.java b/owl-bot-staging/v1/grpc-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechGrpc.java new file mode 100644 index 000000000..46b71822a --- /dev/null +++ b/owl-bot-staging/v1/grpc-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechGrpc.java @@ -0,0 +1,479 @@ +package com.google.cloud.speech.v1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + *

+ * Service that implements Google Cloud Speech API.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/speech/v1/cloud_speech.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class SpeechGrpc { + + private SpeechGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.speech.v1.Speech"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor getRecognizeMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "Recognize", + requestType = com.google.cloud.speech.v1.RecognizeRequest.class, + responseType = com.google.cloud.speech.v1.RecognizeResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getRecognizeMethod() { + io.grpc.MethodDescriptor getRecognizeMethod; + if ((getRecognizeMethod = SpeechGrpc.getRecognizeMethod) == null) { + synchronized (SpeechGrpc.class) { + if ((getRecognizeMethod = SpeechGrpc.getRecognizeMethod) == null) { + SpeechGrpc.getRecognizeMethod = getRecognizeMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Recognize")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v1.RecognizeRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v1.RecognizeResponse.getDefaultInstance())) + .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("Recognize")) + .build(); + } + } + } + return getRecognizeMethod; + } + + private static volatile io.grpc.MethodDescriptor getLongRunningRecognizeMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "LongRunningRecognize", + requestType = com.google.cloud.speech.v1.LongRunningRecognizeRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getLongRunningRecognizeMethod() { + io.grpc.MethodDescriptor getLongRunningRecognizeMethod; + if ((getLongRunningRecognizeMethod = SpeechGrpc.getLongRunningRecognizeMethod) == null) { + synchronized (SpeechGrpc.class) { + if ((getLongRunningRecognizeMethod = SpeechGrpc.getLongRunningRecognizeMethod) == null) { + SpeechGrpc.getLongRunningRecognizeMethod = getLongRunningRecognizeMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "LongRunningRecognize")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v1.LongRunningRecognizeRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("LongRunningRecognize")) + .build(); + } + } + } + return getLongRunningRecognizeMethod; + } + + private static volatile io.grpc.MethodDescriptor getStreamingRecognizeMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "StreamingRecognize", + requestType = com.google.cloud.speech.v1.StreamingRecognizeRequest.class, + responseType = com.google.cloud.speech.v1.StreamingRecognizeResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING) + public static io.grpc.MethodDescriptor getStreamingRecognizeMethod() { + io.grpc.MethodDescriptor getStreamingRecognizeMethod; + if ((getStreamingRecognizeMethod = SpeechGrpc.getStreamingRecognizeMethod) == null) { + synchronized (SpeechGrpc.class) { + if ((getStreamingRecognizeMethod = SpeechGrpc.getStreamingRecognizeMethod) == null) { + SpeechGrpc.getStreamingRecognizeMethod = getStreamingRecognizeMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StreamingRecognize")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v1.StreamingRecognizeRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v1.StreamingRecognizeResponse.getDefaultInstance())) + .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("StreamingRecognize")) + .build(); + } + } + } + return getStreamingRecognizeMethod; + } + + /** + * Creates a new async stub that supports all call types for the service + */ + public static SpeechStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public SpeechStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SpeechStub(channel, callOptions); + } + }; + return SpeechStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static SpeechBlockingStub newBlockingStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public SpeechBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SpeechBlockingStub(channel, callOptions); + } + }; + return SpeechBlockingStub.newStub(factory, channel); + } + + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static SpeechFutureStub newFutureStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public SpeechFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SpeechFutureStub(channel, callOptions); + } + }; + return SpeechFutureStub.newStub(factory, channel); + } + + /** + *
+   * Service that implements Google Cloud Speech API.
+   * 
+ */ + public static abstract class SpeechImplBase implements io.grpc.BindableService { + + /** + *
+     * Performs synchronous speech recognition: receive results after all audio
+     * has been sent and processed.
+     * 
+ */ + public void recognize(com.google.cloud.speech.v1.RecognizeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRecognizeMethod(), responseObserver); + } + + /** + *
+     * Performs asynchronous speech recognition: receive results via the
+     * google.longrunning.Operations interface. Returns either an
+     * `Operation.error` or an `Operation.response` which contains
+     * a `LongRunningRecognizeResponse` message.
+     * For more information on asynchronous speech recognition, see the
+     * [how-to](https://cloud.google.com/speech-to-text/docs/async-recognize).
+     * 
+ */ + public void longRunningRecognize(com.google.cloud.speech.v1.LongRunningRecognizeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getLongRunningRecognizeMethod(), responseObserver); + } + + /** + *
+     * Performs bidirectional streaming speech recognition: receive results while
+     * sending audio. This method is only available via the gRPC API (not REST).
+     * 
+ */ + public io.grpc.stub.StreamObserver streamingRecognize( + io.grpc.stub.StreamObserver responseObserver) { + return io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall(getStreamingRecognizeMethod(), responseObserver); + } + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getRecognizeMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.speech.v1.RecognizeRequest, + com.google.cloud.speech.v1.RecognizeResponse>( + this, METHODID_RECOGNIZE))) + .addMethod( + getLongRunningRecognizeMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.speech.v1.LongRunningRecognizeRequest, + com.google.longrunning.Operation>( + this, METHODID_LONG_RUNNING_RECOGNIZE))) + .addMethod( + getStreamingRecognizeMethod(), + io.grpc.stub.ServerCalls.asyncBidiStreamingCall( + new MethodHandlers< + com.google.cloud.speech.v1.StreamingRecognizeRequest, + com.google.cloud.speech.v1.StreamingRecognizeResponse>( + this, METHODID_STREAMING_RECOGNIZE))) + .build(); + } + } + + /** + *
+   * Service that implements Google Cloud Speech API.
+   * 
+ */ + public static final class SpeechStub extends io.grpc.stub.AbstractAsyncStub { + private SpeechStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected SpeechStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SpeechStub(channel, callOptions); + } + + /** + *
+     * Performs synchronous speech recognition: receive results after all audio
+     * has been sent and processed.
+     * 
+ */ + public void recognize(com.google.cloud.speech.v1.RecognizeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getRecognizeMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Performs asynchronous speech recognition: receive results via the
+     * google.longrunning.Operations interface. Returns either an
+     * `Operation.error` or an `Operation.response` which contains
+     * a `LongRunningRecognizeResponse` message.
+     * For more information on asynchronous speech recognition, see the
+     * [how-to](https://cloud.google.com/speech-to-text/docs/async-recognize).
+     * 
+ */ + public void longRunningRecognize(com.google.cloud.speech.v1.LongRunningRecognizeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getLongRunningRecognizeMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Performs bidirectional streaming speech recognition: receive results while
+     * sending audio. This method is only available via the gRPC API (not REST).
+     * 
+ */ + public io.grpc.stub.StreamObserver streamingRecognize( + io.grpc.stub.StreamObserver responseObserver) { + return io.grpc.stub.ClientCalls.asyncBidiStreamingCall( + getChannel().newCall(getStreamingRecognizeMethod(), getCallOptions()), responseObserver); + } + } + + /** + *
+   * Service that implements Google Cloud Speech API.
+   * 
+ */ + public static final class SpeechBlockingStub extends io.grpc.stub.AbstractBlockingStub { + private SpeechBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected SpeechBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SpeechBlockingStub(channel, callOptions); + } + + /** + *
+     * Performs synchronous speech recognition: receive results after all audio
+     * has been sent and processed.
+     * 
+ */ + public com.google.cloud.speech.v1.RecognizeResponse recognize(com.google.cloud.speech.v1.RecognizeRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getRecognizeMethod(), getCallOptions(), request); + } + + /** + *
+     * Performs asynchronous speech recognition: receive results via the
+     * google.longrunning.Operations interface. Returns either an
+     * `Operation.error` or an `Operation.response` which contains
+     * a `LongRunningRecognizeResponse` message.
+     * For more information on asynchronous speech recognition, see the
+     * [how-to](https://cloud.google.com/speech-to-text/docs/async-recognize).
+     * 
+ */ + public com.google.longrunning.Operation longRunningRecognize(com.google.cloud.speech.v1.LongRunningRecognizeRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getLongRunningRecognizeMethod(), getCallOptions(), request); + } + } + + /** + *
+   * Service that implements Google Cloud Speech API.
+   * 
+ */ + public static final class SpeechFutureStub extends io.grpc.stub.AbstractFutureStub { + private SpeechFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected SpeechFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SpeechFutureStub(channel, callOptions); + } + + /** + *
+     * Performs synchronous speech recognition: receive results after all audio
+     * has been sent and processed.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture recognize( + com.google.cloud.speech.v1.RecognizeRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getRecognizeMethod(), getCallOptions()), request); + } + + /** + *
+     * Performs asynchronous speech recognition: receive results via the
+     * google.longrunning.Operations interface. Returns either an
+     * `Operation.error` or an `Operation.response` which contains
+     * a `LongRunningRecognizeResponse` message.
+     * For more information on asynchronous speech recognition, see the
+     * [how-to](https://cloud.google.com/speech-to-text/docs/async-recognize).
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture longRunningRecognize( + com.google.cloud.speech.v1.LongRunningRecognizeRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getLongRunningRecognizeMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_RECOGNIZE = 0; + private static final int METHODID_LONG_RUNNING_RECOGNIZE = 1; + private static final int METHODID_STREAMING_RECOGNIZE = 2; + + private static final class MethodHandlers implements + io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final SpeechImplBase serviceImpl; + private final int methodId; + + MethodHandlers(SpeechImplBase serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_RECOGNIZE: + serviceImpl.recognize((com.google.cloud.speech.v1.RecognizeRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LONG_RUNNING_RECOGNIZE: + serviceImpl.longRunningRecognize((com.google.cloud.speech.v1.LongRunningRecognizeRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_STREAMING_RECOGNIZE: + return (io.grpc.stub.StreamObserver) serviceImpl.streamingRecognize( + (io.grpc.stub.StreamObserver) responseObserver); + default: + throw new AssertionError(); + } + } + } + + private static abstract class SpeechBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + SpeechBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.speech.v1.SpeechProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("Speech"); + } + } + + private static final class SpeechFileDescriptorSupplier + extends SpeechBaseDescriptorSupplier { + SpeechFileDescriptorSupplier() {} + } + + private static final class SpeechMethodDescriptorSupplier + extends SpeechBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + SpeechMethodDescriptorSupplier(String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (SpeechGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new SpeechFileDescriptorSupplier()) + .addMethod(getRecognizeMethod()) + .addMethod(getLongRunningRecognizeMethod()) + .addMethod(getStreamingRecognizeMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CustomClass.java b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CustomClass.java similarity index 73% rename from proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CustomClass.java rename to owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CustomClass.java index 4ecd622f2..3567bea88 100644 --- a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CustomClass.java +++ b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CustomClass.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1/resource.proto package com.google.cloud.speech.v1; /** - * - * *
  * A set of words or phrases that represents a common concept likely to appear
  * in your audio, for example a list of passenger ship names. CustomClass items
@@ -29,16 +12,15 @@
  *
  * Protobuf type {@code google.cloud.speech.v1.CustomClass}
  */
-public final class CustomClass extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class CustomClass extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.speech.v1.CustomClass)
     CustomClassOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use CustomClass.newBuilder() to construct.
   private CustomClass(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private CustomClass() {
     name_ = "";
     customClassId_ = "";
@@ -47,15 +29,16 @@ private CustomClass() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new CustomClass();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private CustomClass(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -75,46 +58,41 @@ private CustomClass(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              name_ = s;
-              break;
-            }
-          case 18:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            name_ = s;
+            break;
+          }
+          case 18: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              customClassId_ = s;
-              break;
-            }
-          case 26:
-            {
-              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                items_ =
-                    new java.util.ArrayList();
-                mutable_bitField0_ |= 0x00000001;
-              }
-              items_.add(
-                  input.readMessage(
-                      com.google.cloud.speech.v1.CustomClass.ClassItem.parser(),
-                      extensionRegistry));
-              break;
+            customClassId_ = s;
+            break;
+          }
+          case 26: {
+            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+              items_ = new java.util.ArrayList();
+              mutable_bitField0_ |= 0x00000001;
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            items_.add(
+                input.readMessage(com.google.cloud.speech.v1.CustomClass.ClassItem.parser(), extensionRegistry));
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         items_ = java.util.Collections.unmodifiableList(items_);
@@ -123,86 +101,75 @@ private CustomClass(
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.speech.v1.SpeechResourceProto
-        .internal_static_google_cloud_speech_v1_CustomClass_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.speech.v1.SpeechResourceProto.internal_static_google_cloud_speech_v1_CustomClass_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v1.SpeechResourceProto
-        .internal_static_google_cloud_speech_v1_CustomClass_fieldAccessorTable
+    return com.google.cloud.speech.v1.SpeechResourceProto.internal_static_google_cloud_speech_v1_CustomClass_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v1.CustomClass.class,
-            com.google.cloud.speech.v1.CustomClass.Builder.class);
+            com.google.cloud.speech.v1.CustomClass.class, com.google.cloud.speech.v1.CustomClass.Builder.class);
   }
 
-  public interface ClassItemOrBuilder
-      extends
+  public interface ClassItemOrBuilder extends
       // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1.CustomClass.ClassItem)
       com.google.protobuf.MessageOrBuilder {
 
     /**
-     *
-     *
      * 
      * The class item's value.
      * 
* * string value = 1; - * * @return The value. */ java.lang.String getValue(); /** - * - * *
      * The class item's value.
      * 
* * string value = 1; - * * @return The bytes for value. */ - com.google.protobuf.ByteString getValueBytes(); + com.google.protobuf.ByteString + getValueBytes(); } /** - * - * *
    * An item of the class.
    * 
* * Protobuf type {@code google.cloud.speech.v1.CustomClass.ClassItem} */ - public static final class ClassItem extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class ClassItem extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v1.CustomClass.ClassItem) ClassItemOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ClassItem.newBuilder() to construct. private ClassItem(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ClassItem() { value_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ClassItem(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ClassItem( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -221,58 +188,52 @@ private ClassItem( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - value_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + value_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v1.SpeechResourceProto - .internal_static_google_cloud_speech_v1_CustomClass_ClassItem_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v1.SpeechResourceProto.internal_static_google_cloud_speech_v1_CustomClass_ClassItem_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1.SpeechResourceProto - .internal_static_google_cloud_speech_v1_CustomClass_ClassItem_fieldAccessorTable + return com.google.cloud.speech.v1.SpeechResourceProto.internal_static_google_cloud_speech_v1_CustomClass_ClassItem_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1.CustomClass.ClassItem.class, - com.google.cloud.speech.v1.CustomClass.ClassItem.Builder.class); + com.google.cloud.speech.v1.CustomClass.ClassItem.class, com.google.cloud.speech.v1.CustomClass.ClassItem.Builder.class); } public static final int VALUE_FIELD_NUMBER = 1; private volatile java.lang.Object value_; /** - * - * *
      * The class item's value.
      * 
* * string value = 1; - * * @return The value. */ @java.lang.Override @@ -281,29 +242,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 { @@ -312,7 +273,6 @@ public com.google.protobuf.ByteString getValueBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -324,7 +284,8 @@ public final boolean isInitialized() { } @java.lang.Override - public 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_); } @@ -348,15 +309,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1.CustomClass.ClassItem)) { return super.equals(obj); } - com.google.cloud.speech.v1.CustomClass.ClassItem other = - (com.google.cloud.speech.v1.CustomClass.ClassItem) obj; + com.google.cloud.speech.v1.CustomClass.ClassItem other = (com.google.cloud.speech.v1.CustomClass.ClassItem) obj; - if (!getValue().equals(other.getValue())) return false; + if (!getValue() + .equals(other.getValue())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -376,93 +337,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 @@ -472,32 +427,27 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * An item of the class.
      * 
* * Protobuf type {@code google.cloud.speech.v1.CustomClass.ClassItem} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1.CustomClass.ClassItem) com.google.cloud.speech.v1.CustomClass.ClassItemOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v1.SpeechResourceProto - .internal_static_google_cloud_speech_v1_CustomClass_ClassItem_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v1.SpeechResourceProto.internal_static_google_cloud_speech_v1_CustomClass_ClassItem_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1.SpeechResourceProto - .internal_static_google_cloud_speech_v1_CustomClass_ClassItem_fieldAccessorTable + return com.google.cloud.speech.v1.SpeechResourceProto.internal_static_google_cloud_speech_v1_CustomClass_ClassItem_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1.CustomClass.ClassItem.class, - com.google.cloud.speech.v1.CustomClass.ClassItem.Builder.class); + com.google.cloud.speech.v1.CustomClass.ClassItem.class, com.google.cloud.speech.v1.CustomClass.ClassItem.Builder.class); } // Construct using com.google.cloud.speech.v1.CustomClass.ClassItem.newBuilder() @@ -505,15 +455,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -523,9 +474,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 @@ -544,8 +495,7 @@ public com.google.cloud.speech.v1.CustomClass.ClassItem build() { @java.lang.Override public com.google.cloud.speech.v1.CustomClass.ClassItem buildPartial() { - com.google.cloud.speech.v1.CustomClass.ClassItem result = - new com.google.cloud.speech.v1.CustomClass.ClassItem(this); + com.google.cloud.speech.v1.CustomClass.ClassItem result = new com.google.cloud.speech.v1.CustomClass.ClassItem(this); result.value_ = value_; onBuilt(); return result; @@ -555,41 +505,38 @@ public com.google.cloud.speech.v1.CustomClass.ClassItem buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.speech.v1.CustomClass.ClassItem) { - return mergeFrom((com.google.cloud.speech.v1.CustomClass.ClassItem) other); + return mergeFrom((com.google.cloud.speech.v1.CustomClass.ClassItem)other); } else { super.mergeFrom(other); return this; @@ -597,8 +544,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.speech.v1.CustomClass.ClassItem other) { - if (other == com.google.cloud.speech.v1.CustomClass.ClassItem.getDefaultInstance()) - return this; + if (other == com.google.cloud.speech.v1.CustomClass.ClassItem.getDefaultInstance()) return this; if (!other.getValue().isEmpty()) { value_ = other.value_; onChanged(); @@ -622,8 +568,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.speech.v1.CustomClass.ClassItem) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.speech.v1.CustomClass.ClassItem) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -635,20 +580,18 @@ public Builder mergeFrom( private java.lang.Object value_ = ""; /** - * - * *
        * The class item's value.
        * 
* * string value = 1; - * * @return The value. */ public java.lang.String getValue() { java.lang.Object ref = value_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); value_ = s; return s; @@ -657,21 +600,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 { @@ -679,66 +621,58 @@ public com.google.protobuf.ByteString getValueBytes() { } } /** - * - * *
        * The class item's value.
        * 
* * string value = 1; - * * @param value The value to set. * @return This builder for chaining. */ - public Builder setValue(java.lang.String value) { + public Builder setValue( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + value_ = value; onChanged(); return this; } /** - * - * *
        * The class item's value.
        * 
* * string value = 1; - * * @return This builder for chaining. */ public Builder clearValue() { - + value_ = getDefaultInstance().getValue(); onChanged(); return this; } /** - * - * *
        * The class item's value.
        * 
* * string value = 1; - * * @param value The bytes for value to set. * @return This builder for chaining. */ - public Builder setValueBytes(com.google.protobuf.ByteString value) { + public Builder setValueBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + value_ = value; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -751,12 +685,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(); } @@ -765,16 +699,16 @@ public static com.google.cloud.speech.v1.CustomClass.ClassItem getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ClassItem parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ClassItem(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ClassItem parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ClassItem(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -789,19 +723,17 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1.CustomClass.ClassItem getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * The resource name of the custom class.
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -810,29 +742,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 { @@ -843,15 +775,12 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int CUSTOM_CLASS_ID_FIELD_NUMBER = 2; private volatile java.lang.Object customClassId_; /** - * - * *
    * If this custom class is a resource, the custom_class_id is the resource id
    * of the CustomClass. Case sensitive.
    * 
* * string custom_class_id = 2; - * * @return The customClassId. */ @java.lang.Override @@ -860,30 +789,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 { @@ -894,8 +823,6 @@ public com.google.protobuf.ByteString getCustomClassIdBytes() { public static final int ITEMS_FIELD_NUMBER = 3; private java.util.List items_; /** - * - * *
    * A collection of class items.
    * 
@@ -907,8 +834,6 @@ public java.util.List getItems return items_; } /** - * - * *
    * A collection of class items.
    * 
@@ -916,13 +841,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.
    * 
@@ -934,8 +857,6 @@ public int getItemsCount() { return items_.size(); } /** - * - * *
    * A collection of class items.
    * 
@@ -947,8 +868,6 @@ public com.google.cloud.speech.v1.CustomClass.ClassItem getItems(int index) { return items_.get(index); } /** - * - * *
    * A collection of class items.
    * 
@@ -956,12 +875,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; @@ -973,7 +892,8 @@ public final boolean isInitialized() { } @java.lang.Override - public 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_); } @@ -999,7 +919,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, customClassId_); } for (int i = 0; i < items_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, items_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, items_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1009,16 +930,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1.CustomClass)) { return super.equals(obj); } com.google.cloud.speech.v1.CustomClass other = (com.google.cloud.speech.v1.CustomClass) obj; - if (!getName().equals(other.getName())) return false; - if (!getCustomClassId().equals(other.getCustomClassId())) return false; - if (!getItemsList().equals(other.getItemsList())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getCustomClassId() + .equals(other.getCustomClassId())) return false; + if (!getItemsList() + .equals(other.getItemsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1043,104 +967,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
@@ -1149,23 +1066,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.speech.v1.CustomClass}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1.CustomClass)
       com.google.cloud.speech.v1.CustomClassOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.speech.v1.SpeechResourceProto
-          .internal_static_google_cloud_speech_v1_CustomClass_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.speech.v1.SpeechResourceProto.internal_static_google_cloud_speech_v1_CustomClass_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v1.SpeechResourceProto
-          .internal_static_google_cloud_speech_v1_CustomClass_fieldAccessorTable
+      return com.google.cloud.speech.v1.SpeechResourceProto.internal_static_google_cloud_speech_v1_CustomClass_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v1.CustomClass.class,
-              com.google.cloud.speech.v1.CustomClass.Builder.class);
+              com.google.cloud.speech.v1.CustomClass.class, com.google.cloud.speech.v1.CustomClass.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v1.CustomClass.newBuilder()
@@ -1173,17 +1088,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
         getItemsFieldBuilder();
       }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1201,9 +1116,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
@@ -1222,8 +1137,7 @@ public com.google.cloud.speech.v1.CustomClass build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v1.CustomClass buildPartial() {
-      com.google.cloud.speech.v1.CustomClass result =
-          new com.google.cloud.speech.v1.CustomClass(this);
+      com.google.cloud.speech.v1.CustomClass result = new com.google.cloud.speech.v1.CustomClass(this);
       int from_bitField0_ = bitField0_;
       result.name_ = name_;
       result.customClassId_ = customClassId_;
@@ -1244,39 +1158,38 @@ public com.google.cloud.speech.v1.CustomClass buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.speech.v1.CustomClass) {
-        return mergeFrom((com.google.cloud.speech.v1.CustomClass) other);
+        return mergeFrom((com.google.cloud.speech.v1.CustomClass)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1311,10 +1224,9 @@ public Builder mergeFrom(com.google.cloud.speech.v1.CustomClass other) {
             itemsBuilder_ = null;
             items_ = other.items_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            itemsBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getItemsFieldBuilder()
-                    : null;
+            itemsBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getItemsFieldBuilder() : null;
           } else {
             itemsBuilder_.addAllMessages(other.items_);
           }
@@ -1348,25 +1260,22 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * The resource name of the custom class.
      * 
* * string name = 1; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1375,21 +1284,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 { @@ -1397,61 +1305,54 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * The resource name of the custom class.
      * 
* * string name = 1; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * The resource name of the custom class.
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * The resource name of the custom class.
      * 
* * string name = 1; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -1459,21 +1360,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; @@ -1482,22 +1381,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 { @@ -1505,88 +1403,75 @@ public com.google.protobuf.ByteString getCustomClassIdBytes() { } } /** - * - * *
      * If this custom class is a resource, the custom_class_id is the resource id
      * of the CustomClass. Case sensitive.
      * 
* * string custom_class_id = 2; - * * @param value The customClassId to set. * @return This builder for chaining. */ - public Builder setCustomClassId(java.lang.String value) { + public Builder setCustomClassId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + customClassId_ = value; onChanged(); return this; } /** - * - * *
      * If this custom class is a resource, the custom_class_id is the resource id
      * of the CustomClass. Case sensitive.
      * 
* * string custom_class_id = 2; - * * @return This builder for chaining. */ public Builder clearCustomClassId() { - + customClassId_ = getDefaultInstance().getCustomClassId(); onChanged(); return this; } /** - * - * *
      * If this custom class is a resource, the custom_class_id is the resource id
      * of the CustomClass. Case sensitive.
      * 
* * string custom_class_id = 2; - * * @param value The bytes for customClassId to set. * @return This builder for chaining. */ - public Builder setCustomClassIdBytes(com.google.protobuf.ByteString value) { + public Builder setCustomClassIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + customClassId_ = value; onChanged(); return this; } private java.util.List items_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureItemsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { items_ = new java.util.ArrayList(items_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.speech.v1.CustomClass.ClassItem, - com.google.cloud.speech.v1.CustomClass.ClassItem.Builder, - com.google.cloud.speech.v1.CustomClass.ClassItemOrBuilder> - itemsBuilder_; + com.google.cloud.speech.v1.CustomClass.ClassItem, com.google.cloud.speech.v1.CustomClass.ClassItem.Builder, com.google.cloud.speech.v1.CustomClass.ClassItemOrBuilder> itemsBuilder_; /** - * - * *
      * A collection of class items.
      * 
@@ -1601,8 +1486,6 @@ public java.util.List getItems } } /** - * - * *
      * A collection of class items.
      * 
@@ -1617,8 +1500,6 @@ public int getItemsCount() { } } /** - * - * *
      * A collection of class items.
      * 
@@ -1633,15 +1514,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(); @@ -1655,8 +1535,6 @@ public Builder setItems(int index, com.google.cloud.speech.v1.CustomClass.ClassI return this; } /** - * - * *
      * A collection of class items.
      * 
@@ -1675,8 +1553,6 @@ public Builder setItems( return this; } /** - * - * *
      * A collection of class items.
      * 
@@ -1697,15 +1573,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(); @@ -1719,8 +1594,6 @@ public Builder addItems(int index, com.google.cloud.speech.v1.CustomClass.ClassI return this; } /** - * - * *
      * A collection of class items.
      * 
@@ -1739,8 +1612,6 @@ public Builder addItems( return this; } /** - * - * *
      * A collection of class items.
      * 
@@ -1759,8 +1630,6 @@ public Builder addItems( return this; } /** - * - * *
      * A collection of class items.
      * 
@@ -1771,7 +1640,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); @@ -1779,8 +1649,6 @@ public Builder addAllItems( return this; } /** - * - * *
      * A collection of class items.
      * 
@@ -1798,8 +1666,6 @@ public Builder clearItems() { return this; } /** - * - * *
      * A collection of class items.
      * 
@@ -1817,44 +1683,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 { @@ -1862,8 +1723,6 @@ public com.google.cloud.speech.v1.CustomClass.ClassItemOrBuilder getItemsOrBuild } } /** - * - * *
      * A collection of class items.
      * 
@@ -1871,55 +1730,49 @@ public com.google.cloud.speech.v1.CustomClass.ClassItemOrBuilder getItemsOrBuild * repeated .google.cloud.speech.v1.CustomClass.ClassItem items = 3; */ public com.google.cloud.speech.v1.CustomClass.ClassItem.Builder addItemsBuilder() { - return getItemsFieldBuilder() - .addBuilder(com.google.cloud.speech.v1.CustomClass.ClassItem.getDefaultInstance()); + return getItemsFieldBuilder().addBuilder( + com.google.cloud.speech.v1.CustomClass.ClassItem.getDefaultInstance()); } /** - * - * *
      * A collection of class items.
      * 
* * repeated .google.cloud.speech.v1.CustomClass.ClassItem items = 3; */ - public com.google.cloud.speech.v1.CustomClass.ClassItem.Builder addItemsBuilder(int index) { - return getItemsFieldBuilder() - .addBuilder(index, com.google.cloud.speech.v1.CustomClass.ClassItem.getDefaultInstance()); + public com.google.cloud.speech.v1.CustomClass.ClassItem.Builder addItemsBuilder( + int index) { + return getItemsFieldBuilder().addBuilder( + index, com.google.cloud.speech.v1.CustomClass.ClassItem.getDefaultInstance()); } /** - * - * *
      * A collection of class items.
      * 
* * repeated .google.cloud.speech.v1.CustomClass.ClassItem items = 3; */ - public java.util.List - getItemsBuilderList() { + public java.util.List + getItemsBuilderList() { return getItemsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.speech.v1.CustomClass.ClassItem, - com.google.cloud.speech.v1.CustomClass.ClassItem.Builder, - com.google.cloud.speech.v1.CustomClass.ClassItemOrBuilder> + com.google.cloud.speech.v1.CustomClass.ClassItem, com.google.cloud.speech.v1.CustomClass.ClassItem.Builder, com.google.cloud.speech.v1.CustomClass.ClassItemOrBuilder> getItemsFieldBuilder() { if (itemsBuilder_ == null) { - itemsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.speech.v1.CustomClass.ClassItem, - com.google.cloud.speech.v1.CustomClass.ClassItem.Builder, - com.google.cloud.speech.v1.CustomClass.ClassItemOrBuilder>( - items_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + itemsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.speech.v1.CustomClass.ClassItem, com.google.cloud.speech.v1.CustomClass.ClassItem.Builder, com.google.cloud.speech.v1.CustomClass.ClassItemOrBuilder>( + items_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); items_ = null; } return itemsBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1929,12 +1782,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(); } @@ -1943,16 +1796,16 @@ public static com.google.cloud.speech.v1.CustomClass getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CustomClass parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CustomClass(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CustomClass parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CustomClass(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1967,4 +1820,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1.CustomClass getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CustomClassOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CustomClassOrBuilder.java similarity index 70% rename from proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CustomClassOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CustomClassOrBuilder.java index a32a11ff4..d22bd6cc0 100644 --- a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CustomClassOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CustomClassOrBuilder.java @@ -1,93 +1,64 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1/resource.proto package com.google.cloud.speech.v1; -public interface CustomClassOrBuilder - extends +public interface CustomClassOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1.CustomClass) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The resource name of the custom class.
    * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * The resource name of the custom class.
    * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * If this custom class is a resource, the custom_class_id is the resource id
    * of the CustomClass. Case sensitive.
    * 
* * string custom_class_id = 2; - * * @return The customClassId. */ java.lang.String getCustomClassId(); /** - * - * *
    * If this custom class is a resource, the custom_class_id is the resource id
    * of the CustomClass. Case sensitive.
    * 
* * string custom_class_id = 2; - * * @return The bytes for customClassId. */ - com.google.protobuf.ByteString getCustomClassIdBytes(); + com.google.protobuf.ByteString + getCustomClassIdBytes(); /** - * - * *
    * A collection of class items.
    * 
* * repeated .google.cloud.speech.v1.CustomClass.ClassItem items = 3; */ - java.util.List getItemsList(); + java.util.List + getItemsList(); /** - * - * *
    * A collection of class items.
    * 
@@ -96,8 +67,6 @@ public interface CustomClassOrBuilder */ com.google.cloud.speech.v1.CustomClass.ClassItem getItems(int index); /** - * - * *
    * A collection of class items.
    * 
@@ -106,24 +75,21 @@ public interface CustomClassOrBuilder */ int getItemsCount(); /** - * - * *
    * A collection of class items.
    * 
* * repeated .google.cloud.speech.v1.CustomClass.ClassItem items = 3; */ - java.util.List + java.util.List getItemsOrBuilderList(); /** - * - * *
    * A collection of class items.
    * 
* * repeated .google.cloud.speech.v1.CustomClass.ClassItem items = 3; */ - com.google.cloud.speech.v1.CustomClass.ClassItemOrBuilder getItemsOrBuilder(int index); + com.google.cloud.speech.v1.CustomClass.ClassItemOrBuilder getItemsOrBuilder( + int index); } diff --git a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeMetadata.java b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeMetadata.java similarity index 71% rename from proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeMetadata.java rename to owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeMetadata.java index 3aaafc3df..d3aa482a2 100644 --- a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeMetadata.java +++ b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeMetadata.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1/cloud_speech.proto package com.google.cloud.speech.v1; /** - * - * *
  * Describes the progress of a long-running `LongRunningRecognize` call. It is
  * included in the `metadata` field of the `Operation` returned by the
@@ -29,31 +12,31 @@
  *
  * Protobuf type {@code google.cloud.speech.v1.LongRunningRecognizeMetadata}
  */
-public final class LongRunningRecognizeMetadata extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class LongRunningRecognizeMetadata extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.speech.v1.LongRunningRecognizeMetadata)
     LongRunningRecognizeMetadataOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use LongRunningRecognizeMetadata.newBuilder() to construct.
   private LongRunningRecognizeMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private LongRunningRecognizeMetadata() {
     uri_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new LongRunningRecognizeMetadata();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private LongRunningRecognizeMetadata(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -72,94 +55,84 @@ private LongRunningRecognizeMetadata(
           case 0:
             done = true;
             break;
-          case 8:
-            {
-              progressPercent_ = input.readInt32();
-              break;
-            }
-          case 18:
-            {
-              com.google.protobuf.Timestamp.Builder subBuilder = null;
-              if (startTime_ != null) {
-                subBuilder = startTime_.toBuilder();
-              }
-              startTime_ =
-                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(startTime_);
-                startTime_ = subBuilder.buildPartial();
-              }
+          case 8: {
 
-              break;
+            progressPercent_ = input.readInt32();
+            break;
+          }
+          case 18: {
+            com.google.protobuf.Timestamp.Builder subBuilder = null;
+            if (startTime_ != null) {
+              subBuilder = startTime_.toBuilder();
             }
-          case 26:
-            {
-              com.google.protobuf.Timestamp.Builder subBuilder = null;
-              if (lastUpdateTime_ != null) {
-                subBuilder = lastUpdateTime_.toBuilder();
-              }
-              lastUpdateTime_ =
-                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(lastUpdateTime_);
-                lastUpdateTime_ = subBuilder.buildPartial();
-              }
-
-              break;
+            startTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(startTime_);
+              startTime_ = subBuilder.buildPartial();
             }
-          case 34:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
 
-              uri_ = s;
-              break;
+            break;
+          }
+          case 26: {
+            com.google.protobuf.Timestamp.Builder subBuilder = null;
+            if (lastUpdateTime_ != null) {
+              subBuilder = lastUpdateTime_.toBuilder();
+            }
+            lastUpdateTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(lastUpdateTime_);
+              lastUpdateTime_ = subBuilder.buildPartial();
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+
+            break;
+          }
+          case 34: {
+            java.lang.String s = input.readStringRequireUtf8();
+
+            uri_ = s;
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.speech.v1.SpeechProto
-        .internal_static_google_cloud_speech_v1_LongRunningRecognizeMetadata_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_LongRunningRecognizeMetadata_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v1.SpeechProto
-        .internal_static_google_cloud_speech_v1_LongRunningRecognizeMetadata_fieldAccessorTable
+    return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_LongRunningRecognizeMetadata_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v1.LongRunningRecognizeMetadata.class,
-            com.google.cloud.speech.v1.LongRunningRecognizeMetadata.Builder.class);
+            com.google.cloud.speech.v1.LongRunningRecognizeMetadata.class, com.google.cloud.speech.v1.LongRunningRecognizeMetadata.Builder.class);
   }
 
   public static final int PROGRESS_PERCENT_FIELD_NUMBER = 1;
   private int progressPercent_;
   /**
-   *
-   *
    * 
    * Approximate percentage of audio processed thus far. Guaranteed to be 100
    * when the audio is fully processed and the results are available.
    * 
* * int32 progress_percent = 1; - * * @return The progressPercent. */ @java.lang.Override @@ -170,14 +143,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 @@ -185,14 +155,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 @@ -200,8 +167,6 @@ public com.google.protobuf.Timestamp getStartTime() { return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } /** - * - * *
    * Time when the request was received.
    * 
@@ -216,14 +181,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 @@ -231,25 +193,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.
    * 
@@ -264,15 +219,12 @@ public com.google.protobuf.TimestampOrBuilder getLastUpdateTimeOrBuilder() { public static final int URI_FIELD_NUMBER = 4; private volatile java.lang.Object uri_; /** - * - * *
    * Output only. The URI of the audio file being transcribed. Empty if the audio was sent
    * as byte content.
    * 
* * string uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The uri. */ @java.lang.Override @@ -281,30 +233,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 { @@ -313,7 +265,6 @@ public com.google.protobuf.ByteString getUriBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -325,7 +276,8 @@ public final boolean isInitialized() { } @java.lang.Override - public 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_); } @@ -348,13 +300,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_); @@ -367,24 +322,27 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1.LongRunningRecognizeMetadata)) { return super.equals(obj); } - com.google.cloud.speech.v1.LongRunningRecognizeMetadata other = - (com.google.cloud.speech.v1.LongRunningRecognizeMetadata) obj; + com.google.cloud.speech.v1.LongRunningRecognizeMetadata other = (com.google.cloud.speech.v1.LongRunningRecognizeMetadata) obj; - if (getProgressPercent() != other.getProgressPercent()) return false; + if (getProgressPercent() + != other.getProgressPercent()) return false; if (hasStartTime() != other.hasStartTime()) return false; if (hasStartTime()) { - if (!getStartTime().equals(other.getStartTime())) return false; + if (!getStartTime() + .equals(other.getStartTime())) return false; } if (hasLastUpdateTime() != other.hasLastUpdateTime()) return false; if (hasLastUpdateTime()) { - if (!getLastUpdateTime().equals(other.getLastUpdateTime())) return false; + if (!getLastUpdateTime() + .equals(other.getLastUpdateTime())) return false; } - if (!getUri().equals(other.getUri())) return false; + if (!getUri() + .equals(other.getUri())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -414,104 +372,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
@@ -520,23 +470,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.speech.v1.LongRunningRecognizeMetadata}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1.LongRunningRecognizeMetadata)
       com.google.cloud.speech.v1.LongRunningRecognizeMetadataOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.speech.v1.SpeechProto
-          .internal_static_google_cloud_speech_v1_LongRunningRecognizeMetadata_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_LongRunningRecognizeMetadata_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v1.SpeechProto
-          .internal_static_google_cloud_speech_v1_LongRunningRecognizeMetadata_fieldAccessorTable
+      return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_LongRunningRecognizeMetadata_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v1.LongRunningRecognizeMetadata.class,
-              com.google.cloud.speech.v1.LongRunningRecognizeMetadata.Builder.class);
+              com.google.cloud.speech.v1.LongRunningRecognizeMetadata.class, com.google.cloud.speech.v1.LongRunningRecognizeMetadata.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v1.LongRunningRecognizeMetadata.newBuilder()
@@ -544,15 +492,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -576,9 +525,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
@@ -597,8 +546,7 @@ public com.google.cloud.speech.v1.LongRunningRecognizeMetadata build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v1.LongRunningRecognizeMetadata buildPartial() {
-      com.google.cloud.speech.v1.LongRunningRecognizeMetadata result =
-          new com.google.cloud.speech.v1.LongRunningRecognizeMetadata(this);
+      com.google.cloud.speech.v1.LongRunningRecognizeMetadata result = new com.google.cloud.speech.v1.LongRunningRecognizeMetadata(this);
       result.progressPercent_ = progressPercent_;
       if (startTimeBuilder_ == null) {
         result.startTime_ = startTime_;
@@ -619,39 +567,38 @@ public com.google.cloud.speech.v1.LongRunningRecognizeMetadata buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.speech.v1.LongRunningRecognizeMetadata) {
-        return mergeFrom((com.google.cloud.speech.v1.LongRunningRecognizeMetadata) other);
+        return mergeFrom((com.google.cloud.speech.v1.LongRunningRecognizeMetadata)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -659,8 +606,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());
       }
@@ -693,8 +639,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.speech.v1.LongRunningRecognizeMetadata) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.speech.v1.LongRunningRecognizeMetadata) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -704,17 +649,14 @@ public Builder mergeFrom(
       return this;
     }
 
-    private int progressPercent_;
+    private int progressPercent_ ;
     /**
-     *
-     *
      * 
      * Approximate percentage of audio processed thus far. Guaranteed to be 100
      * when the audio is fully processed and the results are available.
      * 
* * int32 progress_percent = 1; - * * @return The progressPercent. */ @java.lang.Override @@ -722,38 +664,32 @@ public int getProgressPercent() { return progressPercent_; } /** - * - * *
      * Approximate percentage of audio processed thus far. Guaranteed to be 100
      * when the audio is fully processed and the results are available.
      * 
* * int32 progress_percent = 1; - * * @param value The progressPercent to set. * @return This builder for chaining. */ public Builder setProgressPercent(int value) { - + progressPercent_ = value; onChanged(); return this; } /** - * - * *
      * Approximate percentage of audio processed thus far. Guaranteed to be 100
      * when the audio is fully processed and the results are available.
      * 
* * int32 progress_percent = 1; - * * @return This builder for chaining. */ public Builder clearProgressPercent() { - + progressPercent_ = 0; onChanged(); return this; @@ -761,33 +697,24 @@ public Builder clearProgressPercent() { private com.google.protobuf.Timestamp startTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - startTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> startTimeBuilder_; /** - * - * *
      * Time when the request was received.
      * 
* * .google.protobuf.Timestamp start_time = 2; - * * @return Whether the startTime field is set. */ public boolean hasStartTime() { return startTimeBuilder_ != null || startTime_ != null; } /** - * - * *
      * Time when the request was received.
      * 
* * .google.protobuf.Timestamp start_time = 2; - * * @return The startTime. */ public com.google.protobuf.Timestamp getStartTime() { @@ -798,8 +725,6 @@ public com.google.protobuf.Timestamp getStartTime() { } } /** - * - * *
      * Time when the request was received.
      * 
@@ -820,15 +745,14 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Time when the request was received.
      * 
* * .google.protobuf.Timestamp start_time = 2; */ - public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setStartTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (startTimeBuilder_ == null) { startTime_ = builderForValue.build(); onChanged(); @@ -839,8 +763,6 @@ public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValu return this; } /** - * - * *
      * Time when the request was received.
      * 
@@ -851,7 +773,7 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { if (startTimeBuilder_ == null) { if (startTime_ != null) { startTime_ = - com.google.protobuf.Timestamp.newBuilder(startTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(startTime_).mergeFrom(value).buildPartial(); } else { startTime_ = value; } @@ -863,8 +785,6 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Time when the request was received.
      * 
@@ -883,8 +803,6 @@ public Builder clearStartTime() { return this; } /** - * - * *
      * Time when the request was received.
      * 
@@ -892,13 +810,11 @@ public Builder clearStartTime() { * .google.protobuf.Timestamp start_time = 2; */ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { - + onChanged(); return getStartTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Time when the request was received.
      * 
@@ -909,12 +825,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.
      * 
@@ -922,17 +837,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_; @@ -940,47 +852,34 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { private com.google.protobuf.Timestamp lastUpdateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - lastUpdateTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> lastUpdateTimeBuilder_; /** - * - * *
      * Time of the most recent processing update.
      * 
* * .google.protobuf.Timestamp last_update_time = 3; - * * @return Whether the lastUpdateTime field is set. */ public boolean hasLastUpdateTime() { return lastUpdateTimeBuilder_ != null || lastUpdateTime_ != null; } /** - * - * *
      * Time of the most recent processing update.
      * 
* * .google.protobuf.Timestamp last_update_time = 3; - * * @return The lastUpdateTime. */ public com.google.protobuf.Timestamp getLastUpdateTime() { if (lastUpdateTimeBuilder_ == null) { - return lastUpdateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : lastUpdateTime_; + return lastUpdateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastUpdateTime_; } else { return lastUpdateTimeBuilder_.getMessage(); } } /** - * - * *
      * Time of the most recent processing update.
      * 
@@ -1001,15 +900,14 @@ public Builder setLastUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Time of the most recent processing update.
      * 
* * .google.protobuf.Timestamp last_update_time = 3; */ - public Builder setLastUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setLastUpdateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (lastUpdateTimeBuilder_ == null) { lastUpdateTime_ = builderForValue.build(); onChanged(); @@ -1020,8 +918,6 @@ public Builder setLastUpdateTime(com.google.protobuf.Timestamp.Builder builderFo return this; } /** - * - * *
      * Time of the most recent processing update.
      * 
@@ -1032,9 +928,7 @@ public Builder mergeLastUpdateTime(com.google.protobuf.Timestamp value) { if (lastUpdateTimeBuilder_ == null) { if (lastUpdateTime_ != null) { lastUpdateTime_ = - com.google.protobuf.Timestamp.newBuilder(lastUpdateTime_) - .mergeFrom(value) - .buildPartial(); + com.google.protobuf.Timestamp.newBuilder(lastUpdateTime_).mergeFrom(value).buildPartial(); } else { lastUpdateTime_ = value; } @@ -1046,8 +940,6 @@ public Builder mergeLastUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Time of the most recent processing update.
      * 
@@ -1066,8 +958,6 @@ public Builder clearLastUpdateTime() { return this; } /** - * - * *
      * Time of the most recent processing update.
      * 
@@ -1075,13 +965,11 @@ public Builder clearLastUpdateTime() { * .google.protobuf.Timestamp last_update_time = 3; */ public com.google.protobuf.Timestamp.Builder getLastUpdateTimeBuilder() { - + onChanged(); return getLastUpdateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Time of the most recent processing update.
      * 
@@ -1092,14 +980,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.
      * 
@@ -1107,17 +992,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_; @@ -1125,21 +1007,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; @@ -1148,22 +1028,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 { @@ -1171,71 +1050,64 @@ public com.google.protobuf.ByteString getUriBytes() { } } /** - * - * *
      * Output only. The URI of the audio file being transcribed. Empty if the audio was sent
      * as byte content.
      * 
* * string uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The uri to set. * @return This builder for chaining. */ - public Builder setUri(java.lang.String value) { + public Builder setUri( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + uri_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The URI of the audio file being transcribed. Empty if the audio was sent
      * as byte content.
      * 
* * string uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearUri() { - + uri_ = getDefaultInstance().getUri(); onChanged(); return this; } /** - * - * *
      * Output only. The URI of the audio file being transcribed. Empty if the audio was sent
      * as byte content.
      * 
* * string uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for uri to set. * @return This builder for chaining. */ - public Builder setUriBytes(com.google.protobuf.ByteString value) { + public Builder setUriBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + uri_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1245,12 +1117,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(); } @@ -1259,16 +1131,16 @@ public static com.google.cloud.speech.v1.LongRunningRecognizeMetadata getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LongRunningRecognizeMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new LongRunningRecognizeMetadata(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LongRunningRecognizeMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LongRunningRecognizeMetadata(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1283,4 +1155,6 @@ public com.google.protobuf.Parser getParserForType public com.google.cloud.speech.v1.LongRunningRecognizeMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeMetadataOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeMetadataOrBuilder.java similarity index 74% rename from proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeMetadataOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeMetadataOrBuilder.java index 2b8a33c7f..ccedbf890 100644 --- a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeMetadataOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeMetadataOrBuilder.java @@ -1,69 +1,42 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1/cloud_speech.proto package com.google.cloud.speech.v1; -public interface LongRunningRecognizeMetadataOrBuilder - extends +public interface LongRunningRecognizeMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1.LongRunningRecognizeMetadata) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Approximate percentage of audio processed thus far. Guaranteed to be 100
    * when the audio is fully processed and the results are available.
    * 
* * int32 progress_percent = 1; - * * @return The progressPercent. */ int getProgressPercent(); /** - * - * *
    * Time when the request was received.
    * 
* * .google.protobuf.Timestamp start_time = 2; - * * @return Whether the startTime field is set. */ boolean hasStartTime(); /** - * - * *
    * Time when the request was received.
    * 
* * .google.protobuf.Timestamp start_time = 2; - * * @return The startTime. */ com.google.protobuf.Timestamp getStartTime(); /** - * - * *
    * Time when the request was received.
    * 
@@ -73,32 +46,24 @@ public interface LongRunningRecognizeMetadataOrBuilder com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder(); /** - * - * *
    * Time of the most recent processing update.
    * 
* * .google.protobuf.Timestamp last_update_time = 3; - * * @return Whether the lastUpdateTime field is set. */ boolean hasLastUpdateTime(); /** - * - * *
    * Time of the most recent processing update.
    * 
* * .google.protobuf.Timestamp last_update_time = 3; - * * @return The lastUpdateTime. */ com.google.protobuf.Timestamp getLastUpdateTime(); /** - * - * *
    * Time of the most recent processing update.
    * 
@@ -108,29 +73,24 @@ public interface LongRunningRecognizeMetadataOrBuilder com.google.protobuf.TimestampOrBuilder getLastUpdateTimeOrBuilder(); /** - * - * *
    * Output only. The URI of the audio file being transcribed. Empty if the audio was sent
    * as byte content.
    * 
* * string uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The uri. */ java.lang.String getUri(); /** - * - * *
    * Output only. The URI of the audio file being transcribed. Empty if the audio was sent
    * as byte content.
    * 
* * string uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for uri. */ - com.google.protobuf.ByteString getUriBytes(); + com.google.protobuf.ByteString + getUriBytes(); } diff --git a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeRequest.java b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeRequest.java similarity index 60% rename from proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeRequest.java rename to owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeRequest.java index 79e8e3cc3..275e0ef91 100644 --- a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeRequest.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1/cloud_speech.proto package com.google.cloud.speech.v1; /** - * - * *
  * The top-level message sent by the client for the `LongRunningRecognize`
  * method.
@@ -28,29 +11,30 @@
  *
  * Protobuf type {@code google.cloud.speech.v1.LongRunningRecognizeRequest}
  */
-public final class LongRunningRecognizeRequest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class LongRunningRecognizeRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.speech.v1.LongRunningRecognizeRequest)
     LongRunningRecognizeRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use LongRunningRecognizeRequest.newBuilder() to construct.
   private LongRunningRecognizeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
-  private LongRunningRecognizeRequest() {}
+  private LongRunningRecognizeRequest() {
+  }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new LongRunningRecognizeRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private LongRunningRecognizeRequest(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -69,103 +53,86 @@ private LongRunningRecognizeRequest(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              com.google.cloud.speech.v1.RecognitionConfig.Builder subBuilder = null;
-              if (config_ != null) {
-                subBuilder = config_.toBuilder();
-              }
-              config_ =
-                  input.readMessage(
-                      com.google.cloud.speech.v1.RecognitionConfig.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(config_);
-                config_ = subBuilder.buildPartial();
-              }
-
-              break;
+          case 10: {
+            com.google.cloud.speech.v1.RecognitionConfig.Builder subBuilder = null;
+            if (config_ != null) {
+              subBuilder = config_.toBuilder();
+            }
+            config_ = input.readMessage(com.google.cloud.speech.v1.RecognitionConfig.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(config_);
+              config_ = subBuilder.buildPartial();
             }
-          case 18:
-            {
-              com.google.cloud.speech.v1.RecognitionAudio.Builder subBuilder = null;
-              if (audio_ != null) {
-                subBuilder = audio_.toBuilder();
-              }
-              audio_ =
-                  input.readMessage(
-                      com.google.cloud.speech.v1.RecognitionAudio.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(audio_);
-                audio_ = subBuilder.buildPartial();
-              }
 
-              break;
+            break;
+          }
+          case 18: {
+            com.google.cloud.speech.v1.RecognitionAudio.Builder subBuilder = null;
+            if (audio_ != null) {
+              subBuilder = audio_.toBuilder();
+            }
+            audio_ = input.readMessage(com.google.cloud.speech.v1.RecognitionAudio.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(audio_);
+              audio_ = subBuilder.buildPartial();
             }
-          case 34:
-            {
-              com.google.cloud.speech.v1.TranscriptOutputConfig.Builder subBuilder = null;
-              if (outputConfig_ != null) {
-                subBuilder = outputConfig_.toBuilder();
-              }
-              outputConfig_ =
-                  input.readMessage(
-                      com.google.cloud.speech.v1.TranscriptOutputConfig.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(outputConfig_);
-                outputConfig_ = subBuilder.buildPartial();
-              }
 
-              break;
+            break;
+          }
+          case 34: {
+            com.google.cloud.speech.v1.TranscriptOutputConfig.Builder subBuilder = null;
+            if (outputConfig_ != null) {
+              subBuilder = outputConfig_.toBuilder();
+            }
+            outputConfig_ = input.readMessage(com.google.cloud.speech.v1.TranscriptOutputConfig.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(outputConfig_);
+              outputConfig_ = subBuilder.buildPartial();
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.speech.v1.SpeechProto
-        .internal_static_google_cloud_speech_v1_LongRunningRecognizeRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_LongRunningRecognizeRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v1.SpeechProto
-        .internal_static_google_cloud_speech_v1_LongRunningRecognizeRequest_fieldAccessorTable
+    return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_LongRunningRecognizeRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v1.LongRunningRecognizeRequest.class,
-            com.google.cloud.speech.v1.LongRunningRecognizeRequest.Builder.class);
+            com.google.cloud.speech.v1.LongRunningRecognizeRequest.class, com.google.cloud.speech.v1.LongRunningRecognizeRequest.Builder.class);
   }
 
   public static final int CONFIG_FIELD_NUMBER = 1;
   private com.google.cloud.speech.v1.RecognitionConfig config_;
   /**
-   *
-   *
    * 
    * Required. Provides information to the recognizer that specifies how to
    * process the request.
    * 
* - * - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the config field is set. */ @java.lang.Override @@ -173,36 +140,25 @@ public boolean hasConfig() { return config_ != null; } /** - * - * *
    * Required. Provides information to the recognizer that specifies how to
    * process the request.
    * 
* - * - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The config. */ @java.lang.Override public com.google.cloud.speech.v1.RecognitionConfig getConfig() { - return config_ == null - ? com.google.cloud.speech.v1.RecognitionConfig.getDefaultInstance() - : config_; + return config_ == null ? com.google.cloud.speech.v1.RecognitionConfig.getDefaultInstance() : config_; } /** - * - * *
    * Required. Provides information to the recognizer that specifies how to
    * process the request.
    * 
* - * - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.speech.v1.RecognitionConfigOrBuilder getConfigOrBuilder() { @@ -212,16 +168,11 @@ public com.google.cloud.speech.v1.RecognitionConfigOrBuilder getConfigOrBuilder( public static final int AUDIO_FIELD_NUMBER = 2; private com.google.cloud.speech.v1.RecognitionAudio audio_; /** - * - * *
    * Required. The audio data to be recognized.
    * 
* - * - * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the audio field is set. */ @java.lang.Override @@ -229,34 +180,23 @@ public boolean hasAudio() { return audio_ != null; } /** - * - * *
    * Required. The audio data to be recognized.
    * 
* - * - * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The audio. */ @java.lang.Override public com.google.cloud.speech.v1.RecognitionAudio getAudio() { - return audio_ == null - ? com.google.cloud.speech.v1.RecognitionAudio.getDefaultInstance() - : audio_; + return audio_ == null ? com.google.cloud.speech.v1.RecognitionAudio.getDefaultInstance() : audio_; } /** - * - * *
    * Required. The audio data to be recognized.
    * 
* - * - * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.speech.v1.RecognitionAudioOrBuilder getAudioOrBuilder() { @@ -266,16 +206,11 @@ public com.google.cloud.speech.v1.RecognitionAudioOrBuilder getAudioOrBuilder() public static final int OUTPUT_CONFIG_FIELD_NUMBER = 4; private com.google.cloud.speech.v1.TranscriptOutputConfig outputConfig_; /** - * - * *
    * Optional. Specifies an optional destination for the recognition results.
    * 
* - * - * .google.cloud.speech.v1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.speech.v1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the outputConfig field is set. */ @java.lang.Override @@ -283,34 +218,23 @@ public boolean hasOutputConfig() { return outputConfig_ != null; } /** - * - * *
    * Optional. Specifies an optional destination for the recognition results.
    * 
* - * - * .google.cloud.speech.v1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.speech.v1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The outputConfig. */ @java.lang.Override public com.google.cloud.speech.v1.TranscriptOutputConfig getOutputConfig() { - return outputConfig_ == null - ? com.google.cloud.speech.v1.TranscriptOutputConfig.getDefaultInstance() - : outputConfig_; + return outputConfig_ == null ? com.google.cloud.speech.v1.TranscriptOutputConfig.getDefaultInstance() : outputConfig_; } /** - * - * *
    * Optional. Specifies an optional destination for the recognition results.
    * 
* - * - * .google.cloud.speech.v1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.speech.v1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.cloud.speech.v1.TranscriptOutputConfigOrBuilder getOutputConfigOrBuilder() { @@ -318,7 +242,6 @@ public com.google.cloud.speech.v1.TranscriptOutputConfigOrBuilder getOutputConfi } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -330,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 (config_ != null) { output.writeMessage(1, getConfig()); } @@ -350,13 +274,16 @@ public int getSerializedSize() { size = 0; if (config_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getConfig()); } if (audio_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getAudio()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getAudio()); } if (outputConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getOutputConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getOutputConfig()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -366,25 +293,27 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1.LongRunningRecognizeRequest)) { return super.equals(obj); } - com.google.cloud.speech.v1.LongRunningRecognizeRequest other = - (com.google.cloud.speech.v1.LongRunningRecognizeRequest) obj; + com.google.cloud.speech.v1.LongRunningRecognizeRequest other = (com.google.cloud.speech.v1.LongRunningRecognizeRequest) obj; if (hasConfig() != other.hasConfig()) return false; if (hasConfig()) { - if (!getConfig().equals(other.getConfig())) return false; + if (!getConfig() + .equals(other.getConfig())) return false; } if (hasAudio() != other.hasAudio()) return false; if (hasAudio()) { - if (!getAudio().equals(other.getAudio())) return false; + if (!getAudio() + .equals(other.getAudio())) return false; } if (hasOutputConfig() != other.hasOutputConfig()) return false; if (hasOutputConfig()) { - if (!getOutputConfig().equals(other.getOutputConfig())) return false; + if (!getOutputConfig() + .equals(other.getOutputConfig())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -415,104 +344,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.
@@ -520,23 +441,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.speech.v1.LongRunningRecognizeRequest}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1.LongRunningRecognizeRequest)
       com.google.cloud.speech.v1.LongRunningRecognizeRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.speech.v1.SpeechProto
-          .internal_static_google_cloud_speech_v1_LongRunningRecognizeRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_LongRunningRecognizeRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v1.SpeechProto
-          .internal_static_google_cloud_speech_v1_LongRunningRecognizeRequest_fieldAccessorTable
+      return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_LongRunningRecognizeRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v1.LongRunningRecognizeRequest.class,
-              com.google.cloud.speech.v1.LongRunningRecognizeRequest.Builder.class);
+              com.google.cloud.speech.v1.LongRunningRecognizeRequest.class, com.google.cloud.speech.v1.LongRunningRecognizeRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v1.LongRunningRecognizeRequest.newBuilder()
@@ -544,15 +463,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -578,9 +498,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
@@ -599,8 +519,7 @@ public com.google.cloud.speech.v1.LongRunningRecognizeRequest build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v1.LongRunningRecognizeRequest buildPartial() {
-      com.google.cloud.speech.v1.LongRunningRecognizeRequest result =
-          new com.google.cloud.speech.v1.LongRunningRecognizeRequest(this);
+      com.google.cloud.speech.v1.LongRunningRecognizeRequest result = new com.google.cloud.speech.v1.LongRunningRecognizeRequest(this);
       if (configBuilder_ == null) {
         result.config_ = config_;
       } else {
@@ -624,39 +543,38 @@ public com.google.cloud.speech.v1.LongRunningRecognizeRequest buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.speech.v1.LongRunningRecognizeRequest) {
-        return mergeFrom((com.google.cloud.speech.v1.LongRunningRecognizeRequest) other);
+        return mergeFrom((com.google.cloud.speech.v1.LongRunningRecognizeRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -664,8 +582,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());
       }
@@ -694,8 +611,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.speech.v1.LongRunningRecognizeRequest) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.speech.v1.LongRunningRecognizeRequest) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -707,61 +623,42 @@ public Builder mergeFrom(
 
     private com.google.cloud.speech.v1.RecognitionConfig config_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.speech.v1.RecognitionConfig,
-            com.google.cloud.speech.v1.RecognitionConfig.Builder,
-            com.google.cloud.speech.v1.RecognitionConfigOrBuilder>
-        configBuilder_;
+        com.google.cloud.speech.v1.RecognitionConfig, com.google.cloud.speech.v1.RecognitionConfig.Builder, com.google.cloud.speech.v1.RecognitionConfigOrBuilder> configBuilder_;
     /**
-     *
-     *
      * 
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the config field is set. */ public boolean hasConfig() { return configBuilder_ != null || config_ != null; } /** - * - * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The config. */ public com.google.cloud.speech.v1.RecognitionConfig getConfig() { if (configBuilder_ == null) { - return config_ == null - ? com.google.cloud.speech.v1.RecognitionConfig.getDefaultInstance() - : config_; + return config_ == null ? com.google.cloud.speech.v1.RecognitionConfig.getDefaultInstance() : config_; } else { return configBuilder_.getMessage(); } } /** - * - * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setConfig(com.google.cloud.speech.v1.RecognitionConfig value) { if (configBuilder_ == null) { @@ -777,18 +674,15 @@ public Builder setConfig(com.google.cloud.speech.v1.RecognitionConfig value) { return this; } /** - * - * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setConfig(com.google.cloud.speech.v1.RecognitionConfig.Builder builderForValue) { + public Builder setConfig( + com.google.cloud.speech.v1.RecognitionConfig.Builder builderForValue) { if (configBuilder_ == null) { config_ = builderForValue.build(); onChanged(); @@ -799,24 +693,18 @@ public Builder setConfig(com.google.cloud.speech.v1.RecognitionConfig.Builder bu return this; } /** - * - * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeConfig(com.google.cloud.speech.v1.RecognitionConfig value) { if (configBuilder_ == null) { if (config_ != null) { config_ = - com.google.cloud.speech.v1.RecognitionConfig.newBuilder(config_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.speech.v1.RecognitionConfig.newBuilder(config_).mergeFrom(value).buildPartial(); } else { config_ = value; } @@ -828,16 +716,12 @@ public Builder mergeConfig(com.google.cloud.speech.v1.RecognitionConfig value) { return this; } /** - * - * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearConfig() { if (configBuilder_ == null) { @@ -851,67 +735,51 @@ public Builder clearConfig() { return this; } /** - * - * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.speech.v1.RecognitionConfig.Builder getConfigBuilder() { - + onChanged(); return getConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.speech.v1.RecognitionConfigOrBuilder getConfigOrBuilder() { if (configBuilder_ != null) { return configBuilder_.getMessageOrBuilder(); } else { - return config_ == null - ? com.google.cloud.speech.v1.RecognitionConfig.getDefaultInstance() - : config_; + return config_ == null ? + com.google.cloud.speech.v1.RecognitionConfig.getDefaultInstance() : config_; } } /** - * - * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1.RecognitionConfig, - com.google.cloud.speech.v1.RecognitionConfig.Builder, - com.google.cloud.speech.v1.RecognitionConfigOrBuilder> + com.google.cloud.speech.v1.RecognitionConfig, com.google.cloud.speech.v1.RecognitionConfig.Builder, com.google.cloud.speech.v1.RecognitionConfigOrBuilder> getConfigFieldBuilder() { if (configBuilder_ == null) { - configBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1.RecognitionConfig, - com.google.cloud.speech.v1.RecognitionConfig.Builder, - com.google.cloud.speech.v1.RecognitionConfigOrBuilder>( - getConfig(), getParentForChildren(), isClean()); + configBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v1.RecognitionConfig, com.google.cloud.speech.v1.RecognitionConfig.Builder, com.google.cloud.speech.v1.RecognitionConfigOrBuilder>( + getConfig(), + getParentForChildren(), + isClean()); config_ = null; } return configBuilder_; @@ -919,58 +787,39 @@ public com.google.cloud.speech.v1.RecognitionConfigOrBuilder getConfigOrBuilder( private com.google.cloud.speech.v1.RecognitionAudio audio_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1.RecognitionAudio, - com.google.cloud.speech.v1.RecognitionAudio.Builder, - com.google.cloud.speech.v1.RecognitionAudioOrBuilder> - audioBuilder_; + com.google.cloud.speech.v1.RecognitionAudio, com.google.cloud.speech.v1.RecognitionAudio.Builder, com.google.cloud.speech.v1.RecognitionAudioOrBuilder> audioBuilder_; /** - * - * *
      * Required. The audio data to be recognized.
      * 
* - * - * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the audio field is set. */ public boolean hasAudio() { return audioBuilder_ != null || audio_ != null; } /** - * - * *
      * Required. The audio data to be recognized.
      * 
* - * - * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The audio. */ public com.google.cloud.speech.v1.RecognitionAudio getAudio() { if (audioBuilder_ == null) { - return audio_ == null - ? com.google.cloud.speech.v1.RecognitionAudio.getDefaultInstance() - : audio_; + return audio_ == null ? com.google.cloud.speech.v1.RecognitionAudio.getDefaultInstance() : audio_; } else { return audioBuilder_.getMessage(); } } /** - * - * *
      * Required. The audio data to be recognized.
      * 
* - * - * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setAudio(com.google.cloud.speech.v1.RecognitionAudio value) { if (audioBuilder_ == null) { @@ -986,17 +835,14 @@ public Builder setAudio(com.google.cloud.speech.v1.RecognitionAudio value) { return this; } /** - * - * *
      * Required. The audio data to be recognized.
      * 
* - * - * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setAudio(com.google.cloud.speech.v1.RecognitionAudio.Builder builderForValue) { + public Builder setAudio( + com.google.cloud.speech.v1.RecognitionAudio.Builder builderForValue) { if (audioBuilder_ == null) { audio_ = builderForValue.build(); onChanged(); @@ -1007,23 +853,17 @@ public Builder setAudio(com.google.cloud.speech.v1.RecognitionAudio.Builder buil return this; } /** - * - * *
      * Required. The audio data to be recognized.
      * 
* - * - * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeAudio(com.google.cloud.speech.v1.RecognitionAudio value) { if (audioBuilder_ == null) { if (audio_ != null) { audio_ = - com.google.cloud.speech.v1.RecognitionAudio.newBuilder(audio_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.speech.v1.RecognitionAudio.newBuilder(audio_).mergeFrom(value).buildPartial(); } else { audio_ = value; } @@ -1035,15 +875,11 @@ public Builder mergeAudio(com.google.cloud.speech.v1.RecognitionAudio value) { return this; } /** - * - * *
      * Required. The audio data to be recognized.
      * 
* - * - * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearAudio() { if (audioBuilder_ == null) { @@ -1057,64 +893,48 @@ public Builder clearAudio() { return this; } /** - * - * *
      * Required. The audio data to be recognized.
      * 
* - * - * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.speech.v1.RecognitionAudio.Builder getAudioBuilder() { - + onChanged(); return getAudioFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The audio data to be recognized.
      * 
* - * - * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.speech.v1.RecognitionAudioOrBuilder getAudioOrBuilder() { if (audioBuilder_ != null) { return audioBuilder_.getMessageOrBuilder(); } else { - return audio_ == null - ? com.google.cloud.speech.v1.RecognitionAudio.getDefaultInstance() - : audio_; + return audio_ == null ? + com.google.cloud.speech.v1.RecognitionAudio.getDefaultInstance() : audio_; } } /** - * - * *
      * Required. The audio data to be recognized.
      * 
* - * - * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1.RecognitionAudio, - com.google.cloud.speech.v1.RecognitionAudio.Builder, - com.google.cloud.speech.v1.RecognitionAudioOrBuilder> + com.google.cloud.speech.v1.RecognitionAudio, com.google.cloud.speech.v1.RecognitionAudio.Builder, com.google.cloud.speech.v1.RecognitionAudioOrBuilder> getAudioFieldBuilder() { if (audioBuilder_ == null) { - audioBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1.RecognitionAudio, - com.google.cloud.speech.v1.RecognitionAudio.Builder, - com.google.cloud.speech.v1.RecognitionAudioOrBuilder>( - getAudio(), getParentForChildren(), isClean()); + audioBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v1.RecognitionAudio, com.google.cloud.speech.v1.RecognitionAudio.Builder, com.google.cloud.speech.v1.RecognitionAudioOrBuilder>( + getAudio(), + getParentForChildren(), + isClean()); audio_ = null; } return audioBuilder_; @@ -1122,58 +942,39 @@ public com.google.cloud.speech.v1.RecognitionAudioOrBuilder getAudioOrBuilder() private com.google.cloud.speech.v1.TranscriptOutputConfig outputConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1.TranscriptOutputConfig, - com.google.cloud.speech.v1.TranscriptOutputConfig.Builder, - com.google.cloud.speech.v1.TranscriptOutputConfigOrBuilder> - outputConfigBuilder_; + com.google.cloud.speech.v1.TranscriptOutputConfig, com.google.cloud.speech.v1.TranscriptOutputConfig.Builder, com.google.cloud.speech.v1.TranscriptOutputConfigOrBuilder> outputConfigBuilder_; /** - * - * *
      * Optional. Specifies an optional destination for the recognition results.
      * 
* - * - * .google.cloud.speech.v1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.speech.v1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the outputConfig field is set. */ public boolean hasOutputConfig() { return outputConfigBuilder_ != null || outputConfig_ != null; } /** - * - * *
      * Optional. Specifies an optional destination for the recognition results.
      * 
* - * - * .google.cloud.speech.v1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.speech.v1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The outputConfig. */ public com.google.cloud.speech.v1.TranscriptOutputConfig getOutputConfig() { if (outputConfigBuilder_ == null) { - return outputConfig_ == null - ? com.google.cloud.speech.v1.TranscriptOutputConfig.getDefaultInstance() - : outputConfig_; + return outputConfig_ == null ? com.google.cloud.speech.v1.TranscriptOutputConfig.getDefaultInstance() : outputConfig_; } else { return outputConfigBuilder_.getMessage(); } } /** - * - * *
      * Optional. Specifies an optional destination for the recognition results.
      * 
* - * - * .google.cloud.speech.v1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.speech.v1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setOutputConfig(com.google.cloud.speech.v1.TranscriptOutputConfig value) { if (outputConfigBuilder_ == null) { @@ -1189,15 +990,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) { @@ -1211,23 +1008,17 @@ public Builder setOutputConfig( return this; } /** - * - * *
      * Optional. Specifies an optional destination for the recognition results.
      * 
* - * - * .google.cloud.speech.v1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.speech.v1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeOutputConfig(com.google.cloud.speech.v1.TranscriptOutputConfig value) { if (outputConfigBuilder_ == null) { if (outputConfig_ != null) { outputConfig_ = - com.google.cloud.speech.v1.TranscriptOutputConfig.newBuilder(outputConfig_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.speech.v1.TranscriptOutputConfig.newBuilder(outputConfig_).mergeFrom(value).buildPartial(); } else { outputConfig_ = value; } @@ -1239,15 +1030,11 @@ public Builder mergeOutputConfig(com.google.cloud.speech.v1.TranscriptOutputConf return this; } /** - * - * *
      * Optional. Specifies an optional destination for the recognition results.
      * 
* - * - * .google.cloud.speech.v1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.speech.v1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearOutputConfig() { if (outputConfigBuilder_ == null) { @@ -1261,71 +1048,55 @@ public Builder clearOutputConfig() { return this; } /** - * - * *
      * Optional. Specifies an optional destination for the recognition results.
      * 
* - * - * .google.cloud.speech.v1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.speech.v1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.speech.v1.TranscriptOutputConfig.Builder getOutputConfigBuilder() { - + onChanged(); return getOutputConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. Specifies an optional destination for the recognition results.
      * 
* - * - * .google.cloud.speech.v1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.speech.v1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.speech.v1.TranscriptOutputConfigOrBuilder getOutputConfigOrBuilder() { if (outputConfigBuilder_ != null) { return outputConfigBuilder_.getMessageOrBuilder(); } else { - return outputConfig_ == null - ? com.google.cloud.speech.v1.TranscriptOutputConfig.getDefaultInstance() - : outputConfig_; + return outputConfig_ == null ? + com.google.cloud.speech.v1.TranscriptOutputConfig.getDefaultInstance() : outputConfig_; } } /** - * - * *
      * Optional. Specifies an optional destination for the recognition results.
      * 
* - * - * .google.cloud.speech.v1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.speech.v1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1.TranscriptOutputConfig, - com.google.cloud.speech.v1.TranscriptOutputConfig.Builder, - com.google.cloud.speech.v1.TranscriptOutputConfigOrBuilder> + com.google.cloud.speech.v1.TranscriptOutputConfig, com.google.cloud.speech.v1.TranscriptOutputConfig.Builder, com.google.cloud.speech.v1.TranscriptOutputConfigOrBuilder> getOutputConfigFieldBuilder() { if (outputConfigBuilder_ == null) { - outputConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1.TranscriptOutputConfig, - com.google.cloud.speech.v1.TranscriptOutputConfig.Builder, - com.google.cloud.speech.v1.TranscriptOutputConfigOrBuilder>( - getOutputConfig(), getParentForChildren(), isClean()); + outputConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v1.TranscriptOutputConfig, com.google.cloud.speech.v1.TranscriptOutputConfig.Builder, com.google.cloud.speech.v1.TranscriptOutputConfigOrBuilder>( + getOutputConfig(), + getParentForChildren(), + isClean()); outputConfig_ = null; } return outputConfigBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1335,12 +1106,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(); } @@ -1349,16 +1120,16 @@ public static com.google.cloud.speech.v1.LongRunningRecognizeRequest getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LongRunningRecognizeRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new LongRunningRecognizeRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LongRunningRecognizeRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LongRunningRecognizeRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1373,4 +1144,6 @@ public com.google.protobuf.Parser getParserForType( public com.google.cloud.speech.v1.LongRunningRecognizeRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeRequestOrBuilder.java similarity index 51% rename from proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeRequestOrBuilder.java index 3a4e90c85..fe890f69a 100644 --- a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeRequestOrBuilder.java @@ -1,151 +1,93 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1/cloud_speech.proto package com.google.cloud.speech.v1; -public interface LongRunningRecognizeRequestOrBuilder - extends +public interface LongRunningRecognizeRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1.LongRunningRecognizeRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Provides information to the recognizer that specifies how to
    * process the request.
    * 
* - * - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the config field is set. */ boolean hasConfig(); /** - * - * *
    * Required. Provides information to the recognizer that specifies how to
    * process the request.
    * 
* - * - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The config. */ com.google.cloud.speech.v1.RecognitionConfig getConfig(); /** - * - * *
    * Required. Provides information to the recognizer that specifies how to
    * process the request.
    * 
* - * - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.speech.v1.RecognitionConfigOrBuilder getConfigOrBuilder(); /** - * - * *
    * Required. The audio data to be recognized.
    * 
* - * - * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the audio field is set. */ boolean hasAudio(); /** - * - * *
    * Required. The audio data to be recognized.
    * 
* - * - * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The audio. */ com.google.cloud.speech.v1.RecognitionAudio getAudio(); /** - * - * *
    * Required. The audio data to be recognized.
    * 
* - * - * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.speech.v1.RecognitionAudioOrBuilder getAudioOrBuilder(); /** - * - * *
    * Optional. Specifies an optional destination for the recognition results.
    * 
* - * - * .google.cloud.speech.v1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.speech.v1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the outputConfig field is set. */ boolean hasOutputConfig(); /** - * - * *
    * Optional. Specifies an optional destination for the recognition results.
    * 
* - * - * .google.cloud.speech.v1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.speech.v1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The outputConfig. */ com.google.cloud.speech.v1.TranscriptOutputConfig getOutputConfig(); /** - * - * *
    * Optional. Specifies an optional destination for the recognition results.
    * 
* - * - * .google.cloud.speech.v1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.speech.v1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.cloud.speech.v1.TranscriptOutputConfigOrBuilder getOutputConfigOrBuilder(); } diff --git a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeResponse.java b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeResponse.java similarity index 74% rename from proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeResponse.java rename to owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeResponse.java index 9ab646c0c..b495c8701 100644 --- a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeResponse.java +++ b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeResponse.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1/cloud_speech.proto package com.google.cloud.speech.v1; /** - * - * *
  * The only message returned to the client by the `LongRunningRecognize` method.
  * It contains the result as zero or more sequential `SpeechRecognitionResult`
@@ -31,31 +14,31 @@
  *
  * Protobuf type {@code google.cloud.speech.v1.LongRunningRecognizeResponse}
  */
-public final class LongRunningRecognizeResponse extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class LongRunningRecognizeResponse extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.speech.v1.LongRunningRecognizeResponse)
     LongRunningRecognizeResponseOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use LongRunningRecognizeResponse.newBuilder() to construct.
   private LongRunningRecognizeResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private LongRunningRecognizeResponse() {
     results_ = java.util.Collections.emptyList();
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new LongRunningRecognizeResponse();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private LongRunningRecognizeResponse(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -75,78 +58,68 @@ private LongRunningRecognizeResponse(
           case 0:
             done = true;
             break;
-          case 18:
-            {
-              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                results_ =
-                    new java.util.ArrayList();
-                mutable_bitField0_ |= 0x00000001;
-              }
-              results_.add(
-                  input.readMessage(
-                      com.google.cloud.speech.v1.SpeechRecognitionResult.parser(),
-                      extensionRegistry));
-              break;
+          case 18: {
+            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+              results_ = new java.util.ArrayList();
+              mutable_bitField0_ |= 0x00000001;
             }
-          case 26:
-            {
-              com.google.protobuf.Duration.Builder subBuilder = null;
-              if (totalBilledTime_ != null) {
-                subBuilder = totalBilledTime_.toBuilder();
-              }
-              totalBilledTime_ =
-                  input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(totalBilledTime_);
-                totalBilledTime_ = subBuilder.buildPartial();
-              }
-
-              break;
+            results_.add(
+                input.readMessage(com.google.cloud.speech.v1.SpeechRecognitionResult.parser(), extensionRegistry));
+            break;
+          }
+          case 26: {
+            com.google.protobuf.Duration.Builder subBuilder = null;
+            if (totalBilledTime_ != null) {
+              subBuilder = totalBilledTime_.toBuilder();
+            }
+            totalBilledTime_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(totalBilledTime_);
+              totalBilledTime_ = subBuilder.buildPartial();
             }
-          case 50:
-            {
-              com.google.cloud.speech.v1.TranscriptOutputConfig.Builder subBuilder = null;
-              if (outputConfig_ != null) {
-                subBuilder = outputConfig_.toBuilder();
-              }
-              outputConfig_ =
-                  input.readMessage(
-                      com.google.cloud.speech.v1.TranscriptOutputConfig.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(outputConfig_);
-                outputConfig_ = subBuilder.buildPartial();
-              }
 
-              break;
+            break;
+          }
+          case 50: {
+            com.google.cloud.speech.v1.TranscriptOutputConfig.Builder subBuilder = null;
+            if (outputConfig_ != null) {
+              subBuilder = outputConfig_.toBuilder();
+            }
+            outputConfig_ = input.readMessage(com.google.cloud.speech.v1.TranscriptOutputConfig.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(outputConfig_);
+              outputConfig_ = subBuilder.buildPartial();
             }
-          case 58:
-            {
-              com.google.rpc.Status.Builder subBuilder = null;
-              if (outputError_ != null) {
-                subBuilder = outputError_.toBuilder();
-              }
-              outputError_ = input.readMessage(com.google.rpc.Status.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(outputError_);
-                outputError_ = subBuilder.buildPartial();
-              }
 
-              break;
+            break;
+          }
+          case 58: {
+            com.google.rpc.Status.Builder subBuilder = null;
+            if (outputError_ != null) {
+              subBuilder = outputError_.toBuilder();
+            }
+            outputError_ = input.readMessage(com.google.rpc.Status.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(outputError_);
+              outputError_ = subBuilder.buildPartial();
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         results_ = java.util.Collections.unmodifiableList(results_);
@@ -155,27 +128,22 @@ private LongRunningRecognizeResponse(
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.speech.v1.SpeechProto
-        .internal_static_google_cloud_speech_v1_LongRunningRecognizeResponse_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_LongRunningRecognizeResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v1.SpeechProto
-        .internal_static_google_cloud_speech_v1_LongRunningRecognizeResponse_fieldAccessorTable
+    return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_LongRunningRecognizeResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v1.LongRunningRecognizeResponse.class,
-            com.google.cloud.speech.v1.LongRunningRecognizeResponse.Builder.class);
+            com.google.cloud.speech.v1.LongRunningRecognizeResponse.class, com.google.cloud.speech.v1.LongRunningRecognizeResponse.Builder.class);
   }
 
   public static final int RESULTS_FIELD_NUMBER = 2;
   private java.util.List results_;
   /**
-   *
-   *
    * 
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -188,8 +156,6 @@ public java.util.List getRes
     return results_;
   }
   /**
-   *
-   *
    * 
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -198,13 +164,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.
@@ -217,8 +181,6 @@ public int getResultsCount() {
     return results_.size();
   }
   /**
-   *
-   *
    * 
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -231,8 +193,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.
@@ -249,14 +209,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 @@ -264,25 +221,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.
    * 
@@ -297,14 +247,11 @@ public com.google.protobuf.DurationOrBuilder getTotalBilledTimeOrBuilder() { public static final int OUTPUT_CONFIG_FIELD_NUMBER = 6; private com.google.cloud.speech.v1.TranscriptOutputConfig outputConfig_; /** - * - * *
    * Original output config if present in the request.
    * 
* * .google.cloud.speech.v1.TranscriptOutputConfig output_config = 6; - * * @return Whether the outputConfig field is set. */ @java.lang.Override @@ -312,25 +259,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.
    * 
@@ -345,14 +285,11 @@ public com.google.cloud.speech.v1.TranscriptOutputConfigOrBuilder getOutputConfi public static final int OUTPUT_ERROR_FIELD_NUMBER = 7; private com.google.rpc.Status outputError_; /** - * - * *
    * If the transcript output fails this field contains the relevant error.
    * 
* * .google.rpc.Status output_error = 7; - * * @return Whether the outputError field is set. */ @java.lang.Override @@ -360,14 +297,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 @@ -375,8 +309,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.
    * 
@@ -389,7 +321,6 @@ public com.google.rpc.StatusOrBuilder getOutputErrorOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -401,7 +332,8 @@ public final boolean isInitialized() { } @java.lang.Override - 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)); } @@ -424,16 +356,20 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < results_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, results_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, results_.get(i)); } if (totalBilledTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getTotalBilledTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getTotalBilledTime()); } if (outputConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getOutputConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getOutputConfig()); } if (outputError_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getOutputError()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getOutputError()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -443,26 +379,29 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1.LongRunningRecognizeResponse)) { return super.equals(obj); } - com.google.cloud.speech.v1.LongRunningRecognizeResponse other = - (com.google.cloud.speech.v1.LongRunningRecognizeResponse) obj; + com.google.cloud.speech.v1.LongRunningRecognizeResponse other = (com.google.cloud.speech.v1.LongRunningRecognizeResponse) obj; - if (!getResultsList().equals(other.getResultsList())) return false; + if (!getResultsList() + .equals(other.getResultsList())) return false; if (hasTotalBilledTime() != other.hasTotalBilledTime()) return false; if (hasTotalBilledTime()) { - if (!getTotalBilledTime().equals(other.getTotalBilledTime())) return false; + if (!getTotalBilledTime() + .equals(other.getTotalBilledTime())) return false; } if (hasOutputConfig() != other.hasOutputConfig()) return false; if (hasOutputConfig()) { - if (!getOutputConfig().equals(other.getOutputConfig())) return false; + if (!getOutputConfig() + .equals(other.getOutputConfig())) return false; } if (hasOutputError() != other.hasOutputError()) return false; if (hasOutputError()) { - if (!getOutputError().equals(other.getOutputError())) return false; + if (!getOutputError() + .equals(other.getOutputError())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -497,104 +436,96 @@ public int hashCode() { } public static com.google.cloud.speech.v1.LongRunningRecognizeResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1.LongRunningRecognizeResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1.LongRunningRecognizeResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1.LongRunningRecognizeResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1.LongRunningRecognizeResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1.LongRunningRecognizeResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.speech.v1.LongRunningRecognizeResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.speech.v1.LongRunningRecognizeResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1.LongRunningRecognizeResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.speech.v1.LongRunningRecognizeResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.speech.v1.LongRunningRecognizeResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1.LongRunningRecognizeResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1.LongRunningRecognizeResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1.LongRunningRecognizeResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.speech.v1.LongRunningRecognizeResponse prototype) { + public static Builder newBuilder(com.google.cloud.speech.v1.LongRunningRecognizeResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The only message returned to the client by the `LongRunningRecognize` method.
    * It contains the result as zero or more sequential `SpeechRecognitionResult`
@@ -605,23 +536,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.speech.v1.LongRunningRecognizeResponse}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1.LongRunningRecognizeResponse)
       com.google.cloud.speech.v1.LongRunningRecognizeResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.speech.v1.SpeechProto
-          .internal_static_google_cloud_speech_v1_LongRunningRecognizeResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_LongRunningRecognizeResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v1.SpeechProto
-          .internal_static_google_cloud_speech_v1_LongRunningRecognizeResponse_fieldAccessorTable
+      return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_LongRunningRecognizeResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v1.LongRunningRecognizeResponse.class,
-              com.google.cloud.speech.v1.LongRunningRecognizeResponse.Builder.class);
+              com.google.cloud.speech.v1.LongRunningRecognizeResponse.class, com.google.cloud.speech.v1.LongRunningRecognizeResponse.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v1.LongRunningRecognizeResponse.newBuilder()
@@ -629,17 +558,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
         getResultsFieldBuilder();
       }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -671,9 +600,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
@@ -692,8 +621,7 @@ public com.google.cloud.speech.v1.LongRunningRecognizeResponse build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v1.LongRunningRecognizeResponse buildPartial() {
-      com.google.cloud.speech.v1.LongRunningRecognizeResponse result =
-          new com.google.cloud.speech.v1.LongRunningRecognizeResponse(this);
+      com.google.cloud.speech.v1.LongRunningRecognizeResponse result = new com.google.cloud.speech.v1.LongRunningRecognizeResponse(this);
       int from_bitField0_ = bitField0_;
       if (resultsBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
@@ -727,39 +655,38 @@ public com.google.cloud.speech.v1.LongRunningRecognizeResponse buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.speech.v1.LongRunningRecognizeResponse) {
-        return mergeFrom((com.google.cloud.speech.v1.LongRunningRecognizeResponse) other);
+        return mergeFrom((com.google.cloud.speech.v1.LongRunningRecognizeResponse)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -767,8 +694,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()) {
@@ -787,10 +713,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_);
           }
@@ -824,8 +749,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.speech.v1.LongRunningRecognizeResponse) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.speech.v1.LongRunningRecognizeResponse) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -834,29 +758,21 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int bitField0_;
 
     private java.util.List results_ =
-        java.util.Collections.emptyList();
-
+      java.util.Collections.emptyList();
     private void ensureResultsIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
-        results_ =
-            new java.util.ArrayList(results_);
+        results_ = new java.util.ArrayList(results_);
         bitField0_ |= 0x00000001;
-      }
+       }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.speech.v1.SpeechRecognitionResult,
-            com.google.cloud.speech.v1.SpeechRecognitionResult.Builder,
-            com.google.cloud.speech.v1.SpeechRecognitionResultOrBuilder>
-        resultsBuilder_;
+        com.google.cloud.speech.v1.SpeechRecognitionResult, com.google.cloud.speech.v1.SpeechRecognitionResult.Builder, com.google.cloud.speech.v1.SpeechRecognitionResultOrBuilder> resultsBuilder_;
 
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -872,8 +788,6 @@ public java.util.List getRes
       }
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -889,8 +803,6 @@ public int getResultsCount() {
       }
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -906,8 +818,6 @@ public com.google.cloud.speech.v1.SpeechRecognitionResult getResults(int index)
       }
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -915,7 +825,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();
@@ -929,8 +840,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.
@@ -950,8 +859,6 @@ public Builder setResults(
       return this;
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -973,8 +880,6 @@ public Builder addResults(com.google.cloud.speech.v1.SpeechRecognitionResult val
       return this;
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -982,7 +887,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();
@@ -996,8 +902,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.
@@ -1017,8 +921,6 @@ public Builder addResults(
       return this;
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -1038,8 +940,6 @@ public Builder addResults(
       return this;
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -1051,7 +951,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);
@@ -1059,8 +960,6 @@ public Builder addAllResults(
       return this;
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -1079,8 +978,6 @@ public Builder clearResults() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -1099,8 +996,6 @@ public Builder removeResults(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -1108,12 +1003,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.
@@ -1124,14 +1018,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.
@@ -1139,8 +1030,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 {
@@ -1148,8 +1039,6 @@ public com.google.cloud.speech.v1.SpeechRecognitionResultOrBuilder getResultsOrB
       }
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -1158,12 +1047,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.
@@ -1171,14 +1058,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.
@@ -1186,23 +1071,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_;
@@ -1210,47 +1092,34 @@ public com.google.cloud.speech.v1.SpeechRecognitionResult.Builder addResultsBuil
 
     private com.google.protobuf.Duration totalBilledTime_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Duration,
-            com.google.protobuf.Duration.Builder,
-            com.google.protobuf.DurationOrBuilder>
-        totalBilledTimeBuilder_;
+        com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> totalBilledTimeBuilder_;
     /**
-     *
-     *
      * 
      * When available, billed audio seconds for the corresponding request.
      * 
* * .google.protobuf.Duration total_billed_time = 3; - * * @return Whether the totalBilledTime field is set. */ public boolean hasTotalBilledTime() { return totalBilledTimeBuilder_ != null || totalBilledTime_ != null; } /** - * - * *
      * When available, billed audio seconds for the corresponding request.
      * 
* * .google.protobuf.Duration total_billed_time = 3; - * * @return The totalBilledTime. */ public com.google.protobuf.Duration getTotalBilledTime() { if (totalBilledTimeBuilder_ == null) { - return totalBilledTime_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : totalBilledTime_; + return totalBilledTime_ == null ? com.google.protobuf.Duration.getDefaultInstance() : totalBilledTime_; } else { return totalBilledTimeBuilder_.getMessage(); } } /** - * - * *
      * When available, billed audio seconds for the corresponding request.
      * 
@@ -1271,15 +1140,14 @@ public Builder setTotalBilledTime(com.google.protobuf.Duration value) { return this; } /** - * - * *
      * When available, billed audio seconds for the corresponding request.
      * 
* * .google.protobuf.Duration total_billed_time = 3; */ - public Builder setTotalBilledTime(com.google.protobuf.Duration.Builder builderForValue) { + public Builder setTotalBilledTime( + com.google.protobuf.Duration.Builder builderForValue) { if (totalBilledTimeBuilder_ == null) { totalBilledTime_ = builderForValue.build(); onChanged(); @@ -1290,8 +1158,6 @@ public Builder setTotalBilledTime(com.google.protobuf.Duration.Builder builderFo return this; } /** - * - * *
      * When available, billed audio seconds for the corresponding request.
      * 
@@ -1302,9 +1168,7 @@ public Builder mergeTotalBilledTime(com.google.protobuf.Duration value) { if (totalBilledTimeBuilder_ == null) { if (totalBilledTime_ != null) { totalBilledTime_ = - com.google.protobuf.Duration.newBuilder(totalBilledTime_) - .mergeFrom(value) - .buildPartial(); + com.google.protobuf.Duration.newBuilder(totalBilledTime_).mergeFrom(value).buildPartial(); } else { totalBilledTime_ = value; } @@ -1316,8 +1180,6 @@ public Builder mergeTotalBilledTime(com.google.protobuf.Duration value) { return this; } /** - * - * *
      * When available, billed audio seconds for the corresponding request.
      * 
@@ -1336,8 +1198,6 @@ public Builder clearTotalBilledTime() { return this; } /** - * - * *
      * When available, billed audio seconds for the corresponding request.
      * 
@@ -1345,13 +1205,11 @@ public Builder clearTotalBilledTime() { * .google.protobuf.Duration total_billed_time = 3; */ public com.google.protobuf.Duration.Builder getTotalBilledTimeBuilder() { - + onChanged(); return getTotalBilledTimeFieldBuilder().getBuilder(); } /** - * - * *
      * When available, billed audio seconds for the corresponding request.
      * 
@@ -1362,14 +1220,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.
      * 
@@ -1377,17 +1232,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_; @@ -1395,47 +1247,34 @@ public com.google.protobuf.DurationOrBuilder getTotalBilledTimeOrBuilder() { private com.google.cloud.speech.v1.TranscriptOutputConfig outputConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1.TranscriptOutputConfig, - com.google.cloud.speech.v1.TranscriptOutputConfig.Builder, - com.google.cloud.speech.v1.TranscriptOutputConfigOrBuilder> - outputConfigBuilder_; + com.google.cloud.speech.v1.TranscriptOutputConfig, com.google.cloud.speech.v1.TranscriptOutputConfig.Builder, com.google.cloud.speech.v1.TranscriptOutputConfigOrBuilder> outputConfigBuilder_; /** - * - * *
      * Original output config if present in the request.
      * 
* * .google.cloud.speech.v1.TranscriptOutputConfig output_config = 6; - * * @return Whether the outputConfig field is set. */ public boolean hasOutputConfig() { return outputConfigBuilder_ != null || outputConfig_ != null; } /** - * - * *
      * Original output config if present in the request.
      * 
* * .google.cloud.speech.v1.TranscriptOutputConfig output_config = 6; - * * @return The outputConfig. */ public com.google.cloud.speech.v1.TranscriptOutputConfig getOutputConfig() { if (outputConfigBuilder_ == null) { - return outputConfig_ == null - ? com.google.cloud.speech.v1.TranscriptOutputConfig.getDefaultInstance() - : outputConfig_; + return outputConfig_ == null ? com.google.cloud.speech.v1.TranscriptOutputConfig.getDefaultInstance() : outputConfig_; } else { return outputConfigBuilder_.getMessage(); } } /** - * - * *
      * Original output config if present in the request.
      * 
@@ -1456,8 +1295,6 @@ public Builder setOutputConfig(com.google.cloud.speech.v1.TranscriptOutputConfig return this; } /** - * - * *
      * Original output config if present in the request.
      * 
@@ -1476,8 +1313,6 @@ public Builder setOutputConfig( return this; } /** - * - * *
      * Original output config if present in the request.
      * 
@@ -1488,9 +1323,7 @@ public Builder mergeOutputConfig(com.google.cloud.speech.v1.TranscriptOutputConf if (outputConfigBuilder_ == null) { if (outputConfig_ != null) { outputConfig_ = - com.google.cloud.speech.v1.TranscriptOutputConfig.newBuilder(outputConfig_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.speech.v1.TranscriptOutputConfig.newBuilder(outputConfig_).mergeFrom(value).buildPartial(); } else { outputConfig_ = value; } @@ -1502,8 +1335,6 @@ public Builder mergeOutputConfig(com.google.cloud.speech.v1.TranscriptOutputConf return this; } /** - * - * *
      * Original output config if present in the request.
      * 
@@ -1522,8 +1353,6 @@ public Builder clearOutputConfig() { return this; } /** - * - * *
      * Original output config if present in the request.
      * 
@@ -1531,13 +1360,11 @@ public Builder clearOutputConfig() { * .google.cloud.speech.v1.TranscriptOutputConfig output_config = 6; */ public com.google.cloud.speech.v1.TranscriptOutputConfig.Builder getOutputConfigBuilder() { - + onChanged(); return getOutputConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Original output config if present in the request.
      * 
@@ -1548,14 +1375,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.
      * 
@@ -1563,17 +1387,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_; @@ -1581,31 +1402,24 @@ public com.google.cloud.speech.v1.TranscriptOutputConfigOrBuilder getOutputConfi private com.google.rpc.Status outputError_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> - outputErrorBuilder_; + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> outputErrorBuilder_; /** - * - * *
      * If the transcript output fails this field contains the relevant error.
      * 
* * .google.rpc.Status output_error = 7; - * * @return Whether the outputError field is set. */ public boolean hasOutputError() { return outputErrorBuilder_ != null || outputError_ != null; } /** - * - * *
      * If the transcript output fails this field contains the relevant error.
      * 
* * .google.rpc.Status output_error = 7; - * * @return The outputError. */ public com.google.rpc.Status getOutputError() { @@ -1616,8 +1430,6 @@ public com.google.rpc.Status getOutputError() { } } /** - * - * *
      * If the transcript output fails this field contains the relevant error.
      * 
@@ -1638,15 +1450,14 @@ public Builder setOutputError(com.google.rpc.Status value) { return this; } /** - * - * *
      * If the transcript output fails this field contains the relevant error.
      * 
* * .google.rpc.Status output_error = 7; */ - public Builder setOutputError(com.google.rpc.Status.Builder builderForValue) { + public Builder setOutputError( + com.google.rpc.Status.Builder builderForValue) { if (outputErrorBuilder_ == null) { outputError_ = builderForValue.build(); onChanged(); @@ -1657,8 +1468,6 @@ public Builder setOutputError(com.google.rpc.Status.Builder builderForValue) { return this; } /** - * - * *
      * If the transcript output fails this field contains the relevant error.
      * 
@@ -1669,7 +1478,7 @@ public Builder mergeOutputError(com.google.rpc.Status value) { if (outputErrorBuilder_ == null) { if (outputError_ != null) { outputError_ = - com.google.rpc.Status.newBuilder(outputError_).mergeFrom(value).buildPartial(); + com.google.rpc.Status.newBuilder(outputError_).mergeFrom(value).buildPartial(); } else { outputError_ = value; } @@ -1681,8 +1490,6 @@ public Builder mergeOutputError(com.google.rpc.Status value) { return this; } /** - * - * *
      * If the transcript output fails this field contains the relevant error.
      * 
@@ -1701,8 +1508,6 @@ public Builder clearOutputError() { return this; } /** - * - * *
      * If the transcript output fails this field contains the relevant error.
      * 
@@ -1710,13 +1515,11 @@ public Builder clearOutputError() { * .google.rpc.Status output_error = 7; */ public com.google.rpc.Status.Builder getOutputErrorBuilder() { - + onChanged(); return getOutputErrorFieldBuilder().getBuilder(); } /** - * - * *
      * If the transcript output fails this field contains the relevant error.
      * 
@@ -1727,12 +1530,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.
      * 
@@ -1740,22 +1542,21 @@ public com.google.rpc.StatusOrBuilder getOutputErrorOrBuilder() { * .google.rpc.Status output_error = 7; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> getOutputErrorFieldBuilder() { if (outputErrorBuilder_ == null) { - outputErrorBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.Status, - com.google.rpc.Status.Builder, - com.google.rpc.StatusOrBuilder>( - getOutputError(), getParentForChildren(), isClean()); + outputErrorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>( + getOutputError(), + getParentForChildren(), + isClean()); outputError_ = null; } return outputErrorBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1765,12 +1566,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(); } @@ -1779,16 +1580,16 @@ public static com.google.cloud.speech.v1.LongRunningRecognizeResponse getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LongRunningRecognizeResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new LongRunningRecognizeResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LongRunningRecognizeResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LongRunningRecognizeResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1803,4 +1604,6 @@ public com.google.protobuf.Parser getParserForType public com.google.cloud.speech.v1.LongRunningRecognizeResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeResponseOrBuilder.java similarity index 81% rename from proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeResponseOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeResponseOrBuilder.java index 5078fa81a..231d7ae91 100644 --- a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeResponseOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeResponseOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1/cloud_speech.proto package com.google.cloud.speech.v1; -public interface LongRunningRecognizeResponseOrBuilder - extends +public interface LongRunningRecognizeResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1.LongRunningRecognizeResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -33,10 +15,9 @@ public interface LongRunningRecognizeResponseOrBuilder
    *
    * repeated .google.cloud.speech.v1.SpeechRecognitionResult results = 2;
    */
-  java.util.List getResultsList();
+  java.util.List 
+      getResultsList();
   /**
-   *
-   *
    * 
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -46,8 +27,6 @@ public interface LongRunningRecognizeResponseOrBuilder
    */
   com.google.cloud.speech.v1.SpeechRecognitionResult getResults(int index);
   /**
-   *
-   *
    * 
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -57,8 +36,6 @@ public interface LongRunningRecognizeResponseOrBuilder
    */
   int getResultsCount();
   /**
-   *
-   *
    * 
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -66,11 +43,9 @@ public interface LongRunningRecognizeResponseOrBuilder
    *
    * repeated .google.cloud.speech.v1.SpeechRecognitionResult results = 2;
    */
-  java.util.List
+  java.util.List 
       getResultsOrBuilderList();
   /**
-   *
-   *
    * 
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -78,35 +53,28 @@ public interface LongRunningRecognizeResponseOrBuilder
    *
    * repeated .google.cloud.speech.v1.SpeechRecognitionResult results = 2;
    */
-  com.google.cloud.speech.v1.SpeechRecognitionResultOrBuilder getResultsOrBuilder(int index);
+  com.google.cloud.speech.v1.SpeechRecognitionResultOrBuilder getResultsOrBuilder(
+      int index);
 
   /**
-   *
-   *
    * 
    * When available, billed audio seconds for the corresponding request.
    * 
* * .google.protobuf.Duration total_billed_time = 3; - * * @return Whether the totalBilledTime field is set. */ boolean hasTotalBilledTime(); /** - * - * *
    * When available, billed audio seconds for the corresponding request.
    * 
* * .google.protobuf.Duration total_billed_time = 3; - * * @return The totalBilledTime. */ com.google.protobuf.Duration getTotalBilledTime(); /** - * - * *
    * When available, billed audio seconds for the corresponding request.
    * 
@@ -116,32 +84,24 @@ public interface LongRunningRecognizeResponseOrBuilder com.google.protobuf.DurationOrBuilder getTotalBilledTimeOrBuilder(); /** - * - * *
    * Original output config if present in the request.
    * 
* * .google.cloud.speech.v1.TranscriptOutputConfig output_config = 6; - * * @return Whether the outputConfig field is set. */ boolean hasOutputConfig(); /** - * - * *
    * Original output config if present in the request.
    * 
* * .google.cloud.speech.v1.TranscriptOutputConfig output_config = 6; - * * @return The outputConfig. */ com.google.cloud.speech.v1.TranscriptOutputConfig getOutputConfig(); /** - * - * *
    * Original output config if present in the request.
    * 
@@ -151,32 +111,24 @@ public interface LongRunningRecognizeResponseOrBuilder com.google.cloud.speech.v1.TranscriptOutputConfigOrBuilder getOutputConfigOrBuilder(); /** - * - * *
    * If the transcript output fails this field contains the relevant error.
    * 
* * .google.rpc.Status output_error = 7; - * * @return Whether the outputError field is set. */ boolean hasOutputError(); /** - * - * *
    * If the transcript output fails this field contains the relevant error.
    * 
* * .google.rpc.Status output_error = 7; - * * @return The outputError. */ com.google.rpc.Status getOutputError(); /** - * - * *
    * If the transcript output fails this field contains the relevant error.
    * 
diff --git a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/PhraseSet.java b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/PhraseSet.java similarity index 77% rename from proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/PhraseSet.java rename to owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/PhraseSet.java index 9789fd000..d516cc695 100644 --- a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/PhraseSet.java +++ b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/PhraseSet.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1/resource.proto package com.google.cloud.speech.v1; /** - * - * *
  * Provides "hints" to the speech recognizer to favor specific words and phrases
  * in the results.
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.cloud.speech.v1.PhraseSet}
  */
-public final class PhraseSet extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class PhraseSet extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.speech.v1.PhraseSet)
     PhraseSetOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use PhraseSet.newBuilder() to construct.
   private PhraseSet(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private PhraseSet() {
     name_ = "";
     phrases_ = java.util.Collections.emptyList();
@@ -45,15 +27,16 @@ private PhraseSet() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new PhraseSet();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private PhraseSet(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -73,42 +56,40 @@ private PhraseSet(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              name_ = s;
-              break;
-            }
-          case 18:
-            {
-              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                phrases_ = new java.util.ArrayList();
-                mutable_bitField0_ |= 0x00000001;
-              }
-              phrases_.add(
-                  input.readMessage(
-                      com.google.cloud.speech.v1.PhraseSet.Phrase.parser(), extensionRegistry));
-              break;
-            }
-          case 37:
-            {
-              boost_ = input.readFloat();
-              break;
+            name_ = s;
+            break;
+          }
+          case 18: {
+            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+              phrases_ = new java.util.ArrayList();
+              mutable_bitField0_ |= 0x00000001;
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            phrases_.add(
+                input.readMessage(com.google.cloud.speech.v1.PhraseSet.Phrase.parser(), extensionRegistry));
+            break;
+          }
+          case 37: {
+
+            boost_ = input.readFloat();
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         phrases_ = java.util.Collections.unmodifiableList(phrases_);
@@ -117,55 +98,44 @@ private PhraseSet(
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.speech.v1.SpeechResourceProto
-        .internal_static_google_cloud_speech_v1_PhraseSet_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.speech.v1.SpeechResourceProto.internal_static_google_cloud_speech_v1_PhraseSet_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v1.SpeechResourceProto
-        .internal_static_google_cloud_speech_v1_PhraseSet_fieldAccessorTable
+    return com.google.cloud.speech.v1.SpeechResourceProto.internal_static_google_cloud_speech_v1_PhraseSet_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v1.PhraseSet.class,
-            com.google.cloud.speech.v1.PhraseSet.Builder.class);
+            com.google.cloud.speech.v1.PhraseSet.class, com.google.cloud.speech.v1.PhraseSet.Builder.class);
   }
 
-  public interface PhraseOrBuilder
-      extends
+  public interface PhraseOrBuilder extends
       // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1.PhraseSet.Phrase)
       com.google.protobuf.MessageOrBuilder {
 
     /**
-     *
-     *
      * 
      * The phrase itself.
      * 
* * string value = 1; - * * @return The value. */ java.lang.String getValue(); /** - * - * *
      * The phrase itself.
      * 
* * string value = 1; - * * @return The bytes for value. */ - com.google.protobuf.ByteString getValueBytes(); + com.google.protobuf.ByteString + getValueBytes(); /** - * - * *
      * Hint Boost. Overrides the boost set at the phrase set level.
      * Positive value will increase the probability that a specific phrase will
@@ -179,14 +149,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
@@ -215,31 +182,31 @@ public interface PhraseOrBuilder
    *
    * Protobuf type {@code google.cloud.speech.v1.PhraseSet.Phrase}
    */
-  public static final class Phrase extends com.google.protobuf.GeneratedMessageV3
-      implements
+  public static final class Phrase extends
+      com.google.protobuf.GeneratedMessageV3 implements
       // @@protoc_insertion_point(message_implements:google.cloud.speech.v1.PhraseSet.Phrase)
       PhraseOrBuilder {
-    private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
     // Use Phrase.newBuilder() to construct.
     private Phrase(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
-
     private Phrase() {
       value_ = "";
     }
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(
+        UnusedPrivateParameter unused) {
       return new Phrase();
     }
 
     @java.lang.Override
-    public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+    public final com.google.protobuf.UnknownFieldSet
+    getUnknownFields() {
       return this.unknownFields;
     }
-
     private Phrase(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -258,63 +225,57 @@ private Phrase(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                java.lang.String s = input.readStringRequireUtf8();
+            case 10: {
+              java.lang.String s = input.readStringRequireUtf8();
 
-                value_ = s;
-                break;
-              }
-            case 21:
-              {
-                boost_ = input.readFloat();
-                break;
-              }
-            default:
-              {
-                if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                  done = true;
-                }
-                break;
+              value_ = s;
+              break;
+            }
+            case 21: {
+
+              boost_ = input.readFloat();
+              break;
+            }
+            default: {
+              if (!parseUnknownField(
+                  input, unknownFields, extensionRegistry, tag)) {
+                done = true;
               }
+              break;
+            }
           }
         }
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
         throw e.setUnfinishedMessage(this);
       } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+        throw new com.google.protobuf.InvalidProtocolBufferException(
+            e).setUnfinishedMessage(this);
       } finally {
         this.unknownFields = unknownFields.build();
         makeExtensionsImmutable();
       }
     }
-
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.speech.v1.SpeechResourceProto
-          .internal_static_google_cloud_speech_v1_PhraseSet_Phrase_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.speech.v1.SpeechResourceProto.internal_static_google_cloud_speech_v1_PhraseSet_Phrase_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v1.SpeechResourceProto
-          .internal_static_google_cloud_speech_v1_PhraseSet_Phrase_fieldAccessorTable
+      return com.google.cloud.speech.v1.SpeechResourceProto.internal_static_google_cloud_speech_v1_PhraseSet_Phrase_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v1.PhraseSet.Phrase.class,
-              com.google.cloud.speech.v1.PhraseSet.Phrase.Builder.class);
+              com.google.cloud.speech.v1.PhraseSet.Phrase.class, com.google.cloud.speech.v1.PhraseSet.Phrase.Builder.class);
     }
 
     public static final int VALUE_FIELD_NUMBER = 1;
     private volatile java.lang.Object value_;
     /**
-     *
-     *
      * 
      * The phrase itself.
      * 
* * string value = 1; - * * @return The value. */ @java.lang.Override @@ -323,29 +284,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 { @@ -356,8 +317,6 @@ public com.google.protobuf.ByteString getValueBytes() { public static final int BOOST_FIELD_NUMBER = 2; private float boost_; /** - * - * *
      * Hint Boost. Overrides the boost set at the phrase set level.
      * Positive value will increase the probability that a specific phrase will
@@ -371,7 +330,6 @@ public com.google.protobuf.ByteString getValueBytes() {
      * 
* * float boost = 2; - * * @return The boost. */ @java.lang.Override @@ -380,7 +338,6 @@ public float getBoost() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -392,7 +349,8 @@ public final boolean isInitialized() { } @java.lang.Override - public 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_); } @@ -412,7 +370,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, value_); } if (boost_ != 0F) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, boost_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(2, boost_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -422,17 +381,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1.PhraseSet.Phrase)) { return super.equals(obj); } - com.google.cloud.speech.v1.PhraseSet.Phrase other = - (com.google.cloud.speech.v1.PhraseSet.Phrase) obj; + com.google.cloud.speech.v1.PhraseSet.Phrase other = (com.google.cloud.speech.v1.PhraseSet.Phrase) obj; - if (!getValue().equals(other.getValue())) return false; + if (!getValue() + .equals(other.getValue())) return false; if (java.lang.Float.floatToIntBits(getBoost()) - != java.lang.Float.floatToIntBits(other.getBoost())) return false; + != java.lang.Float.floatToIntBits( + other.getBoost())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -447,100 +407,95 @@ public int hashCode() { hash = (37 * hash) + VALUE_FIELD_NUMBER; hash = (53 * hash) + getValue().hashCode(); hash = (37 * hash) + BOOST_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getBoost()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getBoost()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.speech.v1.PhraseSet.Phrase parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.speech.v1.PhraseSet.Phrase parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1.PhraseSet.Phrase parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1.PhraseSet.Phrase parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1.PhraseSet.Phrase parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1.PhraseSet.Phrase parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1.PhraseSet.Phrase parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1.PhraseSet.Phrase parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1.PhraseSet.Phrase parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.speech.v1.PhraseSet.Phrase parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.speech.v1.PhraseSet.Phrase parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1.PhraseSet.Phrase parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1.PhraseSet.Phrase parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1.PhraseSet.Phrase parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.speech.v1.PhraseSet.Phrase prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -550,8 +505,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
@@ -580,24 +533,21 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.cloud.speech.v1.PhraseSet.Phrase}
      */
-    public static final class Builder
-        extends com.google.protobuf.GeneratedMessageV3.Builder
-        implements
+    public static final class Builder extends
+        com.google.protobuf.GeneratedMessageV3.Builder implements
         // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1.PhraseSet.Phrase)
         com.google.cloud.speech.v1.PhraseSet.PhraseOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-        return com.google.cloud.speech.v1.SpeechResourceProto
-            .internal_static_google_cloud_speech_v1_PhraseSet_Phrase_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor
+          getDescriptor() {
+        return com.google.cloud.speech.v1.SpeechResourceProto.internal_static_google_cloud_speech_v1_PhraseSet_Phrase_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.cloud.speech.v1.SpeechResourceProto
-            .internal_static_google_cloud_speech_v1_PhraseSet_Phrase_fieldAccessorTable
+        return com.google.cloud.speech.v1.SpeechResourceProto.internal_static_google_cloud_speech_v1_PhraseSet_Phrase_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.cloud.speech.v1.PhraseSet.Phrase.class,
-                com.google.cloud.speech.v1.PhraseSet.Phrase.Builder.class);
+                com.google.cloud.speech.v1.PhraseSet.Phrase.class, com.google.cloud.speech.v1.PhraseSet.Phrase.Builder.class);
       }
 
       // Construct using com.google.cloud.speech.v1.PhraseSet.Phrase.newBuilder()
@@ -605,15 +555,16 @@ private Builder() {
         maybeForceBuilderInitialization();
       }
 
-      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      private Builder(
+          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         super(parent);
         maybeForceBuilderInitialization();
       }
-
       private void maybeForceBuilderInitialization() {
-        if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+        if (com.google.protobuf.GeneratedMessageV3
+                .alwaysUseFieldBuilders) {
+        }
       }
-
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -625,9 +576,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
@@ -646,8 +597,7 @@ public com.google.cloud.speech.v1.PhraseSet.Phrase build() {
 
       @java.lang.Override
       public com.google.cloud.speech.v1.PhraseSet.Phrase buildPartial() {
-        com.google.cloud.speech.v1.PhraseSet.Phrase result =
-            new com.google.cloud.speech.v1.PhraseSet.Phrase(this);
+        com.google.cloud.speech.v1.PhraseSet.Phrase result = new com.google.cloud.speech.v1.PhraseSet.Phrase(this);
         result.value_ = value_;
         result.boost_ = boost_;
         onBuilt();
@@ -658,41 +608,38 @@ public com.google.cloud.speech.v1.PhraseSet.Phrase buildPartial() {
       public Builder clone() {
         return super.clone();
       }
-
       @java.lang.Override
       public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field,
+          java.lang.Object value) {
         return super.setField(field, value);
       }
-
       @java.lang.Override
-      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+      public Builder clearField(
+          com.google.protobuf.Descriptors.FieldDescriptor field) {
         return super.clearField(field);
       }
-
       @java.lang.Override
-      public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+      public Builder clearOneof(
+          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
         return super.clearOneof(oneof);
       }
-
       @java.lang.Override
       public Builder setRepeatedField(
           com.google.protobuf.Descriptors.FieldDescriptor field,
-          int index,
-          java.lang.Object value) {
+          int index, java.lang.Object value) {
         return super.setRepeatedField(field, index, value);
       }
-
       @java.lang.Override
       public Builder addRepeatedField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field,
+          java.lang.Object value) {
         return super.addRepeatedField(field, value);
       }
-
       @java.lang.Override
       public Builder mergeFrom(com.google.protobuf.Message other) {
         if (other instanceof com.google.cloud.speech.v1.PhraseSet.Phrase) {
-          return mergeFrom((com.google.cloud.speech.v1.PhraseSet.Phrase) other);
+          return mergeFrom((com.google.cloud.speech.v1.PhraseSet.Phrase)other);
         } else {
           super.mergeFrom(other);
           return this;
@@ -739,20 +686,18 @@ public Builder mergeFrom(
 
       private java.lang.Object value_ = "";
       /**
-       *
-       *
        * 
        * The phrase itself.
        * 
* * string value = 1; - * * @return The value. */ public java.lang.String getValue() { java.lang.Object ref = value_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); value_ = s; return s; @@ -761,21 +706,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 { @@ -783,70 +727,61 @@ public com.google.protobuf.ByteString getValueBytes() { } } /** - * - * *
        * The phrase itself.
        * 
* * string value = 1; - * * @param value The value to set. * @return This builder for chaining. */ - public Builder setValue(java.lang.String value) { + public Builder setValue( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + value_ = value; onChanged(); return this; } /** - * - * *
        * The phrase itself.
        * 
* * string value = 1; - * * @return This builder for chaining. */ public Builder clearValue() { - + value_ = getDefaultInstance().getValue(); onChanged(); return this; } /** - * - * *
        * The phrase itself.
        * 
* * string value = 1; - * * @param value The bytes for value to set. * @return This builder for chaining. */ - public Builder setValueBytes(com.google.protobuf.ByteString value) { + public Builder setValueBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + value_ = value; onChanged(); return this; } - private float boost_; + private float boost_ ; /** - * - * *
        * Hint Boost. Overrides the boost set at the phrase set level.
        * Positive value will increase the probability that a specific phrase will
@@ -860,7 +795,6 @@ public Builder setValueBytes(com.google.protobuf.ByteString value) {
        * 
* * float boost = 2; - * * @return The boost. */ @java.lang.Override @@ -868,8 +802,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
@@ -883,19 +815,16 @@ public float getBoost() {
        * 
* * float boost = 2; - * * @param value The boost to set. * @return This builder for chaining. */ public Builder setBoost(float value) { - + boost_ = value; onChanged(); return this; } /** - * - * *
        * Hint Boost. Overrides the boost set at the phrase set level.
        * Positive value will increase the probability that a specific phrase will
@@ -909,16 +838,14 @@ public Builder setBoost(float value) {
        * 
* * float boost = 2; - * * @return This builder for chaining. */ public Builder clearBoost() { - + boost_ = 0F; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -931,12 +858,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(); } @@ -945,16 +872,16 @@ public static com.google.cloud.speech.v1.PhraseSet.Phrase getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Phrase parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Phrase(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Phrase parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Phrase(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -969,19 +896,17 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1.PhraseSet.Phrase getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * The resource name of the phrase set.
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -990,29 +915,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 { @@ -1023,8 +948,6 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int PHRASES_FIELD_NUMBER = 2; private java.util.List phrases_; /** - * - * *
    * A list of word and phrases.
    * 
@@ -1036,8 +959,6 @@ public java.util.List getPhrasesLis return phrases_; } /** - * - * *
    * A list of word and phrases.
    * 
@@ -1045,13 +966,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.
    * 
@@ -1063,8 +982,6 @@ public int getPhrasesCount() { return phrases_.size(); } /** - * - * *
    * A list of word and phrases.
    * 
@@ -1076,8 +993,6 @@ public com.google.cloud.speech.v1.PhraseSet.Phrase getPhrases(int index) { return phrases_.get(index); } /** - * - * *
    * A list of word and phrases.
    * 
@@ -1085,15 +1000,14 @@ public com.google.cloud.speech.v1.PhraseSet.Phrase getPhrases(int index) { * repeated .google.cloud.speech.v1.PhraseSet.Phrase phrases = 2; */ @java.lang.Override - public com.google.cloud.speech.v1.PhraseSet.PhraseOrBuilder getPhrasesOrBuilder(int index) { + public com.google.cloud.speech.v1.PhraseSet.PhraseOrBuilder getPhrasesOrBuilder( + int index) { return phrases_.get(index); } public static final int BOOST_FIELD_NUMBER = 4; private float boost_; /** - * - * *
    * Hint Boost. Positive value will increase the probability that a specific
    * phrase will be recognized over other similar sounding phrases. The higher
@@ -1107,7 +1021,6 @@ public com.google.cloud.speech.v1.PhraseSet.PhraseOrBuilder getPhrasesOrBuilder(
    * 
* * float boost = 4; - * * @return The boost. */ @java.lang.Override @@ -1116,7 +1029,6 @@ public float getBoost() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1128,7 +1040,8 @@ public final boolean isInitialized() { } @java.lang.Override - public 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_); } @@ -1151,10 +1064,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 (boost_ != 0F) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(4, boost_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(4, boost_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1164,17 +1079,20 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1.PhraseSet)) { return super.equals(obj); } com.google.cloud.speech.v1.PhraseSet other = (com.google.cloud.speech.v1.PhraseSet) obj; - if (!getName().equals(other.getName())) return false; - if (!getPhrasesList().equals(other.getPhrasesList())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getPhrasesList() + .equals(other.getPhrasesList())) return false; if (java.lang.Float.floatToIntBits(getBoost()) - != java.lang.Float.floatToIntBits(other.getBoost())) return false; + != java.lang.Float.floatToIntBits( + other.getBoost())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1193,109 +1111,104 @@ public int hashCode() { hash = (53 * hash) + getPhrasesList().hashCode(); } hash = (37 * hash) + BOOST_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getBoost()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getBoost()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.speech.v1.PhraseSet parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.speech.v1.PhraseSet parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1.PhraseSet parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.speech.v1.PhraseSet parseFrom(com.google.protobuf.ByteString data) + public static com.google.cloud.speech.v1.PhraseSet parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1.PhraseSet parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1.PhraseSet parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1.PhraseSet parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1.PhraseSet parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1.PhraseSet parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1.PhraseSet parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1.PhraseSet parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1.PhraseSet parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1.PhraseSet parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.speech.v1.PhraseSet prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Provides "hints" to the speech recognizer to favor specific words and phrases
    * in the results.
@@ -1303,23 +1216,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.speech.v1.PhraseSet}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1.PhraseSet)
       com.google.cloud.speech.v1.PhraseSetOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.speech.v1.SpeechResourceProto
-          .internal_static_google_cloud_speech_v1_PhraseSet_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.speech.v1.SpeechResourceProto.internal_static_google_cloud_speech_v1_PhraseSet_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v1.SpeechResourceProto
-          .internal_static_google_cloud_speech_v1_PhraseSet_fieldAccessorTable
+      return com.google.cloud.speech.v1.SpeechResourceProto.internal_static_google_cloud_speech_v1_PhraseSet_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v1.PhraseSet.class,
-              com.google.cloud.speech.v1.PhraseSet.Builder.class);
+              com.google.cloud.speech.v1.PhraseSet.class, com.google.cloud.speech.v1.PhraseSet.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v1.PhraseSet.newBuilder()
@@ -1327,17 +1238,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
         getPhrasesFieldBuilder();
       }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1355,9 +1266,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
@@ -1397,39 +1308,38 @@ public com.google.cloud.speech.v1.PhraseSet buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.speech.v1.PhraseSet) {
-        return mergeFrom((com.google.cloud.speech.v1.PhraseSet) other);
+        return mergeFrom((com.google.cloud.speech.v1.PhraseSet)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1460,10 +1370,9 @@ public Builder mergeFrom(com.google.cloud.speech.v1.PhraseSet other) {
             phrasesBuilder_ = null;
             phrases_ = other.phrases_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            phrasesBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getPhrasesFieldBuilder()
-                    : null;
+            phrasesBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getPhrasesFieldBuilder() : null;
           } else {
             phrasesBuilder_.addAllMessages(other.phrases_);
           }
@@ -1500,25 +1409,22 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * The resource name of the phrase set.
      * 
* * string name = 1; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1527,21 +1433,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 { @@ -1549,85 +1454,72 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * The resource name of the phrase set.
      * 
* * string name = 1; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * The resource name of the phrase set.
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * The resource name of the phrase set.
      * 
* * string name = 1; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } private java.util.List phrases_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensurePhrasesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { phrases_ = new java.util.ArrayList(phrases_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.speech.v1.PhraseSet.Phrase, - com.google.cloud.speech.v1.PhraseSet.Phrase.Builder, - com.google.cloud.speech.v1.PhraseSet.PhraseOrBuilder> - phrasesBuilder_; + com.google.cloud.speech.v1.PhraseSet.Phrase, com.google.cloud.speech.v1.PhraseSet.Phrase.Builder, com.google.cloud.speech.v1.PhraseSet.PhraseOrBuilder> phrasesBuilder_; /** - * - * *
      * A list of word and phrases.
      * 
@@ -1642,8 +1534,6 @@ public java.util.List getPhrasesLis } } /** - * - * *
      * A list of word and phrases.
      * 
@@ -1658,8 +1548,6 @@ public int getPhrasesCount() { } } /** - * - * *
      * A list of word and phrases.
      * 
@@ -1674,15 +1562,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(); @@ -1696,8 +1583,6 @@ public Builder setPhrases(int index, com.google.cloud.speech.v1.PhraseSet.Phrase return this; } /** - * - * *
      * A list of word and phrases.
      * 
@@ -1716,8 +1601,6 @@ public Builder setPhrases( return this; } /** - * - * *
      * A list of word and phrases.
      * 
@@ -1738,15 +1621,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(); @@ -1760,15 +1642,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()); @@ -1779,8 +1660,6 @@ public Builder addPhrases(com.google.cloud.speech.v1.PhraseSet.Phrase.Builder bu return this; } /** - * - * *
      * A list of word and phrases.
      * 
@@ -1799,8 +1678,6 @@ public Builder addPhrases( return this; } /** - * - * *
      * A list of word and phrases.
      * 
@@ -1811,7 +1688,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); @@ -1819,8 +1697,6 @@ public Builder addAllPhrases( return this; } /** - * - * *
      * A list of word and phrases.
      * 
@@ -1838,8 +1714,6 @@ public Builder clearPhrases() { return this; } /** - * - * *
      * A list of word and phrases.
      * 
@@ -1857,44 +1731,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 { @@ -1902,8 +1771,6 @@ public com.google.cloud.speech.v1.PhraseSet.PhraseOrBuilder getPhrasesOrBuilder( } } /** - * - * *
      * A list of word and phrases.
      * 
@@ -1911,57 +1778,49 @@ public com.google.cloud.speech.v1.PhraseSet.PhraseOrBuilder getPhrasesOrBuilder( * repeated .google.cloud.speech.v1.PhraseSet.Phrase phrases = 2; */ public com.google.cloud.speech.v1.PhraseSet.Phrase.Builder addPhrasesBuilder() { - return getPhrasesFieldBuilder() - .addBuilder(com.google.cloud.speech.v1.PhraseSet.Phrase.getDefaultInstance()); + return getPhrasesFieldBuilder().addBuilder( + com.google.cloud.speech.v1.PhraseSet.Phrase.getDefaultInstance()); } /** - * - * *
      * A list of word and phrases.
      * 
* * repeated .google.cloud.speech.v1.PhraseSet.Phrase phrases = 2; */ - public com.google.cloud.speech.v1.PhraseSet.Phrase.Builder addPhrasesBuilder(int index) { - return getPhrasesFieldBuilder() - .addBuilder(index, com.google.cloud.speech.v1.PhraseSet.Phrase.getDefaultInstance()); + public com.google.cloud.speech.v1.PhraseSet.Phrase.Builder addPhrasesBuilder( + int index) { + return getPhrasesFieldBuilder().addBuilder( + index, com.google.cloud.speech.v1.PhraseSet.Phrase.getDefaultInstance()); } /** - * - * *
      * A list of word and phrases.
      * 
* * repeated .google.cloud.speech.v1.PhraseSet.Phrase phrases = 2; */ - public java.util.List - getPhrasesBuilderList() { + public java.util.List + getPhrasesBuilderList() { return getPhrasesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.speech.v1.PhraseSet.Phrase, - com.google.cloud.speech.v1.PhraseSet.Phrase.Builder, - com.google.cloud.speech.v1.PhraseSet.PhraseOrBuilder> + com.google.cloud.speech.v1.PhraseSet.Phrase, com.google.cloud.speech.v1.PhraseSet.Phrase.Builder, com.google.cloud.speech.v1.PhraseSet.PhraseOrBuilder> getPhrasesFieldBuilder() { if (phrasesBuilder_ == null) { - phrasesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.speech.v1.PhraseSet.Phrase, - com.google.cloud.speech.v1.PhraseSet.Phrase.Builder, - com.google.cloud.speech.v1.PhraseSet.PhraseOrBuilder>( - phrases_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + phrasesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.speech.v1.PhraseSet.Phrase, com.google.cloud.speech.v1.PhraseSet.Phrase.Builder, com.google.cloud.speech.v1.PhraseSet.PhraseOrBuilder>( + phrases_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); phrases_ = null; } return phrasesBuilder_; } - private float boost_; + private float boost_ ; /** - * - * *
      * Hint Boost. Positive value will increase the probability that a specific
      * phrase will be recognized over other similar sounding phrases. The higher
@@ -1975,7 +1834,6 @@ public com.google.cloud.speech.v1.PhraseSet.Phrase.Builder addPhrasesBuilder(int
      * 
* * float boost = 4; - * * @return The boost. */ @java.lang.Override @@ -1983,8 +1841,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
@@ -1998,19 +1854,16 @@ public float getBoost() {
      * 
* * float boost = 4; - * * @param value The boost to set. * @return This builder for chaining. */ public Builder setBoost(float value) { - + boost_ = value; onChanged(); return this; } /** - * - * *
      * Hint Boost. Positive value will increase the probability that a specific
      * phrase will be recognized over other similar sounding phrases. The higher
@@ -2024,18 +1877,17 @@ public Builder setBoost(float value) {
      * 
* * float boost = 4; - * * @return This builder for chaining. */ public Builder clearBoost() { - + boost_ = 0F; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2045,12 +1897,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(); } @@ -2059,16 +1911,16 @@ public static com.google.cloud.speech.v1.PhraseSet getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PhraseSet parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PhraseSet(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PhraseSet parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PhraseSet(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2083,4 +1935,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1.PhraseSet getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/PhraseSetOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/PhraseSetOrBuilder.java similarity index 72% rename from proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/PhraseSetOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/PhraseSetOrBuilder.java index 39857ed50..c57c3c5d6 100644 --- a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/PhraseSetOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/PhraseSetOrBuilder.java @@ -1,66 +1,42 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1/resource.proto package com.google.cloud.speech.v1; -public interface PhraseSetOrBuilder - extends +public interface PhraseSetOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1.PhraseSet) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The resource name of the phrase set.
    * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * The resource name of the phrase set.
    * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * A list of word and phrases.
    * 
* * repeated .google.cloud.speech.v1.PhraseSet.Phrase phrases = 2; */ - java.util.List getPhrasesList(); + java.util.List + getPhrasesList(); /** - * - * *
    * A list of word and phrases.
    * 
@@ -69,8 +45,6 @@ public interface PhraseSetOrBuilder */ com.google.cloud.speech.v1.PhraseSet.Phrase getPhrases(int index); /** - * - * *
    * A list of word and phrases.
    * 
@@ -79,30 +53,25 @@ public interface PhraseSetOrBuilder */ int getPhrasesCount(); /** - * - * *
    * A list of word and phrases.
    * 
* * repeated .google.cloud.speech.v1.PhraseSet.Phrase phrases = 2; */ - java.util.List + java.util.List getPhrasesOrBuilderList(); /** - * - * *
    * A list of word and phrases.
    * 
* * repeated .google.cloud.speech.v1.PhraseSet.Phrase phrases = 2; */ - com.google.cloud.speech.v1.PhraseSet.PhraseOrBuilder getPhrasesOrBuilder(int index); + com.google.cloud.speech.v1.PhraseSet.PhraseOrBuilder getPhrasesOrBuilder( + int index); /** - * - * *
    * Hint Boost. Positive value will increase the probability that a specific
    * phrase will be recognized over other similar sounding phrases. The higher
@@ -116,7 +85,6 @@ public interface PhraseSetOrBuilder
    * 
* * float boost = 4; - * * @return The boost. */ float getBoost(); diff --git a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionAudio.java b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionAudio.java similarity index 75% rename from proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionAudio.java rename to owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionAudio.java index b3ba56d14..f77b954c0 100644 --- a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionAudio.java +++ b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionAudio.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1/cloud_speech.proto package com.google.cloud.speech.v1; /** - * - * *
  * Contains audio data in the encoding specified in the `RecognitionConfig`.
  * Either `content` or `uri` must be supplied. Supplying both or neither
@@ -30,29 +13,30 @@
  *
  * Protobuf type {@code google.cloud.speech.v1.RecognitionAudio}
  */
-public final class RecognitionAudio extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class RecognitionAudio extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.speech.v1.RecognitionAudio)
     RecognitionAudioOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use RecognitionAudio.newBuilder() to construct.
   private RecognitionAudio(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
-  private RecognitionAudio() {}
+  private RecognitionAudio() {
+  }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new RecognitionAudio();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private RecognitionAudio(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -71,65 +55,58 @@ private RecognitionAudio(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              audioSourceCase_ = 1;
-              audioSource_ = input.readBytes();
-              break;
-            }
-          case 18:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
-              audioSourceCase_ = 2;
-              audioSource_ = s;
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+          case 10: {
+            audioSourceCase_ = 1;
+            audioSource_ = input.readBytes();
+            break;
+          }
+          case 18: {
+            java.lang.String s = input.readStringRequireUtf8();
+            audioSourceCase_ = 2;
+            audioSource_ = s;
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.speech.v1.SpeechProto
-        .internal_static_google_cloud_speech_v1_RecognitionAudio_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_RecognitionAudio_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v1.SpeechProto
-        .internal_static_google_cloud_speech_v1_RecognitionAudio_fieldAccessorTable
+    return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_RecognitionAudio_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v1.RecognitionAudio.class,
-            com.google.cloud.speech.v1.RecognitionAudio.Builder.class);
+            com.google.cloud.speech.v1.RecognitionAudio.class, com.google.cloud.speech.v1.RecognitionAudio.Builder.class);
   }
 
   private int audioSourceCase_ = 0;
   private java.lang.Object audioSource_;
-
   public enum AudioSourceCase
-      implements
-          com.google.protobuf.Internal.EnumLite,
+      implements com.google.protobuf.Internal.EnumLite,
           com.google.protobuf.AbstractMessage.InternalOneOfEnum {
     CONTENT(1),
     URI(2),
     AUDIOSOURCE_NOT_SET(0);
     private final int value;
-
     private AudioSourceCase(int value) {
       this.value = value;
     }
@@ -145,30 +122,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
@@ -176,7 +148,6 @@ public AudioSourceCase getAudioSourceCase() {
    * 
* * bytes content = 1; - * * @return Whether the content field is set. */ @java.lang.Override @@ -184,8 +155,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
@@ -193,7 +162,6 @@ public boolean hasContent() {
    * 
* * bytes content = 1; - * * @return The content. */ @java.lang.Override @@ -206,8 +174,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).
@@ -219,15 +185,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).
@@ -239,7 +202,6 @@ public boolean hasUri() {
    * 
* * string uri = 2; - * * @return The uri. */ public java.lang.String getUri() { @@ -250,7 +212,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; @@ -259,8 +222,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).
@@ -272,17 +233,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; } @@ -293,7 +255,6 @@ public com.google.protobuf.ByteString getUriBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -305,9 +266,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_); @@ -322,9 +285,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_); @@ -337,21 +300,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: @@ -384,104 +348,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
@@ -491,23 +448,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.speech.v1.RecognitionAudio}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1.RecognitionAudio)
       com.google.cloud.speech.v1.RecognitionAudioOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.speech.v1.SpeechProto
-          .internal_static_google_cloud_speech_v1_RecognitionAudio_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_RecognitionAudio_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v1.SpeechProto
-          .internal_static_google_cloud_speech_v1_RecognitionAudio_fieldAccessorTable
+      return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_RecognitionAudio_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v1.RecognitionAudio.class,
-              com.google.cloud.speech.v1.RecognitionAudio.Builder.class);
+              com.google.cloud.speech.v1.RecognitionAudio.class, com.google.cloud.speech.v1.RecognitionAudio.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v1.RecognitionAudio.newBuilder()
@@ -515,15 +470,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -533,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_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
@@ -554,8 +510,7 @@ public com.google.cloud.speech.v1.RecognitionAudio build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v1.RecognitionAudio buildPartial() {
-      com.google.cloud.speech.v1.RecognitionAudio result =
-          new com.google.cloud.speech.v1.RecognitionAudio(this);
+      com.google.cloud.speech.v1.RecognitionAudio result = new com.google.cloud.speech.v1.RecognitionAudio(this);
       if (audioSourceCase_ == 1) {
         result.audioSource_ = audioSource_;
       }
@@ -571,39 +526,38 @@ public com.google.cloud.speech.v1.RecognitionAudio buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.speech.v1.RecognitionAudio) {
-        return mergeFrom((com.google.cloud.speech.v1.RecognitionAudio) other);
+        return mergeFrom((com.google.cloud.speech.v1.RecognitionAudio)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -613,22 +567,19 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     public Builder mergeFrom(com.google.cloud.speech.v1.RecognitionAudio other) {
       if (other == com.google.cloud.speech.v1.RecognitionAudio.getDefaultInstance()) return this;
       switch (other.getAudioSourceCase()) {
-        case CONTENT:
-          {
-            setContent(other.getContent());
-            break;
-          }
-        case URI:
-          {
-            audioSourceCase_ = 2;
-            audioSource_ = other.audioSource_;
-            onChanged();
-            break;
-          }
-        case AUDIOSOURCE_NOT_SET:
-          {
-            break;
-          }
+        case CONTENT: {
+          setContent(other.getContent());
+          break;
+        }
+        case URI: {
+          audioSourceCase_ = 2;
+          audioSource_ = other.audioSource_;
+          onChanged();
+          break;
+        }
+        case AUDIOSOURCE_NOT_SET: {
+          break;
+        }
       }
       this.mergeUnknownFields(other.unknownFields);
       onChanged();
@@ -658,12 +609,12 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int audioSourceCase_ = 0;
     private java.lang.Object audioSource_;
-
-    public AudioSourceCase getAudioSourceCase() {
-      return AudioSourceCase.forNumber(audioSourceCase_);
+    public AudioSourceCase
+        getAudioSourceCase() {
+      return AudioSourceCase.forNumber(
+          audioSourceCase_);
     }
 
     public Builder clearAudioSource() {
@@ -673,9 +624,8 @@ public Builder clearAudioSource() {
       return this;
     }
 
+
     /**
-     *
-     *
      * 
      * The audio data bytes encoded as specified in
      * `RecognitionConfig`. Note: as with all bytes fields, proto buffers use a
@@ -683,15 +633,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
@@ -699,7 +646,6 @@ public boolean hasContent() {
      * 
* * bytes content = 1; - * * @return The content. */ public com.google.protobuf.ByteString getContent() { @@ -709,8 +655,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
@@ -718,22 +662,19 @@ public com.google.protobuf.ByteString getContent() {
      * 
* * bytes content = 1; - * * @param value The content to set. * @return This builder for chaining. */ public Builder setContent(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - audioSourceCase_ = 1; + throw new NullPointerException(); + } + audioSourceCase_ = 1; audioSource_ = value; onChanged(); return this; } /** - * - * *
      * The audio data bytes encoded as specified in
      * `RecognitionConfig`. Note: as with all bytes fields, proto buffers use a
@@ -741,7 +682,6 @@ public Builder setContent(com.google.protobuf.ByteString value) {
      * 
* * bytes content = 1; - * * @return This builder for chaining. */ public Builder clearContent() { @@ -754,8 +694,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).
@@ -767,7 +705,6 @@ public Builder clearContent() {
      * 
* * string uri = 2; - * * @return Whether the uri field is set. */ @java.lang.Override @@ -775,8 +712,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).
@@ -788,7 +723,6 @@ public boolean hasUri() {
      * 
* * string uri = 2; - * * @return The uri. */ @java.lang.Override @@ -798,7 +732,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; @@ -809,8 +744,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).
@@ -822,18 +755,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; } @@ -843,8 +777,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).
@@ -856,22 +788,20 @@ public com.google.protobuf.ByteString getUriBytes() {
      * 
* * string uri = 2; - * * @param value The uri to set. * @return This builder for chaining. */ - public Builder setUri(java.lang.String value) { + public Builder setUri( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - audioSourceCase_ = 2; + throw new NullPointerException(); + } + audioSourceCase_ = 2; audioSource_ = value; onChanged(); return this; } /** - * - * *
      * URI that points to a file that contains audio data bytes as specified in
      * `RecognitionConfig`. The file must not be compressed (for example, gzip).
@@ -883,7 +813,6 @@ public Builder setUri(java.lang.String value) {
      * 
* * string uri = 2; - * * @return This builder for chaining. */ public Builder clearUri() { @@ -895,8 +824,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).
@@ -908,23 +835,23 @@ public Builder clearUri() {
      * 
* * string uri = 2; - * * @param value The bytes for uri to set. * @return This builder for chaining. */ - public Builder setUriBytes(com.google.protobuf.ByteString value) { + public Builder setUriBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); audioSourceCase_ = 2; audioSource_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -934,12 +861,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(); } @@ -948,16 +875,16 @@ public static com.google.cloud.speech.v1.RecognitionAudio getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RecognitionAudio parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new RecognitionAudio(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RecognitionAudio parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RecognitionAudio(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -972,4 +899,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1.RecognitionAudio getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionAudioOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionAudioOrBuilder.java similarity index 79% rename from proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionAudioOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionAudioOrBuilder.java index b8330aa93..4347fb6f5 100644 --- a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionAudioOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionAudioOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1/cloud_speech.proto package com.google.cloud.speech.v1; -public interface RecognitionAudioOrBuilder - extends +public interface RecognitionAudioOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1.RecognitionAudio) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The audio data bytes encoded as specified in
    * `RecognitionConfig`. Note: as with all bytes fields, proto buffers use a
@@ -33,13 +15,10 @@ public interface RecognitionAudioOrBuilder
    * 
* * bytes content = 1; - * * @return Whether the content field is set. */ boolean hasContent(); /** - * - * *
    * The audio data bytes encoded as specified in
    * `RecognitionConfig`. Note: as with all bytes fields, proto buffers use a
@@ -47,14 +26,11 @@ public interface RecognitionAudioOrBuilder
    * 
* * bytes content = 1; - * * @return The content. */ com.google.protobuf.ByteString getContent(); /** - * - * *
    * URI that points to a file that contains audio data bytes as specified in
    * `RecognitionConfig`. The file must not be compressed (for example, gzip).
@@ -66,13 +42,10 @@ public interface RecognitionAudioOrBuilder
    * 
* * string uri = 2; - * * @return Whether the uri field is set. */ boolean hasUri(); /** - * - * *
    * URI that points to a file that contains audio data bytes as specified in
    * `RecognitionConfig`. The file must not be compressed (for example, gzip).
@@ -84,13 +57,10 @@ public interface RecognitionAudioOrBuilder
    * 
* * string uri = 2; - * * @return The uri. */ java.lang.String getUri(); /** - * - * *
    * URI that points to a file that contains audio data bytes as specified in
    * `RecognitionConfig`. The file must not be compressed (for example, gzip).
@@ -102,10 +72,10 @@ public interface RecognitionAudioOrBuilder
    * 
* * string uri = 2; - * * @return The bytes for uri. */ - com.google.protobuf.ByteString getUriBytes(); + com.google.protobuf.ByteString + getUriBytes(); public com.google.cloud.speech.v1.RecognitionAudio.AudioSourceCase getAudioSourceCase(); } diff --git a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionConfig.java b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionConfig.java similarity index 83% rename from proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionConfig.java rename to owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionConfig.java index 7ebbfe32e..86098757b 100644 --- a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionConfig.java +++ b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionConfig.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1/cloud_speech.proto package com.google.cloud.speech.v1; /** - * - * *
  * Provides information to the recognizer that specifies how to process the
  * request.
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.cloud.speech.v1.RecognitionConfig}
  */
-public final class RecognitionConfig extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class RecognitionConfig extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.speech.v1.RecognitionConfig)
     RecognitionConfigOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use RecognitionConfig.newBuilder() to construct.
   private RecognitionConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private RecognitionConfig() {
     encoding_ = 0;
     languageCode_ = "";
@@ -48,15 +30,16 @@ private RecognitionConfig() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new RecognitionConfig();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private RecognitionConfig(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -76,186 +59,166 @@ private RecognitionConfig(
           case 0:
             done = true;
             break;
-          case 8:
-            {
-              int rawValue = input.readEnum();
+          case 8: {
+            int rawValue = input.readEnum();
 
-              encoding_ = rawValue;
-              break;
-            }
-          case 16:
-            {
-              sampleRateHertz_ = input.readInt32();
-              break;
-            }
-          case 26:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            encoding_ = rawValue;
+            break;
+          }
+          case 16: {
 
-              languageCode_ = s;
-              break;
-            }
-          case 32:
-            {
-              maxAlternatives_ = input.readInt32();
-              break;
-            }
-          case 40:
-            {
-              profanityFilter_ = input.readBool();
-              break;
-            }
-          case 50:
-            {
-              if (!((mutable_bitField0_ & 0x00000002) != 0)) {
-                speechContexts_ =
-                    new java.util.ArrayList();
-                mutable_bitField0_ |= 0x00000002;
-              }
-              speechContexts_.add(
-                  input.readMessage(
-                      com.google.cloud.speech.v1.SpeechContext.parser(), extensionRegistry));
-              break;
+            sampleRateHertz_ = input.readInt32();
+            break;
+          }
+          case 26: {
+            java.lang.String s = input.readStringRequireUtf8();
+
+            languageCode_ = s;
+            break;
+          }
+          case 32: {
+
+            maxAlternatives_ = input.readInt32();
+            break;
+          }
+          case 40: {
+
+            profanityFilter_ = input.readBool();
+            break;
+          }
+          case 50: {
+            if (!((mutable_bitField0_ & 0x00000002) != 0)) {
+              speechContexts_ = new java.util.ArrayList();
+              mutable_bitField0_ |= 0x00000002;
             }
-          case 56:
-            {
-              audioChannelCount_ = input.readInt32();
-              break;
+            speechContexts_.add(
+                input.readMessage(com.google.cloud.speech.v1.SpeechContext.parser(), extensionRegistry));
+            break;
+          }
+          case 56: {
+
+            audioChannelCount_ = input.readInt32();
+            break;
+          }
+          case 64: {
+
+            enableWordTimeOffsets_ = input.readBool();
+            break;
+          }
+          case 74: {
+            com.google.cloud.speech.v1.RecognitionMetadata.Builder subBuilder = null;
+            if (metadata_ != null) {
+              subBuilder = metadata_.toBuilder();
             }
-          case 64:
-            {
-              enableWordTimeOffsets_ = input.readBool();
-              break;
+            metadata_ = input.readMessage(com.google.cloud.speech.v1.RecognitionMetadata.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(metadata_);
+              metadata_ = subBuilder.buildPartial();
             }
-          case 74:
-            {
-              com.google.cloud.speech.v1.RecognitionMetadata.Builder subBuilder = null;
-              if (metadata_ != null) {
-                subBuilder = metadata_.toBuilder();
-              }
-              metadata_ =
-                  input.readMessage(
-                      com.google.cloud.speech.v1.RecognitionMetadata.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(metadata_);
-                metadata_ = subBuilder.buildPartial();
-              }
-
-              break;
+
+            break;
+          }
+          case 88: {
+
+            enableAutomaticPunctuation_ = input.readBool();
+            break;
+          }
+          case 96: {
+
+            enableSeparateRecognitionPerChannel_ = input.readBool();
+            break;
+          }
+          case 106: {
+            java.lang.String s = input.readStringRequireUtf8();
+
+            model_ = s;
+            break;
+          }
+          case 112: {
+
+            useEnhanced_ = input.readBool();
+            break;
+          }
+          case 120: {
+
+            enableWordConfidence_ = input.readBool();
+            break;
+          }
+          case 146: {
+            java.lang.String s = input.readStringRequireUtf8();
+            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+              alternativeLanguageCodes_ = new com.google.protobuf.LazyStringArrayList();
+              mutable_bitField0_ |= 0x00000001;
             }
-          case 88:
-            {
-              enableAutomaticPunctuation_ = input.readBool();
-              break;
+            alternativeLanguageCodes_.add(s);
+            break;
+          }
+          case 154: {
+            com.google.cloud.speech.v1.SpeakerDiarizationConfig.Builder subBuilder = null;
+            if (diarizationConfig_ != null) {
+              subBuilder = diarizationConfig_.toBuilder();
             }
-          case 96:
-            {
-              enableSeparateRecognitionPerChannel_ = input.readBool();
-              break;
+            diarizationConfig_ = input.readMessage(com.google.cloud.speech.v1.SpeakerDiarizationConfig.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(diarizationConfig_);
+              diarizationConfig_ = subBuilder.buildPartial();
             }
-          case 106:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
 
-              model_ = s;
-              break;
-            }
-          case 112:
-            {
-              useEnhanced_ = input.readBool();
-              break;
-            }
-          case 120:
-            {
-              enableWordConfidence_ = input.readBool();
-              break;
+            break;
+          }
+          case 162: {
+            com.google.cloud.speech.v1.SpeechAdaptation.Builder subBuilder = null;
+            if (adaptation_ != null) {
+              subBuilder = adaptation_.toBuilder();
             }
-          case 146:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
-              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                alternativeLanguageCodes_ = new com.google.protobuf.LazyStringArrayList();
-                mutable_bitField0_ |= 0x00000001;
-              }
-              alternativeLanguageCodes_.add(s);
-              break;
+            adaptation_ = input.readMessage(com.google.cloud.speech.v1.SpeechAdaptation.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(adaptation_);
+              adaptation_ = subBuilder.buildPartial();
             }
-          case 154:
-            {
-              com.google.cloud.speech.v1.SpeakerDiarizationConfig.Builder subBuilder = null;
-              if (diarizationConfig_ != null) {
-                subBuilder = diarizationConfig_.toBuilder();
-              }
-              diarizationConfig_ =
-                  input.readMessage(
-                      com.google.cloud.speech.v1.SpeakerDiarizationConfig.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(diarizationConfig_);
-                diarizationConfig_ = subBuilder.buildPartial();
-              }
-
-              break;
+
+            break;
+          }
+          case 178: {
+            com.google.protobuf.BoolValue.Builder subBuilder = null;
+            if (enableSpokenPunctuation_ != null) {
+              subBuilder = enableSpokenPunctuation_.toBuilder();
             }
-          case 162:
-            {
-              com.google.cloud.speech.v1.SpeechAdaptation.Builder subBuilder = null;
-              if (adaptation_ != null) {
-                subBuilder = adaptation_.toBuilder();
-              }
-              adaptation_ =
-                  input.readMessage(
-                      com.google.cloud.speech.v1.SpeechAdaptation.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(adaptation_);
-                adaptation_ = subBuilder.buildPartial();
-              }
-
-              break;
+            enableSpokenPunctuation_ = input.readMessage(com.google.protobuf.BoolValue.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(enableSpokenPunctuation_);
+              enableSpokenPunctuation_ = subBuilder.buildPartial();
             }
-          case 178:
-            {
-              com.google.protobuf.BoolValue.Builder subBuilder = null;
-              if (enableSpokenPunctuation_ != null) {
-                subBuilder = enableSpokenPunctuation_.toBuilder();
-              }
-              enableSpokenPunctuation_ =
-                  input.readMessage(com.google.protobuf.BoolValue.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(enableSpokenPunctuation_);
-                enableSpokenPunctuation_ = subBuilder.buildPartial();
-              }
-
-              break;
+
+            break;
+          }
+          case 186: {
+            com.google.protobuf.BoolValue.Builder subBuilder = null;
+            if (enableSpokenEmojis_ != null) {
+              subBuilder = enableSpokenEmojis_.toBuilder();
             }
-          case 186:
-            {
-              com.google.protobuf.BoolValue.Builder subBuilder = null;
-              if (enableSpokenEmojis_ != null) {
-                subBuilder = enableSpokenEmojis_.toBuilder();
-              }
-              enableSpokenEmojis_ =
-                  input.readMessage(com.google.protobuf.BoolValue.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(enableSpokenEmojis_);
-                enableSpokenEmojis_ = subBuilder.buildPartial();
-              }
-
-              break;
+            enableSpokenEmojis_ = input.readMessage(com.google.protobuf.BoolValue.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(enableSpokenEmojis_);
+              enableSpokenEmojis_ = subBuilder.buildPartial();
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000002) != 0)) {
         speechContexts_ = java.util.Collections.unmodifiableList(speechContexts_);
@@ -267,25 +230,20 @@ private RecognitionConfig(
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.speech.v1.SpeechProto
-        .internal_static_google_cloud_speech_v1_RecognitionConfig_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_RecognitionConfig_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v1.SpeechProto
-        .internal_static_google_cloud_speech_v1_RecognitionConfig_fieldAccessorTable
+    return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_RecognitionConfig_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v1.RecognitionConfig.class,
-            com.google.cloud.speech.v1.RecognitionConfig.Builder.class);
+            com.google.cloud.speech.v1.RecognitionConfig.class, com.google.cloud.speech.v1.RecognitionConfig.Builder.class);
   }
 
   /**
-   *
-   *
    * 
    * The encoding of the audio data sent in the request.
    * All encodings support only 1 channel (mono) audio, unless the
@@ -311,10 +269,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.
      * 
@@ -323,8 +280,6 @@ public enum AudioEncoding implements com.google.protobuf.ProtocolMessageEnum { */ ENCODING_UNSPECIFIED(0), /** - * - * *
      * Uncompressed 16-bit signed little-endian samples (Linear PCM).
      * 
@@ -333,8 +288,6 @@ public enum AudioEncoding implements com.google.protobuf.ProtocolMessageEnum { */ LINEAR16(1), /** - * - * *
      * `FLAC` (Free Lossless Audio
      * Codec) is the recommended encoding because it is
@@ -348,8 +301,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.
      * 
@@ -358,8 +309,6 @@ public enum AudioEncoding implements com.google.protobuf.ProtocolMessageEnum { */ MULAW(3), /** - * - * *
      * Adaptive Multi-Rate Narrowband codec. `sample_rate_hertz` must be 8000.
      * 
@@ -368,8 +317,6 @@ public enum AudioEncoding implements com.google.protobuf.ProtocolMessageEnum { */ AMR(4), /** - * - * *
      * Adaptive Multi-Rate Wideband codec. `sample_rate_hertz` must be 16000.
      * 
@@ -378,8 +325,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)).
@@ -390,8 +335,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
@@ -412,8 +355,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
@@ -427,8 +368,6 @@ public enum AudioEncoding implements com.google.protobuf.ProtocolMessageEnum {
     ;
 
     /**
-     *
-     *
      * 
      * Not specified.
      * 
@@ -437,8 +376,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).
      * 
@@ -447,8 +384,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
@@ -462,8 +397,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.
      * 
@@ -472,8 +405,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.
      * 
@@ -482,8 +413,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.
      * 
@@ -492,8 +421,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)).
@@ -504,8 +431,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
@@ -526,8 +451,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
@@ -538,6 +461,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(
@@ -562,61 +486,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;
@@ -636,8 +554,6 @@ private AudioEncoding(int value) {
   public static final int ENCODING_FIELD_NUMBER = 1;
   private int encoding_;
   /**
-   *
-   *
    * 
    * Encoding of audio data sent in all `RecognitionAudio` messages.
    * This field is optional for `FLAC` and `WAV` audio files and required
@@ -645,16 +561,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
@@ -662,24 +574,17 @@ public int getEncodingValue() {
    * 
* * .google.cloud.speech.v1.RecognitionConfig.AudioEncoding encoding = 1; - * * @return The encoding. */ - @java.lang.Override - public com.google.cloud.speech.v1.RecognitionConfig.AudioEncoding getEncoding() { + @java.lang.Override public com.google.cloud.speech.v1.RecognitionConfig.AudioEncoding getEncoding() { @SuppressWarnings("deprecation") - com.google.cloud.speech.v1.RecognitionConfig.AudioEncoding result = - com.google.cloud.speech.v1.RecognitionConfig.AudioEncoding.valueOf(encoding_); - return result == null - ? com.google.cloud.speech.v1.RecognitionConfig.AudioEncoding.UNRECOGNIZED - : result; + com.google.cloud.speech.v1.RecognitionConfig.AudioEncoding result = com.google.cloud.speech.v1.RecognitionConfig.AudioEncoding.valueOf(encoding_); + return result == null ? com.google.cloud.speech.v1.RecognitionConfig.AudioEncoding.UNRECOGNIZED : result; } public static final int SAMPLE_RATE_HERTZ_FIELD_NUMBER = 2; private int sampleRateHertz_; /** - * - * *
    * Sample rate in Hertz of the audio data sent in all
    * `RecognitionAudio` messages. Valid values are: 8000-48000.
@@ -691,7 +596,6 @@ public com.google.cloud.speech.v1.RecognitionConfig.AudioEncoding getEncoding()
    * 
* * int32 sample_rate_hertz = 2; - * * @return The sampleRateHertz. */ @java.lang.Override @@ -702,8 +606,6 @@ public int getSampleRateHertz() { public static final int AUDIO_CHANNEL_COUNT_FIELD_NUMBER = 7; private int audioChannelCount_; /** - * - * *
    * The number of channels in the input audio data.
    * ONLY set this for MULTI-CHANNEL recognition.
@@ -717,7 +619,6 @@ public int getSampleRateHertz() {
    * 
* * int32 audio_channel_count = 7; - * * @return The audioChannelCount. */ @java.lang.Override @@ -728,8 +629,6 @@ public int getAudioChannelCount() { public static final int ENABLE_SEPARATE_RECOGNITION_PER_CHANNEL_FIELD_NUMBER = 12; private boolean enableSeparateRecognitionPerChannel_; /** - * - * *
    * This needs to be set to `true` explicitly and `audio_channel_count` > 1
    * to get each channel recognized separately. The recognition result will
@@ -740,7 +639,6 @@ public int getAudioChannelCount() {
    * 
* * bool enable_separate_recognition_per_channel = 12; - * * @return The enableSeparateRecognitionPerChannel. */ @java.lang.Override @@ -751,8 +649,6 @@ public boolean getEnableSeparateRecognitionPerChannel() { public static final int LANGUAGE_CODE_FIELD_NUMBER = 3; private volatile java.lang.Object languageCode_; /** - * - * *
    * Required. The language of the supplied audio as a
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.
@@ -763,7 +659,6 @@ public boolean getEnableSeparateRecognitionPerChannel() {
    * 
* * string language_code = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The languageCode. */ @java.lang.Override @@ -772,15 +667,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.
@@ -791,15 +685,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 { @@ -810,8 +705,6 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() { public static final int ALTERNATIVE_LANGUAGE_CODES_FIELD_NUMBER = 18; private com.google.protobuf.LazyStringList alternativeLanguageCodes_; /** - * - * *
    * A list of up to 3 additional
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags,
@@ -828,15 +721,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,
@@ -853,15 +744,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,
@@ -878,7 +766,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. */ @@ -886,8 +773,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,
@@ -904,19 +789,17 @@ public java.lang.String getAlternativeLanguageCodes(int index) {
    * 
* * repeated string alternative_language_codes = 18; - * * @param index The index of the value to return. * @return The bytes of the alternativeLanguageCodes at the given index. */ - public com.google.protobuf.ByteString getAlternativeLanguageCodesBytes(int index) { + public com.google.protobuf.ByteString + getAlternativeLanguageCodesBytes(int index) { return alternativeLanguageCodes_.getByteString(index); } public static final int MAX_ALTERNATIVES_FIELD_NUMBER = 4; private int maxAlternatives_; /** - * - * *
    * Maximum number of recognition hypotheses to be returned.
    * Specifically, the maximum number of `SpeechRecognitionAlternative` messages
@@ -927,7 +810,6 @@ public com.google.protobuf.ByteString getAlternativeLanguageCodesBytes(int index
    * 
* * int32 max_alternatives = 4; - * * @return The maxAlternatives. */ @java.lang.Override @@ -938,8 +820,6 @@ public int getMaxAlternatives() { public static final int PROFANITY_FILTER_FIELD_NUMBER = 5; private boolean profanityFilter_; /** - * - * *
    * If set to `true`, the server will attempt to filter out
    * profanities, replacing all but the initial character in each filtered word
@@ -948,7 +828,6 @@ public int getMaxAlternatives() {
    * 
* * bool profanity_filter = 5; - * * @return The profanityFilter. */ @java.lang.Override @@ -959,8 +838,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
@@ -970,7 +847,6 @@ public boolean getProfanityFilter() {
    * 
* * .google.cloud.speech.v1.SpeechAdaptation adaptation = 20; - * * @return Whether the adaptation field is set. */ @java.lang.Override @@ -978,8 +854,6 @@ public boolean hasAdaptation() { return adaptation_ != null; } /** - * - * *
    * Speech adaptation configuration improves the accuracy of speech
    * recognition. For more information, see the [speech
@@ -989,18 +863,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
@@ -1019,8 +888,6 @@ public com.google.cloud.speech.v1.SpeechAdaptationOrBuilder getAdaptationOrBuild
   public static final int SPEECH_CONTEXTS_FIELD_NUMBER = 6;
   private java.util.List speechContexts_;
   /**
-   *
-   *
    * 
    * Array of [SpeechContext][google.cloud.speech.v1.SpeechContext].
    * A means to provide context to assist the speech recognition. For more
@@ -1036,8 +903,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
@@ -1049,13 +914,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
@@ -1071,8 +934,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
@@ -1088,8 +949,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
@@ -1101,15 +960,14 @@ public com.google.cloud.speech.v1.SpeechContext getSpeechContexts(int index) {
    * repeated .google.cloud.speech.v1.SpeechContext speech_contexts = 6;
    */
   @java.lang.Override
-  public com.google.cloud.speech.v1.SpeechContextOrBuilder getSpeechContextsOrBuilder(int index) {
+  public com.google.cloud.speech.v1.SpeechContextOrBuilder getSpeechContextsOrBuilder(
+      int index) {
     return speechContexts_.get(index);
   }
 
   public static final int ENABLE_WORD_TIME_OFFSETS_FIELD_NUMBER = 8;
   private boolean enableWordTimeOffsets_;
   /**
-   *
-   *
    * 
    * If `true`, the top result includes a list of words and
    * the start and end time offsets (timestamps) for those words. If
@@ -1118,7 +976,6 @@ public com.google.cloud.speech.v1.SpeechContextOrBuilder getSpeechContextsOrBuil
    * 
* * bool enable_word_time_offsets = 8; - * * @return The enableWordTimeOffsets. */ @java.lang.Override @@ -1129,8 +986,6 @@ public boolean getEnableWordTimeOffsets() { public static final int ENABLE_WORD_CONFIDENCE_FIELD_NUMBER = 15; private boolean enableWordConfidence_; /** - * - * *
    * If `true`, the top result includes a list of words and the
    * confidence for those words. If `false`, no word-level confidence
@@ -1138,7 +993,6 @@ public boolean getEnableWordTimeOffsets() {
    * 
* * bool enable_word_confidence = 15; - * * @return The enableWordConfidence. */ @java.lang.Override @@ -1149,8 +1003,6 @@ public boolean getEnableWordConfidence() { public static final int ENABLE_AUTOMATIC_PUNCTUATION_FIELD_NUMBER = 11; private boolean enableAutomaticPunctuation_; /** - * - * *
    * If 'true', adds punctuation to recognition result hypotheses.
    * This feature is only available in select languages. Setting this for
@@ -1159,7 +1011,6 @@ public boolean getEnableWordConfidence() {
    * 
* * bool enable_automatic_punctuation = 11; - * * @return The enableAutomaticPunctuation. */ @java.lang.Override @@ -1170,8 +1021,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
@@ -1183,7 +1032,6 @@ public boolean getEnableAutomaticPunctuation() {
    * 
* * .google.protobuf.BoolValue enable_spoken_punctuation = 22; - * * @return Whether the enableSpokenPunctuation field is set. */ @java.lang.Override @@ -1191,8 +1039,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
@@ -1204,18 +1050,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
@@ -1236,8 +1077,6 @@ public com.google.protobuf.BoolValueOrBuilder getEnableSpokenPunctuationOrBuilde
   public static final int ENABLE_SPOKEN_EMOJIS_FIELD_NUMBER = 23;
   private com.google.protobuf.BoolValue enableSpokenEmojis_;
   /**
-   *
-   *
    * 
    * The spoken emoji behavior for the call
    * If not set, uses default behavior based on model of choice
@@ -1247,7 +1086,6 @@ public com.google.protobuf.BoolValueOrBuilder getEnableSpokenPunctuationOrBuilde
    * 
* * .google.protobuf.BoolValue enable_spoken_emojis = 23; - * * @return Whether the enableSpokenEmojis field is set. */ @java.lang.Override @@ -1255,8 +1093,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
@@ -1266,18 +1102,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
@@ -1296,8 +1127,6 @@ public com.google.protobuf.BoolValueOrBuilder getEnableSpokenEmojisOrBuilder() {
   public static final int DIARIZATION_CONFIG_FIELD_NUMBER = 19;
   private com.google.cloud.speech.v1.SpeakerDiarizationConfig diarizationConfig_;
   /**
-   *
-   *
    * 
    * Config to enable speaker diarization and set additional
    * parameters to make diarization better suited for your application.
@@ -1310,7 +1139,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 @@ -1318,8 +1146,6 @@ public boolean hasDiarizationConfig() { return diarizationConfig_ != null; } /** - * - * *
    * Config to enable speaker diarization and set additional
    * parameters to make diarization better suited for your application.
@@ -1332,18 +1158,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.
@@ -1358,22 +1179,18 @@ public com.google.cloud.speech.v1.SpeakerDiarizationConfig getDiarizationConfig(
    * .google.cloud.speech.v1.SpeakerDiarizationConfig diarization_config = 19;
    */
   @java.lang.Override
-  public com.google.cloud.speech.v1.SpeakerDiarizationConfigOrBuilder
-      getDiarizationConfigOrBuilder() {
+  public com.google.cloud.speech.v1.SpeakerDiarizationConfigOrBuilder getDiarizationConfigOrBuilder() {
     return getDiarizationConfig();
   }
 
   public static final int METADATA_FIELD_NUMBER = 9;
   private com.google.cloud.speech.v1.RecognitionMetadata metadata_;
   /**
-   *
-   *
    * 
    * Metadata regarding this request.
    * 
* * .google.cloud.speech.v1.RecognitionMetadata metadata = 9; - * * @return Whether the metadata field is set. */ @java.lang.Override @@ -1381,25 +1198,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.
    * 
@@ -1414,8 +1224,6 @@ public com.google.cloud.speech.v1.RecognitionMetadataOrBuilder getMetadataOrBuil public static final int MODEL_FIELD_NUMBER = 13; private volatile java.lang.Object model_; /** - * - * *
    * Which model to select for the given request. Select the model
    * best suited to your domain to get best results. If a model is not
@@ -1452,7 +1260,6 @@ public com.google.cloud.speech.v1.RecognitionMetadataOrBuilder getMetadataOrBuil
    * 
* * string model = 13; - * * @return The model. */ @java.lang.Override @@ -1461,15 +1268,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
@@ -1506,15 +1312,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 { @@ -1525,8 +1332,6 @@ public com.google.protobuf.ByteString getModelBytes() { public static final int USE_ENHANCED_FIELD_NUMBER = 14; private boolean useEnhanced_; /** - * - * *
    * Set to true to use an enhanced model for speech recognition.
    * If `use_enhanced` is set to true and the `model` field is not set, then
@@ -1538,7 +1343,6 @@ public com.google.protobuf.ByteString getModelBytes() {
    * 
* * bool use_enhanced = 14; - * * @return The useEnhanced. */ @java.lang.Override @@ -1547,7 +1351,6 @@ public boolean getUseEnhanced() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1559,10 +1362,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) { @@ -1605,8 +1407,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()); @@ -1629,52 +1430,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; @@ -1685,18 +1493,20 @@ public int getSerializedSize() { size += 2 * getAlternativeLanguageCodesList().size(); } if (diarizationConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(19, getDiarizationConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(19, getDiarizationConfig()); } if (adaptation_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(20, getAdaptation()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(20, getAdaptation()); } if (enableSpokenPunctuation_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 22, getEnableSpokenPunctuation()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(22, getEnableSpokenPunctuation()); } if (enableSpokenEmojis_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(23, getEnableSpokenEmojis()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(23, getEnableSpokenEmojis()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1706,50 +1516,65 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1.RecognitionConfig)) { return super.equals(obj); } - com.google.cloud.speech.v1.RecognitionConfig other = - (com.google.cloud.speech.v1.RecognitionConfig) obj; + com.google.cloud.speech.v1.RecognitionConfig other = (com.google.cloud.speech.v1.RecognitionConfig) obj; if (encoding_ != other.encoding_) return false; - if (getSampleRateHertz() != other.getSampleRateHertz()) return false; - if (getAudioChannelCount() != other.getAudioChannelCount()) return false; - if (getEnableSeparateRecognitionPerChannel() != other.getEnableSeparateRecognitionPerChannel()) - return false; - if (!getLanguageCode().equals(other.getLanguageCode())) return false; - if (!getAlternativeLanguageCodesList().equals(other.getAlternativeLanguageCodesList())) - return false; - if (getMaxAlternatives() != other.getMaxAlternatives()) return false; - if (getProfanityFilter() != other.getProfanityFilter()) return false; + if (getSampleRateHertz() + != other.getSampleRateHertz()) return false; + if (getAudioChannelCount() + != other.getAudioChannelCount()) return false; + if (getEnableSeparateRecognitionPerChannel() + != other.getEnableSeparateRecognitionPerChannel()) return false; + if (!getLanguageCode() + .equals(other.getLanguageCode())) return false; + if (!getAlternativeLanguageCodesList() + .equals(other.getAlternativeLanguageCodesList())) return false; + if (getMaxAlternatives() + != other.getMaxAlternatives()) return false; + if (getProfanityFilter() + != other.getProfanityFilter()) return false; if (hasAdaptation() != other.hasAdaptation()) return false; if (hasAdaptation()) { - if (!getAdaptation().equals(other.getAdaptation())) return false; - } - if (!getSpeechContextsList().equals(other.getSpeechContextsList())) return false; - if (getEnableWordTimeOffsets() != other.getEnableWordTimeOffsets()) return false; - if (getEnableWordConfidence() != other.getEnableWordConfidence()) return false; - if (getEnableAutomaticPunctuation() != other.getEnableAutomaticPunctuation()) return false; + if (!getAdaptation() + .equals(other.getAdaptation())) return false; + } + if (!getSpeechContextsList() + .equals(other.getSpeechContextsList())) return false; + if (getEnableWordTimeOffsets() + != other.getEnableWordTimeOffsets()) return false; + if (getEnableWordConfidence() + != other.getEnableWordConfidence()) return false; + if (getEnableAutomaticPunctuation() + != other.getEnableAutomaticPunctuation()) return false; if (hasEnableSpokenPunctuation() != other.hasEnableSpokenPunctuation()) return false; if (hasEnableSpokenPunctuation()) { - if (!getEnableSpokenPunctuation().equals(other.getEnableSpokenPunctuation())) return false; + if (!getEnableSpokenPunctuation() + .equals(other.getEnableSpokenPunctuation())) return false; } if (hasEnableSpokenEmojis() != other.hasEnableSpokenEmojis()) return false; if (hasEnableSpokenEmojis()) { - if (!getEnableSpokenEmojis().equals(other.getEnableSpokenEmojis())) return false; + if (!getEnableSpokenEmojis() + .equals(other.getEnableSpokenEmojis())) return false; } if (hasDiarizationConfig() != other.hasDiarizationConfig()) return false; if (hasDiarizationConfig()) { - if (!getDiarizationConfig().equals(other.getDiarizationConfig())) return false; + if (!getDiarizationConfig() + .equals(other.getDiarizationConfig())) return false; } if (hasMetadata() != other.hasMetadata()) return false; if (hasMetadata()) { - if (!getMetadata().equals(other.getMetadata())) return false; + if (!getMetadata() + .equals(other.getMetadata())) return false; } - if (!getModel().equals(other.getModel())) return false; - if (getUseEnhanced() != other.getUseEnhanced()) return false; + if (!getModel() + .equals(other.getModel())) return false; + if (getUseEnhanced() + != other.getUseEnhanced()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1768,9 +1593,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) { @@ -1780,7 +1604,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(); @@ -1790,11 +1615,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(); @@ -1814,110 +1642,104 @@ public int hashCode() { hash = (37 * hash) + MODEL_FIELD_NUMBER; hash = (53 * hash) + getModel().hashCode(); hash = (37 * hash) + USE_ENHANCED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getUseEnhanced()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getUseEnhanced()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.speech.v1.RecognitionConfig parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.speech.v1.RecognitionConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1.RecognitionConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1.RecognitionConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1.RecognitionConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1.RecognitionConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1.RecognitionConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1.RecognitionConfig parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1.RecognitionConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.speech.v1.RecognitionConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.speech.v1.RecognitionConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1.RecognitionConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1.RecognitionConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1.RecognitionConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.speech.v1.RecognitionConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Provides information to the recognizer that specifies how to process the
    * request.
@@ -1925,23 +1747,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.speech.v1.RecognitionConfig}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1.RecognitionConfig)
       com.google.cloud.speech.v1.RecognitionConfigOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.speech.v1.SpeechProto
-          .internal_static_google_cloud_speech_v1_RecognitionConfig_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_RecognitionConfig_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v1.SpeechProto
-          .internal_static_google_cloud_speech_v1_RecognitionConfig_fieldAccessorTable
+      return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_RecognitionConfig_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v1.RecognitionConfig.class,
-              com.google.cloud.speech.v1.RecognitionConfig.Builder.class);
+              com.google.cloud.speech.v1.RecognitionConfig.class, com.google.cloud.speech.v1.RecognitionConfig.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v1.RecognitionConfig.newBuilder()
@@ -1949,17 +1769,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
         getSpeechContextsFieldBuilder();
       }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -2029,9 +1849,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
@@ -2050,8 +1870,7 @@ public com.google.cloud.speech.v1.RecognitionConfig build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v1.RecognitionConfig buildPartial() {
-      com.google.cloud.speech.v1.RecognitionConfig result =
-          new com.google.cloud.speech.v1.RecognitionConfig(this);
+      com.google.cloud.speech.v1.RecognitionConfig result = new com.google.cloud.speech.v1.RecognitionConfig(this);
       int from_bitField0_ = bitField0_;
       result.encoding_ = encoding_;
       result.sampleRateHertz_ = sampleRateHertz_;
@@ -2112,39 +1931,38 @@ public com.google.cloud.speech.v1.RecognitionConfig buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.speech.v1.RecognitionConfig) {
-        return mergeFrom((com.google.cloud.speech.v1.RecognitionConfig) other);
+        return mergeFrom((com.google.cloud.speech.v1.RecognitionConfig)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -2206,10 +2024,9 @@ public Builder mergeFrom(com.google.cloud.speech.v1.RecognitionConfig other) {
             speechContextsBuilder_ = null;
             speechContexts_ = other.speechContexts_;
             bitField0_ = (bitField0_ & ~0x00000002);
-            speechContextsBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getSpeechContextsFieldBuilder()
-                    : null;
+            speechContextsBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getSpeechContextsFieldBuilder() : null;
           } else {
             speechContextsBuilder_.addAllMessages(other.speechContexts_);
           }
@@ -2271,13 +2088,10 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int bitField0_;
 
     private int encoding_ = 0;
     /**
-     *
-     *
      * 
      * Encoding of audio data sent in all `RecognitionAudio` messages.
      * This field is optional for `FLAC` and `WAV` audio files and required
@@ -2285,16 +2099,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
@@ -2302,19 +2112,16 @@ public int getEncodingValue() {
      * 
* * .google.cloud.speech.v1.RecognitionConfig.AudioEncoding encoding = 1; - * * @param value The enum numeric value on the wire for encoding to set. * @return This builder for chaining. */ public Builder setEncodingValue(int value) { - + encoding_ = value; onChanged(); return this; } /** - * - * *
      * Encoding of audio data sent in all `RecognitionAudio` messages.
      * This field is optional for `FLAC` and `WAV` audio files and required
@@ -2322,21 +2129,15 @@ public Builder setEncodingValue(int value) {
      * 
* * .google.cloud.speech.v1.RecognitionConfig.AudioEncoding encoding = 1; - * * @return The encoding. */ @java.lang.Override public com.google.cloud.speech.v1.RecognitionConfig.AudioEncoding getEncoding() { @SuppressWarnings("deprecation") - com.google.cloud.speech.v1.RecognitionConfig.AudioEncoding result = - com.google.cloud.speech.v1.RecognitionConfig.AudioEncoding.valueOf(encoding_); - return result == null - ? com.google.cloud.speech.v1.RecognitionConfig.AudioEncoding.UNRECOGNIZED - : result; + com.google.cloud.speech.v1.RecognitionConfig.AudioEncoding result = com.google.cloud.speech.v1.RecognitionConfig.AudioEncoding.valueOf(encoding_); + return result == null ? com.google.cloud.speech.v1.RecognitionConfig.AudioEncoding.UNRECOGNIZED : result; } /** - * - * *
      * Encoding of audio data sent in all `RecognitionAudio` messages.
      * This field is optional for `FLAC` and `WAV` audio files and required
@@ -2344,7 +2145,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. */ @@ -2352,14 +2152,12 @@ public Builder setEncoding(com.google.cloud.speech.v1.RecognitionConfig.AudioEnc if (value == null) { throw new NullPointerException(); } - + encoding_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Encoding of audio data sent in all `RecognitionAudio` messages.
      * This field is optional for `FLAC` and `WAV` audio files and required
@@ -2367,20 +2165,17 @@ public Builder setEncoding(com.google.cloud.speech.v1.RecognitionConfig.AudioEnc
      * 
* * .google.cloud.speech.v1.RecognitionConfig.AudioEncoding encoding = 1; - * * @return This builder for chaining. */ public Builder clearEncoding() { - + encoding_ = 0; onChanged(); return this; } - private int sampleRateHertz_; + private int sampleRateHertz_ ; /** - * - * *
      * Sample rate in Hertz of the audio data sent in all
      * `RecognitionAudio` messages. Valid values are: 8000-48000.
@@ -2392,7 +2187,6 @@ public Builder clearEncoding() {
      * 
* * int32 sample_rate_hertz = 2; - * * @return The sampleRateHertz. */ @java.lang.Override @@ -2400,8 +2194,6 @@ public int getSampleRateHertz() { return sampleRateHertz_; } /** - * - * *
      * Sample rate in Hertz of the audio data sent in all
      * `RecognitionAudio` messages. Valid values are: 8000-48000.
@@ -2413,19 +2205,16 @@ public int getSampleRateHertz() {
      * 
* * int32 sample_rate_hertz = 2; - * * @param value The sampleRateHertz to set. * @return This builder for chaining. */ public Builder setSampleRateHertz(int value) { - + sampleRateHertz_ = value; onChanged(); return this; } /** - * - * *
      * Sample rate in Hertz of the audio data sent in all
      * `RecognitionAudio` messages. Valid values are: 8000-48000.
@@ -2437,20 +2226,17 @@ public Builder setSampleRateHertz(int value) {
      * 
* * int32 sample_rate_hertz = 2; - * * @return This builder for chaining. */ public Builder clearSampleRateHertz() { - + sampleRateHertz_ = 0; onChanged(); return this; } - private int audioChannelCount_; + private int audioChannelCount_ ; /** - * - * *
      * The number of channels in the input audio data.
      * ONLY set this for MULTI-CHANNEL recognition.
@@ -2464,7 +2250,6 @@ public Builder clearSampleRateHertz() {
      * 
* * int32 audio_channel_count = 7; - * * @return The audioChannelCount. */ @java.lang.Override @@ -2472,8 +2257,6 @@ public int getAudioChannelCount() { return audioChannelCount_; } /** - * - * *
      * The number of channels in the input audio data.
      * ONLY set this for MULTI-CHANNEL recognition.
@@ -2487,19 +2270,16 @@ public int getAudioChannelCount() {
      * 
* * int32 audio_channel_count = 7; - * * @param value The audioChannelCount to set. * @return This builder for chaining. */ public Builder setAudioChannelCount(int value) { - + audioChannelCount_ = value; onChanged(); return this; } /** - * - * *
      * The number of channels in the input audio data.
      * ONLY set this for MULTI-CHANNEL recognition.
@@ -2513,20 +2293,17 @@ public Builder setAudioChannelCount(int value) {
      * 
* * int32 audio_channel_count = 7; - * * @return This builder for chaining. */ public Builder clearAudioChannelCount() { - + audioChannelCount_ = 0; onChanged(); return this; } - private boolean enableSeparateRecognitionPerChannel_; + private boolean enableSeparateRecognitionPerChannel_ ; /** - * - * *
      * This needs to be set to `true` explicitly and `audio_channel_count` > 1
      * to get each channel recognized separately. The recognition result will
@@ -2537,7 +2314,6 @@ public Builder clearAudioChannelCount() {
      * 
* * bool enable_separate_recognition_per_channel = 12; - * * @return The enableSeparateRecognitionPerChannel. */ @java.lang.Override @@ -2545,8 +2321,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
@@ -2557,19 +2331,16 @@ public boolean getEnableSeparateRecognitionPerChannel() {
      * 
* * bool enable_separate_recognition_per_channel = 12; - * * @param value The enableSeparateRecognitionPerChannel to set. * @return This builder for chaining. */ public Builder setEnableSeparateRecognitionPerChannel(boolean value) { - + enableSeparateRecognitionPerChannel_ = value; onChanged(); return this; } /** - * - * *
      * This needs to be set to `true` explicitly and `audio_channel_count` > 1
      * to get each channel recognized separately. The recognition result will
@@ -2580,11 +2351,10 @@ public Builder setEnableSeparateRecognitionPerChannel(boolean value) {
      * 
* * bool enable_separate_recognition_per_channel = 12; - * * @return This builder for chaining. */ public Builder clearEnableSeparateRecognitionPerChannel() { - + enableSeparateRecognitionPerChannel_ = false; onChanged(); return this; @@ -2592,8 +2362,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.
@@ -2604,13 +2372,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; @@ -2619,8 +2387,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.
@@ -2631,14 +2397,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 { @@ -2646,8 +2413,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.
@@ -2658,22 +2423,20 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() {
      * 
* * string language_code = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCode(java.lang.String value) { + public Builder setLanguageCode( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + languageCode_ = value; onChanged(); return this; } /** - * - * *
      * Required. The language of the supplied audio as a
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.
@@ -2684,18 +2447,15 @@ public Builder setLanguageCode(java.lang.String value) {
      * 
* * string language_code = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearLanguageCode() { - + languageCode_ = getDefaultInstance().getLanguageCode(); onChanged(); return this; } /** - * - * *
      * Required. The language of the supplied audio as a
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.
@@ -2706,34 +2466,29 @@ public Builder clearLanguageCode() {
      * 
* * string language_code = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { + public Builder setLanguageCodeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + languageCode_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList alternativeLanguageCodes_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList alternativeLanguageCodes_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureAlternativeLanguageCodesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - alternativeLanguageCodes_ = - new com.google.protobuf.LazyStringArrayList(alternativeLanguageCodes_); + alternativeLanguageCodes_ = new com.google.protobuf.LazyStringArrayList(alternativeLanguageCodes_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
      * A list of up to 3 additional
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags,
@@ -2750,15 +2505,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,
@@ -2775,15 +2528,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,
@@ -2800,7 +2550,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. */ @@ -2808,8 +2557,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,
@@ -2826,16 +2573,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,
@@ -2852,23 +2597,21 @@ public com.google.protobuf.ByteString getAlternativeLanguageCodesBytes(int index
      * 
* * repeated string alternative_language_codes = 18; - * * @param index The index to set the value at. * @param value The alternativeLanguageCodes to set. * @return This builder for chaining. */ - public Builder setAlternativeLanguageCodes(int index, java.lang.String value) { + public Builder setAlternativeLanguageCodes( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAlternativeLanguageCodesIsMutable(); + throw new NullPointerException(); + } + ensureAlternativeLanguageCodesIsMutable(); alternativeLanguageCodes_.set(index, value); onChanged(); return this; } /** - * - * *
      * A list of up to 3 additional
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags,
@@ -2885,22 +2628,20 @@ public Builder setAlternativeLanguageCodes(int index, java.lang.String value) {
      * 
* * repeated string alternative_language_codes = 18; - * * @param value The alternativeLanguageCodes to add. * @return This builder for chaining. */ - public Builder addAlternativeLanguageCodes(java.lang.String value) { + public Builder addAlternativeLanguageCodes( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAlternativeLanguageCodesIsMutable(); + throw new NullPointerException(); + } + ensureAlternativeLanguageCodesIsMutable(); alternativeLanguageCodes_.add(value); onChanged(); return this; } /** - * - * *
      * A list of up to 3 additional
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags,
@@ -2917,19 +2658,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,
@@ -2946,7 +2686,6 @@ public Builder addAllAlternativeLanguageCodes(java.lang.Iterable
      *
      * repeated string alternative_language_codes = 18;
-     *
      * @return This builder for chaining.
      */
     public Builder clearAlternativeLanguageCodes() {
@@ -2956,8 +2695,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,
@@ -2974,25 +2711,23 @@ public Builder clearAlternativeLanguageCodes() {
      * 
* * repeated string alternative_language_codes = 18; - * * @param value The bytes of the alternativeLanguageCodes to add. * @return This builder for chaining. */ - public Builder addAlternativeLanguageCodesBytes(com.google.protobuf.ByteString value) { + public Builder addAlternativeLanguageCodesBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureAlternativeLanguageCodesIsMutable(); alternativeLanguageCodes_.add(value); onChanged(); return this; } - private int maxAlternatives_; + private int maxAlternatives_ ; /** - * - * *
      * Maximum number of recognition hypotheses to be returned.
      * Specifically, the maximum number of `SpeechRecognitionAlternative` messages
@@ -3003,16 +2738,13 @@ public Builder addAlternativeLanguageCodesBytes(com.google.protobuf.ByteString v
      * 
* * int32 max_alternatives = 4; - * * @return The maxAlternatives. */ @java.lang.Override public int getMaxAlternatives() { return maxAlternatives_; } - /** - * - * + /** *
      * Maximum number of recognition hypotheses to be returned.
      * Specifically, the maximum number of `SpeechRecognitionAlternative` messages
@@ -3023,19 +2755,16 @@ public int getMaxAlternatives() {
      * 
* * int32 max_alternatives = 4; - * * @param value The maxAlternatives to set. * @return This builder for chaining. */ public Builder setMaxAlternatives(int value) { - + maxAlternatives_ = value; onChanged(); return this; } /** - * - * *
      * Maximum number of recognition hypotheses to be returned.
      * Specifically, the maximum number of `SpeechRecognitionAlternative` messages
@@ -3046,20 +2775,17 @@ public Builder setMaxAlternatives(int value) {
      * 
* * int32 max_alternatives = 4; - * * @return This builder for chaining. */ public Builder clearMaxAlternatives() { - + maxAlternatives_ = 0; onChanged(); return this; } - private boolean profanityFilter_; + private boolean profanityFilter_ ; /** - * - * *
      * If set to `true`, the server will attempt to filter out
      * profanities, replacing all but the initial character in each filtered word
@@ -3068,7 +2794,6 @@ public Builder clearMaxAlternatives() {
      * 
* * bool profanity_filter = 5; - * * @return The profanityFilter. */ @java.lang.Override @@ -3076,8 +2801,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
@@ -3086,19 +2809,16 @@ public boolean getProfanityFilter() {
      * 
* * bool profanity_filter = 5; - * * @param value The profanityFilter to set. * @return This builder for chaining. */ public Builder setProfanityFilter(boolean value) { - + profanityFilter_ = value; onChanged(); return this; } /** - * - * *
      * If set to `true`, the server will attempt to filter out
      * profanities, replacing all but the initial character in each filtered word
@@ -3107,11 +2827,10 @@ public Builder setProfanityFilter(boolean value) {
      * 
* * bool profanity_filter = 5; - * * @return This builder for chaining. */ public Builder clearProfanityFilter() { - + profanityFilter_ = false; onChanged(); return this; @@ -3119,13 +2838,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
@@ -3135,15 +2849,12 @@ public Builder clearProfanityFilter() {
      * 
* * .google.cloud.speech.v1.SpeechAdaptation adaptation = 20; - * * @return Whether the adaptation field is set. */ public boolean hasAdaptation() { return adaptationBuilder_ != null || adaptation_ != null; } /** - * - * *
      * Speech adaptation configuration improves the accuracy of speech
      * recognition. For more information, see the [speech
@@ -3153,21 +2864,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
@@ -3192,8 +2898,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
@@ -3216,8 +2920,6 @@ public Builder setAdaptation(
       return this;
     }
     /**
-     *
-     *
      * 
      * Speech adaptation configuration improves the accuracy of speech
      * recognition. For more information, see the [speech
@@ -3232,9 +2934,7 @@ public Builder mergeAdaptation(com.google.cloud.speech.v1.SpeechAdaptation value
       if (adaptationBuilder_ == null) {
         if (adaptation_ != null) {
           adaptation_ =
-              com.google.cloud.speech.v1.SpeechAdaptation.newBuilder(adaptation_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.cloud.speech.v1.SpeechAdaptation.newBuilder(adaptation_).mergeFrom(value).buildPartial();
         } else {
           adaptation_ = value;
         }
@@ -3246,8 +2946,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
@@ -3270,8 +2968,6 @@ public Builder clearAdaptation() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Speech adaptation configuration improves the accuracy of speech
      * recognition. For more information, see the [speech
@@ -3283,13 +2979,11 @@ public Builder clearAdaptation() {
      * .google.cloud.speech.v1.SpeechAdaptation adaptation = 20;
      */
     public com.google.cloud.speech.v1.SpeechAdaptation.Builder getAdaptationBuilder() {
-
+      
       onChanged();
       return getAdaptationFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Speech adaptation configuration improves the accuracy of speech
      * recognition. For more information, see the [speech
@@ -3304,14 +2998,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
@@ -3323,42 +3014,32 @@ public com.google.cloud.speech.v1.SpeechAdaptationOrBuilder getAdaptationOrBuild
      * .google.cloud.speech.v1.SpeechAdaptation adaptation = 20;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.speech.v1.SpeechAdaptation,
-            com.google.cloud.speech.v1.SpeechAdaptation.Builder,
-            com.google.cloud.speech.v1.SpeechAdaptationOrBuilder>
+        com.google.cloud.speech.v1.SpeechAdaptation, com.google.cloud.speech.v1.SpeechAdaptation.Builder, com.google.cloud.speech.v1.SpeechAdaptationOrBuilder> 
         getAdaptationFieldBuilder() {
       if (adaptationBuilder_ == null) {
-        adaptationBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.speech.v1.SpeechAdaptation,
-                com.google.cloud.speech.v1.SpeechAdaptation.Builder,
-                com.google.cloud.speech.v1.SpeechAdaptationOrBuilder>(
-                getAdaptation(), getParentForChildren(), isClean());
+        adaptationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.speech.v1.SpeechAdaptation, com.google.cloud.speech.v1.SpeechAdaptation.Builder, com.google.cloud.speech.v1.SpeechAdaptationOrBuilder>(
+                getAdaptation(),
+                getParentForChildren(),
+                isClean());
         adaptation_ = null;
       }
       return adaptationBuilder_;
     }
 
     private java.util.List speechContexts_ =
-        java.util.Collections.emptyList();
-
+      java.util.Collections.emptyList();
     private void ensureSpeechContextsIsMutable() {
       if (!((bitField0_ & 0x00000002) != 0)) {
-        speechContexts_ =
-            new java.util.ArrayList(speechContexts_);
+        speechContexts_ = new java.util.ArrayList(speechContexts_);
         bitField0_ |= 0x00000002;
-      }
+       }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.speech.v1.SpeechContext,
-            com.google.cloud.speech.v1.SpeechContext.Builder,
-            com.google.cloud.speech.v1.SpeechContextOrBuilder>
-        speechContextsBuilder_;
+        com.google.cloud.speech.v1.SpeechContext, com.google.cloud.speech.v1.SpeechContext.Builder, com.google.cloud.speech.v1.SpeechContextOrBuilder> speechContextsBuilder_;
 
     /**
-     *
-     *
      * 
      * Array of [SpeechContext][google.cloud.speech.v1.SpeechContext].
      * A means to provide context to assist the speech recognition. For more
@@ -3377,8 +3058,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
@@ -3397,8 +3076,6 @@ public int getSpeechContextsCount() {
       }
     }
     /**
-     *
-     *
      * 
      * Array of [SpeechContext][google.cloud.speech.v1.SpeechContext].
      * A means to provide context to assist the speech recognition. For more
@@ -3417,8 +3094,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
@@ -3429,7 +3104,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();
@@ -3443,8 +3119,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
@@ -3467,8 +3141,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
@@ -3493,8 +3165,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
@@ -3505,7 +3175,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();
@@ -3519,8 +3190,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
@@ -3543,8 +3212,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
@@ -3567,8 +3234,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
@@ -3583,7 +3248,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);
@@ -3591,8 +3257,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
@@ -3614,8 +3278,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
@@ -3637,8 +3299,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
@@ -3649,12 +3309,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
@@ -3665,16 +3324,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
@@ -3685,8 +3342,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 {
@@ -3694,8 +3351,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
@@ -3707,12 +3362,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
@@ -3723,13 +3376,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
@@ -3740,22 +3392,16 @@ public com.google.cloud.speech.v1.SpeechContext.Builder addSpeechContextsBuilder
      *
      * repeated .google.cloud.speech.v1.SpeechContext speech_contexts = 6;
      */
-    public java.util.List
-        getSpeechContextsBuilderList() {
+    public java.util.List 
+         getSpeechContextsBuilderList() {
       return getSpeechContextsFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.speech.v1.SpeechContext,
-            com.google.cloud.speech.v1.SpeechContext.Builder,
-            com.google.cloud.speech.v1.SpeechContextOrBuilder>
+        com.google.cloud.speech.v1.SpeechContext, com.google.cloud.speech.v1.SpeechContext.Builder, com.google.cloud.speech.v1.SpeechContextOrBuilder> 
         getSpeechContextsFieldBuilder() {
       if (speechContextsBuilder_ == null) {
-        speechContextsBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.cloud.speech.v1.SpeechContext,
-                com.google.cloud.speech.v1.SpeechContext.Builder,
-                com.google.cloud.speech.v1.SpeechContextOrBuilder>(
+        speechContextsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.cloud.speech.v1.SpeechContext, com.google.cloud.speech.v1.SpeechContext.Builder, com.google.cloud.speech.v1.SpeechContextOrBuilder>(
                 speechContexts_,
                 ((bitField0_ & 0x00000002) != 0),
                 getParentForChildren(),
@@ -3765,10 +3411,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
@@ -3777,7 +3421,6 @@ public com.google.cloud.speech.v1.SpeechContext.Builder addSpeechContextsBuilder
      * 
* * bool enable_word_time_offsets = 8; - * * @return The enableWordTimeOffsets. */ @java.lang.Override @@ -3785,8 +3428,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
@@ -3795,19 +3436,16 @@ public boolean getEnableWordTimeOffsets() {
      * 
* * bool enable_word_time_offsets = 8; - * * @param value The enableWordTimeOffsets to set. * @return This builder for chaining. */ public Builder setEnableWordTimeOffsets(boolean value) { - + enableWordTimeOffsets_ = value; onChanged(); return this; } /** - * - * *
      * If `true`, the top result includes a list of words and
      * the start and end time offsets (timestamps) for those words. If
@@ -3816,20 +3454,17 @@ public Builder setEnableWordTimeOffsets(boolean value) {
      * 
* * bool enable_word_time_offsets = 8; - * * @return This builder for chaining. */ public Builder clearEnableWordTimeOffsets() { - + enableWordTimeOffsets_ = false; onChanged(); return this; } - private boolean enableWordConfidence_; + private boolean enableWordConfidence_ ; /** - * - * *
      * If `true`, the top result includes a list of words and the
      * confidence for those words. If `false`, no word-level confidence
@@ -3837,7 +3472,6 @@ public Builder clearEnableWordTimeOffsets() {
      * 
* * bool enable_word_confidence = 15; - * * @return The enableWordConfidence. */ @java.lang.Override @@ -3845,8 +3479,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
@@ -3854,19 +3486,16 @@ public boolean getEnableWordConfidence() {
      * 
* * bool enable_word_confidence = 15; - * * @param value The enableWordConfidence to set. * @return This builder for chaining. */ public Builder setEnableWordConfidence(boolean value) { - + enableWordConfidence_ = value; onChanged(); return this; } /** - * - * *
      * If `true`, the top result includes a list of words and the
      * confidence for those words. If `false`, no word-level confidence
@@ -3874,20 +3503,17 @@ public Builder setEnableWordConfidence(boolean value) {
      * 
* * bool enable_word_confidence = 15; - * * @return This builder for chaining. */ public Builder clearEnableWordConfidence() { - + enableWordConfidence_ = false; onChanged(); return this; } - private boolean enableAutomaticPunctuation_; + private boolean enableAutomaticPunctuation_ ; /** - * - * *
      * If 'true', adds punctuation to recognition result hypotheses.
      * This feature is only available in select languages. Setting this for
@@ -3896,7 +3522,6 @@ public Builder clearEnableWordConfidence() {
      * 
* * bool enable_automatic_punctuation = 11; - * * @return The enableAutomaticPunctuation. */ @java.lang.Override @@ -3904,8 +3529,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
@@ -3914,19 +3537,16 @@ public boolean getEnableAutomaticPunctuation() {
      * 
* * bool enable_automatic_punctuation = 11; - * * @param value The enableAutomaticPunctuation to set. * @return This builder for chaining. */ public Builder setEnableAutomaticPunctuation(boolean value) { - + enableAutomaticPunctuation_ = value; onChanged(); return this; } /** - * - * *
      * If 'true', adds punctuation to recognition result hypotheses.
      * This feature is only available in select languages. Setting this for
@@ -3935,11 +3555,10 @@ public Builder setEnableAutomaticPunctuation(boolean value) {
      * 
* * bool enable_automatic_punctuation = 11; - * * @return This builder for chaining. */ public Builder clearEnableAutomaticPunctuation() { - + enableAutomaticPunctuation_ = false; onChanged(); return this; @@ -3947,13 +3566,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
@@ -3965,15 +3579,12 @@ public Builder clearEnableAutomaticPunctuation() {
      * 
* * .google.protobuf.BoolValue enable_spoken_punctuation = 22; - * * @return Whether the enableSpokenPunctuation field is set. */ public boolean hasEnableSpokenPunctuation() { return enableSpokenPunctuationBuilder_ != null || enableSpokenPunctuation_ != null; } /** - * - * *
      * The spoken punctuation behavior for the call
      * If not set, uses default behavior based on model of choice
@@ -3985,21 +3596,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
@@ -4026,8 +3632,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
@@ -4052,8 +3656,6 @@ public Builder setEnableSpokenPunctuation(
       return this;
     }
     /**
-     *
-     *
      * 
      * The spoken punctuation behavior for the call
      * If not set, uses default behavior based on model of choice
@@ -4070,9 +3672,7 @@ public Builder mergeEnableSpokenPunctuation(com.google.protobuf.BoolValue value)
       if (enableSpokenPunctuationBuilder_ == null) {
         if (enableSpokenPunctuation_ != null) {
           enableSpokenPunctuation_ =
-              com.google.protobuf.BoolValue.newBuilder(enableSpokenPunctuation_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.protobuf.BoolValue.newBuilder(enableSpokenPunctuation_).mergeFrom(value).buildPartial();
         } else {
           enableSpokenPunctuation_ = value;
         }
@@ -4084,8 +3684,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
@@ -4110,8 +3708,6 @@ public Builder clearEnableSpokenPunctuation() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The spoken punctuation behavior for the call
      * If not set, uses default behavior based on model of choice
@@ -4125,13 +3721,11 @@ public Builder clearEnableSpokenPunctuation() {
      * .google.protobuf.BoolValue enable_spoken_punctuation = 22;
      */
     public com.google.protobuf.BoolValue.Builder getEnableSpokenPunctuationBuilder() {
-
+      
       onChanged();
       return getEnableSpokenPunctuationFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The spoken punctuation behavior for the call
      * If not set, uses default behavior based on model of choice
@@ -4148,14 +3742,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
@@ -4169,17 +3760,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_;
@@ -4187,13 +3775,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
@@ -4203,15 +3786,12 @@ public com.google.protobuf.BoolValueOrBuilder getEnableSpokenPunctuationOrBuilde
      * 
* * .google.protobuf.BoolValue enable_spoken_emojis = 23; - * * @return Whether the enableSpokenEmojis field is set. */ public boolean hasEnableSpokenEmojis() { return enableSpokenEmojisBuilder_ != null || enableSpokenEmojis_ != null; } /** - * - * *
      * The spoken emoji behavior for the call
      * If not set, uses default behavior based on model of choice
@@ -4221,21 +3801,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
@@ -4260,8 +3835,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
@@ -4272,7 +3845,8 @@ public Builder setEnableSpokenEmojis(com.google.protobuf.BoolValue value) {
      *
      * .google.protobuf.BoolValue enable_spoken_emojis = 23;
      */
-    public Builder setEnableSpokenEmojis(com.google.protobuf.BoolValue.Builder builderForValue) {
+    public Builder setEnableSpokenEmojis(
+        com.google.protobuf.BoolValue.Builder builderForValue) {
       if (enableSpokenEmojisBuilder_ == null) {
         enableSpokenEmojis_ = builderForValue.build();
         onChanged();
@@ -4283,8 +3857,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
@@ -4299,9 +3871,7 @@ public Builder mergeEnableSpokenEmojis(com.google.protobuf.BoolValue value) {
       if (enableSpokenEmojisBuilder_ == null) {
         if (enableSpokenEmojis_ != null) {
           enableSpokenEmojis_ =
-              com.google.protobuf.BoolValue.newBuilder(enableSpokenEmojis_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.protobuf.BoolValue.newBuilder(enableSpokenEmojis_).mergeFrom(value).buildPartial();
         } else {
           enableSpokenEmojis_ = value;
         }
@@ -4313,8 +3883,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
@@ -4337,8 +3905,6 @@ public Builder clearEnableSpokenEmojis() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The spoken emoji behavior for the call
      * If not set, uses default behavior based on model of choice
@@ -4350,13 +3916,11 @@ public Builder clearEnableSpokenEmojis() {
      * .google.protobuf.BoolValue enable_spoken_emojis = 23;
      */
     public com.google.protobuf.BoolValue.Builder getEnableSpokenEmojisBuilder() {
-
+      
       onChanged();
       return getEnableSpokenEmojisFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The spoken emoji behavior for the call
      * If not set, uses default behavior based on model of choice
@@ -4371,14 +3935,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
@@ -4390,17 +3951,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_;
@@ -4408,13 +3966,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.
@@ -4427,15 +3980,12 @@ public com.google.protobuf.BoolValueOrBuilder getEnableSpokenEmojisOrBuilder() {
      * 
* * .google.cloud.speech.v1.SpeakerDiarizationConfig diarization_config = 19; - * * @return Whether the diarizationConfig field is set. */ public boolean hasDiarizationConfig() { return diarizationConfigBuilder_ != null || diarizationConfig_ != null; } /** - * - * *
      * Config to enable speaker diarization and set additional
      * parameters to make diarization better suited for your application.
@@ -4448,21 +3998,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.
@@ -4490,8 +4035,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.
@@ -4517,8 +4060,6 @@ public Builder setDiarizationConfig(
       return this;
     }
     /**
-     *
-     *
      * 
      * Config to enable speaker diarization and set additional
      * parameters to make diarization better suited for your application.
@@ -4532,14 +4073,11 @@ public Builder setDiarizationConfig(
      *
      * .google.cloud.speech.v1.SpeakerDiarizationConfig diarization_config = 19;
      */
-    public Builder mergeDiarizationConfig(
-        com.google.cloud.speech.v1.SpeakerDiarizationConfig value) {
+    public Builder mergeDiarizationConfig(com.google.cloud.speech.v1.SpeakerDiarizationConfig value) {
       if (diarizationConfigBuilder_ == null) {
         if (diarizationConfig_ != null) {
           diarizationConfig_ =
-              com.google.cloud.speech.v1.SpeakerDiarizationConfig.newBuilder(diarizationConfig_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.cloud.speech.v1.SpeakerDiarizationConfig.newBuilder(diarizationConfig_).mergeFrom(value).buildPartial();
         } else {
           diarizationConfig_ = value;
         }
@@ -4551,8 +4089,6 @@ public Builder mergeDiarizationConfig(
       return this;
     }
     /**
-     *
-     *
      * 
      * Config to enable speaker diarization and set additional
      * parameters to make diarization better suited for your application.
@@ -4578,8 +4114,6 @@ public Builder clearDiarizationConfig() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Config to enable speaker diarization and set additional
      * parameters to make diarization better suited for your application.
@@ -4593,15 +4127,12 @@ public Builder clearDiarizationConfig() {
      *
      * .google.cloud.speech.v1.SpeakerDiarizationConfig diarization_config = 19;
      */
-    public com.google.cloud.speech.v1.SpeakerDiarizationConfig.Builder
-        getDiarizationConfigBuilder() {
-
+    public com.google.cloud.speech.v1.SpeakerDiarizationConfig.Builder getDiarizationConfigBuilder() {
+      
       onChanged();
       return getDiarizationConfigFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Config to enable speaker diarization and set additional
      * parameters to make diarization better suited for your application.
@@ -4615,19 +4146,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.
@@ -4642,17 +4169,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_;
@@ -4660,47 +4184,34 @@ public Builder clearDiarizationConfig() {
 
     private com.google.cloud.speech.v1.RecognitionMetadata metadata_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.speech.v1.RecognitionMetadata,
-            com.google.cloud.speech.v1.RecognitionMetadata.Builder,
-            com.google.cloud.speech.v1.RecognitionMetadataOrBuilder>
-        metadataBuilder_;
+        com.google.cloud.speech.v1.RecognitionMetadata, com.google.cloud.speech.v1.RecognitionMetadata.Builder, com.google.cloud.speech.v1.RecognitionMetadataOrBuilder> metadataBuilder_;
     /**
-     *
-     *
      * 
      * Metadata regarding this request.
      * 
* * .google.cloud.speech.v1.RecognitionMetadata metadata = 9; - * * @return Whether the metadata field is set. */ public boolean hasMetadata() { return metadataBuilder_ != null || metadata_ != null; } /** - * - * *
      * Metadata regarding this request.
      * 
* * .google.cloud.speech.v1.RecognitionMetadata metadata = 9; - * * @return The metadata. */ public com.google.cloud.speech.v1.RecognitionMetadata getMetadata() { if (metadataBuilder_ == null) { - return metadata_ == null - ? com.google.cloud.speech.v1.RecognitionMetadata.getDefaultInstance() - : metadata_; + return metadata_ == null ? com.google.cloud.speech.v1.RecognitionMetadata.getDefaultInstance() : metadata_; } else { return metadataBuilder_.getMessage(); } } /** - * - * *
      * Metadata regarding this request.
      * 
@@ -4721,8 +4232,6 @@ public Builder setMetadata(com.google.cloud.speech.v1.RecognitionMetadata value) return this; } /** - * - * *
      * Metadata regarding this request.
      * 
@@ -4741,8 +4250,6 @@ public Builder setMetadata( return this; } /** - * - * *
      * Metadata regarding this request.
      * 
@@ -4753,9 +4260,7 @@ public Builder mergeMetadata(com.google.cloud.speech.v1.RecognitionMetadata valu if (metadataBuilder_ == null) { if (metadata_ != null) { metadata_ = - com.google.cloud.speech.v1.RecognitionMetadata.newBuilder(metadata_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.speech.v1.RecognitionMetadata.newBuilder(metadata_).mergeFrom(value).buildPartial(); } else { metadata_ = value; } @@ -4767,8 +4272,6 @@ public Builder mergeMetadata(com.google.cloud.speech.v1.RecognitionMetadata valu return this; } /** - * - * *
      * Metadata regarding this request.
      * 
@@ -4787,8 +4290,6 @@ public Builder clearMetadata() { return this; } /** - * - * *
      * Metadata regarding this request.
      * 
@@ -4796,13 +4297,11 @@ public Builder clearMetadata() { * .google.cloud.speech.v1.RecognitionMetadata metadata = 9; */ public com.google.cloud.speech.v1.RecognitionMetadata.Builder getMetadataBuilder() { - + onChanged(); return getMetadataFieldBuilder().getBuilder(); } /** - * - * *
      * Metadata regarding this request.
      * 
@@ -4813,14 +4312,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.
      * 
@@ -4828,17 +4324,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_; @@ -4846,8 +4339,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
@@ -4884,13 +4375,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; @@ -4899,8 +4390,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
@@ -4937,14 +4426,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 { @@ -4952,8 +4442,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
@@ -4990,22 +4478,20 @@ public com.google.protobuf.ByteString getModelBytes() {
      * 
* * string model = 13; - * * @param value The model to set. * @return This builder for chaining. */ - public Builder setModel(java.lang.String value) { + public Builder setModel( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + model_ = value; onChanged(); return this; } /** - * - * *
      * Which model to select for the given request. Select the model
      * best suited to your domain to get best results. If a model is not
@@ -5042,18 +4528,15 @@ public Builder setModel(java.lang.String value) {
      * 
* * string model = 13; - * * @return This builder for chaining. */ public Builder clearModel() { - + model_ = getDefaultInstance().getModel(); onChanged(); return this; } /** - * - * *
      * Which model to select for the given request. Select the model
      * best suited to your domain to get best results. If a model is not
@@ -5090,25 +4573,23 @@ public Builder clearModel() {
      * 
* * string model = 13; - * * @param value The bytes for model to set. * @return This builder for chaining. */ - public Builder setModelBytes(com.google.protobuf.ByteString value) { + public Builder setModelBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + model_ = value; onChanged(); return this; } - private boolean useEnhanced_; + private boolean useEnhanced_ ; /** - * - * *
      * Set to true to use an enhanced model for speech recognition.
      * If `use_enhanced` is set to true and the `model` field is not set, then
@@ -5120,7 +4601,6 @@ public Builder setModelBytes(com.google.protobuf.ByteString value) {
      * 
* * bool use_enhanced = 14; - * * @return The useEnhanced. */ @java.lang.Override @@ -5128,8 +4608,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
@@ -5141,19 +4619,16 @@ public boolean getUseEnhanced() {
      * 
* * bool use_enhanced = 14; - * * @param value The useEnhanced to set. * @return This builder for chaining. */ public Builder setUseEnhanced(boolean value) { - + useEnhanced_ = value; onChanged(); return this; } /** - * - * *
      * Set to true to use an enhanced model for speech recognition.
      * If `use_enhanced` is set to true and the `model` field is not set, then
@@ -5165,18 +4640,17 @@ public Builder setUseEnhanced(boolean value) {
      * 
* * bool use_enhanced = 14; - * * @return This builder for chaining. */ public Builder clearUseEnhanced() { - + useEnhanced_ = false; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -5186,12 +4660,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(); } @@ -5200,16 +4674,16 @@ public static com.google.cloud.speech.v1.RecognitionConfig getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RecognitionConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new RecognitionConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RecognitionConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RecognitionConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -5224,4 +4698,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1.RecognitionConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionConfigOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionConfigOrBuilder.java similarity index 94% rename from proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionConfigOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionConfigOrBuilder.java index 751985a74..6025549fc 100644 --- a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionConfigOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionConfigOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1/cloud_speech.proto package com.google.cloud.speech.v1; -public interface RecognitionConfigOrBuilder - extends +public interface RecognitionConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1.RecognitionConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Encoding of audio data sent in all `RecognitionAudio` messages.
    * This field is optional for `FLAC` and `WAV` audio files and required
@@ -33,13 +15,10 @@ public interface RecognitionConfigOrBuilder
    * 
* * .google.cloud.speech.v1.RecognitionConfig.AudioEncoding encoding = 1; - * * @return The enum numeric value on the wire for encoding. */ int getEncodingValue(); /** - * - * *
    * Encoding of audio data sent in all `RecognitionAudio` messages.
    * This field is optional for `FLAC` and `WAV` audio files and required
@@ -47,14 +26,11 @@ public interface RecognitionConfigOrBuilder
    * 
* * .google.cloud.speech.v1.RecognitionConfig.AudioEncoding encoding = 1; - * * @return The encoding. */ com.google.cloud.speech.v1.RecognitionConfig.AudioEncoding getEncoding(); /** - * - * *
    * Sample rate in Hertz of the audio data sent in all
    * `RecognitionAudio` messages. Valid values are: 8000-48000.
@@ -66,14 +42,11 @@ public interface RecognitionConfigOrBuilder
    * 
* * int32 sample_rate_hertz = 2; - * * @return The sampleRateHertz. */ int getSampleRateHertz(); /** - * - * *
    * The number of channels in the input audio data.
    * ONLY set this for MULTI-CHANNEL recognition.
@@ -87,14 +60,11 @@ public interface RecognitionConfigOrBuilder
    * 
* * int32 audio_channel_count = 7; - * * @return The audioChannelCount. */ int getAudioChannelCount(); /** - * - * *
    * This needs to be set to `true` explicitly and `audio_channel_count` > 1
    * to get each channel recognized separately. The recognition result will
@@ -105,14 +75,11 @@ public interface RecognitionConfigOrBuilder
    * 
* * bool enable_separate_recognition_per_channel = 12; - * * @return The enableSeparateRecognitionPerChannel. */ boolean getEnableSeparateRecognitionPerChannel(); /** - * - * *
    * Required. The language of the supplied audio as a
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.
@@ -123,13 +90,10 @@ public interface RecognitionConfigOrBuilder
    * 
* * string language_code = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The languageCode. */ java.lang.String getLanguageCode(); /** - * - * *
    * Required. The language of the supplied audio as a
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.
@@ -140,14 +104,12 @@ public interface RecognitionConfigOrBuilder
    * 
* * string language_code = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for languageCode. */ - com.google.protobuf.ByteString getLanguageCodeBytes(); + com.google.protobuf.ByteString + getLanguageCodeBytes(); /** - * - * *
    * A list of up to 3 additional
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags,
@@ -164,13 +126,11 @@ public interface RecognitionConfigOrBuilder
    * 
* * repeated string alternative_language_codes = 18; - * * @return A list containing the alternativeLanguageCodes. */ - java.util.List getAlternativeLanguageCodesList(); + java.util.List + getAlternativeLanguageCodesList(); /** - * - * *
    * A list of up to 3 additional
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags,
@@ -187,13 +147,10 @@ public interface RecognitionConfigOrBuilder
    * 
* * repeated string alternative_language_codes = 18; - * * @return The count of alternativeLanguageCodes. */ int getAlternativeLanguageCodesCount(); /** - * - * *
    * A list of up to 3 additional
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags,
@@ -210,14 +167,11 @@ public interface RecognitionConfigOrBuilder
    * 
* * repeated string alternative_language_codes = 18; - * * @param index The index of the element to return. * @return The alternativeLanguageCodes at the given index. */ java.lang.String getAlternativeLanguageCodes(int index); /** - * - * *
    * A list of up to 3 additional
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags,
@@ -234,15 +188,13 @@ public interface RecognitionConfigOrBuilder
    * 
* * repeated string alternative_language_codes = 18; - * * @param index The index of the value to return. * @return The bytes of the alternativeLanguageCodes at the given index. */ - com.google.protobuf.ByteString getAlternativeLanguageCodesBytes(int index); + com.google.protobuf.ByteString + getAlternativeLanguageCodesBytes(int index); /** - * - * *
    * Maximum number of recognition hypotheses to be returned.
    * Specifically, the maximum number of `SpeechRecognitionAlternative` messages
@@ -253,14 +205,11 @@ public interface RecognitionConfigOrBuilder
    * 
* * int32 max_alternatives = 4; - * * @return The maxAlternatives. */ int getMaxAlternatives(); /** - * - * *
    * If set to `true`, the server will attempt to filter out
    * profanities, replacing all but the initial character in each filtered word
@@ -269,14 +218,11 @@ public interface RecognitionConfigOrBuilder
    * 
* * bool profanity_filter = 5; - * * @return The profanityFilter. */ boolean getProfanityFilter(); /** - * - * *
    * Speech adaptation configuration improves the accuracy of speech
    * recognition. For more information, see the [speech
@@ -286,13 +232,10 @@ public interface RecognitionConfigOrBuilder
    * 
* * .google.cloud.speech.v1.SpeechAdaptation adaptation = 20; - * * @return Whether the adaptation field is set. */ boolean hasAdaptation(); /** - * - * *
    * Speech adaptation configuration improves the accuracy of speech
    * recognition. For more information, see the [speech
@@ -302,13 +245,10 @@ public interface RecognitionConfigOrBuilder
    * 
* * .google.cloud.speech.v1.SpeechAdaptation adaptation = 20; - * * @return The adaptation. */ com.google.cloud.speech.v1.SpeechAdaptation getAdaptation(); /** - * - * *
    * Speech adaptation configuration improves the accuracy of speech
    * recognition. For more information, see the [speech
@@ -322,8 +262,6 @@ public interface RecognitionConfigOrBuilder
   com.google.cloud.speech.v1.SpeechAdaptationOrBuilder getAdaptationOrBuilder();
 
   /**
-   *
-   *
    * 
    * Array of [SpeechContext][google.cloud.speech.v1.SpeechContext].
    * A means to provide context to assist the speech recognition. For more
@@ -334,10 +272,9 @@ public interface RecognitionConfigOrBuilder
    *
    * repeated .google.cloud.speech.v1.SpeechContext speech_contexts = 6;
    */
-  java.util.List getSpeechContextsList();
+  java.util.List 
+      getSpeechContextsList();
   /**
-   *
-   *
    * 
    * Array of [SpeechContext][google.cloud.speech.v1.SpeechContext].
    * A means to provide context to assist the speech recognition. For more
@@ -350,8 +287,6 @@ public interface RecognitionConfigOrBuilder
    */
   com.google.cloud.speech.v1.SpeechContext getSpeechContexts(int index);
   /**
-   *
-   *
    * 
    * Array of [SpeechContext][google.cloud.speech.v1.SpeechContext].
    * A means to provide context to assist the speech recognition. For more
@@ -364,8 +299,6 @@ public interface RecognitionConfigOrBuilder
    */
   int getSpeechContextsCount();
   /**
-   *
-   *
    * 
    * Array of [SpeechContext][google.cloud.speech.v1.SpeechContext].
    * A means to provide context to assist the speech recognition. For more
@@ -376,11 +309,9 @@ public interface RecognitionConfigOrBuilder
    *
    * repeated .google.cloud.speech.v1.SpeechContext speech_contexts = 6;
    */
-  java.util.List
+  java.util.List 
       getSpeechContextsOrBuilderList();
   /**
-   *
-   *
    * 
    * Array of [SpeechContext][google.cloud.speech.v1.SpeechContext].
    * A means to provide context to assist the speech recognition. For more
@@ -391,11 +322,10 @@ public interface RecognitionConfigOrBuilder
    *
    * repeated .google.cloud.speech.v1.SpeechContext speech_contexts = 6;
    */
-  com.google.cloud.speech.v1.SpeechContextOrBuilder getSpeechContextsOrBuilder(int index);
+  com.google.cloud.speech.v1.SpeechContextOrBuilder getSpeechContextsOrBuilder(
+      int index);
 
   /**
-   *
-   *
    * 
    * If `true`, the top result includes a list of words and
    * the start and end time offsets (timestamps) for those words. If
@@ -404,14 +334,11 @@ public interface RecognitionConfigOrBuilder
    * 
* * bool enable_word_time_offsets = 8; - * * @return The enableWordTimeOffsets. */ boolean getEnableWordTimeOffsets(); /** - * - * *
    * If `true`, the top result includes a list of words and the
    * confidence for those words. If `false`, no word-level confidence
@@ -419,14 +346,11 @@ public interface RecognitionConfigOrBuilder
    * 
* * bool enable_word_confidence = 15; - * * @return The enableWordConfidence. */ boolean getEnableWordConfidence(); /** - * - * *
    * If 'true', adds punctuation to recognition result hypotheses.
    * This feature is only available in select languages. Setting this for
@@ -435,14 +359,11 @@ public interface RecognitionConfigOrBuilder
    * 
* * bool enable_automatic_punctuation = 11; - * * @return The enableAutomaticPunctuation. */ boolean getEnableAutomaticPunctuation(); /** - * - * *
    * The spoken punctuation behavior for the call
    * If not set, uses default behavior based on model of choice
@@ -454,13 +375,10 @@ public interface RecognitionConfigOrBuilder
    * 
* * .google.protobuf.BoolValue enable_spoken_punctuation = 22; - * * @return Whether the enableSpokenPunctuation field is set. */ boolean hasEnableSpokenPunctuation(); /** - * - * *
    * The spoken punctuation behavior for the call
    * If not set, uses default behavior based on model of choice
@@ -472,13 +390,10 @@ public interface RecognitionConfigOrBuilder
    * 
* * .google.protobuf.BoolValue enable_spoken_punctuation = 22; - * * @return The enableSpokenPunctuation. */ com.google.protobuf.BoolValue getEnableSpokenPunctuation(); /** - * - * *
    * The spoken punctuation behavior for the call
    * If not set, uses default behavior based on model of choice
@@ -494,8 +409,6 @@ public interface RecognitionConfigOrBuilder
   com.google.protobuf.BoolValueOrBuilder getEnableSpokenPunctuationOrBuilder();
 
   /**
-   *
-   *
    * 
    * The spoken emoji behavior for the call
    * If not set, uses default behavior based on model of choice
@@ -505,13 +418,10 @@ public interface RecognitionConfigOrBuilder
    * 
* * .google.protobuf.BoolValue enable_spoken_emojis = 23; - * * @return Whether the enableSpokenEmojis field is set. */ boolean hasEnableSpokenEmojis(); /** - * - * *
    * The spoken emoji behavior for the call
    * If not set, uses default behavior based on model of choice
@@ -521,13 +431,10 @@ public interface RecognitionConfigOrBuilder
    * 
* * .google.protobuf.BoolValue enable_spoken_emojis = 23; - * * @return The enableSpokenEmojis. */ com.google.protobuf.BoolValue getEnableSpokenEmojis(); /** - * - * *
    * The spoken emoji behavior for the call
    * If not set, uses default behavior based on model of choice
@@ -541,8 +448,6 @@ public interface RecognitionConfigOrBuilder
   com.google.protobuf.BoolValueOrBuilder getEnableSpokenEmojisOrBuilder();
 
   /**
-   *
-   *
    * 
    * Config to enable speaker diarization and set additional
    * parameters to make diarization better suited for your application.
@@ -555,13 +460,10 @@ public interface RecognitionConfigOrBuilder
    * 
* * .google.cloud.speech.v1.SpeakerDiarizationConfig diarization_config = 19; - * * @return Whether the diarizationConfig field is set. */ boolean hasDiarizationConfig(); /** - * - * *
    * Config to enable speaker diarization and set additional
    * parameters to make diarization better suited for your application.
@@ -574,13 +476,10 @@ public interface RecognitionConfigOrBuilder
    * 
* * .google.cloud.speech.v1.SpeakerDiarizationConfig diarization_config = 19; - * * @return The diarizationConfig. */ com.google.cloud.speech.v1.SpeakerDiarizationConfig getDiarizationConfig(); /** - * - * *
    * Config to enable speaker diarization and set additional
    * parameters to make diarization better suited for your application.
@@ -597,32 +496,24 @@ public interface RecognitionConfigOrBuilder
   com.google.cloud.speech.v1.SpeakerDiarizationConfigOrBuilder getDiarizationConfigOrBuilder();
 
   /**
-   *
-   *
    * 
    * Metadata regarding this request.
    * 
* * .google.cloud.speech.v1.RecognitionMetadata metadata = 9; - * * @return Whether the metadata field is set. */ boolean hasMetadata(); /** - * - * *
    * Metadata regarding this request.
    * 
* * .google.cloud.speech.v1.RecognitionMetadata metadata = 9; - * * @return The metadata. */ com.google.cloud.speech.v1.RecognitionMetadata getMetadata(); /** - * - * *
    * Metadata regarding this request.
    * 
@@ -632,8 +523,6 @@ public interface RecognitionConfigOrBuilder com.google.cloud.speech.v1.RecognitionMetadataOrBuilder getMetadataOrBuilder(); /** - * - * *
    * Which model to select for the given request. Select the model
    * best suited to your domain to get best results. If a model is not
@@ -670,13 +559,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
@@ -713,14 +599,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
@@ -732,7 +616,6 @@ public interface RecognitionConfigOrBuilder
    * 
* * bool use_enhanced = 14; - * * @return The useEnhanced. */ boolean getUseEnhanced(); diff --git a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionMetadata.java b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionMetadata.java similarity index 72% rename from proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionMetadata.java rename to owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionMetadata.java index 32b2ee4dd..2ae9f0508 100644 --- a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionMetadata.java +++ b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionMetadata.java @@ -1,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; /** - * - * *
  * Description of audio data to be recognized.
  * 
* * Protobuf type {@code google.cloud.speech.v1.RecognitionMetadata} */ -public final class RecognitionMetadata extends com.google.protobuf.GeneratedMessageV3 - implements +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; @@ -49,15 +31,16 @@ private RecognitionMetadata() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new RecognitionMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private RecognitionMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -76,97 +59,86 @@ private RecognitionMetadata( case 0: done = true; break; - case 8: - { - int rawValue = input.readEnum(); + case 8: { + int rawValue = input.readEnum(); - interactionType_ = rawValue; - break; - } - case 24: - { - industryNaicsCodeOfAudio_ = input.readUInt32(); - break; - } - case 32: - { - int rawValue = input.readEnum(); + interactionType_ = rawValue; + break; + } + case 24: { - microphoneDistance_ = rawValue; - break; - } - case 40: - { - int rawValue = input.readEnum(); + industryNaicsCodeOfAudio_ = input.readUInt32(); + break; + } + case 32: { + int rawValue = input.readEnum(); - originalMediaType_ = rawValue; - break; - } - case 48: - { - int rawValue = input.readEnum(); + microphoneDistance_ = rawValue; + break; + } + case 40: { + int rawValue = input.readEnum(); - recordingDeviceType_ = rawValue; - break; - } - case 58: - { - java.lang.String s = input.readStringRequireUtf8(); + originalMediaType_ = rawValue; + break; + } + case 48: { + int rawValue = input.readEnum(); - recordingDeviceName_ = s; - break; - } - case 66: - { - java.lang.String s = input.readStringRequireUtf8(); + recordingDeviceType_ = rawValue; + break; + } + case 58: { + java.lang.String s = input.readStringRequireUtf8(); - originalMimeType_ = s; - break; - } - case 82: - { - java.lang.String s = input.readStringRequireUtf8(); + recordingDeviceName_ = s; + break; + } + case 66: { + java.lang.String s = input.readStringRequireUtf8(); - audioTopic_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + originalMimeType_ = s; + break; + } + case 82: { + java.lang.String s = input.readStringRequireUtf8(); + + audioTopic_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v1.SpeechProto - .internal_static_google_cloud_speech_v1_RecognitionMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_RecognitionMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1.SpeechProto - .internal_static_google_cloud_speech_v1_RecognitionMetadata_fieldAccessorTable + return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_RecognitionMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1.RecognitionMetadata.class, - com.google.cloud.speech.v1.RecognitionMetadata.Builder.class); + com.google.cloud.speech.v1.RecognitionMetadata.class, com.google.cloud.speech.v1.RecognitionMetadata.Builder.class); } /** - * - * *
    * Use case categories that the audio recognition request can be described
    * by.
@@ -174,10 +146,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.
@@ -187,8 +158,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
@@ -200,8 +169,6 @@ public enum InteractionType implements com.google.protobuf.ProtocolMessageEnum {
      */
     DISCUSSION(1),
     /**
-     *
-     *
      * 
      * One or more persons lecturing or presenting to others, mostly
      * uninterrupted.
@@ -211,8 +178,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.
@@ -222,8 +187,6 @@ public enum InteractionType implements com.google.protobuf.ProtocolMessageEnum {
      */
     PHONE_CALL(3),
     /**
-     *
-     *
      * 
      * A recorded message intended for another person to listen to.
      * 
@@ -232,8 +195,6 @@ public enum InteractionType implements com.google.protobuf.ProtocolMessageEnum { */ VOICEMAIL(4), /** - * - * *
      * Professionally produced audio (eg. TV Show, Podcast).
      * 
@@ -242,8 +203,6 @@ public enum InteractionType implements com.google.protobuf.ProtocolMessageEnum { */ PROFESSIONALLY_PRODUCED(5), /** - * - * *
      * Transcribe spoken questions and queries into text.
      * 
@@ -252,8 +211,6 @@ public enum InteractionType implements com.google.protobuf.ProtocolMessageEnum { */ VOICE_SEARCH(6), /** - * - * *
      * Transcribe voice commands, such as for controlling a device.
      * 
@@ -262,8 +219,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.
@@ -276,8 +231,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.
@@ -287,8 +240,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
@@ -300,8 +251,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.
@@ -311,8 +260,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.
@@ -322,8 +269,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.
      * 
@@ -332,8 +277,6 @@ public enum InteractionType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int VOICEMAIL_VALUE = 4; /** - * - * *
      * Professionally produced audio (eg. TV Show, Podcast).
      * 
@@ -342,8 +285,6 @@ public enum InteractionType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int PROFESSIONALLY_PRODUCED_VALUE = 5; /** - * - * *
      * Transcribe spoken questions and queries into text.
      * 
@@ -352,8 +293,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.
      * 
@@ -362,8 +301,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.
@@ -373,6 +310,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(
@@ -397,54 +335,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);
     }
 
@@ -453,7 +382,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;
@@ -471,18 +401,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.
      * 
@@ -491,8 +418,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
@@ -503,8 +428,6 @@ public enum MicrophoneDistance implements com.google.protobuf.ProtocolMessageEnu
      */
     NEARFIELD(1),
     /**
-     *
-     *
      * 
      * The speaker if within 3 meters of the microphone.
      * 
@@ -513,8 +436,6 @@ public enum MicrophoneDistance implements com.google.protobuf.ProtocolMessageEnu */ MIDFIELD(2), /** - * - * *
      * The speaker is more than 3 meters away from the microphone.
      * 
@@ -526,8 +447,6 @@ public enum MicrophoneDistance implements com.google.protobuf.ProtocolMessageEnu ; /** - * - * *
      * Audio type is not known.
      * 
@@ -536,8 +455,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
@@ -548,8 +465,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.
      * 
@@ -558,8 +473,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.
      * 
@@ -568,6 +481,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( @@ -592,16 +506,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; } } @@ -609,28 +518,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); } @@ -639,7 +548,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; @@ -657,18 +567,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.
      * 
@@ -677,8 +584,6 @@ public enum OriginalMediaType implements com.google.protobuf.ProtocolMessageEnum */ ORIGINAL_MEDIA_TYPE_UNSPECIFIED(0), /** - * - * *
      * The speech data is an audio recording.
      * 
@@ -687,8 +592,6 @@ public enum OriginalMediaType implements com.google.protobuf.ProtocolMessageEnum */ AUDIO(1), /** - * - * *
      * The speech data originally recorded on a video.
      * 
@@ -700,8 +603,6 @@ public enum OriginalMediaType implements com.google.protobuf.ProtocolMessageEnum ; /** - * - * *
      * Unknown original media type.
      * 
@@ -710,8 +611,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.
      * 
@@ -720,8 +619,6 @@ public enum OriginalMediaType implements com.google.protobuf.ProtocolMessageEnum */ public static final int AUDIO_VALUE = 1; /** - * - * *
      * The speech data originally recorded on a video.
      * 
@@ -730,6 +627,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( @@ -754,14 +652,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; } } @@ -769,28 +663,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); } @@ -799,7 +693,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; @@ -817,18 +712,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.
      * 
@@ -837,8 +729,6 @@ public enum RecordingDeviceType implements com.google.protobuf.ProtocolMessageEn */ RECORDING_DEVICE_TYPE_UNSPECIFIED(0), /** - * - * *
      * Speech was recorded on a smartphone.
      * 
@@ -847,8 +737,6 @@ public enum RecordingDeviceType implements com.google.protobuf.ProtocolMessageEn */ SMARTPHONE(1), /** - * - * *
      * Speech was recorded using a personal computer or tablet.
      * 
@@ -857,8 +745,6 @@ public enum RecordingDeviceType implements com.google.protobuf.ProtocolMessageEn */ PC(2), /** - * - * *
      * Speech was recorded over a phone line.
      * 
@@ -867,8 +753,6 @@ public enum RecordingDeviceType implements com.google.protobuf.ProtocolMessageEn */ PHONE_LINE(3), /** - * - * *
      * Speech was recorded in a vehicle.
      * 
@@ -877,8 +761,6 @@ public enum RecordingDeviceType implements com.google.protobuf.ProtocolMessageEn */ VEHICLE(4), /** - * - * *
      * Speech was recorded outdoors.
      * 
@@ -887,8 +769,6 @@ public enum RecordingDeviceType implements com.google.protobuf.ProtocolMessageEn */ OTHER_OUTDOOR_DEVICE(5), /** - * - * *
      * Speech was recorded indoors.
      * 
@@ -900,8 +780,6 @@ public enum RecordingDeviceType implements com.google.protobuf.ProtocolMessageEn ; /** - * - * *
      * The recording device is unknown.
      * 
@@ -910,8 +788,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.
      * 
@@ -920,8 +796,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.
      * 
@@ -930,8 +804,6 @@ public enum RecordingDeviceType implements com.google.protobuf.ProtocolMessageEn */ public static final int PC_VALUE = 2; /** - * - * *
      * Speech was recorded over a phone line.
      * 
@@ -940,8 +812,6 @@ public enum RecordingDeviceType implements com.google.protobuf.ProtocolMessageEn */ public static final int PHONE_LINE_VALUE = 3; /** - * - * *
      * Speech was recorded in a vehicle.
      * 
@@ -950,8 +820,6 @@ public enum RecordingDeviceType implements com.google.protobuf.ProtocolMessageEn */ public static final int VEHICLE_VALUE = 4; /** - * - * *
      * Speech was recorded outdoors.
      * 
@@ -960,8 +828,6 @@ public enum RecordingDeviceType implements com.google.protobuf.ProtocolMessageEn */ public static final int OTHER_OUTDOOR_DEVICE_VALUE = 5; /** - * - * *
      * Speech was recorded indoors.
      * 
@@ -970,6 +836,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( @@ -994,22 +861,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; } } @@ -1017,28 +876,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); } @@ -1047,7 +906,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; @@ -1067,46 +927,33 @@ private RecordingDeviceType(int value) { public static final int INTERACTION_TYPE_FIELD_NUMBER = 1; private int interactionType_; /** - * - * *
    * The use case most closely describing the audio content to be recognized.
    * 
* * .google.cloud.speech.v1.RecognitionMetadata.InteractionType interaction_type = 1; - * * @return The enum numeric value on the wire for interactionType. */ - @java.lang.Override - public int getInteractionTypeValue() { + @java.lang.Override public int getInteractionTypeValue() { return interactionType_; } /** - * - * *
    * The use case most closely describing the audio content to be recognized.
    * 
* * .google.cloud.speech.v1.RecognitionMetadata.InteractionType interaction_type = 1; - * * @return The interactionType. */ - @java.lang.Override - public com.google.cloud.speech.v1.RecognitionMetadata.InteractionType getInteractionType() { + @java.lang.Override public com.google.cloud.speech.v1.RecognitionMetadata.InteractionType getInteractionType() { @SuppressWarnings("deprecation") - com.google.cloud.speech.v1.RecognitionMetadata.InteractionType result = - com.google.cloud.speech.v1.RecognitionMetadata.InteractionType.valueOf(interactionType_); - return result == null - ? com.google.cloud.speech.v1.RecognitionMetadata.InteractionType.UNRECOGNIZED - : result; + com.google.cloud.speech.v1.RecognitionMetadata.InteractionType result = com.google.cloud.speech.v1.RecognitionMetadata.InteractionType.valueOf(interactionType_); + return result == null ? com.google.cloud.speech.v1.RecognitionMetadata.InteractionType.UNRECOGNIZED : result; } public static final int INDUSTRY_NAICS_CODE_OF_AUDIO_FIELD_NUMBER = 3; private int industryNaicsCodeOfAudio_; /** - * - * *
    * The industry vertical to which this speech recognition request most
    * closely applies. This is most indicative of the topics contained
@@ -1115,7 +962,6 @@ public com.google.cloud.speech.v1.RecognitionMetadata.InteractionType getInterac
    * 
* * uint32 industry_naics_code_of_audio = 3; - * * @return The industryNaicsCodeOfAudio. */ @java.lang.Override @@ -1126,134 +972,87 @@ public int getIndustryNaicsCodeOfAudio() { public static final int MICROPHONE_DISTANCE_FIELD_NUMBER = 4; private int microphoneDistance_; /** - * - * *
    * The audio type that most closely describes the audio being recognized.
    * 
* - * .google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance microphone_distance = 4; - * - * + * .google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance microphone_distance = 4; * @return The enum numeric value on the wire for microphoneDistance. */ - @java.lang.Override - public int getMicrophoneDistanceValue() { + @java.lang.Override public int getMicrophoneDistanceValue() { return microphoneDistance_; } /** - * - * *
    * The audio type that most closely describes the audio being recognized.
    * 
* - * .google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance microphone_distance = 4; - * - * + * .google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance microphone_distance = 4; * @return The microphoneDistance. */ - @java.lang.Override - public com.google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance getMicrophoneDistance() { + @java.lang.Override public com.google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance getMicrophoneDistance() { @SuppressWarnings("deprecation") - com.google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance result = - com.google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance.valueOf( - microphoneDistance_); - return result == null - ? com.google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance.UNRECOGNIZED - : result; + com.google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance result = com.google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance.valueOf(microphoneDistance_); + return result == null ? com.google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance.UNRECOGNIZED : result; } public static final int ORIGINAL_MEDIA_TYPE_FIELD_NUMBER = 5; private int originalMediaType_; /** - * - * *
    * The original media the speech was recorded on.
    * 
* - * .google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType original_media_type = 5; - * - * + * .google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType original_media_type = 5; * @return The enum numeric value on the wire for originalMediaType. */ - @java.lang.Override - public int getOriginalMediaTypeValue() { + @java.lang.Override public int getOriginalMediaTypeValue() { return originalMediaType_; } /** - * - * *
    * The original media the speech was recorded on.
    * 
* - * .google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType original_media_type = 5; - * - * + * .google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType original_media_type = 5; * @return The originalMediaType. */ - @java.lang.Override - public com.google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType getOriginalMediaType() { + @java.lang.Override public com.google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType getOriginalMediaType() { @SuppressWarnings("deprecation") - com.google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType result = - com.google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType.valueOf( - originalMediaType_); - return result == null - ? com.google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType.UNRECOGNIZED - : result; + com.google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType result = com.google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType.valueOf(originalMediaType_); + return result == null ? com.google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType.UNRECOGNIZED : result; } public static final int RECORDING_DEVICE_TYPE_FIELD_NUMBER = 6; private int recordingDeviceType_; /** - * - * *
    * The type of device the speech was recorded with.
    * 
* - * - * .google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType recording_device_type = 6; - * - * + * .google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType recording_device_type = 6; * @return The enum numeric value on the wire for recordingDeviceType. */ - @java.lang.Override - public int getRecordingDeviceTypeValue() { + @java.lang.Override public int getRecordingDeviceTypeValue() { return recordingDeviceType_; } /** - * - * *
    * The type of device the speech was recorded with.
    * 
* - * - * .google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType recording_device_type = 6; - * - * + * .google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType recording_device_type = 6; * @return The recordingDeviceType. */ - @java.lang.Override - public com.google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType - getRecordingDeviceType() { + @java.lang.Override public com.google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType getRecordingDeviceType() { @SuppressWarnings("deprecation") - com.google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType result = - com.google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType.valueOf( - recordingDeviceType_); - return result == null - ? com.google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType.UNRECOGNIZED - : result; + com.google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType result = com.google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType.valueOf(recordingDeviceType_); + return result == null ? com.google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType.UNRECOGNIZED : result; } public static final int RECORDING_DEVICE_NAME_FIELD_NUMBER = 7; private volatile java.lang.Object recordingDeviceName_; /** - * - * *
    * The device used to make the recording.  Examples 'Nexus 5X' or
    * 'Polycom SoundStation IP 6000' or 'POTS' or 'VoIP' or
@@ -1261,7 +1060,6 @@ public int getRecordingDeviceTypeValue() {
    * 
* * string recording_device_name = 7; - * * @return The recordingDeviceName. */ @java.lang.Override @@ -1270,15 +1068,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
@@ -1286,15 +1083,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 { @@ -1305,8 +1103,6 @@ public com.google.protobuf.ByteString getRecordingDeviceNameBytes() { public static final int ORIGINAL_MIME_TYPE_FIELD_NUMBER = 8; private volatile java.lang.Object originalMimeType_; /** - * - * *
    * Mime type of the original audio file.  For example `audio/m4a`,
    * `audio/x-alaw-basic`, `audio/mp3`, `audio/3gpp`.
@@ -1315,7 +1111,6 @@ public com.google.protobuf.ByteString getRecordingDeviceNameBytes() {
    * 
* * string original_mime_type = 8; - * * @return The originalMimeType. */ @java.lang.Override @@ -1324,15 +1119,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`.
@@ -1341,15 +1135,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 { @@ -1360,15 +1155,12 @@ public com.google.protobuf.ByteString getOriginalMimeTypeBytes() { public static final int AUDIO_TOPIC_FIELD_NUMBER = 10; private volatile java.lang.Object audioTopic_; /** - * - * *
    * Description of the content. Eg. "Recordings of federal supreme court
    * hearings from 2012".
    * 
* * string audio_topic = 10; - * * @return The audioTopic. */ @java.lang.Override @@ -1377,30 +1169,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 { @@ -1409,7 +1201,6 @@ public com.google.protobuf.ByteString getAudioTopicBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1421,32 +1212,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_)) { @@ -1467,32 +1247,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_); @@ -1511,22 +1284,25 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1.RecognitionMetadata)) { return super.equals(obj); } - com.google.cloud.speech.v1.RecognitionMetadata other = - (com.google.cloud.speech.v1.RecognitionMetadata) obj; + com.google.cloud.speech.v1.RecognitionMetadata other = (com.google.cloud.speech.v1.RecognitionMetadata) obj; if (interactionType_ != other.interactionType_) return false; - if (getIndustryNaicsCodeOfAudio() != other.getIndustryNaicsCodeOfAudio()) return false; + if (getIndustryNaicsCodeOfAudio() + != other.getIndustryNaicsCodeOfAudio()) return false; if (microphoneDistance_ != other.microphoneDistance_) return false; if (originalMediaType_ != other.originalMediaType_) return false; if (recordingDeviceType_ != other.recordingDeviceType_) return false; - if (!getRecordingDeviceName().equals(other.getRecordingDeviceName())) return false; - if (!getOriginalMimeType().equals(other.getOriginalMimeType())) return false; - if (!getAudioTopic().equals(other.getAudioTopic())) return false; + if (!getRecordingDeviceName() + .equals(other.getRecordingDeviceName())) return false; + if (!getOriginalMimeType() + .equals(other.getOriginalMimeType())) return false; + if (!getAudioTopic() + .equals(other.getAudioTopic())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1559,127 +1335,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.speech.v1.RecognitionMetadata parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.speech.v1.RecognitionMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1.RecognitionMetadata parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1.RecognitionMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1.RecognitionMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1.RecognitionMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1.RecognitionMetadata parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1.RecognitionMetadata parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1.RecognitionMetadata parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.speech.v1.RecognitionMetadata parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.speech.v1.RecognitionMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1.RecognitionMetadata parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1.RecognitionMetadata parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1.RecognitionMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.speech.v1.RecognitionMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Description of audio data to be recognized.
    * 
* * Protobuf type {@code google.cloud.speech.v1.RecognitionMetadata} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1.RecognitionMetadata) com.google.cloud.speech.v1.RecognitionMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v1.SpeechProto - .internal_static_google_cloud_speech_v1_RecognitionMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_RecognitionMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1.SpeechProto - .internal_static_google_cloud_speech_v1_RecognitionMetadata_fieldAccessorTable + return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_RecognitionMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1.RecognitionMetadata.class, - com.google.cloud.speech.v1.RecognitionMetadata.Builder.class); + com.google.cloud.speech.v1.RecognitionMetadata.class, com.google.cloud.speech.v1.RecognitionMetadata.Builder.class); } // Construct using com.google.cloud.speech.v1.RecognitionMetadata.newBuilder() @@ -1687,15 +1454,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -1719,9 +1487,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 @@ -1740,8 +1508,7 @@ public com.google.cloud.speech.v1.RecognitionMetadata build() { @java.lang.Override public com.google.cloud.speech.v1.RecognitionMetadata buildPartial() { - com.google.cloud.speech.v1.RecognitionMetadata result = - new com.google.cloud.speech.v1.RecognitionMetadata(this); + com.google.cloud.speech.v1.RecognitionMetadata result = new com.google.cloud.speech.v1.RecognitionMetadata(this); result.interactionType_ = interactionType_; result.industryNaicsCodeOfAudio_ = industryNaicsCodeOfAudio_; result.microphoneDistance_ = microphoneDistance_; @@ -1758,39 +1525,38 @@ public com.google.cloud.speech.v1.RecognitionMetadata buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.speech.v1.RecognitionMetadata) { - return mergeFrom((com.google.cloud.speech.v1.RecognitionMetadata) other); + return mergeFrom((com.google.cloud.speech.v1.RecognitionMetadata)other); } else { super.mergeFrom(other); return this; @@ -1857,107 +1623,80 @@ public Builder mergeFrom( private int interactionType_ = 0; /** - * - * *
      * The use case most closely describing the audio content to be recognized.
      * 
* - * .google.cloud.speech.v1.RecognitionMetadata.InteractionType interaction_type = 1; - * - * + * .google.cloud.speech.v1.RecognitionMetadata.InteractionType interaction_type = 1; * @return The enum numeric value on the wire for interactionType. */ - @java.lang.Override - public int getInteractionTypeValue() { + @java.lang.Override public int getInteractionTypeValue() { return interactionType_; } /** - * - * *
      * The use case most closely describing the audio content to be recognized.
      * 
* - * .google.cloud.speech.v1.RecognitionMetadata.InteractionType interaction_type = 1; - * - * + * .google.cloud.speech.v1.RecognitionMetadata.InteractionType interaction_type = 1; * @param value The enum numeric value on the wire for interactionType to set. * @return This builder for chaining. */ public Builder setInteractionTypeValue(int value) { - + interactionType_ = value; onChanged(); return this; } /** - * - * *
      * The use case most closely describing the audio content to be recognized.
      * 
* - * .google.cloud.speech.v1.RecognitionMetadata.InteractionType interaction_type = 1; - * - * + * .google.cloud.speech.v1.RecognitionMetadata.InteractionType interaction_type = 1; * @return The interactionType. */ @java.lang.Override public com.google.cloud.speech.v1.RecognitionMetadata.InteractionType getInteractionType() { @SuppressWarnings("deprecation") - com.google.cloud.speech.v1.RecognitionMetadata.InteractionType result = - com.google.cloud.speech.v1.RecognitionMetadata.InteractionType.valueOf(interactionType_); - return result == null - ? com.google.cloud.speech.v1.RecognitionMetadata.InteractionType.UNRECOGNIZED - : result; + com.google.cloud.speech.v1.RecognitionMetadata.InteractionType result = com.google.cloud.speech.v1.RecognitionMetadata.InteractionType.valueOf(interactionType_); + return result == null ? com.google.cloud.speech.v1.RecognitionMetadata.InteractionType.UNRECOGNIZED : result; } /** - * - * *
      * The use case most closely describing the audio content to be recognized.
      * 
* - * .google.cloud.speech.v1.RecognitionMetadata.InteractionType interaction_type = 1; - * - * + * .google.cloud.speech.v1.RecognitionMetadata.InteractionType interaction_type = 1; * @param value The interactionType to set. * @return This builder for chaining. */ - public Builder setInteractionType( - com.google.cloud.speech.v1.RecognitionMetadata.InteractionType value) { + public Builder setInteractionType(com.google.cloud.speech.v1.RecognitionMetadata.InteractionType value) { if (value == null) { throw new NullPointerException(); } - + interactionType_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * The use case most closely describing the audio content to be recognized.
      * 
* - * .google.cloud.speech.v1.RecognitionMetadata.InteractionType interaction_type = 1; - * - * + * .google.cloud.speech.v1.RecognitionMetadata.InteractionType interaction_type = 1; * @return This builder for chaining. */ public Builder clearInteractionType() { - + interactionType_ = 0; onChanged(); return this; } - private int industryNaicsCodeOfAudio_; + private int industryNaicsCodeOfAudio_ ; /** - * - * *
      * The industry vertical to which this speech recognition request most
      * closely applies. This is most indicative of the topics contained
@@ -1966,7 +1705,6 @@ public Builder clearInteractionType() {
      * 
* * uint32 industry_naics_code_of_audio = 3; - * * @return The industryNaicsCodeOfAudio. */ @java.lang.Override @@ -1974,8 +1712,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
@@ -1984,19 +1720,16 @@ public int getIndustryNaicsCodeOfAudio() {
      * 
* * uint32 industry_naics_code_of_audio = 3; - * * @param value The industryNaicsCodeOfAudio to set. * @return This builder for chaining. */ public Builder setIndustryNaicsCodeOfAudio(int value) { - + industryNaicsCodeOfAudio_ = value; onChanged(); return this; } /** - * - * *
      * The industry vertical to which this speech recognition request most
      * closely applies. This is most indicative of the topics contained
@@ -2005,11 +1738,10 @@ public Builder setIndustryNaicsCodeOfAudio(int value) {
      * 
* * uint32 industry_naics_code_of_audio = 3; - * * @return This builder for chaining. */ public Builder clearIndustryNaicsCodeOfAudio() { - + industryNaicsCodeOfAudio_ = 0; onChanged(); return this; @@ -2017,100 +1749,73 @@ public Builder clearIndustryNaicsCodeOfAudio() { private int microphoneDistance_ = 0; /** - * - * *
      * The audio type that most closely describes the audio being recognized.
      * 
* - * .google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance microphone_distance = 4; - * - * + * .google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance microphone_distance = 4; * @return The enum numeric value on the wire for microphoneDistance. */ - @java.lang.Override - public int getMicrophoneDistanceValue() { + @java.lang.Override public int getMicrophoneDistanceValue() { return microphoneDistance_; } /** - * - * *
      * The audio type that most closely describes the audio being recognized.
      * 
* - * .google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance microphone_distance = 4; - * - * + * .google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance microphone_distance = 4; * @param value The enum numeric value on the wire for microphoneDistance to set. * @return This builder for chaining. */ public Builder setMicrophoneDistanceValue(int value) { - + microphoneDistance_ = value; onChanged(); return this; } /** - * - * *
      * The audio type that most closely describes the audio being recognized.
      * 
* - * .google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance microphone_distance = 4; - * - * + * .google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance microphone_distance = 4; * @return The microphoneDistance. */ @java.lang.Override - public com.google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance - getMicrophoneDistance() { + public com.google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance getMicrophoneDistance() { @SuppressWarnings("deprecation") - com.google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance result = - com.google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance.valueOf( - microphoneDistance_); - return result == null - ? com.google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance.UNRECOGNIZED - : result; + com.google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance result = com.google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance.valueOf(microphoneDistance_); + return result == null ? com.google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance.UNRECOGNIZED : result; } /** - * - * *
      * The audio type that most closely describes the audio being recognized.
      * 
* - * .google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance microphone_distance = 4; - * - * + * .google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance microphone_distance = 4; * @param value The microphoneDistance to set. * @return This builder for chaining. */ - public Builder setMicrophoneDistance( - com.google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance value) { + public Builder setMicrophoneDistance(com.google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance value) { if (value == null) { throw new NullPointerException(); } - + microphoneDistance_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * The audio type that most closely describes the audio being recognized.
      * 
* - * .google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance microphone_distance = 4; - * - * + * .google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance microphone_distance = 4; * @return This builder for chaining. */ public Builder clearMicrophoneDistance() { - + microphoneDistance_ = 0; onChanged(); return this; @@ -2118,99 +1823,73 @@ public Builder clearMicrophoneDistance() { private int originalMediaType_ = 0; /** - * - * *
      * The original media the speech was recorded on.
      * 
* - * .google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType original_media_type = 5; - * - * + * .google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType original_media_type = 5; * @return The enum numeric value on the wire for originalMediaType. */ - @java.lang.Override - public int getOriginalMediaTypeValue() { + @java.lang.Override public int getOriginalMediaTypeValue() { return originalMediaType_; } /** - * - * *
      * The original media the speech was recorded on.
      * 
* - * .google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType original_media_type = 5; - * - * + * .google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType original_media_type = 5; * @param value The enum numeric value on the wire for originalMediaType to set. * @return This builder for chaining. */ public Builder setOriginalMediaTypeValue(int value) { - + originalMediaType_ = value; onChanged(); return this; } /** - * - * *
      * The original media the speech was recorded on.
      * 
* - * .google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType original_media_type = 5; - * - * + * .google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType original_media_type = 5; * @return The originalMediaType. */ @java.lang.Override public com.google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType getOriginalMediaType() { @SuppressWarnings("deprecation") - com.google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType result = - com.google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType.valueOf( - originalMediaType_); - return result == null - ? com.google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType.UNRECOGNIZED - : result; + com.google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType result = com.google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType.valueOf(originalMediaType_); + return result == null ? com.google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType.UNRECOGNIZED : result; } /** - * - * *
      * The original media the speech was recorded on.
      * 
* - * .google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType original_media_type = 5; - * - * + * .google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType original_media_type = 5; * @param value The originalMediaType to set. * @return This builder for chaining. */ - public Builder setOriginalMediaType( - com.google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType value) { + public Builder setOriginalMediaType(com.google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType value) { if (value == null) { throw new NullPointerException(); } - + originalMediaType_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * The original media the speech was recorded on.
      * 
* - * .google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType original_media_type = 5; - * - * + * .google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType original_media_type = 5; * @return This builder for chaining. */ public Builder clearOriginalMediaType() { - + originalMediaType_ = 0; onChanged(); return this; @@ -2218,105 +1897,73 @@ public Builder clearOriginalMediaType() { private int recordingDeviceType_ = 0; /** - * - * *
      * The type of device the speech was recorded with.
      * 
* - * - * .google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType recording_device_type = 6; - * - * + * .google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType recording_device_type = 6; * @return The enum numeric value on the wire for recordingDeviceType. */ - @java.lang.Override - public int getRecordingDeviceTypeValue() { + @java.lang.Override public int getRecordingDeviceTypeValue() { return recordingDeviceType_; } /** - * - * *
      * The type of device the speech was recorded with.
      * 
* - * - * .google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType recording_device_type = 6; - * - * + * .google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType recording_device_type = 6; * @param value The enum numeric value on the wire for recordingDeviceType to set. * @return This builder for chaining. */ public Builder setRecordingDeviceTypeValue(int value) { - + recordingDeviceType_ = value; onChanged(); return this; } /** - * - * *
      * The type of device the speech was recorded with.
      * 
* - * - * .google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType recording_device_type = 6; - * - * + * .google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType recording_device_type = 6; * @return The recordingDeviceType. */ @java.lang.Override - public com.google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType - getRecordingDeviceType() { + public com.google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType getRecordingDeviceType() { @SuppressWarnings("deprecation") - com.google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType result = - com.google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType.valueOf( - recordingDeviceType_); - return result == null - ? com.google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType.UNRECOGNIZED - : result; + com.google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType result = com.google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType.valueOf(recordingDeviceType_); + return result == null ? com.google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType.UNRECOGNIZED : result; } /** - * - * *
      * The type of device the speech was recorded with.
      * 
* - * - * .google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType recording_device_type = 6; - * - * + * .google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType recording_device_type = 6; * @param value The recordingDeviceType to set. * @return This builder for chaining. */ - public Builder setRecordingDeviceType( - com.google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType value) { + public Builder setRecordingDeviceType(com.google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType value) { if (value == null) { throw new NullPointerException(); } - + recordingDeviceType_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * The type of device the speech was recorded with.
      * 
* - * - * .google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType recording_device_type = 6; - * - * + * .google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType recording_device_type = 6; * @return This builder for chaining. */ public Builder clearRecordingDeviceType() { - + recordingDeviceType_ = 0; onChanged(); return this; @@ -2324,8 +1971,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
@@ -2333,13 +1978,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; @@ -2348,8 +1993,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
@@ -2357,14 +2000,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 { @@ -2372,8 +2016,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
@@ -2381,22 +2023,20 @@ public com.google.protobuf.ByteString getRecordingDeviceNameBytes() {
      * 
* * string recording_device_name = 7; - * * @param value The recordingDeviceName to set. * @return This builder for chaining. */ - public Builder setRecordingDeviceName(java.lang.String value) { + public Builder setRecordingDeviceName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + recordingDeviceName_ = value; onChanged(); return this; } /** - * - * *
      * The device used to make the recording.  Examples 'Nexus 5X' or
      * 'Polycom SoundStation IP 6000' or 'POTS' or 'VoIP' or
@@ -2404,18 +2044,15 @@ public Builder setRecordingDeviceName(java.lang.String value) {
      * 
* * string recording_device_name = 7; - * * @return This builder for chaining. */ public Builder clearRecordingDeviceName() { - + recordingDeviceName_ = getDefaultInstance().getRecordingDeviceName(); onChanged(); return this; } /** - * - * *
      * The device used to make the recording.  Examples 'Nexus 5X' or
      * 'Polycom SoundStation IP 6000' or 'POTS' or 'VoIP' or
@@ -2423,16 +2060,16 @@ public Builder clearRecordingDeviceName() {
      * 
* * string recording_device_name = 7; - * * @param value The bytes for recordingDeviceName to set. * @return This builder for chaining. */ - public Builder setRecordingDeviceNameBytes(com.google.protobuf.ByteString value) { + public Builder setRecordingDeviceNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + recordingDeviceName_ = value; onChanged(); return this; @@ -2440,8 +2077,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`.
@@ -2450,13 +2085,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; @@ -2465,8 +2100,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`.
@@ -2475,14 +2108,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 { @@ -2490,8 +2124,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`.
@@ -2500,22 +2132,20 @@ public com.google.protobuf.ByteString getOriginalMimeTypeBytes() {
      * 
* * string original_mime_type = 8; - * * @param value The originalMimeType to set. * @return This builder for chaining. */ - public Builder setOriginalMimeType(java.lang.String value) { + public Builder setOriginalMimeType( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + originalMimeType_ = value; onChanged(); return this; } /** - * - * *
      * Mime type of the original audio file.  For example `audio/m4a`,
      * `audio/x-alaw-basic`, `audio/mp3`, `audio/3gpp`.
@@ -2524,18 +2154,15 @@ public Builder setOriginalMimeType(java.lang.String value) {
      * 
* * string original_mime_type = 8; - * * @return This builder for chaining. */ public Builder clearOriginalMimeType() { - + originalMimeType_ = getDefaultInstance().getOriginalMimeType(); onChanged(); return this; } /** - * - * *
      * Mime type of the original audio file.  For example `audio/m4a`,
      * `audio/x-alaw-basic`, `audio/mp3`, `audio/3gpp`.
@@ -2544,16 +2171,16 @@ public Builder clearOriginalMimeType() {
      * 
* * string original_mime_type = 8; - * * @param value The bytes for originalMimeType to set. * @return This builder for chaining. */ - public Builder setOriginalMimeTypeBytes(com.google.protobuf.ByteString value) { + public Builder setOriginalMimeTypeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + originalMimeType_ = value; onChanged(); return this; @@ -2561,21 +2188,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; @@ -2584,22 +2209,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 { @@ -2607,71 +2231,64 @@ public com.google.protobuf.ByteString getAudioTopicBytes() { } } /** - * - * *
      * Description of the content. Eg. "Recordings of federal supreme court
      * hearings from 2012".
      * 
* * string audio_topic = 10; - * * @param value The audioTopic to set. * @return This builder for chaining. */ - public Builder setAudioTopic(java.lang.String value) { + public Builder setAudioTopic( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + audioTopic_ = value; onChanged(); return this; } /** - * - * *
      * Description of the content. Eg. "Recordings of federal supreme court
      * hearings from 2012".
      * 
* * string audio_topic = 10; - * * @return This builder for chaining. */ public Builder clearAudioTopic() { - + audioTopic_ = getDefaultInstance().getAudioTopic(); onChanged(); return this; } /** - * - * *
      * Description of the content. Eg. "Recordings of federal supreme court
      * hearings from 2012".
      * 
* * string audio_topic = 10; - * * @param value The bytes for audioTopic to set. * @return This builder for chaining. */ - public Builder setAudioTopicBytes(com.google.protobuf.ByteString value) { + public Builder setAudioTopicBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + audioTopic_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2681,12 +2298,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(); } @@ -2695,16 +2312,16 @@ public static com.google.cloud.speech.v1.RecognitionMetadata getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RecognitionMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new RecognitionMetadata(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RecognitionMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RecognitionMetadata(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2719,4 +2336,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1.RecognitionMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionMetadataOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionMetadataOrBuilder.java similarity index 76% rename from proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionMetadataOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionMetadataOrBuilder.java index 2c6508778..b8e683832 100644 --- a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionMetadataOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionMetadataOrBuilder.java @@ -1,56 +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; -public interface RecognitionMetadataOrBuilder - extends +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
@@ -59,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
@@ -157,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
@@ -171,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`.
@@ -187,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`.
@@ -202,35 +141,30 @@ public interface RecognitionMetadataOrBuilder
    * 
* * string original_mime_type = 8; - * * @return The bytes for originalMimeType. */ - com.google.protobuf.ByteString getOriginalMimeTypeBytes(); + com.google.protobuf.ByteString + getOriginalMimeTypeBytes(); /** - * - * *
    * Description of the content. Eg. "Recordings of federal supreme court
    * hearings from 2012".
    * 
* * string audio_topic = 10; - * * @return The audioTopic. */ java.lang.String getAudioTopic(); /** - * - * *
    * Description of the content. Eg. "Recordings of federal supreme court
    * hearings from 2012".
    * 
* * string audio_topic = 10; - * * @return The bytes for audioTopic. */ - com.google.protobuf.ByteString getAudioTopicBytes(); + com.google.protobuf.ByteString + getAudioTopicBytes(); } diff --git a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeRequest.java b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeRequest.java similarity index 61% rename from proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeRequest.java rename to owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeRequest.java index 9f6fd3f2b..abb3c1735 100644 --- a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeRequest.java @@ -1,55 +1,39 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1/cloud_speech.proto package com.google.cloud.speech.v1; /** - * - * *
  * The top-level message sent by the client for the `Recognize` method.
  * 
* * Protobuf type {@code google.cloud.speech.v1.RecognizeRequest} */ -public final class RecognizeRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class RecognizeRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v1.RecognizeRequest) RecognizeRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use RecognizeRequest.newBuilder() to construct. private RecognizeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private RecognizeRequest() {} + private RecognizeRequest() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new RecognizeRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private RecognizeRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,86 +52,73 @@ private RecognizeRequest( case 0: done = true; break; - case 10: - { - com.google.cloud.speech.v1.RecognitionConfig.Builder subBuilder = null; - if (config_ != null) { - subBuilder = config_.toBuilder(); - } - config_ = - input.readMessage( - com.google.cloud.speech.v1.RecognitionConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(config_); - config_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.cloud.speech.v1.RecognitionConfig.Builder subBuilder = null; + if (config_ != null) { + subBuilder = config_.toBuilder(); + } + config_ = input.readMessage(com.google.cloud.speech.v1.RecognitionConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(config_); + config_ = subBuilder.buildPartial(); } - case 18: - { - com.google.cloud.speech.v1.RecognitionAudio.Builder subBuilder = null; - if (audio_ != null) { - subBuilder = audio_.toBuilder(); - } - audio_ = - input.readMessage( - com.google.cloud.speech.v1.RecognitionAudio.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(audio_); - audio_ = subBuilder.buildPartial(); - } - break; + break; + } + case 18: { + com.google.cloud.speech.v1.RecognitionAudio.Builder subBuilder = null; + if (audio_ != null) { + subBuilder = audio_.toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + audio_ = input.readMessage(com.google.cloud.speech.v1.RecognitionAudio.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(audio_); + audio_ = subBuilder.buildPartial(); } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v1.SpeechProto - .internal_static_google_cloud_speech_v1_RecognizeRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_RecognizeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1.SpeechProto - .internal_static_google_cloud_speech_v1_RecognizeRequest_fieldAccessorTable + return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_RecognizeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1.RecognizeRequest.class, - com.google.cloud.speech.v1.RecognizeRequest.Builder.class); + com.google.cloud.speech.v1.RecognizeRequest.class, com.google.cloud.speech.v1.RecognizeRequest.Builder.class); } public static final int CONFIG_FIELD_NUMBER = 1; private com.google.cloud.speech.v1.RecognitionConfig config_; /** - * - * *
    * Required. Provides information to the recognizer that specifies how to
    * process the request.
    * 
* - * - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the config field is set. */ @java.lang.Override @@ -155,36 +126,25 @@ public boolean hasConfig() { return config_ != null; } /** - * - * *
    * Required. Provides information to the recognizer that specifies how to
    * process the request.
    * 
* - * - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The config. */ @java.lang.Override public com.google.cloud.speech.v1.RecognitionConfig getConfig() { - return config_ == null - ? com.google.cloud.speech.v1.RecognitionConfig.getDefaultInstance() - : config_; + return config_ == null ? com.google.cloud.speech.v1.RecognitionConfig.getDefaultInstance() : config_; } /** - * - * *
    * Required. Provides information to the recognizer that specifies how to
    * process the request.
    * 
* - * - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.speech.v1.RecognitionConfigOrBuilder getConfigOrBuilder() { @@ -194,16 +154,11 @@ public com.google.cloud.speech.v1.RecognitionConfigOrBuilder getConfigOrBuilder( public static final int AUDIO_FIELD_NUMBER = 2; private com.google.cloud.speech.v1.RecognitionAudio audio_; /** - * - * *
    * Required. The audio data to be recognized.
    * 
* - * - * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the audio field is set. */ @java.lang.Override @@ -211,34 +166,23 @@ public boolean hasAudio() { return audio_ != null; } /** - * - * *
    * Required. The audio data to be recognized.
    * 
* - * - * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The audio. */ @java.lang.Override public com.google.cloud.speech.v1.RecognitionAudio getAudio() { - return audio_ == null - ? com.google.cloud.speech.v1.RecognitionAudio.getDefaultInstance() - : audio_; + return audio_ == null ? com.google.cloud.speech.v1.RecognitionAudio.getDefaultInstance() : audio_; } /** - * - * *
    * Required. The audio data to be recognized.
    * 
* - * - * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.speech.v1.RecognitionAudioOrBuilder getAudioOrBuilder() { @@ -246,7 +190,6 @@ public com.google.cloud.speech.v1.RecognitionAudioOrBuilder getAudioOrBuilder() } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -258,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 (config_ != null) { output.writeMessage(1, getConfig()); } @@ -275,10 +219,12 @@ public int getSerializedSize() { size = 0; if (config_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getConfig()); } if (audio_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getAudio()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getAudio()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -288,21 +234,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1.RecognizeRequest)) { return super.equals(obj); } - com.google.cloud.speech.v1.RecognizeRequest other = - (com.google.cloud.speech.v1.RecognizeRequest) obj; + com.google.cloud.speech.v1.RecognizeRequest other = (com.google.cloud.speech.v1.RecognizeRequest) obj; if (hasConfig() != other.hasConfig()) return false; if (hasConfig()) { - if (!getConfig().equals(other.getConfig())) return false; + if (!getConfig() + .equals(other.getConfig())) return false; } if (hasAudio() != other.hasAudio()) return false; if (hasAudio()) { - if (!getAudio().equals(other.getAudio())) return false; + if (!getAudio() + .equals(other.getAudio())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -328,127 +275,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.speech.v1.RecognizeRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.speech.v1.RecognizeRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1.RecognizeRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1.RecognizeRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1.RecognizeRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1.RecognizeRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1.RecognizeRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1.RecognizeRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1.RecognizeRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.speech.v1.RecognizeRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.speech.v1.RecognizeRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1.RecognizeRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1.RecognizeRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1.RecognizeRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.speech.v1.RecognizeRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The top-level message sent by the client for the `Recognize` method.
    * 
* * Protobuf type {@code google.cloud.speech.v1.RecognizeRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1.RecognizeRequest) com.google.cloud.speech.v1.RecognizeRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v1.SpeechProto - .internal_static_google_cloud_speech_v1_RecognizeRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_RecognizeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1.SpeechProto - .internal_static_google_cloud_speech_v1_RecognizeRequest_fieldAccessorTable + return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_RecognizeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1.RecognizeRequest.class, - com.google.cloud.speech.v1.RecognizeRequest.Builder.class); + com.google.cloud.speech.v1.RecognizeRequest.class, com.google.cloud.speech.v1.RecognizeRequest.Builder.class); } // Construct using com.google.cloud.speech.v1.RecognizeRequest.newBuilder() @@ -456,15 +394,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -484,9 +423,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 @@ -505,8 +444,7 @@ public com.google.cloud.speech.v1.RecognizeRequest build() { @java.lang.Override public com.google.cloud.speech.v1.RecognizeRequest buildPartial() { - com.google.cloud.speech.v1.RecognizeRequest result = - new com.google.cloud.speech.v1.RecognizeRequest(this); + com.google.cloud.speech.v1.RecognizeRequest result = new com.google.cloud.speech.v1.RecognizeRequest(this); if (configBuilder_ == null) { result.config_ = config_; } else { @@ -525,39 +463,38 @@ public com.google.cloud.speech.v1.RecognizeRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.speech.v1.RecognizeRequest) { - return mergeFrom((com.google.cloud.speech.v1.RecognizeRequest) other); + return mergeFrom((com.google.cloud.speech.v1.RecognizeRequest)other); } else { super.mergeFrom(other); return this; @@ -603,61 +540,42 @@ public Builder mergeFrom( private com.google.cloud.speech.v1.RecognitionConfig config_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1.RecognitionConfig, - com.google.cloud.speech.v1.RecognitionConfig.Builder, - com.google.cloud.speech.v1.RecognitionConfigOrBuilder> - configBuilder_; + com.google.cloud.speech.v1.RecognitionConfig, com.google.cloud.speech.v1.RecognitionConfig.Builder, com.google.cloud.speech.v1.RecognitionConfigOrBuilder> configBuilder_; /** - * - * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the config field is set. */ public boolean hasConfig() { return configBuilder_ != null || config_ != null; } /** - * - * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The config. */ public com.google.cloud.speech.v1.RecognitionConfig getConfig() { if (configBuilder_ == null) { - return config_ == null - ? com.google.cloud.speech.v1.RecognitionConfig.getDefaultInstance() - : config_; + return config_ == null ? com.google.cloud.speech.v1.RecognitionConfig.getDefaultInstance() : config_; } else { return configBuilder_.getMessage(); } } /** - * - * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setConfig(com.google.cloud.speech.v1.RecognitionConfig value) { if (configBuilder_ == null) { @@ -673,18 +591,15 @@ public Builder setConfig(com.google.cloud.speech.v1.RecognitionConfig value) { return this; } /** - * - * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setConfig(com.google.cloud.speech.v1.RecognitionConfig.Builder builderForValue) { + public Builder setConfig( + com.google.cloud.speech.v1.RecognitionConfig.Builder builderForValue) { if (configBuilder_ == null) { config_ = builderForValue.build(); onChanged(); @@ -695,24 +610,18 @@ public Builder setConfig(com.google.cloud.speech.v1.RecognitionConfig.Builder bu return this; } /** - * - * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeConfig(com.google.cloud.speech.v1.RecognitionConfig value) { if (configBuilder_ == null) { if (config_ != null) { config_ = - com.google.cloud.speech.v1.RecognitionConfig.newBuilder(config_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.speech.v1.RecognitionConfig.newBuilder(config_).mergeFrom(value).buildPartial(); } else { config_ = value; } @@ -724,16 +633,12 @@ public Builder mergeConfig(com.google.cloud.speech.v1.RecognitionConfig value) { return this; } /** - * - * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearConfig() { if (configBuilder_ == null) { @@ -747,67 +652,51 @@ public Builder clearConfig() { return this; } /** - * - * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.speech.v1.RecognitionConfig.Builder getConfigBuilder() { - + onChanged(); return getConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.speech.v1.RecognitionConfigOrBuilder getConfigOrBuilder() { if (configBuilder_ != null) { return configBuilder_.getMessageOrBuilder(); } else { - return config_ == null - ? com.google.cloud.speech.v1.RecognitionConfig.getDefaultInstance() - : config_; + return config_ == null ? + com.google.cloud.speech.v1.RecognitionConfig.getDefaultInstance() : config_; } } /** - * - * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1.RecognitionConfig, - com.google.cloud.speech.v1.RecognitionConfig.Builder, - com.google.cloud.speech.v1.RecognitionConfigOrBuilder> + com.google.cloud.speech.v1.RecognitionConfig, com.google.cloud.speech.v1.RecognitionConfig.Builder, com.google.cloud.speech.v1.RecognitionConfigOrBuilder> getConfigFieldBuilder() { if (configBuilder_ == null) { - configBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1.RecognitionConfig, - com.google.cloud.speech.v1.RecognitionConfig.Builder, - com.google.cloud.speech.v1.RecognitionConfigOrBuilder>( - getConfig(), getParentForChildren(), isClean()); + configBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v1.RecognitionConfig, com.google.cloud.speech.v1.RecognitionConfig.Builder, com.google.cloud.speech.v1.RecognitionConfigOrBuilder>( + getConfig(), + getParentForChildren(), + isClean()); config_ = null; } return configBuilder_; @@ -815,58 +704,39 @@ public com.google.cloud.speech.v1.RecognitionConfigOrBuilder getConfigOrBuilder( private com.google.cloud.speech.v1.RecognitionAudio audio_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1.RecognitionAudio, - com.google.cloud.speech.v1.RecognitionAudio.Builder, - com.google.cloud.speech.v1.RecognitionAudioOrBuilder> - audioBuilder_; + com.google.cloud.speech.v1.RecognitionAudio, com.google.cloud.speech.v1.RecognitionAudio.Builder, com.google.cloud.speech.v1.RecognitionAudioOrBuilder> audioBuilder_; /** - * - * *
      * Required. The audio data to be recognized.
      * 
* - * - * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the audio field is set. */ public boolean hasAudio() { return audioBuilder_ != null || audio_ != null; } /** - * - * *
      * Required. The audio data to be recognized.
      * 
* - * - * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The audio. */ public com.google.cloud.speech.v1.RecognitionAudio getAudio() { if (audioBuilder_ == null) { - return audio_ == null - ? com.google.cloud.speech.v1.RecognitionAudio.getDefaultInstance() - : audio_; + return audio_ == null ? com.google.cloud.speech.v1.RecognitionAudio.getDefaultInstance() : audio_; } else { return audioBuilder_.getMessage(); } } /** - * - * *
      * Required. The audio data to be recognized.
      * 
* - * - * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setAudio(com.google.cloud.speech.v1.RecognitionAudio value) { if (audioBuilder_ == null) { @@ -882,17 +752,14 @@ public Builder setAudio(com.google.cloud.speech.v1.RecognitionAudio value) { return this; } /** - * - * *
      * Required. The audio data to be recognized.
      * 
* - * - * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setAudio(com.google.cloud.speech.v1.RecognitionAudio.Builder builderForValue) { + public Builder setAudio( + com.google.cloud.speech.v1.RecognitionAudio.Builder builderForValue) { if (audioBuilder_ == null) { audio_ = builderForValue.build(); onChanged(); @@ -903,23 +770,17 @@ public Builder setAudio(com.google.cloud.speech.v1.RecognitionAudio.Builder buil return this; } /** - * - * *
      * Required. The audio data to be recognized.
      * 
* - * - * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeAudio(com.google.cloud.speech.v1.RecognitionAudio value) { if (audioBuilder_ == null) { if (audio_ != null) { audio_ = - com.google.cloud.speech.v1.RecognitionAudio.newBuilder(audio_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.speech.v1.RecognitionAudio.newBuilder(audio_).mergeFrom(value).buildPartial(); } else { audio_ = value; } @@ -931,15 +792,11 @@ public Builder mergeAudio(com.google.cloud.speech.v1.RecognitionAudio value) { return this; } /** - * - * *
      * Required. The audio data to be recognized.
      * 
* - * - * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearAudio() { if (audioBuilder_ == null) { @@ -953,71 +810,55 @@ public Builder clearAudio() { return this; } /** - * - * *
      * Required. The audio data to be recognized.
      * 
* - * - * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.speech.v1.RecognitionAudio.Builder getAudioBuilder() { - + onChanged(); return getAudioFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The audio data to be recognized.
      * 
* - * - * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.speech.v1.RecognitionAudioOrBuilder getAudioOrBuilder() { if (audioBuilder_ != null) { return audioBuilder_.getMessageOrBuilder(); } else { - return audio_ == null - ? com.google.cloud.speech.v1.RecognitionAudio.getDefaultInstance() - : audio_; + return audio_ == null ? + com.google.cloud.speech.v1.RecognitionAudio.getDefaultInstance() : audio_; } } /** - * - * *
      * Required. The audio data to be recognized.
      * 
* - * - * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1.RecognitionAudio, - com.google.cloud.speech.v1.RecognitionAudio.Builder, - com.google.cloud.speech.v1.RecognitionAudioOrBuilder> + com.google.cloud.speech.v1.RecognitionAudio, com.google.cloud.speech.v1.RecognitionAudio.Builder, com.google.cloud.speech.v1.RecognitionAudioOrBuilder> getAudioFieldBuilder() { if (audioBuilder_ == null) { - audioBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1.RecognitionAudio, - com.google.cloud.speech.v1.RecognitionAudio.Builder, - com.google.cloud.speech.v1.RecognitionAudioOrBuilder>( - getAudio(), getParentForChildren(), isClean()); + audioBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v1.RecognitionAudio, com.google.cloud.speech.v1.RecognitionAudio.Builder, com.google.cloud.speech.v1.RecognitionAudioOrBuilder>( + getAudio(), + getParentForChildren(), + isClean()); audio_ = null; } return audioBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1027,12 +868,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(); } @@ -1041,16 +882,16 @@ public static com.google.cloud.speech.v1.RecognizeRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RecognizeRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new RecognizeRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RecognizeRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RecognizeRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1065,4 +906,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1.RecognizeRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeRequestOrBuilder.java new file mode 100644 index 000000000..5811af703 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeRequestOrBuilder.java @@ -0,0 +1,66 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/speech/v1/cloud_speech.proto + +package com.google.cloud.speech.v1; + +public interface RecognizeRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1.RecognizeRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Provides information to the recognizer that specifies how to
+   * process the request.
+   * 
+ * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the config field is set. + */ + boolean hasConfig(); + /** + *
+   * Required. Provides information to the recognizer that specifies how to
+   * process the request.
+   * 
+ * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return The config. + */ + com.google.cloud.speech.v1.RecognitionConfig getConfig(); + /** + *
+   * Required. Provides information to the recognizer that specifies how to
+   * process the request.
+   * 
+ * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.cloud.speech.v1.RecognitionConfigOrBuilder getConfigOrBuilder(); + + /** + *
+   * Required. The audio data to be recognized.
+   * 
+ * + * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the audio field is set. + */ + boolean hasAudio(); + /** + *
+   * Required. The audio data to be recognized.
+   * 
+ * + * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The audio. + */ + com.google.cloud.speech.v1.RecognitionAudio getAudio(); + /** + *
+   * Required. The audio data to be recognized.
+   * 
+ * + * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.cloud.speech.v1.RecognitionAudioOrBuilder getAudioOrBuilder(); +} diff --git a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeResponse.java b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeResponse.java similarity index 74% rename from proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeResponse.java rename to owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeResponse.java index 3e22f4215..a3ed84195 100644 --- a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeResponse.java +++ b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeResponse.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1/cloud_speech.proto package com.google.cloud.speech.v1; /** - * - * *
  * The only message returned to the client by the `Recognize` method. It
  * contains the result as zero or more sequential `SpeechRecognitionResult`
@@ -29,31 +12,31 @@
  *
  * Protobuf type {@code google.cloud.speech.v1.RecognizeResponse}
  */
-public final class RecognizeResponse extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class RecognizeResponse extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.speech.v1.RecognizeResponse)
     RecognizeResponseOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use RecognizeResponse.newBuilder() to construct.
   private RecognizeResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private RecognizeResponse() {
     results_ = java.util.Collections.emptyList();
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new RecognizeResponse();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private RecognizeResponse(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -73,47 +56,42 @@ private RecognizeResponse(
           case 0:
             done = true;
             break;
-          case 18:
-            {
-              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                results_ =
-                    new java.util.ArrayList();
-                mutable_bitField0_ |= 0x00000001;
-              }
-              results_.add(
-                  input.readMessage(
-                      com.google.cloud.speech.v1.SpeechRecognitionResult.parser(),
-                      extensionRegistry));
-              break;
+          case 18: {
+            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+              results_ = new java.util.ArrayList();
+              mutable_bitField0_ |= 0x00000001;
             }
-          case 26:
-            {
-              com.google.protobuf.Duration.Builder subBuilder = null;
-              if (totalBilledTime_ != null) {
-                subBuilder = totalBilledTime_.toBuilder();
-              }
-              totalBilledTime_ =
-                  input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(totalBilledTime_);
-                totalBilledTime_ = subBuilder.buildPartial();
-              }
-
-              break;
+            results_.add(
+                input.readMessage(com.google.cloud.speech.v1.SpeechRecognitionResult.parser(), extensionRegistry));
+            break;
+          }
+          case 26: {
+            com.google.protobuf.Duration.Builder subBuilder = null;
+            if (totalBilledTime_ != null) {
+              subBuilder = totalBilledTime_.toBuilder();
+            }
+            totalBilledTime_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(totalBilledTime_);
+              totalBilledTime_ = subBuilder.buildPartial();
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         results_ = java.util.Collections.unmodifiableList(results_);
@@ -122,27 +100,22 @@ private RecognizeResponse(
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.speech.v1.SpeechProto
-        .internal_static_google_cloud_speech_v1_RecognizeResponse_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_RecognizeResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v1.SpeechProto
-        .internal_static_google_cloud_speech_v1_RecognizeResponse_fieldAccessorTable
+    return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_RecognizeResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v1.RecognizeResponse.class,
-            com.google.cloud.speech.v1.RecognizeResponse.Builder.class);
+            com.google.cloud.speech.v1.RecognizeResponse.class, com.google.cloud.speech.v1.RecognizeResponse.Builder.class);
   }
 
   public static final int RESULTS_FIELD_NUMBER = 2;
   private java.util.List results_;
   /**
-   *
-   *
    * 
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -155,8 +128,6 @@ public java.util.List getRes
     return results_;
   }
   /**
-   *
-   *
    * 
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -165,13 +136,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.
@@ -184,8 +153,6 @@ public int getResultsCount() {
     return results_.size();
   }
   /**
-   *
-   *
    * 
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -198,8 +165,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.
@@ -216,14 +181,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 @@ -231,25 +193,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.
    * 
@@ -262,7 +217,6 @@ public com.google.protobuf.DurationOrBuilder getTotalBilledTimeOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -274,7 +228,8 @@ public final boolean isInitialized() { } @java.lang.Override - 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)); } @@ -291,10 +246,12 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < results_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, results_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, results_.get(i)); } if (totalBilledTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getTotalBilledTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getTotalBilledTime()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -304,18 +261,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1.RecognizeResponse)) { return super.equals(obj); } - com.google.cloud.speech.v1.RecognizeResponse other = - (com.google.cloud.speech.v1.RecognizeResponse) obj; + com.google.cloud.speech.v1.RecognizeResponse other = (com.google.cloud.speech.v1.RecognizeResponse) obj; - if (!getResultsList().equals(other.getResultsList())) return false; + if (!getResultsList() + .equals(other.getResultsList())) return false; if (hasTotalBilledTime() != other.hasTotalBilledTime()) return false; if (hasTotalBilledTime()) { - if (!getTotalBilledTime().equals(other.getTotalBilledTime())) return false; + if (!getTotalBilledTime() + .equals(other.getTotalBilledTime())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -341,104 +299,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.speech.v1.RecognizeResponse parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.speech.v1.RecognizeResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1.RecognizeResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1.RecognizeResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1.RecognizeResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1.RecognizeResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1.RecognizeResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1.RecognizeResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1.RecognizeResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.speech.v1.RecognizeResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.speech.v1.RecognizeResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1.RecognizeResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1.RecognizeResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1.RecognizeResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.speech.v1.RecognizeResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The only message returned to the client by the `Recognize` method. It
    * contains the result as zero or more sequential `SpeechRecognitionResult`
@@ -447,23 +398,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.speech.v1.RecognizeResponse}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1.RecognizeResponse)
       com.google.cloud.speech.v1.RecognizeResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.speech.v1.SpeechProto
-          .internal_static_google_cloud_speech_v1_RecognizeResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_RecognizeResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v1.SpeechProto
-          .internal_static_google_cloud_speech_v1_RecognizeResponse_fieldAccessorTable
+      return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_RecognizeResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v1.RecognizeResponse.class,
-              com.google.cloud.speech.v1.RecognizeResponse.Builder.class);
+              com.google.cloud.speech.v1.RecognizeResponse.class, com.google.cloud.speech.v1.RecognizeResponse.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v1.RecognizeResponse.newBuilder()
@@ -471,17 +420,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
         getResultsFieldBuilder();
       }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -501,9 +450,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
@@ -522,8 +471,7 @@ public com.google.cloud.speech.v1.RecognizeResponse build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v1.RecognizeResponse buildPartial() {
-      com.google.cloud.speech.v1.RecognizeResponse result =
-          new com.google.cloud.speech.v1.RecognizeResponse(this);
+      com.google.cloud.speech.v1.RecognizeResponse result = new com.google.cloud.speech.v1.RecognizeResponse(this);
       int from_bitField0_ = bitField0_;
       if (resultsBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
@@ -547,39 +495,38 @@ public com.google.cloud.speech.v1.RecognizeResponse buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.speech.v1.RecognizeResponse) {
-        return mergeFrom((com.google.cloud.speech.v1.RecognizeResponse) other);
+        return mergeFrom((com.google.cloud.speech.v1.RecognizeResponse)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -606,10 +553,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_);
           }
@@ -646,29 +592,21 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int bitField0_;
 
     private java.util.List results_ =
-        java.util.Collections.emptyList();
-
+      java.util.Collections.emptyList();
     private void ensureResultsIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
-        results_ =
-            new java.util.ArrayList(results_);
+        results_ = new java.util.ArrayList(results_);
         bitField0_ |= 0x00000001;
-      }
+       }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.speech.v1.SpeechRecognitionResult,
-            com.google.cloud.speech.v1.SpeechRecognitionResult.Builder,
-            com.google.cloud.speech.v1.SpeechRecognitionResultOrBuilder>
-        resultsBuilder_;
+        com.google.cloud.speech.v1.SpeechRecognitionResult, com.google.cloud.speech.v1.SpeechRecognitionResult.Builder, com.google.cloud.speech.v1.SpeechRecognitionResultOrBuilder> resultsBuilder_;
 
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -684,8 +622,6 @@ public java.util.List getRes
       }
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -701,8 +637,6 @@ public int getResultsCount() {
       }
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -718,8 +652,6 @@ public com.google.cloud.speech.v1.SpeechRecognitionResult getResults(int index)
       }
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -727,7 +659,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();
@@ -741,8 +674,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.
@@ -762,8 +693,6 @@ public Builder setResults(
       return this;
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -785,8 +714,6 @@ public Builder addResults(com.google.cloud.speech.v1.SpeechRecognitionResult val
       return this;
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -794,7 +721,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();
@@ -808,8 +736,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.
@@ -829,8 +755,6 @@ public Builder addResults(
       return this;
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -850,8 +774,6 @@ public Builder addResults(
       return this;
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -863,7 +785,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);
@@ -871,8 +794,6 @@ public Builder addAllResults(
       return this;
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -891,8 +812,6 @@ public Builder clearResults() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -911,8 +830,6 @@ public Builder removeResults(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -920,12 +837,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.
@@ -936,14 +852,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.
@@ -951,8 +864,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 {
@@ -960,8 +873,6 @@ public com.google.cloud.speech.v1.SpeechRecognitionResultOrBuilder getResultsOrB
       }
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -970,12 +881,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.
@@ -983,14 +892,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.
@@ -998,23 +905,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_;
@@ -1022,47 +926,34 @@ public com.google.cloud.speech.v1.SpeechRecognitionResult.Builder addResultsBuil
 
     private com.google.protobuf.Duration totalBilledTime_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Duration,
-            com.google.protobuf.Duration.Builder,
-            com.google.protobuf.DurationOrBuilder>
-        totalBilledTimeBuilder_;
+        com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> totalBilledTimeBuilder_;
     /**
-     *
-     *
      * 
      * When available, billed audio seconds for the corresponding request.
      * 
* * .google.protobuf.Duration total_billed_time = 3; - * * @return Whether the totalBilledTime field is set. */ public boolean hasTotalBilledTime() { return totalBilledTimeBuilder_ != null || totalBilledTime_ != null; } /** - * - * *
      * When available, billed audio seconds for the corresponding request.
      * 
* * .google.protobuf.Duration total_billed_time = 3; - * * @return The totalBilledTime. */ public com.google.protobuf.Duration getTotalBilledTime() { if (totalBilledTimeBuilder_ == null) { - return totalBilledTime_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : totalBilledTime_; + return totalBilledTime_ == null ? com.google.protobuf.Duration.getDefaultInstance() : totalBilledTime_; } else { return totalBilledTimeBuilder_.getMessage(); } } /** - * - * *
      * When available, billed audio seconds for the corresponding request.
      * 
@@ -1083,15 +974,14 @@ public Builder setTotalBilledTime(com.google.protobuf.Duration value) { return this; } /** - * - * *
      * When available, billed audio seconds for the corresponding request.
      * 
* * .google.protobuf.Duration total_billed_time = 3; */ - public Builder setTotalBilledTime(com.google.protobuf.Duration.Builder builderForValue) { + public Builder setTotalBilledTime( + com.google.protobuf.Duration.Builder builderForValue) { if (totalBilledTimeBuilder_ == null) { totalBilledTime_ = builderForValue.build(); onChanged(); @@ -1102,8 +992,6 @@ public Builder setTotalBilledTime(com.google.protobuf.Duration.Builder builderFo return this; } /** - * - * *
      * When available, billed audio seconds for the corresponding request.
      * 
@@ -1114,9 +1002,7 @@ public Builder mergeTotalBilledTime(com.google.protobuf.Duration value) { if (totalBilledTimeBuilder_ == null) { if (totalBilledTime_ != null) { totalBilledTime_ = - com.google.protobuf.Duration.newBuilder(totalBilledTime_) - .mergeFrom(value) - .buildPartial(); + com.google.protobuf.Duration.newBuilder(totalBilledTime_).mergeFrom(value).buildPartial(); } else { totalBilledTime_ = value; } @@ -1128,8 +1014,6 @@ public Builder mergeTotalBilledTime(com.google.protobuf.Duration value) { return this; } /** - * - * *
      * When available, billed audio seconds for the corresponding request.
      * 
@@ -1148,8 +1032,6 @@ public Builder clearTotalBilledTime() { return this; } /** - * - * *
      * When available, billed audio seconds for the corresponding request.
      * 
@@ -1157,13 +1039,11 @@ public Builder clearTotalBilledTime() { * .google.protobuf.Duration total_billed_time = 3; */ public com.google.protobuf.Duration.Builder getTotalBilledTimeBuilder() { - + onChanged(); return getTotalBilledTimeFieldBuilder().getBuilder(); } /** - * - * *
      * When available, billed audio seconds for the corresponding request.
      * 
@@ -1174,14 +1054,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.
      * 
@@ -1189,24 +1066,21 @@ public com.google.protobuf.DurationOrBuilder getTotalBilledTimeOrBuilder() { * .google.protobuf.Duration total_billed_time = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> getTotalBilledTimeFieldBuilder() { if (totalBilledTimeBuilder_ == null) { - totalBilledTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder>( - getTotalBilledTime(), getParentForChildren(), isClean()); + totalBilledTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( + getTotalBilledTime(), + getParentForChildren(), + isClean()); totalBilledTime_ = null; } return totalBilledTimeBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1216,12 +1090,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(); } @@ -1230,16 +1104,16 @@ public static com.google.cloud.speech.v1.RecognizeResponse getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RecognizeResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new RecognizeResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RecognizeResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RecognizeResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1254,4 +1128,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1.RecognizeResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeResponseOrBuilder.java similarity index 75% rename from proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeResponseOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeResponseOrBuilder.java index ea3880945..d2b282a71 100644 --- a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeResponseOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeResponseOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1/cloud_speech.proto package com.google.cloud.speech.v1; -public interface RecognizeResponseOrBuilder - extends +public interface RecognizeResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1.RecognizeResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -33,10 +15,9 @@ public interface RecognizeResponseOrBuilder
    *
    * repeated .google.cloud.speech.v1.SpeechRecognitionResult results = 2;
    */
-  java.util.List getResultsList();
+  java.util.List 
+      getResultsList();
   /**
-   *
-   *
    * 
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -46,8 +27,6 @@ public interface RecognizeResponseOrBuilder
    */
   com.google.cloud.speech.v1.SpeechRecognitionResult getResults(int index);
   /**
-   *
-   *
    * 
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -57,8 +36,6 @@ public interface RecognizeResponseOrBuilder
    */
   int getResultsCount();
   /**
-   *
-   *
    * 
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -66,11 +43,9 @@ public interface RecognizeResponseOrBuilder
    *
    * repeated .google.cloud.speech.v1.SpeechRecognitionResult results = 2;
    */
-  java.util.List
+  java.util.List 
       getResultsOrBuilderList();
   /**
-   *
-   *
    * 
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -78,35 +53,28 @@ public interface RecognizeResponseOrBuilder
    *
    * repeated .google.cloud.speech.v1.SpeechRecognitionResult results = 2;
    */
-  com.google.cloud.speech.v1.SpeechRecognitionResultOrBuilder getResultsOrBuilder(int index);
+  com.google.cloud.speech.v1.SpeechRecognitionResultOrBuilder getResultsOrBuilder(
+      int index);
 
   /**
-   *
-   *
    * 
    * When available, billed audio seconds for the corresponding request.
    * 
* * .google.protobuf.Duration total_billed_time = 3; - * * @return Whether the totalBilledTime field is set. */ boolean hasTotalBilledTime(); /** - * - * *
    * When available, billed audio seconds for the corresponding request.
    * 
* * .google.protobuf.Duration total_billed_time = 3; - * * @return The totalBilledTime. */ com.google.protobuf.Duration getTotalBilledTime(); /** - * - * *
    * When available, billed audio seconds for the corresponding request.
    * 
diff --git a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeakerDiarizationConfig.java b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeakerDiarizationConfig.java similarity index 71% rename from proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeakerDiarizationConfig.java rename to owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeakerDiarizationConfig.java index 50f1dda45..698b47b0a 100644 --- a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeakerDiarizationConfig.java +++ b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeakerDiarizationConfig.java @@ -1,55 +1,39 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1/cloud_speech.proto package com.google.cloud.speech.v1; /** - * - * *
  * Config to enable speaker diarization.
  * 
* * Protobuf type {@code google.cloud.speech.v1.SpeakerDiarizationConfig} */ -public final class SpeakerDiarizationConfig extends com.google.protobuf.GeneratedMessageV3 - implements +public final class SpeakerDiarizationConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v1.SpeakerDiarizationConfig) SpeakerDiarizationConfigOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use SpeakerDiarizationConfig.newBuilder() to construct. private SpeakerDiarizationConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private SpeakerDiarizationConfig() {} + private SpeakerDiarizationConfig() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new SpeakerDiarizationConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private SpeakerDiarizationConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,65 +52,61 @@ private SpeakerDiarizationConfig( case 0: done = true; break; - case 8: - { - enableSpeakerDiarization_ = input.readBool(); - break; - } - case 16: - { - minSpeakerCount_ = input.readInt32(); - break; - } - case 24: - { - maxSpeakerCount_ = input.readInt32(); - break; - } - case 40: - { - speakerTag_ = input.readInt32(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + case 8: { + + enableSpeakerDiarization_ = input.readBool(); + break; + } + case 16: { + + minSpeakerCount_ = input.readInt32(); + break; + } + case 24: { + + maxSpeakerCount_ = input.readInt32(); + break; + } + case 40: { + + speakerTag_ = input.readInt32(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v1.SpeechProto - .internal_static_google_cloud_speech_v1_SpeakerDiarizationConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_SpeakerDiarizationConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1.SpeechProto - .internal_static_google_cloud_speech_v1_SpeakerDiarizationConfig_fieldAccessorTable + return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_SpeakerDiarizationConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1.SpeakerDiarizationConfig.class, - com.google.cloud.speech.v1.SpeakerDiarizationConfig.Builder.class); + com.google.cloud.speech.v1.SpeakerDiarizationConfig.class, com.google.cloud.speech.v1.SpeakerDiarizationConfig.Builder.class); } public static final int ENABLE_SPEAKER_DIARIZATION_FIELD_NUMBER = 1; private boolean enableSpeakerDiarization_; /** - * - * *
    * If 'true', enables speaker detection for each recognized word in
    * the top alternative of the recognition result using a speaker_tag provided
@@ -134,7 +114,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * bool enable_speaker_diarization = 1; - * * @return The enableSpeakerDiarization. */ @java.lang.Override @@ -145,8 +124,6 @@ public boolean getEnableSpeakerDiarization() { public static final int MIN_SPEAKER_COUNT_FIELD_NUMBER = 2; private int minSpeakerCount_; /** - * - * *
    * Minimum number of speakers in the conversation. This range gives you more
    * flexibility by allowing the system to automatically determine the correct
@@ -154,7 +131,6 @@ public boolean getEnableSpeakerDiarization() {
    * 
* * int32 min_speaker_count = 2; - * * @return The minSpeakerCount. */ @java.lang.Override @@ -165,8 +141,6 @@ public int getMinSpeakerCount() { public static final int MAX_SPEAKER_COUNT_FIELD_NUMBER = 3; private int maxSpeakerCount_; /** - * - * *
    * Maximum number of speakers in the conversation. This range gives you more
    * flexibility by allowing the system to automatically determine the correct
@@ -174,7 +148,6 @@ public int getMinSpeakerCount() {
    * 
* * int32 max_speaker_count = 3; - * * @return The maxSpeakerCount. */ @java.lang.Override @@ -185,25 +158,19 @@ public int getMaxSpeakerCount() { public static final int SPEAKER_TAG_FIELD_NUMBER = 5; private int speakerTag_; /** - * - * *
    * Output only. Unused.
    * 
* - * int32 speaker_tag = 5 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * int32 speaker_tag = 5 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; * @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; @@ -215,7 +182,8 @@ public final boolean isInitialized() { } @java.lang.Override - public 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_); } @@ -238,16 +206,20 @@ public int getSerializedSize() { size = 0; if (enableSpeakerDiarization_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, enableSpeakerDiarization_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(1, enableSpeakerDiarization_); } if (minSpeakerCount_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, minSpeakerCount_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, minSpeakerCount_); } if (maxSpeakerCount_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, maxSpeakerCount_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, maxSpeakerCount_); } if (speakerTag_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, speakerTag_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(5, speakerTag_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -257,18 +229,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1.SpeakerDiarizationConfig)) { return super.equals(obj); } - com.google.cloud.speech.v1.SpeakerDiarizationConfig other = - (com.google.cloud.speech.v1.SpeakerDiarizationConfig) obj; + com.google.cloud.speech.v1.SpeakerDiarizationConfig other = (com.google.cloud.speech.v1.SpeakerDiarizationConfig) obj; - if (getEnableSpeakerDiarization() != other.getEnableSpeakerDiarization()) return false; - if (getMinSpeakerCount() != other.getMinSpeakerCount()) return false; - if (getMaxSpeakerCount() != other.getMaxSpeakerCount()) return false; - if (getSpeakerTag() != other.getSpeakerTag()) return false; + if (getEnableSpeakerDiarization() + != other.getEnableSpeakerDiarization()) return false; + if (getMinSpeakerCount() + != other.getMinSpeakerCount()) return false; + if (getMaxSpeakerCount() + != other.getMaxSpeakerCount()) return false; + if (getSpeakerTag() + != other.getSpeakerTag()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -281,7 +256,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; @@ -294,126 +270,117 @@ public int hashCode() { } public static com.google.cloud.speech.v1.SpeakerDiarizationConfig parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1.SpeakerDiarizationConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1.SpeakerDiarizationConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1.SpeakerDiarizationConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1.SpeakerDiarizationConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1.SpeakerDiarizationConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.speech.v1.SpeakerDiarizationConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.speech.v1.SpeakerDiarizationConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1.SpeakerDiarizationConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.speech.v1.SpeakerDiarizationConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.speech.v1.SpeakerDiarizationConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1.SpeakerDiarizationConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1.SpeakerDiarizationConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1.SpeakerDiarizationConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.speech.v1.SpeakerDiarizationConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Config to enable speaker diarization.
    * 
* * Protobuf type {@code google.cloud.speech.v1.SpeakerDiarizationConfig} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1.SpeakerDiarizationConfig) com.google.cloud.speech.v1.SpeakerDiarizationConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v1.SpeechProto - .internal_static_google_cloud_speech_v1_SpeakerDiarizationConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_SpeakerDiarizationConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1.SpeechProto - .internal_static_google_cloud_speech_v1_SpeakerDiarizationConfig_fieldAccessorTable + return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_SpeakerDiarizationConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1.SpeakerDiarizationConfig.class, - com.google.cloud.speech.v1.SpeakerDiarizationConfig.Builder.class); + com.google.cloud.speech.v1.SpeakerDiarizationConfig.class, com.google.cloud.speech.v1.SpeakerDiarizationConfig.Builder.class); } // Construct using com.google.cloud.speech.v1.SpeakerDiarizationConfig.newBuilder() @@ -421,15 +388,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -445,9 +413,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 @@ -466,8 +434,7 @@ public com.google.cloud.speech.v1.SpeakerDiarizationConfig build() { @java.lang.Override public com.google.cloud.speech.v1.SpeakerDiarizationConfig buildPartial() { - com.google.cloud.speech.v1.SpeakerDiarizationConfig result = - new com.google.cloud.speech.v1.SpeakerDiarizationConfig(this); + com.google.cloud.speech.v1.SpeakerDiarizationConfig result = new com.google.cloud.speech.v1.SpeakerDiarizationConfig(this); result.enableSpeakerDiarization_ = enableSpeakerDiarization_; result.minSpeakerCount_ = minSpeakerCount_; result.maxSpeakerCount_ = maxSpeakerCount_; @@ -480,39 +447,38 @@ public com.google.cloud.speech.v1.SpeakerDiarizationConfig buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.speech.v1.SpeakerDiarizationConfig) { - return mergeFrom((com.google.cloud.speech.v1.SpeakerDiarizationConfig) other); + return mergeFrom((com.google.cloud.speech.v1.SpeakerDiarizationConfig)other); } else { super.mergeFrom(other); return this; @@ -520,8 +486,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()); } @@ -553,8 +518,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.speech.v1.SpeakerDiarizationConfig) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.speech.v1.SpeakerDiarizationConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -564,10 +528,8 @@ public Builder mergeFrom( return this; } - private boolean enableSpeakerDiarization_; + private boolean enableSpeakerDiarization_ ; /** - * - * *
      * If 'true', enables speaker detection for each recognized word in
      * the top alternative of the recognition result using a speaker_tag provided
@@ -575,7 +537,6 @@ public Builder mergeFrom(
      * 
* * bool enable_speaker_diarization = 1; - * * @return The enableSpeakerDiarization. */ @java.lang.Override @@ -583,8 +544,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
@@ -592,19 +551,16 @@ public boolean getEnableSpeakerDiarization() {
      * 
* * bool enable_speaker_diarization = 1; - * * @param value The enableSpeakerDiarization to set. * @return This builder for chaining. */ public Builder setEnableSpeakerDiarization(boolean value) { - + enableSpeakerDiarization_ = value; onChanged(); return this; } /** - * - * *
      * If 'true', enables speaker detection for each recognized word in
      * the top alternative of the recognition result using a speaker_tag provided
@@ -612,20 +568,17 @@ public Builder setEnableSpeakerDiarization(boolean value) {
      * 
* * bool enable_speaker_diarization = 1; - * * @return This builder for chaining. */ public Builder clearEnableSpeakerDiarization() { - + enableSpeakerDiarization_ = false; onChanged(); return this; } - private int minSpeakerCount_; + private int minSpeakerCount_ ; /** - * - * *
      * Minimum number of speakers in the conversation. This range gives you more
      * flexibility by allowing the system to automatically determine the correct
@@ -633,7 +586,6 @@ public Builder clearEnableSpeakerDiarization() {
      * 
* * int32 min_speaker_count = 2; - * * @return The minSpeakerCount. */ @java.lang.Override @@ -641,8 +593,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
@@ -650,19 +600,16 @@ public int getMinSpeakerCount() {
      * 
* * int32 min_speaker_count = 2; - * * @param value The minSpeakerCount to set. * @return This builder for chaining. */ public Builder setMinSpeakerCount(int value) { - + minSpeakerCount_ = value; onChanged(); return this; } /** - * - * *
      * Minimum number of speakers in the conversation. This range gives you more
      * flexibility by allowing the system to automatically determine the correct
@@ -670,20 +617,17 @@ public Builder setMinSpeakerCount(int value) {
      * 
* * int32 min_speaker_count = 2; - * * @return This builder for chaining. */ public Builder clearMinSpeakerCount() { - + minSpeakerCount_ = 0; onChanged(); return this; } - private int maxSpeakerCount_; + private int maxSpeakerCount_ ; /** - * - * *
      * Maximum number of speakers in the conversation. This range gives you more
      * flexibility by allowing the system to automatically determine the correct
@@ -691,7 +635,6 @@ public Builder clearMinSpeakerCount() {
      * 
* * int32 max_speaker_count = 3; - * * @return The maxSpeakerCount. */ @java.lang.Override @@ -699,8 +642,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
@@ -708,19 +649,16 @@ public int getMaxSpeakerCount() {
      * 
* * int32 max_speaker_count = 3; - * * @param value The maxSpeakerCount to set. * @return This builder for chaining. */ public Builder setMaxSpeakerCount(int value) { - + maxSpeakerCount_ = value; onChanged(); return this; } /** - * - * *
      * Maximum number of speakers in the conversation. This range gives you more
      * flexibility by allowing the system to automatically determine the correct
@@ -728,76 +666,60 @@ public Builder setMaxSpeakerCount(int value) {
      * 
* * int32 max_speaker_count = 3; - * * @return This builder for chaining. */ public Builder clearMaxSpeakerCount() { - + maxSpeakerCount_ = 0; onChanged(); return this; } - private int speakerTag_; + private int speakerTag_ ; /** - * - * *
      * Output only. Unused.
      * 
* - * int32 speaker_tag = 5 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * int32 speaker_tag = 5 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; * @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]; * @param value The speakerTag to set. * @return This builder for chaining. */ - @java.lang.Deprecated - public Builder setSpeakerTag(int value) { - + @java.lang.Deprecated public Builder setSpeakerTag(int value) { + speakerTag_ = value; onChanged(); return this; } /** - * - * *
      * Output only. Unused.
      * 
* - * int32 speaker_tag = 5 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * int32 speaker_tag = 5 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ - @java.lang.Deprecated - public Builder clearSpeakerTag() { - + @java.lang.Deprecated public Builder clearSpeakerTag() { + speakerTag_ = 0; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -807,12 +729,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(); } @@ -821,16 +743,16 @@ public static com.google.cloud.speech.v1.SpeakerDiarizationConfig getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SpeakerDiarizationConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SpeakerDiarizationConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SpeakerDiarizationConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SpeakerDiarizationConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -845,4 +767,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1.SpeakerDiarizationConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeakerDiarizationConfigOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeakerDiarizationConfigOrBuilder.java similarity index 65% rename from proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeakerDiarizationConfigOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeakerDiarizationConfigOrBuilder.java index 9f957fb4a..962158b1e 100644 --- a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeakerDiarizationConfigOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeakerDiarizationConfigOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1/cloud_speech.proto package com.google.cloud.speech.v1; -public interface SpeakerDiarizationConfigOrBuilder - extends +public interface SpeakerDiarizationConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1.SpeakerDiarizationConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * If 'true', enables speaker detection for each recognized word in
    * the top alternative of the recognition result using a speaker_tag provided
@@ -33,14 +15,11 @@ public interface SpeakerDiarizationConfigOrBuilder
    * 
* * bool enable_speaker_diarization = 1; - * * @return The enableSpeakerDiarization. */ boolean getEnableSpeakerDiarization(); /** - * - * *
    * Minimum number of speakers in the conversation. This range gives you more
    * flexibility by allowing the system to automatically determine the correct
@@ -48,14 +27,11 @@ public interface SpeakerDiarizationConfigOrBuilder
    * 
* * int32 min_speaker_count = 2; - * * @return The minSpeakerCount. */ int getMinSpeakerCount(); /** - * - * *
    * Maximum number of speakers in the conversation. This range gives you more
    * flexibility by allowing the system to automatically determine the correct
@@ -63,23 +39,17 @@ 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]; * @return The speakerTag. */ - @java.lang.Deprecated - int getSpeakerTag(); + @java.lang.Deprecated int getSpeakerTag(); } diff --git a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechAdaptation.java b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechAdaptation.java similarity index 79% rename from proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechAdaptation.java rename to owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechAdaptation.java index 106a91b7e..16878785c 100644 --- a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechAdaptation.java +++ b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechAdaptation.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1/resource.proto package com.google.cloud.speech.v1; /** - * - * *
  * Speech adaptation configuration.
  * 
* * Protobuf type {@code google.cloud.speech.v1.SpeechAdaptation} */ -public final class SpeechAdaptation extends com.google.protobuf.GeneratedMessageV3 - implements +public final class SpeechAdaptation extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v1.SpeechAdaptation) SpeechAdaptationOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use SpeechAdaptation.newBuilder() to construct. private SpeechAdaptation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private SpeechAdaptation() { phraseSets_ = java.util.Collections.emptyList(); phraseSetReferences_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -45,15 +27,16 @@ private SpeechAdaptation() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new SpeechAdaptation(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private SpeechAdaptation( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -73,51 +56,47 @@ private SpeechAdaptation( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - phraseSets_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - phraseSets_.add( - input.readMessage( - com.google.cloud.speech.v1.PhraseSet.parser(), extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + phraseSets_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - phraseSetReferences_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; - } - phraseSetReferences_.add(s); - break; + phraseSets_.add( + input.readMessage(com.google.cloud.speech.v1.PhraseSet.parser(), extensionRegistry)); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + phraseSetReferences_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; } - case 26: - { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - customClasses_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000004; - } - customClasses_.add( - input.readMessage( - com.google.cloud.speech.v1.CustomClass.parser(), extensionRegistry)); - break; + phraseSetReferences_.add(s); + break; + } + case 26: { + if (!((mutable_bitField0_ & 0x00000004) != 0)) { + customClasses_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000004; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + customClasses_.add( + input.readMessage(com.google.cloud.speech.v1.CustomClass.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { phraseSets_ = java.util.Collections.unmodifiableList(phraseSets_); @@ -132,27 +111,22 @@ private SpeechAdaptation( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v1.SpeechResourceProto - .internal_static_google_cloud_speech_v1_SpeechAdaptation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v1.SpeechResourceProto.internal_static_google_cloud_speech_v1_SpeechAdaptation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1.SpeechResourceProto - .internal_static_google_cloud_speech_v1_SpeechAdaptation_fieldAccessorTable + return com.google.cloud.speech.v1.SpeechResourceProto.internal_static_google_cloud_speech_v1_SpeechAdaptation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1.SpeechAdaptation.class, - com.google.cloud.speech.v1.SpeechAdaptation.Builder.class); + com.google.cloud.speech.v1.SpeechAdaptation.class, com.google.cloud.speech.v1.SpeechAdaptation.Builder.class); } public static final int PHRASE_SETS_FIELD_NUMBER = 1; private java.util.List phraseSets_; /** - * - * *
    * A collection of phrase sets. To specify the hints inline, leave the
    * phrase set's `name` blank and fill in the rest of its fields. Any
@@ -166,8 +140,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
@@ -177,13 +149,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
@@ -197,8 +167,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
@@ -212,8 +180,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
@@ -223,52 +189,42 @@ public com.google.cloud.speech.v1.PhraseSet getPhraseSets(int index) {
    * repeated .google.cloud.speech.v1.PhraseSet phrase_sets = 1;
    */
   @java.lang.Override
-  public com.google.cloud.speech.v1.PhraseSetOrBuilder getPhraseSetsOrBuilder(int index) {
+  public com.google.cloud.speech.v1.PhraseSetOrBuilder getPhraseSetsOrBuilder(
+      int index) {
     return phraseSets_.get(index);
   }
 
   public static final int PHRASE_SET_REFERENCES_FIELD_NUMBER = 2;
   private com.google.protobuf.LazyStringList phraseSetReferences_;
   /**
-   *
-   *
    * 
    * A collection of phrase set resource names to use.
    * 
* - * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } - * - * + * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } * @return A list containing the phraseSetReferences. */ - public com.google.protobuf.ProtocolStringList getPhraseSetReferencesList() { + public com.google.protobuf.ProtocolStringList + getPhraseSetReferencesList() { return phraseSetReferences_; } /** - * - * *
    * A collection of phrase set resource names to use.
    * 
* - * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } - * - * + * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } * @return The count of phraseSetReferences. */ public int getPhraseSetReferencesCount() { return phraseSetReferences_.size(); } /** - * - * *
    * A collection of phrase set resource names to use.
    * 
* - * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } - * - * + * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } * @param index The index of the element to return. * @return The phraseSetReferences at the given index. */ @@ -276,27 +232,22 @@ public java.lang.String getPhraseSetReferences(int index) { return phraseSetReferences_.get(index); } /** - * - * *
    * A collection of phrase set resource names to use.
    * 
* - * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } - * - * + * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } * @param index The index of the value to return. * @return The bytes of the phraseSetReferences at the given index. */ - public com.google.protobuf.ByteString getPhraseSetReferencesBytes(int index) { + public com.google.protobuf.ByteString + getPhraseSetReferencesBytes(int index) { return phraseSetReferences_.getByteString(index); } public static final int CUSTOM_CLASSES_FIELD_NUMBER = 3; private java.util.List customClasses_; /** - * - * *
    * A collection of custom classes. To specify the classes inline, leave the
    * class' `name` blank and fill in the rest of its fields, giving it a unique
@@ -311,8 +262,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
@@ -323,13 +272,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
@@ -344,8 +291,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
@@ -360,8 +305,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
@@ -372,12 +315,12 @@ public com.google.cloud.speech.v1.CustomClass getCustomClasses(int index) {
    * repeated .google.cloud.speech.v1.CustomClass custom_classes = 3;
    */
   @java.lang.Override
-  public com.google.cloud.speech.v1.CustomClassOrBuilder getCustomClassesOrBuilder(int index) {
+  public com.google.cloud.speech.v1.CustomClassOrBuilder getCustomClassesOrBuilder(
+      int index) {
     return customClasses_.get(index);
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -389,7 +332,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  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));
     }
@@ -409,7 +353,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;
@@ -420,7 +365,8 @@ public int getSerializedSize() {
       size += 1 * getPhraseSetReferencesList().size();
     }
     for (int i = 0; i < customClasses_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, customClasses_.get(i));
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(3, customClasses_.get(i));
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -430,17 +376,19 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.speech.v1.SpeechAdaptation)) {
       return super.equals(obj);
     }
-    com.google.cloud.speech.v1.SpeechAdaptation other =
-        (com.google.cloud.speech.v1.SpeechAdaptation) obj;
+    com.google.cloud.speech.v1.SpeechAdaptation other = (com.google.cloud.speech.v1.SpeechAdaptation) obj;
 
-    if (!getPhraseSetsList().equals(other.getPhraseSetsList())) return false;
-    if (!getPhraseSetReferencesList().equals(other.getPhraseSetReferencesList())) return false;
-    if (!getCustomClassesList().equals(other.getCustomClassesList())) return false;
+    if (!getPhraseSetsList()
+        .equals(other.getPhraseSetsList())) return false;
+    if (!getPhraseSetReferencesList()
+        .equals(other.getPhraseSetReferencesList())) return false;
+    if (!getCustomClassesList()
+        .equals(other.getCustomClassesList())) return false;
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
   }
@@ -469,127 +417,118 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.cloud.speech.v1.SpeechAdaptation parseFrom(java.nio.ByteBuffer data)
+  public static com.google.cloud.speech.v1.SpeechAdaptation parseFrom(
+      java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.speech.v1.SpeechAdaptation parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.speech.v1.SpeechAdaptation parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.speech.v1.SpeechAdaptation parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.speech.v1.SpeechAdaptation parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.speech.v1.SpeechAdaptation parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.speech.v1.SpeechAdaptation parseFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.speech.v1.SpeechAdaptation parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
-
-  public static com.google.cloud.speech.v1.SpeechAdaptation parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.speech.v1.SpeechAdaptation parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.speech.v1.SpeechAdaptation parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.speech.v1.SpeechAdaptation parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.speech.v1.SpeechAdaptation parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
   public static Builder newBuilder(com.google.cloud.speech.v1.SpeechAdaptation prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * Speech adaptation configuration.
    * 
* * Protobuf type {@code google.cloud.speech.v1.SpeechAdaptation} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1.SpeechAdaptation) com.google.cloud.speech.v1.SpeechAdaptationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v1.SpeechResourceProto - .internal_static_google_cloud_speech_v1_SpeechAdaptation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v1.SpeechResourceProto.internal_static_google_cloud_speech_v1_SpeechAdaptation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1.SpeechResourceProto - .internal_static_google_cloud_speech_v1_SpeechAdaptation_fieldAccessorTable + return com.google.cloud.speech.v1.SpeechResourceProto.internal_static_google_cloud_speech_v1_SpeechAdaptation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1.SpeechAdaptation.class, - com.google.cloud.speech.v1.SpeechAdaptation.Builder.class); + com.google.cloud.speech.v1.SpeechAdaptation.class, com.google.cloud.speech.v1.SpeechAdaptation.Builder.class); } // Construct using com.google.cloud.speech.v1.SpeechAdaptation.newBuilder() @@ -597,18 +536,18 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getPhraseSetsFieldBuilder(); getCustomClassesFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -630,9 +569,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 @@ -651,8 +590,7 @@ public com.google.cloud.speech.v1.SpeechAdaptation build() { @java.lang.Override public com.google.cloud.speech.v1.SpeechAdaptation buildPartial() { - com.google.cloud.speech.v1.SpeechAdaptation result = - new com.google.cloud.speech.v1.SpeechAdaptation(this); + com.google.cloud.speech.v1.SpeechAdaptation result = new com.google.cloud.speech.v1.SpeechAdaptation(this); int from_bitField0_ = bitField0_; if (phraseSetsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -685,39 +623,38 @@ public com.google.cloud.speech.v1.SpeechAdaptation buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.speech.v1.SpeechAdaptation) { - return mergeFrom((com.google.cloud.speech.v1.SpeechAdaptation) other); + return mergeFrom((com.google.cloud.speech.v1.SpeechAdaptation)other); } else { super.mergeFrom(other); return this; @@ -744,10 +681,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_); } @@ -781,10 +717,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_); } @@ -818,28 +753,21 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.util.List phraseSets_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensurePhraseSetsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { phraseSets_ = new java.util.ArrayList(phraseSets_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.speech.v1.PhraseSet, - com.google.cloud.speech.v1.PhraseSet.Builder, - com.google.cloud.speech.v1.PhraseSetOrBuilder> - phraseSetsBuilder_; + com.google.cloud.speech.v1.PhraseSet, com.google.cloud.speech.v1.PhraseSet.Builder, com.google.cloud.speech.v1.PhraseSetOrBuilder> phraseSetsBuilder_; /** - * - * *
      * A collection of phrase sets. To specify the hints inline, leave the
      * phrase set's `name` blank and fill in the rest of its fields. Any
@@ -856,8 +784,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
@@ -874,8 +800,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
@@ -892,8 +816,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
@@ -902,7 +824,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();
@@ -916,8 +839,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
@@ -938,8 +859,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
@@ -962,8 +881,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
@@ -972,7 +889,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();
@@ -986,8 +904,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
@@ -996,7 +912,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());
@@ -1007,8 +924,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
@@ -1029,8 +944,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
@@ -1043,7 +956,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);
@@ -1051,8 +965,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
@@ -1072,8 +984,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
@@ -1093,8 +1003,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
@@ -1103,12 +1011,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
@@ -1117,16 +1024,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
@@ -1135,8 +1040,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 {
@@ -1144,8 +1049,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
@@ -1155,12 +1058,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
@@ -1169,13 +1070,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
@@ -1184,76 +1084,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. */ @@ -1261,95 +1146,80 @@ public java.lang.String getPhraseSetReferences(int index) { return phraseSetReferences_.get(index); } /** - * - * *
      * A collection of phrase set resource names to use.
      * 
* - * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } - * - * + * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } * @param index The index of the value to return. * @return The bytes of the phraseSetReferences at the given index. */ - public com.google.protobuf.ByteString getPhraseSetReferencesBytes(int index) { + public com.google.protobuf.ByteString + getPhraseSetReferencesBytes(int index) { return phraseSetReferences_.getByteString(index); } /** - * - * *
      * A collection of phrase set resource names to use.
      * 
* - * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } - * - * + * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } * @param index The index to set the value at. * @param value The phraseSetReferences to set. * @return This builder for chaining. */ - public Builder setPhraseSetReferences(int index, java.lang.String value) { + public Builder setPhraseSetReferences( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensurePhraseSetReferencesIsMutable(); + throw new NullPointerException(); + } + ensurePhraseSetReferencesIsMutable(); phraseSetReferences_.set(index, value); onChanged(); return this; } /** - * - * *
      * A collection of phrase set resource names to use.
      * 
* - * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } - * - * + * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } * @param value The phraseSetReferences to add. * @return This builder for chaining. */ - public Builder addPhraseSetReferences(java.lang.String value) { + public Builder addPhraseSetReferences( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensurePhraseSetReferencesIsMutable(); + throw new NullPointerException(); + } + ensurePhraseSetReferencesIsMutable(); phraseSetReferences_.add(value); onChanged(); return this; } /** - * - * *
      * A collection of phrase set resource names to use.
      * 
* - * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } - * - * + * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } * @param values The phraseSetReferences to add. * @return This builder for chaining. */ - public Builder addAllPhraseSetReferences(java.lang.Iterable values) { + public Builder addAllPhraseSetReferences( + java.lang.Iterable values) { ensurePhraseSetReferencesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, phraseSetReferences_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, phraseSetReferences_); onChanged(); return this; } /** - * - * *
      * A collection of phrase set resource names to use.
      * 
* - * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } - * - * + * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearPhraseSetReferences() { @@ -1359,23 +1229,20 @@ public Builder clearPhraseSetReferences() { return this; } /** - * - * *
      * A collection of phrase set resource names to use.
      * 
* - * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } - * - * + * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } * @param value The bytes of the phraseSetReferences to add. * @return This builder for chaining. */ - public Builder addPhraseSetReferencesBytes(com.google.protobuf.ByteString value) { + public Builder addPhraseSetReferencesBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensurePhraseSetReferencesIsMutable(); phraseSetReferences_.add(value); onChanged(); @@ -1383,25 +1250,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
@@ -1419,8 +1279,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
@@ -1438,8 +1296,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
@@ -1457,8 +1313,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
@@ -1468,7 +1322,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();
@@ -1482,8 +1337,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
@@ -1505,8 +1358,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
@@ -1530,8 +1381,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
@@ -1541,7 +1390,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();
@@ -1555,8 +1405,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
@@ -1578,8 +1426,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
@@ -1601,8 +1447,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
@@ -1616,7 +1460,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);
@@ -1624,8 +1469,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
@@ -1646,8 +1489,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
@@ -1668,8 +1509,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
@@ -1679,12 +1518,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
@@ -1694,16 +1532,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
@@ -1713,8 +1549,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 {
@@ -1722,8 +1558,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
@@ -1734,12 +1568,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
@@ -1749,13 +1581,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
@@ -1765,22 +1596,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(),
@@ -1789,9 +1614,9 @@ public com.google.cloud.speech.v1.CustomClass.Builder addCustomClassesBuilder(in
       }
       return customClassesBuilder_;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1801,12 +1626,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();
   }
@@ -1815,16 +1640,16 @@ public static com.google.cloud.speech.v1.SpeechAdaptation getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public SpeechAdaptation parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          return new SpeechAdaptation(input, extensionRegistry);
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public SpeechAdaptation parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      return new SpeechAdaptation(input, extensionRegistry);
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1839,4 +1664,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.speech.v1.SpeechAdaptation getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechAdaptationOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechAdaptationOrBuilder.java
similarity index 79%
rename from proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechAdaptationOrBuilder.java
rename to owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechAdaptationOrBuilder.java
index 7ac546836..b40c4c5a0 100644
--- a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechAdaptationOrBuilder.java
+++ b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechAdaptationOrBuilder.java
@@ -1,31 +1,13 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/speech/v1/resource.proto
 
 package com.google.cloud.speech.v1;
 
-public interface SpeechAdaptationOrBuilder
-    extends
+public interface SpeechAdaptationOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1.SpeechAdaptation)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * A collection of phrase sets. To specify the hints inline, leave the
    * phrase set's `name` blank and fill in the rest of its fields. Any
@@ -34,10 +16,9 @@ public interface SpeechAdaptationOrBuilder
    *
    * repeated .google.cloud.speech.v1.PhraseSet phrase_sets = 1;
    */
-  java.util.List getPhraseSetsList();
+  java.util.List 
+      getPhraseSetsList();
   /**
-   *
-   *
    * 
    * A collection of phrase sets. To specify the hints inline, leave the
    * phrase set's `name` blank and fill in the rest of its fields. Any
@@ -48,8 +29,6 @@ public interface SpeechAdaptationOrBuilder
    */
   com.google.cloud.speech.v1.PhraseSet getPhraseSets(int index);
   /**
-   *
-   *
    * 
    * A collection of phrase sets. To specify the hints inline, leave the
    * phrase set's `name` blank and fill in the rest of its fields. Any
@@ -60,8 +39,6 @@ public interface SpeechAdaptationOrBuilder
    */
   int getPhraseSetsCount();
   /**
-   *
-   *
    * 
    * A collection of phrase sets. To specify the hints inline, leave the
    * phrase set's `name` blank and fill in the rest of its fields. Any
@@ -70,11 +47,9 @@ public interface SpeechAdaptationOrBuilder
    *
    * repeated .google.cloud.speech.v1.PhraseSet phrase_sets = 1;
    */
-  java.util.List
+  java.util.List 
       getPhraseSetsOrBuilderList();
   /**
-   *
-   *
    * 
    * A collection of phrase sets. To specify the hints inline, leave the
    * phrase set's `name` blank and fill in the rest of its fields. Any
@@ -83,66 +58,51 @@ public interface SpeechAdaptationOrBuilder
    *
    * repeated .google.cloud.speech.v1.PhraseSet phrase_sets = 1;
    */
-  com.google.cloud.speech.v1.PhraseSetOrBuilder getPhraseSetsOrBuilder(int index);
+  com.google.cloud.speech.v1.PhraseSetOrBuilder getPhraseSetsOrBuilder(
+      int index);
 
   /**
-   *
-   *
    * 
    * A collection of phrase set resource names to use.
    * 
* - * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } - * - * + * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } * @return A list containing the phraseSetReferences. */ - java.util.List getPhraseSetReferencesList(); + java.util.List + getPhraseSetReferencesList(); /** - * - * *
    * A collection of phrase set resource names to use.
    * 
* - * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } - * - * + * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } * @return The count of phraseSetReferences. */ int getPhraseSetReferencesCount(); /** - * - * *
    * A collection of phrase set resource names to use.
    * 
* - * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } - * - * + * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } * @param index The index of the element to return. * @return The phraseSetReferences at the given index. */ java.lang.String getPhraseSetReferences(int index); /** - * - * *
    * A collection of phrase set resource names to use.
    * 
* - * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } - * - * + * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } * @param index The index of the value to return. * @return The bytes of the phraseSetReferences at the given index. */ - com.google.protobuf.ByteString getPhraseSetReferencesBytes(int index); + com.google.protobuf.ByteString + getPhraseSetReferencesBytes(int index); /** - * - * *
    * A collection of custom classes. To specify the classes inline, leave the
    * class' `name` blank and fill in the rest of its fields, giving it a unique
@@ -152,10 +112,9 @@ public interface SpeechAdaptationOrBuilder
    *
    * repeated .google.cloud.speech.v1.CustomClass custom_classes = 3;
    */
-  java.util.List getCustomClassesList();
+  java.util.List 
+      getCustomClassesList();
   /**
-   *
-   *
    * 
    * A collection of custom classes. To specify the classes inline, leave the
    * class' `name` blank and fill in the rest of its fields, giving it a unique
@@ -167,8 +126,6 @@ public interface SpeechAdaptationOrBuilder
    */
   com.google.cloud.speech.v1.CustomClass getCustomClasses(int index);
   /**
-   *
-   *
    * 
    * A collection of custom classes. To specify the classes inline, leave the
    * class' `name` blank and fill in the rest of its fields, giving it a unique
@@ -180,8 +137,6 @@ public interface SpeechAdaptationOrBuilder
    */
   int getCustomClassesCount();
   /**
-   *
-   *
    * 
    * A collection of custom classes. To specify the classes inline, leave the
    * class' `name` blank and fill in the rest of its fields, giving it a unique
@@ -191,11 +146,9 @@ public interface SpeechAdaptationOrBuilder
    *
    * repeated .google.cloud.speech.v1.CustomClass custom_classes = 3;
    */
-  java.util.List
+  java.util.List 
       getCustomClassesOrBuilderList();
   /**
-   *
-   *
    * 
    * A collection of custom classes. To specify the classes inline, leave the
    * class' `name` blank and fill in the rest of its fields, giving it a unique
@@ -205,5 +158,6 @@ public interface SpeechAdaptationOrBuilder
    *
    * repeated .google.cloud.speech.v1.CustomClass custom_classes = 3;
    */
-  com.google.cloud.speech.v1.CustomClassOrBuilder getCustomClassesOrBuilder(int index);
+  com.google.cloud.speech.v1.CustomClassOrBuilder getCustomClassesOrBuilder(
+      int index);
 }
diff --git a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechContext.java b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechContext.java
similarity index 80%
rename from proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechContext.java
rename to owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechContext.java
index 38e2523de..b410dda75 100644
--- a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechContext.java
+++ b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/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/v1/cloud_speech.proto
 
 package com.google.cloud.speech.v1;
 
 /**
- *
- *
  * 
  * Provides "hints" to the speech recognizer to favor specific words and phrases
  * in the results.
@@ -28,31 +11,31 @@
  *
  * Protobuf type {@code google.cloud.speech.v1.SpeechContext}
  */
-public final class SpeechContext extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class SpeechContext extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.speech.v1.SpeechContext)
     SpeechContextOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use SpeechContext.newBuilder() to construct.
   private SpeechContext(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private SpeechContext() {
     phrases_ = com.google.protobuf.LazyStringArrayList.EMPTY;
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new SpeechContext();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private SpeechContext(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -72,34 +55,34 @@ private SpeechContext(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
-              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                phrases_ = new com.google.protobuf.LazyStringArrayList();
-                mutable_bitField0_ |= 0x00000001;
-              }
-              phrases_.add(s);
-              break;
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
+            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+              phrases_ = new com.google.protobuf.LazyStringArrayList();
+              mutable_bitField0_ |= 0x00000001;
             }
-          case 37:
-            {
-              boost_ = input.readFloat();
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            phrases_.add(s);
+            break;
+          }
+          case 37: {
+
+            boost_ = input.readFloat();
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         phrases_ = phrases_.getUnmodifiableView();
@@ -108,27 +91,22 @@ private SpeechContext(
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.speech.v1.SpeechProto
-        .internal_static_google_cloud_speech_v1_SpeechContext_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_SpeechContext_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v1.SpeechProto
-        .internal_static_google_cloud_speech_v1_SpeechContext_fieldAccessorTable
+    return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_SpeechContext_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v1.SpeechContext.class,
-            com.google.cloud.speech.v1.SpeechContext.Builder.class);
+            com.google.cloud.speech.v1.SpeechContext.class, com.google.cloud.speech.v1.SpeechContext.Builder.class);
   }
 
   public static final int PHRASES_FIELD_NUMBER = 1;
   private com.google.protobuf.LazyStringList phrases_;
   /**
-   *
-   *
    * 
    * A list of strings containing words and phrases "hints" so that
    * the speech recognition is more likely to recognize them. This can be used
@@ -144,15 +122,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
@@ -168,15 +144,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
@@ -192,7 +165,6 @@ public int getPhrasesCount() {
    * 
* * repeated string phrases = 1; - * * @param index The index of the element to return. * @return The phrases at the given index. */ @@ -200,8 +172,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
@@ -217,19 +187,17 @@ public java.lang.String getPhrases(int index) {
    * 
* * repeated string phrases = 1; - * * @param index The index of the value to return. * @return The bytes of the phrases at the given index. */ - public com.google.protobuf.ByteString getPhrasesBytes(int index) { + public com.google.protobuf.ByteString + getPhrasesBytes(int index) { return phrases_.getByteString(index); } public static final int BOOST_FIELD_NUMBER = 4; private float boost_; /** - * - * *
    * Hint Boost. Positive value will increase the probability that a specific
    * phrase will be recognized over other similar sounding phrases. The higher
@@ -242,7 +210,6 @@ public com.google.protobuf.ByteString getPhrasesBytes(int index) {
    * 
* * float boost = 4; - * * @return The boost. */ @java.lang.Override @@ -251,7 +218,6 @@ public float getBoost() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -263,7 +229,8 @@ public final boolean isInitialized() { } @java.lang.Override - 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)); } @@ -288,7 +255,8 @@ public int getSerializedSize() { size += 1 * getPhrasesList().size(); } if (boost_ != 0F) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(4, boost_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(4, boost_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -298,16 +266,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1.SpeechContext)) { return super.equals(obj); } com.google.cloud.speech.v1.SpeechContext other = (com.google.cloud.speech.v1.SpeechContext) obj; - if (!getPhrasesList().equals(other.getPhrasesList())) return false; + if (!getPhrasesList() + .equals(other.getPhrasesList())) return false; if (java.lang.Float.floatToIntBits(getBoost()) - != java.lang.Float.floatToIntBits(other.getBoost())) return false; + != java.lang.Float.floatToIntBits( + other.getBoost())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -324,110 +294,104 @@ public int hashCode() { hash = (53 * hash) + getPhrasesList().hashCode(); } hash = (37 * hash) + BOOST_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getBoost()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getBoost()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.speech.v1.SpeechContext parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.speech.v1.SpeechContext parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1.SpeechContext parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1.SpeechContext parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1.SpeechContext parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1.SpeechContext parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1.SpeechContext parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1.SpeechContext parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1.SpeechContext parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.speech.v1.SpeechContext parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.speech.v1.SpeechContext parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1.SpeechContext parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1.SpeechContext parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1.SpeechContext parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.speech.v1.SpeechContext prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Provides "hints" to the speech recognizer to favor specific words and phrases
    * in the results.
@@ -435,23 +399,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.speech.v1.SpeechContext}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1.SpeechContext)
       com.google.cloud.speech.v1.SpeechContextOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.speech.v1.SpeechProto
-          .internal_static_google_cloud_speech_v1_SpeechContext_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_SpeechContext_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v1.SpeechProto
-          .internal_static_google_cloud_speech_v1_SpeechContext_fieldAccessorTable
+      return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_SpeechContext_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v1.SpeechContext.class,
-              com.google.cloud.speech.v1.SpeechContext.Builder.class);
+              com.google.cloud.speech.v1.SpeechContext.class, com.google.cloud.speech.v1.SpeechContext.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v1.SpeechContext.newBuilder()
@@ -459,15 +421,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -479,9 +442,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.speech.v1.SpeechProto
-          .internal_static_google_cloud_speech_v1_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
@@ -500,8 +463,7 @@ public com.google.cloud.speech.v1.SpeechContext build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v1.SpeechContext buildPartial() {
-      com.google.cloud.speech.v1.SpeechContext result =
-          new com.google.cloud.speech.v1.SpeechContext(this);
+      com.google.cloud.speech.v1.SpeechContext result = new com.google.cloud.speech.v1.SpeechContext(this);
       int from_bitField0_ = bitField0_;
       if (((bitField0_ & 0x00000001) != 0)) {
         phrases_ = phrases_.getUnmodifiableView();
@@ -517,39 +479,38 @@ public com.google.cloud.speech.v1.SpeechContext buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.speech.v1.SpeechContext) {
-        return mergeFrom((com.google.cloud.speech.v1.SpeechContext) other);
+        return mergeFrom((com.google.cloud.speech.v1.SpeechContext)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -599,21 +560,16 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int bitField0_;
 
-    private com.google.protobuf.LazyStringList phrases_ =
-        com.google.protobuf.LazyStringArrayList.EMPTY;
-
+    private com.google.protobuf.LazyStringList phrases_ = com.google.protobuf.LazyStringArrayList.EMPTY;
     private void ensurePhrasesIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
         phrases_ = new com.google.protobuf.LazyStringArrayList(phrases_);
         bitField0_ |= 0x00000001;
-      }
+       }
     }
     /**
-     *
-     *
      * 
      * A list of strings containing words and phrases "hints" so that
      * the speech recognition is more likely to recognize them. This can be used
@@ -629,15 +585,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
@@ -653,15 +607,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
@@ -677,7 +628,6 @@ public int getPhrasesCount() {
      * 
* * repeated string phrases = 1; - * * @param index The index of the element to return. * @return The phrases at the given index. */ @@ -685,8 +635,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
@@ -702,16 +650,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
@@ -727,23 +673,21 @@ public com.google.protobuf.ByteString getPhrasesBytes(int index) {
      * 
* * repeated string phrases = 1; - * * @param index The index to set the value at. * @param value The phrases to set. * @return This builder for chaining. */ - public Builder setPhrases(int index, java.lang.String value) { + public Builder setPhrases( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensurePhrasesIsMutable(); + throw new NullPointerException(); + } + ensurePhrasesIsMutable(); phrases_.set(index, value); onChanged(); return this; } /** - * - * *
      * A list of strings containing words and phrases "hints" so that
      * the speech recognition is more likely to recognize them. This can be used
@@ -759,22 +703,20 @@ public Builder setPhrases(int index, java.lang.String value) {
      * 
* * repeated string phrases = 1; - * * @param value The phrases to add. * @return This builder for chaining. */ - public Builder addPhrases(java.lang.String value) { + public Builder addPhrases( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensurePhrasesIsMutable(); + throw new NullPointerException(); + } + ensurePhrasesIsMutable(); phrases_.add(value); onChanged(); return this; } /** - * - * *
      * A list of strings containing words and phrases "hints" so that
      * the speech recognition is more likely to recognize them. This can be used
@@ -790,19 +732,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
@@ -818,7 +759,6 @@ public Builder addAllPhrases(java.lang.Iterable values) {
      * 
* * repeated string phrases = 1; - * * @return This builder for chaining. */ public Builder clearPhrases() { @@ -828,8 +768,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
@@ -845,25 +783,23 @@ public Builder clearPhrases() {
      * 
* * repeated string phrases = 1; - * * @param value The bytes of the phrases to add. * @return This builder for chaining. */ - public Builder addPhrasesBytes(com.google.protobuf.ByteString value) { + public Builder addPhrasesBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensurePhrasesIsMutable(); phrases_.add(value); onChanged(); return this; } - private float boost_; + private float boost_ ; /** - * - * *
      * Hint Boost. Positive value will increase the probability that a specific
      * phrase will be recognized over other similar sounding phrases. The higher
@@ -876,7 +812,6 @@ public Builder addPhrasesBytes(com.google.protobuf.ByteString value) {
      * 
* * float boost = 4; - * * @return The boost. */ @java.lang.Override @@ -884,8 +819,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
@@ -898,19 +831,16 @@ public float getBoost() {
      * 
* * float boost = 4; - * * @param value The boost to set. * @return This builder for chaining. */ public Builder setBoost(float value) { - + boost_ = value; onChanged(); return this; } /** - * - * *
      * Hint Boost. Positive value will increase the probability that a specific
      * phrase will be recognized over other similar sounding phrases. The higher
@@ -923,18 +853,17 @@ public Builder setBoost(float value) {
      * 
* * float boost = 4; - * * @return This builder for chaining. */ public Builder clearBoost() { - + boost_ = 0F; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -944,12 +873,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(); } @@ -958,16 +887,16 @@ public static com.google.cloud.speech.v1.SpeechContext getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SpeechContext parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SpeechContext(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SpeechContext parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SpeechContext(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -982,4 +911,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1.SpeechContext getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechContextOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechContextOrBuilder.java similarity index 85% rename from proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechContextOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechContextOrBuilder.java index a529f0428..97fbd87c3 100644 --- a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechContextOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechContextOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1/cloud_speech.proto package com.google.cloud.speech.v1; -public interface SpeechContextOrBuilder - extends +public interface SpeechContextOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1.SpeechContext) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * A list of strings containing words and phrases "hints" so that
    * the speech recognition is more likely to recognize them. This can be used
@@ -41,13 +23,11 @@ public interface SpeechContextOrBuilder
    * 
* * repeated string phrases = 1; - * * @return A list containing the phrases. */ - java.util.List getPhrasesList(); + java.util.List + getPhrasesList(); /** - * - * *
    * A list of strings containing words and phrases "hints" so that
    * the speech recognition is more likely to recognize them. This can be used
@@ -63,13 +43,10 @@ public interface SpeechContextOrBuilder
    * 
* * repeated string phrases = 1; - * * @return The count of phrases. */ int getPhrasesCount(); /** - * - * *
    * A list of strings containing words and phrases "hints" so that
    * the speech recognition is more likely to recognize them. This can be used
@@ -85,14 +62,11 @@ public interface SpeechContextOrBuilder
    * 
* * repeated string phrases = 1; - * * @param index The index of the element to return. * @return The phrases at the given index. */ java.lang.String getPhrases(int index); /** - * - * *
    * A list of strings containing words and phrases "hints" so that
    * the speech recognition is more likely to recognize them. This can be used
@@ -108,15 +82,13 @@ public interface SpeechContextOrBuilder
    * 
* * repeated string phrases = 1; - * * @param index The index of the value to return. * @return The bytes of the phrases at the given index. */ - com.google.protobuf.ByteString getPhrasesBytes(int index); + com.google.protobuf.ByteString + getPhrasesBytes(int index); /** - * - * *
    * Hint Boost. Positive value will increase the probability that a specific
    * phrase will be recognized over other similar sounding phrases. The higher
@@ -129,7 +101,6 @@ public interface SpeechContextOrBuilder
    * 
* * float boost = 4; - * * @return The boost. */ float getBoost(); diff --git a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechProto.java b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechProto.java new file mode 100644 index 000000000..eb13ab171 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechProto.java @@ -0,0 +1,406 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/speech/v1/cloud_speech.proto + +package com.google.cloud.speech.v1; + +public final class SpeechProto { + private SpeechProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1_RecognizeRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1_RecognizeRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1_LongRunningRecognizeRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1_LongRunningRecognizeRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1_TranscriptOutputConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1_TranscriptOutputConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1_StreamingRecognizeRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1_StreamingRecognizeRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1_StreamingRecognitionConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1_StreamingRecognitionConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1_RecognitionConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1_RecognitionConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1_SpeakerDiarizationConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1_SpeakerDiarizationConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1_RecognitionMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1_RecognitionMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1_SpeechContext_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1_SpeechContext_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1_RecognitionAudio_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1_RecognitionAudio_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1_RecognizeResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1_RecognizeResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1_LongRunningRecognizeResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1_LongRunningRecognizeResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1_LongRunningRecognizeMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1_LongRunningRecognizeMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1_StreamingRecognizeResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1_StreamingRecognizeResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1_StreamingRecognitionResult_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1_StreamingRecognitionResult_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1_SpeechRecognitionResult_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1_SpeechRecognitionResult_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1_SpeechRecognitionAlternative_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1_SpeechRecognitionAlternative_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1_WordInfo_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1_WordInfo_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n)google/cloud/speech/v1/cloud_speech.pr" + + "oto\022\026google.cloud.speech.v1\032\034google/api/" + + "annotations.proto\032\027google/api/client.pro" + + "to\032\037google/api/field_behavior.proto\032%goo" + + "gle/cloud/speech/v1/resource.proto\032#goog" + + "le/longrunning/operations.proto\032\036google/" + + "protobuf/duration.proto\032\037google/protobuf" + + "/timestamp.proto\032\036google/protobuf/wrappe" + + "rs.proto\032\027google/rpc/status.proto\"\220\001\n\020Re" + + "cognizeRequest\022>\n\006config\030\001 \001(\0132).google." + + "cloud.speech.v1.RecognitionConfigB\003\340A\002\022<" + + "\n\005audio\030\002 \001(\0132(.google.cloud.speech.v1.R" + + "ecognitionAudioB\003\340A\002\"\347\001\n\033LongRunningReco" + + "gnizeRequest\022>\n\006config\030\001 \001(\0132).google.cl" + + "oud.speech.v1.RecognitionConfigB\003\340A\002\022<\n\005" + + "audio\030\002 \001(\0132(.google.cloud.speech.v1.Rec" + + "ognitionAudioB\003\340A\002\022J\n\routput_config\030\004 \001(" + + "\0132..google.cloud.speech.v1.TranscriptOut" + + "putConfigB\003\340A\001\":\n\026TranscriptOutputConfig" + + "\022\021\n\007gcs_uri\030\001 \001(\tH\000B\r\n\013output_type\"\231\001\n\031S" + + "treamingRecognizeRequest\022N\n\020streaming_co" + + "nfig\030\001 \001(\01322.google.cloud.speech.v1.Stre" + + "amingRecognitionConfigH\000\022\027\n\raudio_conten" + + "t\030\002 \001(\014H\000B\023\n\021streaming_request\"\217\001\n\032Strea" + + "mingRecognitionConfig\022>\n\006config\030\001 \001(\0132)." + + "google.cloud.speech.v1.RecognitionConfig" + + "B\003\340A\002\022\030\n\020single_utterance\030\002 \001(\010\022\027\n\017inter" + + "im_results\030\003 \001(\010\"\351\007\n\021RecognitionConfig\022I" + + "\n\010encoding\030\001 \001(\01627.google.cloud.speech.v" + + "1.RecognitionConfig.AudioEncoding\022\031\n\021sam" + + "ple_rate_hertz\030\002 \001(\005\022\033\n\023audio_channel_co" + + "unt\030\007 \001(\005\022/\n\'enable_separate_recognition" + + "_per_channel\030\014 \001(\010\022\032\n\rlanguage_code\030\003 \001(" + + "\tB\003\340A\002\022\"\n\032alternative_language_codes\030\022 \003" + + "(\t\022\030\n\020max_alternatives\030\004 \001(\005\022\030\n\020profanit" + + "y_filter\030\005 \001(\010\022<\n\nadaptation\030\024 \001(\0132(.goo" + + "gle.cloud.speech.v1.SpeechAdaptation\022>\n\017" + + "speech_contexts\030\006 \003(\0132%.google.cloud.spe" + + "ech.v1.SpeechContext\022 \n\030enable_word_time" + + "_offsets\030\010 \001(\010\022\036\n\026enable_word_confidence" + + "\030\017 \001(\010\022$\n\034enable_automatic_punctuation\030\013" + + " \001(\010\022=\n\031enable_spoken_punctuation\030\026 \001(\0132" + + "\032.google.protobuf.BoolValue\0228\n\024enable_sp" + + "oken_emojis\030\027 \001(\0132\032.google.protobuf.Bool" + + "Value\022L\n\022diarization_config\030\023 \001(\01320.goog" + + "le.cloud.speech.v1.SpeakerDiarizationCon" + + "fig\022=\n\010metadata\030\t \001(\0132+.google.cloud.spe" + + "ech.v1.RecognitionMetadata\022\r\n\005model\030\r \001(" + + "\t\022\024\n\014use_enhanced\030\016 \001(\010\"\232\001\n\rAudioEncodin" + + "g\022\030\n\024ENCODING_UNSPECIFIED\020\000\022\014\n\010LINEAR16\020" + + "\001\022\010\n\004FLAC\020\002\022\t\n\005MULAW\020\003\022\007\n\003AMR\020\004\022\n\n\006AMR_W" + + "B\020\005\022\014\n\010OGG_OPUS\020\006\022\032\n\026SPEEX_WITH_HEADER_B" + + "YTE\020\007\022\r\n\tWEBM_OPUS\020\t\"\220\001\n\030SpeakerDiarizat" + + "ionConfig\022\"\n\032enable_speaker_diarization\030" + + "\001 \001(\010\022\031\n\021min_speaker_count\030\002 \001(\005\022\031\n\021max_" + + "speaker_count\030\003 \001(\005\022\032\n\013speaker_tag\030\005 \001(\005" + + "B\005\030\001\340A\003\"\240\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\"/\n\rSpeechCont" + + "ext\022\017\n\007phrases\030\001 \003(\t\022\r\n\005boost\030\004 \001(\002\"D\n\020R" + + "ecognitionAudio\022\021\n\007content\030\001 \001(\014H\000\022\r\n\003ur" + + "i\030\002 \001(\tH\000B\016\n\014audio_source\"\213\001\n\021RecognizeR" + + "esponse\022@\n\007results\030\002 \003(\0132/.google.cloud." + + "speech.v1.SpeechRecognitionResult\0224\n\021tot" + + "al_billed_time\030\003 \001(\0132\031.google.protobuf.D" + + "uration\"\207\002\n\034LongRunningRecognizeResponse" + + "\022@\n\007results\030\002 \003(\0132/.google.cloud.speech." + + "v1.SpeechRecognitionResult\0224\n\021total_bill" + + "ed_time\030\003 \001(\0132\031.google.protobuf.Duration" + + "\022E\n\routput_config\030\006 \001(\0132..google.cloud.s" + + "peech.v1.TranscriptOutputConfig\022(\n\014outpu" + + "t_error\030\007 \001(\0132\022.google.rpc.Status\"\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\"\347\002\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\"L\n\017SpeechEventType\022\034\n\030S" + + "PEECH_EVENT_UNSPECIFIED\020\000\022\033\n\027END_OF_SING" + + "LE_UTTERANCE\020\001\"\362\001\n\032StreamingRecognitionR" + + "esult\022J\n\014alternatives\030\001 \003(\01324.google.clo" + + "ud.speech.v1.SpeechRecognitionAlternativ" + + "e\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.protobu" + + "f.Duration\022\023\n\013channel_tag\030\005 \001(\005\022\032\n\rlangu" + + "age_code\030\006 \001(\tB\003\340A\003\"\312\001\n\027SpeechRecognitio" + + "nResult\022J\n\014alternatives\030\001 \003(\01324.google.c" + + "loud.speech.v1.SpeechRecognitionAlternat" + + "ive\022\023\n\013channel_tag\030\002 \001(\005\0222\n\017result_end_t" + + "ime\030\004 \001(\0132\031.google.protobuf.Duration\022\032\n\r" + + "language_code\030\005 \001(\tB\003\340A\003\"w\n\034SpeechRecogn" + + "itionAlternative\022\022\n\ntranscript\030\001 \001(\t\022\022\n\n" + + "confidence\030\002 \001(\002\022/\n\005words\030\003 \003(\0132 .google" + + ".cloud.speech.v1.WordInfo\"\242\001\n\010WordInfo\022-" + + "\n\nstart_time\030\001 \001(\0132\031.google.protobuf.Dur" + + "ation\022+\n\010end_time\030\002 \001(\0132\031.google.protobu" + + "f.Duration\022\014\n\004word\030\003 \001(\t\022\022\n\nconfidence\030\004" + + " \001(\002\022\030\n\013speaker_tag\030\005 \001(\005B\003\340A\0032\321\004\n\006Speec" + + "h\022\220\001\n\tRecognize\022(.google.cloud.speech.v1" + + ".RecognizeRequest\032).google.cloud.speech." + + "v1.RecognizeResponse\".\202\323\344\223\002\031\"\024/v1/speech" + + ":recognize:\001*\332A\014config,audio\022\344\001\n\024LongRun" + + "ningRecognize\0223.google.cloud.speech.v1.L" + + "ongRunningRecognizeRequest\032\035.google.long" + + "running.Operation\"x\202\323\344\223\002$\"\037/v1/speech:lo" + + "ngrunningrecognize:\001*\332A\014config,audio\312A<\n" + + "\034LongRunningRecognizeResponse\022\034LongRunni" + + "ngRecognizeMetadata\022\201\001\n\022StreamingRecogni" + + "ze\0221.google.cloud.speech.v1.StreamingRec" + + "ognizeRequest\0322.google.cloud.speech.v1.S" + + "treamingRecognizeResponse\"\000(\0010\001\032I\312A\025spee" + + "ch.googleapis.com\322A.https://www.googleap" + + "is.com/auth/cloud-platformBr\n\032com.google" + + ".cloud.speech.v1B\013SpeechProtoP\001Z * Alternative hypotheses (a.k.a. n-best list). *
* * Protobuf type {@code google.cloud.speech.v1.SpeechRecognitionAlternative} */ -public final class SpeechRecognitionAlternative extends com.google.protobuf.GeneratedMessageV3 - implements +public final class SpeechRecognitionAlternative extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v1.SpeechRecognitionAlternative) SpeechRecognitionAlternativeOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use SpeechRecognitionAlternative.newBuilder() to construct. private SpeechRecognitionAlternative(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private SpeechRecognitionAlternative() { transcript_ = ""; words_ = java.util.Collections.emptyList(); @@ -44,15 +26,16 @@ private SpeechRecognitionAlternative() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new SpeechRecognitionAlternative(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private SpeechRecognitionAlternative( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,42 +55,40 @@ private SpeechRecognitionAlternative( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - transcript_ = s; - break; - } - case 21: - { - confidence_ = input.readFloat(); - break; - } - case 26: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - words_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - words_.add( - input.readMessage( - com.google.cloud.speech.v1.WordInfo.parser(), extensionRegistry)); - break; + transcript_ = s; + break; + } + case 21: { + + confidence_ = input.readFloat(); + break; + } + case 26: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + words_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + words_.add( + input.readMessage(com.google.cloud.speech.v1.WordInfo.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { words_ = java.util.Collections.unmodifiableList(words_); @@ -116,33 +97,27 @@ private SpeechRecognitionAlternative( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v1.SpeechProto - .internal_static_google_cloud_speech_v1_SpeechRecognitionAlternative_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_SpeechRecognitionAlternative_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1.SpeechProto - .internal_static_google_cloud_speech_v1_SpeechRecognitionAlternative_fieldAccessorTable + return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_SpeechRecognitionAlternative_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1.SpeechRecognitionAlternative.class, - com.google.cloud.speech.v1.SpeechRecognitionAlternative.Builder.class); + com.google.cloud.speech.v1.SpeechRecognitionAlternative.class, com.google.cloud.speech.v1.SpeechRecognitionAlternative.Builder.class); } public static final int TRANSCRIPT_FIELD_NUMBER = 1; private volatile java.lang.Object transcript_; /** - * - * *
    * Transcript text representing the words that the user spoke.
    * 
* * string transcript = 1; - * * @return The transcript. */ @java.lang.Override @@ -151,29 +126,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 { @@ -184,8 +159,6 @@ public com.google.protobuf.ByteString getTranscriptBytes() { public static final int CONFIDENCE_FIELD_NUMBER = 2; private float confidence_; /** - * - * *
    * The confidence estimate between 0.0 and 1.0. A higher number
    * indicates an estimated greater likelihood that the recognized words are
@@ -197,7 +170,6 @@ public com.google.protobuf.ByteString getTranscriptBytes() {
    * 
* * float confidence = 2; - * * @return The confidence. */ @java.lang.Override @@ -208,8 +180,6 @@ public float getConfidence() { public static final int WORDS_FIELD_NUMBER = 3; private java.util.List words_; /** - * - * *
    * A list of word-specific information for each recognized word.
    * Note: When `enable_speaker_diarization` is true, you will see all the words
@@ -223,8 +193,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
@@ -234,13 +202,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
@@ -254,8 +220,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
@@ -269,8 +233,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
@@ -280,12 +242,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;
@@ -297,7 +259,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public 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_);
     }
@@ -320,10 +283,12 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, transcript_);
     }
     if (confidence_ != 0F) {
-      size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, confidence_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeFloatSize(2, confidence_);
     }
     for (int i = 0; i < words_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, words_.get(i));
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(3, words_.get(i));
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -333,18 +298,20 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.speech.v1.SpeechRecognitionAlternative)) {
       return super.equals(obj);
     }
-    com.google.cloud.speech.v1.SpeechRecognitionAlternative other =
-        (com.google.cloud.speech.v1.SpeechRecognitionAlternative) obj;
+    com.google.cloud.speech.v1.SpeechRecognitionAlternative other = (com.google.cloud.speech.v1.SpeechRecognitionAlternative) obj;
 
-    if (!getTranscript().equals(other.getTranscript())) return false;
+    if (!getTranscript()
+        .equals(other.getTranscript())) return false;
     if (java.lang.Float.floatToIntBits(getConfidence())
-        != java.lang.Float.floatToIntBits(other.getConfidence())) return false;
-    if (!getWordsList().equals(other.getWordsList())) return false;
+        != java.lang.Float.floatToIntBits(
+            other.getConfidence())) return false;
+    if (!getWordsList()
+        .equals(other.getWordsList())) return false;
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
   }
@@ -359,7 +326,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();
@@ -370,127 +338,117 @@ public int hashCode() {
   }
 
   public static com.google.cloud.speech.v1.SpeechRecognitionAlternative parseFrom(
-      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.speech.v1.SpeechRecognitionAlternative parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.speech.v1.SpeechRecognitionAlternative parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.speech.v1.SpeechRecognitionAlternative parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.speech.v1.SpeechRecognitionAlternative parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.speech.v1.SpeechRecognitionAlternative parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.speech.v1.SpeechRecognitionAlternative parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.speech.v1.SpeechRecognitionAlternative parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.speech.v1.SpeechRecognitionAlternative parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
-
-  public static com.google.cloud.speech.v1.SpeechRecognitionAlternative parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.speech.v1.SpeechRecognitionAlternative parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.speech.v1.SpeechRecognitionAlternative parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.speech.v1.SpeechRecognitionAlternative parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.speech.v1.SpeechRecognitionAlternative parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
-  public static Builder newBuilder(
-      com.google.cloud.speech.v1.SpeechRecognitionAlternative prototype) {
+  public static Builder newBuilder(com.google.cloud.speech.v1.SpeechRecognitionAlternative prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * Alternative hypotheses (a.k.a. n-best list).
    * 
* * Protobuf type {@code google.cloud.speech.v1.SpeechRecognitionAlternative} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1.SpeechRecognitionAlternative) com.google.cloud.speech.v1.SpeechRecognitionAlternativeOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v1.SpeechProto - .internal_static_google_cloud_speech_v1_SpeechRecognitionAlternative_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_SpeechRecognitionAlternative_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1.SpeechProto - .internal_static_google_cloud_speech_v1_SpeechRecognitionAlternative_fieldAccessorTable + return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_SpeechRecognitionAlternative_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1.SpeechRecognitionAlternative.class, - com.google.cloud.speech.v1.SpeechRecognitionAlternative.Builder.class); + com.google.cloud.speech.v1.SpeechRecognitionAlternative.class, com.google.cloud.speech.v1.SpeechRecognitionAlternative.Builder.class); } // Construct using com.google.cloud.speech.v1.SpeechRecognitionAlternative.newBuilder() @@ -498,17 +456,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getWordsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -526,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_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 @@ -547,8 +505,7 @@ public com.google.cloud.speech.v1.SpeechRecognitionAlternative build() { @java.lang.Override public com.google.cloud.speech.v1.SpeechRecognitionAlternative buildPartial() { - com.google.cloud.speech.v1.SpeechRecognitionAlternative result = - new com.google.cloud.speech.v1.SpeechRecognitionAlternative(this); + com.google.cloud.speech.v1.SpeechRecognitionAlternative result = new com.google.cloud.speech.v1.SpeechRecognitionAlternative(this); int from_bitField0_ = bitField0_; result.transcript_ = transcript_; result.confidence_ = confidence_; @@ -569,39 +526,38 @@ public com.google.cloud.speech.v1.SpeechRecognitionAlternative buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.speech.v1.SpeechRecognitionAlternative) { - return mergeFrom((com.google.cloud.speech.v1.SpeechRecognitionAlternative) other); + return mergeFrom((com.google.cloud.speech.v1.SpeechRecognitionAlternative)other); } else { super.mergeFrom(other); return this; @@ -609,8 +565,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.speech.v1.SpeechRecognitionAlternative other) { - if (other == com.google.cloud.speech.v1.SpeechRecognitionAlternative.getDefaultInstance()) - return this; + if (other == com.google.cloud.speech.v1.SpeechRecognitionAlternative.getDefaultInstance()) return this; if (!other.getTranscript().isEmpty()) { transcript_ = other.transcript_; onChanged(); @@ -636,10 +591,9 @@ public Builder mergeFrom(com.google.cloud.speech.v1.SpeechRecognitionAlternative wordsBuilder_ = null; words_ = other.words_; bitField0_ = (bitField0_ & ~0x00000001); - wordsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getWordsFieldBuilder() - : null; + wordsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getWordsFieldBuilder() : null; } else { wordsBuilder_.addAllMessages(other.words_); } @@ -664,8 +618,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.speech.v1.SpeechRecognitionAlternative) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.speech.v1.SpeechRecognitionAlternative) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -674,25 +627,22 @@ public Builder mergeFrom( } 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; @@ -701,21 +651,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 { @@ -723,70 +672,61 @@ 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) { + public Builder setTranscript( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + transcript_ = value; onChanged(); return this; } /** - * - * *
      * Transcript text representing the words that the user spoke.
      * 
* * string transcript = 1; - * * @return This builder for chaining. */ public Builder clearTranscript() { - + transcript_ = getDefaultInstance().getTranscript(); onChanged(); return this; } /** - * - * *
      * Transcript text representing the words that the user spoke.
      * 
* * string transcript = 1; - * * @param value The bytes for transcript to set. * @return This builder for chaining. */ - public Builder setTranscriptBytes(com.google.protobuf.ByteString value) { + public Builder setTranscriptBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + transcript_ = value; onChanged(); return this; } - private float confidence_; + private float confidence_ ; /** - * - * *
      * The confidence estimate between 0.0 and 1.0. A higher number
      * indicates an estimated greater likelihood that the recognized words are
@@ -798,7 +738,6 @@ public Builder setTranscriptBytes(com.google.protobuf.ByteString value) {
      * 
* * float confidence = 2; - * * @return The confidence. */ @java.lang.Override @@ -806,8 +745,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
@@ -819,19 +756,16 @@ public float getConfidence() {
      * 
* * float confidence = 2; - * * @param value The confidence to set. * @return This builder for chaining. */ public Builder setConfidence(float value) { - + confidence_ = value; onChanged(); return this; } /** - * - * *
      * The confidence estimate between 0.0 and 1.0. A higher number
      * indicates an estimated greater likelihood that the recognized words are
@@ -843,35 +777,28 @@ public Builder setConfidence(float value) {
      * 
* * float confidence = 2; - * * @return This builder for chaining. */ public Builder clearConfidence() { - + confidence_ = 0F; onChanged(); return this; } private java.util.List words_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureWordsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { words_ = new java.util.ArrayList(words_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.speech.v1.WordInfo, - com.google.cloud.speech.v1.WordInfo.Builder, - com.google.cloud.speech.v1.WordInfoOrBuilder> - wordsBuilder_; + com.google.cloud.speech.v1.WordInfo, com.google.cloud.speech.v1.WordInfo.Builder, com.google.cloud.speech.v1.WordInfoOrBuilder> wordsBuilder_; /** - * - * *
      * A list of word-specific information for each recognized word.
      * Note: When `enable_speaker_diarization` is true, you will see all the words
@@ -888,8 +815,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
@@ -906,8 +831,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
@@ -924,8 +847,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
@@ -934,7 +855,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();
@@ -948,8 +870,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
@@ -970,8 +890,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
@@ -994,8 +912,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
@@ -1004,7 +920,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();
@@ -1018,8 +935,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
@@ -1028,7 +943,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());
@@ -1039,8 +955,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
@@ -1061,8 +975,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
@@ -1075,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);
@@ -1083,8 +996,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
@@ -1104,8 +1015,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
@@ -1125,8 +1034,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
@@ -1135,12 +1042,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
@@ -1149,16 +1055,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
@@ -1167,8 +1071,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 {
@@ -1176,8 +1080,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
@@ -1187,12 +1089,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
@@ -1201,13 +1101,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
@@ -1216,29 +1115,27 @@ public com.google.cloud.speech.v1.WordInfo.Builder addWordsBuilder(int index) {
      *
      * repeated .google.cloud.speech.v1.WordInfo words = 3;
      */
-    public java.util.List getWordsBuilderList() {
+    public java.util.List 
+         getWordsBuilderList() {
       return getWordsFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.speech.v1.WordInfo,
-            com.google.cloud.speech.v1.WordInfo.Builder,
-            com.google.cloud.speech.v1.WordInfoOrBuilder>
+        com.google.cloud.speech.v1.WordInfo, com.google.cloud.speech.v1.WordInfo.Builder, com.google.cloud.speech.v1.WordInfoOrBuilder> 
         getWordsFieldBuilder() {
       if (wordsBuilder_ == null) {
-        wordsBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.cloud.speech.v1.WordInfo,
-                com.google.cloud.speech.v1.WordInfo.Builder,
-                com.google.cloud.speech.v1.WordInfoOrBuilder>(
-                words_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
+        wordsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.cloud.speech.v1.WordInfo, com.google.cloud.speech.v1.WordInfo.Builder, com.google.cloud.speech.v1.WordInfoOrBuilder>(
+                words_,
+                ((bitField0_ & 0x00000001) != 0),
+                getParentForChildren(),
+                isClean());
         words_ = null;
       }
       return wordsBuilder_;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1248,12 +1145,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();
   }
@@ -1262,16 +1159,16 @@ public static com.google.cloud.speech.v1.SpeechRecognitionAlternative getDefault
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public SpeechRecognitionAlternative parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          return new SpeechRecognitionAlternative(input, extensionRegistry);
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public SpeechRecognitionAlternative parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      return new SpeechRecognitionAlternative(input, extensionRegistry);
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1286,4 +1183,6 @@ public com.google.protobuf.Parser getParserForType
   public com.google.cloud.speech.v1.SpeechRecognitionAlternative getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechRecognitionAlternativeOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechRecognitionAlternativeOrBuilder.java
similarity index 76%
rename from proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechRecognitionAlternativeOrBuilder.java
rename to owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechRecognitionAlternativeOrBuilder.java
index fba8255dd..1a8cbc08f 100644
--- a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechRecognitionAlternativeOrBuilder.java
+++ b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechRecognitionAlternativeOrBuilder.java
@@ -1,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/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.
    * 
* * 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
@@ -62,14 +39,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
@@ -78,10 +52,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
@@ -92,8 +65,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
@@ -104,8 +75,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
@@ -114,10 +83,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
@@ -126,5 +94,6 @@ public interface SpeechRecognitionAlternativeOrBuilder
    *
    * repeated .google.cloud.speech.v1.WordInfo words = 3;
    */
-  com.google.cloud.speech.v1.WordInfoOrBuilder getWordsOrBuilder(int index);
+  com.google.cloud.speech.v1.WordInfoOrBuilder getWordsOrBuilder(
+      int index);
 }
diff --git a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechRecognitionResult.java b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechRecognitionResult.java
similarity index 76%
rename from proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechRecognitionResult.java
rename to owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechRecognitionResult.java
index 6b55b9514..24da9952e 100644
--- a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechRecognitionResult.java
+++ b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechRecognitionResult.java
@@ -1,42 +1,24 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/speech/v1/cloud_speech.proto
 
 package com.google.cloud.speech.v1;
 
 /**
- *
- *
  * 
  * A speech recognition result corresponding to a portion of the audio.
  * 
* * Protobuf type {@code google.cloud.speech.v1.SpeechRecognitionResult} */ -public final class SpeechRecognitionResult extends com.google.protobuf.GeneratedMessageV3 - implements +public final class SpeechRecognitionResult extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v1.SpeechRecognitionResult) SpeechRecognitionResultOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use SpeechRecognitionResult.newBuilder() to construct. private SpeechRecognitionResult(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private SpeechRecognitionResult() { alternatives_ = java.util.Collections.emptyList(); languageCode_ = ""; @@ -44,15 +26,16 @@ private SpeechRecognitionResult() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new SpeechRecognitionResult(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private SpeechRecognitionResult( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,60 +55,53 @@ private SpeechRecognitionResult( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - alternatives_ = - new java.util.ArrayList< - com.google.cloud.speech.v1.SpeechRecognitionAlternative>(); - mutable_bitField0_ |= 0x00000001; - } - alternatives_.add( - input.readMessage( - com.google.cloud.speech.v1.SpeechRecognitionAlternative.parser(), - extensionRegistry)); - break; - } - case 16: - { - channelTag_ = input.readInt32(); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + alternatives_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 34: - { - com.google.protobuf.Duration.Builder subBuilder = null; - if (resultEndTime_ != null) { - subBuilder = resultEndTime_.toBuilder(); - } - resultEndTime_ = - input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(resultEndTime_); - resultEndTime_ = subBuilder.buildPartial(); - } + alternatives_.add( + input.readMessage(com.google.cloud.speech.v1.SpeechRecognitionAlternative.parser(), extensionRegistry)); + break; + } + case 16: { - break; + channelTag_ = input.readInt32(); + break; + } + case 34: { + com.google.protobuf.Duration.Builder subBuilder = null; + if (resultEndTime_ != null) { + subBuilder = resultEndTime_.toBuilder(); } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); - - languageCode_ = s; - break; + resultEndTime_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(resultEndTime_); + resultEndTime_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + languageCode_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { alternatives_ = java.util.Collections.unmodifiableList(alternatives_); @@ -134,27 +110,22 @@ private SpeechRecognitionResult( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v1.SpeechProto - .internal_static_google_cloud_speech_v1_SpeechRecognitionResult_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_SpeechRecognitionResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1.SpeechProto - .internal_static_google_cloud_speech_v1_SpeechRecognitionResult_fieldAccessorTable + return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_SpeechRecognitionResult_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1.SpeechRecognitionResult.class, - com.google.cloud.speech.v1.SpeechRecognitionResult.Builder.class); + com.google.cloud.speech.v1.SpeechRecognitionResult.class, com.google.cloud.speech.v1.SpeechRecognitionResult.Builder.class); } public static final int ALTERNATIVES_FIELD_NUMBER = 1; private java.util.List alternatives_; /** - * - * *
    * May contain one or more recognition hypotheses (up to the
    * maximum specified in `max_alternatives`).
@@ -165,13 +136,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`).
@@ -182,13 +150,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`).
@@ -203,8 +169,6 @@ public int getAlternativesCount() {
     return alternatives_.size();
   }
   /**
-   *
-   *
    * 
    * May contain one or more recognition hypotheses (up to the
    * maximum specified in `max_alternatives`).
@@ -219,8 +183,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`).
@@ -239,8 +201,6 @@ public com.google.cloud.speech.v1.SpeechRecognitionAlternativeOrBuilder getAlter
   public static final int CHANNEL_TAG_FIELD_NUMBER = 2;
   private int channelTag_;
   /**
-   *
-   *
    * 
    * For multi-channel audio, this is the channel number corresponding to the
    * recognized result for the audio from that channel.
@@ -248,7 +208,6 @@ public com.google.cloud.speech.v1.SpeechRecognitionAlternativeOrBuilder getAlter
    * 
* * int32 channel_tag = 2; - * * @return The channelTag. */ @java.lang.Override @@ -259,15 +218,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 @@ -275,26 +231,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.
@@ -310,8 +259,6 @@ public com.google.protobuf.DurationOrBuilder getResultEndTimeOrBuilder() {
   public static final int LANGUAGE_CODE_FIELD_NUMBER = 5;
   private volatile java.lang.Object languageCode_;
   /**
-   *
-   *
    * 
    * Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag
    * of the language in this result. This language code was detected to have
@@ -319,7 +266,6 @@ public com.google.protobuf.DurationOrBuilder getResultEndTimeOrBuilder() {
    * 
* * string language_code = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The languageCode. */ @java.lang.Override @@ -328,15 +274,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
@@ -344,15 +289,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 { @@ -361,7 +307,6 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -373,7 +318,8 @@ public final boolean isInitialized() { } @java.lang.Override - 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)); } @@ -396,13 +342,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_); @@ -415,21 +364,24 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1.SpeechRecognitionResult)) { return super.equals(obj); } - com.google.cloud.speech.v1.SpeechRecognitionResult other = - (com.google.cloud.speech.v1.SpeechRecognitionResult) obj; + com.google.cloud.speech.v1.SpeechRecognitionResult other = (com.google.cloud.speech.v1.SpeechRecognitionResult) obj; - if (!getAlternativesList().equals(other.getAlternativesList())) return false; - if (getChannelTag() != other.getChannelTag()) return false; + if (!getAlternativesList() + .equals(other.getAlternativesList())) return false; + if (getChannelTag() + != other.getChannelTag()) return false; if (hasResultEndTime() != other.hasResultEndTime()) return false; if (hasResultEndTime()) { - if (!getResultEndTime().equals(other.getResultEndTime())) return false; + if (!getResultEndTime() + .equals(other.getResultEndTime())) return false; } - if (!getLanguageCode().equals(other.getLanguageCode())) return false; + if (!getLanguageCode() + .equals(other.getLanguageCode())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -459,126 +411,117 @@ public int hashCode() { } public static com.google.cloud.speech.v1.SpeechRecognitionResult parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1.SpeechRecognitionResult parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1.SpeechRecognitionResult parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1.SpeechRecognitionResult parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1.SpeechRecognitionResult parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1.SpeechRecognitionResult parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.speech.v1.SpeechRecognitionResult parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.speech.v1.SpeechRecognitionResult parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1.SpeechRecognitionResult parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.speech.v1.SpeechRecognitionResult parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.speech.v1.SpeechRecognitionResult parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1.SpeechRecognitionResult parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1.SpeechRecognitionResult parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1.SpeechRecognitionResult parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.speech.v1.SpeechRecognitionResult prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * A speech recognition result corresponding to a portion of the audio.
    * 
* * Protobuf type {@code google.cloud.speech.v1.SpeechRecognitionResult} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1.SpeechRecognitionResult) com.google.cloud.speech.v1.SpeechRecognitionResultOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v1.SpeechProto - .internal_static_google_cloud_speech_v1_SpeechRecognitionResult_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_SpeechRecognitionResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1.SpeechProto - .internal_static_google_cloud_speech_v1_SpeechRecognitionResult_fieldAccessorTable + return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_SpeechRecognitionResult_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1.SpeechRecognitionResult.class, - com.google.cloud.speech.v1.SpeechRecognitionResult.Builder.class); + com.google.cloud.speech.v1.SpeechRecognitionResult.class, com.google.cloud.speech.v1.SpeechRecognitionResult.Builder.class); } // Construct using com.google.cloud.speech.v1.SpeechRecognitionResult.newBuilder() @@ -586,17 +529,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getAlternativesFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -620,9 +563,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 @@ -641,8 +584,7 @@ public com.google.cloud.speech.v1.SpeechRecognitionResult build() { @java.lang.Override public com.google.cloud.speech.v1.SpeechRecognitionResult buildPartial() { - com.google.cloud.speech.v1.SpeechRecognitionResult result = - new com.google.cloud.speech.v1.SpeechRecognitionResult(this); + com.google.cloud.speech.v1.SpeechRecognitionResult result = new com.google.cloud.speech.v1.SpeechRecognitionResult(this); int from_bitField0_ = bitField0_; if (alternativesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -668,39 +610,38 @@ public com.google.cloud.speech.v1.SpeechRecognitionResult buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.speech.v1.SpeechRecognitionResult) { - return mergeFrom((com.google.cloud.speech.v1.SpeechRecognitionResult) other); + return mergeFrom((com.google.cloud.speech.v1.SpeechRecognitionResult)other); } else { super.mergeFrom(other); return this; @@ -708,8 +649,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()) { @@ -728,10 +668,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_); } @@ -766,8 +705,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.speech.v1.SpeechRecognitionResult) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.speech.v1.SpeechRecognitionResult) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -776,30 +714,21 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.util.List alternatives_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureAlternativesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - alternatives_ = - new java.util.ArrayList( - alternatives_); + alternatives_ = new java.util.ArrayList(alternatives_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.speech.v1.SpeechRecognitionAlternative, - com.google.cloud.speech.v1.SpeechRecognitionAlternative.Builder, - com.google.cloud.speech.v1.SpeechRecognitionAlternativeOrBuilder> - alternativesBuilder_; + com.google.cloud.speech.v1.SpeechRecognitionAlternative, com.google.cloud.speech.v1.SpeechRecognitionAlternative.Builder, com.google.cloud.speech.v1.SpeechRecognitionAlternativeOrBuilder> alternativesBuilder_; /** - * - * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -809,8 +738,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 {
@@ -818,8 +746,6 @@ private void ensureAlternativesIsMutable() {
       }
     }
     /**
-     *
-     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -837,8 +763,6 @@ public int getAlternativesCount() {
       }
     }
     /**
-     *
-     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -856,8 +780,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`).
@@ -882,8 +804,6 @@ public Builder setAlternatives(
       return this;
     }
     /**
-     *
-     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -894,8 +814,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());
@@ -906,8 +825,6 @@ public Builder setAlternatives(
       return this;
     }
     /**
-     *
-     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -931,8 +848,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`).
@@ -957,8 +872,6 @@ public Builder addAlternatives(
       return this;
     }
     /**
-     *
-     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -980,8 +893,6 @@ public Builder addAlternatives(
       return this;
     }
     /**
-     *
-     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -992,8 +903,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());
@@ -1004,8 +914,6 @@ public Builder addAlternatives(
       return this;
     }
     /**
-     *
-     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -1016,11 +924,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);
@@ -1028,8 +936,6 @@ public Builder addAllAlternatives(
       return this;
     }
     /**
-     *
-     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -1050,8 +956,6 @@ public Builder clearAlternatives() {
       return this;
     }
     /**
-     *
-     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -1072,8 +976,6 @@ public Builder removeAlternatives(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -1088,8 +990,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`).
@@ -1099,17 +999,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`).
@@ -1119,9 +1016,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 {
@@ -1129,8 +1025,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`).
@@ -1140,14 +1034,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`).
@@ -1159,13 +1050,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`).
@@ -1175,32 +1063,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.
@@ -1208,7 +1091,6 @@ public com.google.cloud.speech.v1.SpeechRecognitionAlternative.Builder addAltern
      * 
* * int32 channel_tag = 2; - * * @return The channelTag. */ @java.lang.Override @@ -1216,8 +1098,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.
@@ -1225,19 +1105,16 @@ public int getChannelTag() {
      * 
* * int32 channel_tag = 2; - * * @param value The channelTag to set. * @return This builder for chaining. */ public Builder setChannelTag(int value) { - + channelTag_ = value; onChanged(); return this; } /** - * - * *
      * For multi-channel audio, this is the channel number corresponding to the
      * recognized result for the audio from that channel.
@@ -1245,11 +1122,10 @@ public Builder setChannelTag(int value) {
      * 
* * int32 channel_tag = 2; - * * @return This builder for chaining. */ public Builder clearChannelTag() { - + channelTag_ = 0; onChanged(); return this; @@ -1257,49 +1133,36 @@ public Builder clearChannelTag() { private com.google.protobuf.Duration resultEndTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - resultEndTimeBuilder_; + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> resultEndTimeBuilder_; /** - * - * *
      * Time offset of the end of this result relative to the
      * beginning of the audio.
      * 
* * .google.protobuf.Duration result_end_time = 4; - * * @return Whether the resultEndTime field is set. */ public boolean hasResultEndTime() { return resultEndTimeBuilder_ != null || resultEndTime_ != null; } /** - * - * *
      * Time offset of the end of this result relative to the
      * beginning of the audio.
      * 
* * .google.protobuf.Duration result_end_time = 4; - * * @return The resultEndTime. */ public com.google.protobuf.Duration getResultEndTime() { if (resultEndTimeBuilder_ == null) { - return resultEndTime_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : resultEndTime_; + return resultEndTime_ == null ? com.google.protobuf.Duration.getDefaultInstance() : resultEndTime_; } else { return resultEndTimeBuilder_.getMessage(); } } /** - * - * *
      * Time offset of the end of this result relative to the
      * beginning of the audio.
@@ -1321,8 +1184,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.
@@ -1330,7 +1191,8 @@ public Builder setResultEndTime(com.google.protobuf.Duration value) {
      *
      * .google.protobuf.Duration result_end_time = 4;
      */
-    public Builder setResultEndTime(com.google.protobuf.Duration.Builder builderForValue) {
+    public Builder setResultEndTime(
+        com.google.protobuf.Duration.Builder builderForValue) {
       if (resultEndTimeBuilder_ == null) {
         resultEndTime_ = builderForValue.build();
         onChanged();
@@ -1341,8 +1203,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.
@@ -1354,9 +1214,7 @@ public Builder mergeResultEndTime(com.google.protobuf.Duration value) {
       if (resultEndTimeBuilder_ == null) {
         if (resultEndTime_ != null) {
           resultEndTime_ =
-              com.google.protobuf.Duration.newBuilder(resultEndTime_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.protobuf.Duration.newBuilder(resultEndTime_).mergeFrom(value).buildPartial();
         } else {
           resultEndTime_ = value;
         }
@@ -1368,8 +1226,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.
@@ -1389,8 +1245,6 @@ public Builder clearResultEndTime() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Time offset of the end of this result relative to the
      * beginning of the audio.
@@ -1399,13 +1253,11 @@ public Builder clearResultEndTime() {
      * .google.protobuf.Duration result_end_time = 4;
      */
     public com.google.protobuf.Duration.Builder getResultEndTimeBuilder() {
-
+      
       onChanged();
       return getResultEndTimeFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Time offset of the end of this result relative to the
      * beginning of the audio.
@@ -1417,14 +1269,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.
@@ -1433,17 +1282,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_;
@@ -1451,8 +1297,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
@@ -1460,13 +1304,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; @@ -1475,8 +1319,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
@@ -1484,14 +1326,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 { @@ -1499,8 +1342,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
@@ -1508,22 +1349,20 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() {
      * 
* * string language_code = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCode(java.lang.String value) { + public Builder setLanguageCode( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + languageCode_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag
      * of the language in this result. This language code was detected to have
@@ -1531,18 +1370,15 @@ public Builder setLanguageCode(java.lang.String value) {
      * 
* * string language_code = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearLanguageCode() { - + languageCode_ = getDefaultInstance().getLanguageCode(); onChanged(); return this; } /** - * - * *
      * Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag
      * of the language in this result. This language code was detected to have
@@ -1550,23 +1386,23 @@ public Builder clearLanguageCode() {
      * 
* * string language_code = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { + public Builder setLanguageCodeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + languageCode_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1576,12 +1412,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(); } @@ -1590,16 +1426,16 @@ public static com.google.cloud.speech.v1.SpeechRecognitionResult getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SpeechRecognitionResult parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SpeechRecognitionResult(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SpeechRecognitionResult parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SpeechRecognitionResult(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1614,4 +1450,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1.SpeechRecognitionResult getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechRecognitionResultOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechRecognitionResultOrBuilder.java similarity index 83% rename from proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechRecognitionResultOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechRecognitionResultOrBuilder.java index 50085b974..aa2bef7b6 100644 --- a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechRecognitionResultOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechRecognitionResultOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1/cloud_speech.proto package com.google.cloud.speech.v1; -public interface SpeechRecognitionResultOrBuilder - extends +public interface SpeechRecognitionResultOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1.SpeechRecognitionResult) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * May contain one or more recognition hypotheses (up to the
    * maximum specified in `max_alternatives`).
@@ -35,10 +17,9 @@ public interface SpeechRecognitionResultOrBuilder
    *
    * repeated .google.cloud.speech.v1.SpeechRecognitionAlternative alternatives = 1;
    */
-  java.util.List getAlternativesList();
+  java.util.List 
+      getAlternativesList();
   /**
-   *
-   *
    * 
    * May contain one or more recognition hypotheses (up to the
    * maximum specified in `max_alternatives`).
@@ -50,8 +31,6 @@ public interface SpeechRecognitionResultOrBuilder
    */
   com.google.cloud.speech.v1.SpeechRecognitionAlternative getAlternatives(int index);
   /**
-   *
-   *
    * 
    * May contain one or more recognition hypotheses (up to the
    * maximum specified in `max_alternatives`).
@@ -63,8 +42,6 @@ public interface SpeechRecognitionResultOrBuilder
    */
   int getAlternativesCount();
   /**
-   *
-   *
    * 
    * May contain one or more recognition hypotheses (up to the
    * maximum specified in `max_alternatives`).
@@ -74,11 +51,9 @@ public interface SpeechRecognitionResultOrBuilder
    *
    * repeated .google.cloud.speech.v1.SpeechRecognitionAlternative alternatives = 1;
    */
-  java.util.List
+  java.util.List 
       getAlternativesOrBuilderList();
   /**
-   *
-   *
    * 
    * May contain one or more recognition hypotheses (up to the
    * maximum specified in `max_alternatives`).
@@ -92,8 +67,6 @@ com.google.cloud.speech.v1.SpeechRecognitionAlternativeOrBuilder getAlternatives
       int index);
 
   /**
-   *
-   *
    * 
    * For multi-channel audio, this is the channel number corresponding to the
    * recognized result for the audio from that channel.
@@ -101,40 +74,31 @@ com.google.cloud.speech.v1.SpeechRecognitionAlternativeOrBuilder getAlternatives
    * 
* * int32 channel_tag = 2; - * * @return The channelTag. */ int getChannelTag(); /** - * - * *
    * Time offset of the end of this result relative to the
    * beginning of the audio.
    * 
* * .google.protobuf.Duration result_end_time = 4; - * * @return Whether the resultEndTime field is set. */ boolean hasResultEndTime(); /** - * - * *
    * Time offset of the end of this result relative to the
    * beginning of the audio.
    * 
* * .google.protobuf.Duration result_end_time = 4; - * * @return The resultEndTime. */ com.google.protobuf.Duration getResultEndTime(); /** - * - * *
    * Time offset of the end of this result relative to the
    * beginning of the audio.
@@ -145,8 +109,6 @@ com.google.cloud.speech.v1.SpeechRecognitionAlternativeOrBuilder getAlternatives
   com.google.protobuf.DurationOrBuilder getResultEndTimeOrBuilder();
 
   /**
-   *
-   *
    * 
    * Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag
    * of the language in this result. This language code was detected to have
@@ -154,13 +116,10 @@ com.google.cloud.speech.v1.SpeechRecognitionAlternativeOrBuilder getAlternatives
    * 
* * string language_code = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The languageCode. */ java.lang.String getLanguageCode(); /** - * - * *
    * Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag
    * of the language in this result. This language code was detected to have
@@ -168,8 +127,8 @@ com.google.cloud.speech.v1.SpeechRecognitionAlternativeOrBuilder getAlternatives
    * 
* * string language_code = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for languageCode. */ - com.google.protobuf.ByteString getLanguageCodeBytes(); + com.google.protobuf.ByteString + getLanguageCodeBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechResourceProto.java b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechResourceProto.java new file mode 100644 index 000000000..c8d1551f7 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechResourceProto.java @@ -0,0 +1,121 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/speech/v1/resource.proto + +package com.google.cloud.speech.v1; + +public final class SpeechResourceProto { + private SpeechResourceProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1_CustomClass_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1_CustomClass_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1_CustomClass_ClassItem_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1_CustomClass_ClassItem_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1_PhraseSet_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1_PhraseSet_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1_PhraseSet_Phrase_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1_PhraseSet_Phrase_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1_SpeechAdaptation_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1_SpeechAdaptation_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n%google/cloud/speech/v1/resource.proto\022" + + "\026google.cloud.speech.v1\032\031google/api/reso" + + "urce.proto\"\374\001\n\013CustomClass\022\014\n\004name\030\001 \001(\t" + + "\022\027\n\017custom_class_id\030\002 \001(\t\022<\n\005items\030\003 \003(\013" + + "2-.google.cloud.speech.v1.CustomClass.Cl" + + "assItem\032\032\n\tClassItem\022\r\n\005value\030\001 \001(\t:l\352Ai" + + "\n!speech.googleapis.com/CustomClass\022Dpro" + + "jects/{project}/locations/{location}/cus" + + "tomClasses/{custom_class}\"\362\001\n\tPhraseSet\022" + + "\014\n\004name\030\001 \001(\t\0229\n\007phrases\030\002 \003(\0132(.google." + + "cloud.speech.v1.PhraseSet.Phrase\022\r\n\005boos" + + "t\030\004 \001(\002\032&\n\006Phrase\022\r\n\005value\030\001 \001(\t\022\r\n\005boos" + + "t\030\002 \001(\002:e\352Ab\n\037speech.googleapis.com/Phra" + + "seSet\022?projects/{project}/locations/{loc" + + "ation}/phraseSets/{phrase_set}\"\314\001\n\020Speec" + + "hAdaptation\0226\n\013phrase_sets\030\001 \003(\0132!.googl" + + "e.cloud.speech.v1.PhraseSet\022C\n\025phrase_se" + + "t_references\030\002 \003(\tB$\372A!\n\037speech.googleap" + + "is.com/PhraseSet\022;\n\016custom_classes\030\003 \003(\013" + + "2#.google.cloud.speech.v1.CustomClassBz\n" + + "\032com.google.cloud.speech.v1B\023SpeechResou" + + "rceProtoP\001Z * Provides information to the recognizer that specifies how to process the * request. @@ -28,29 +11,30 @@ * * Protobuf type {@code google.cloud.speech.v1.StreamingRecognitionConfig} */ -public final class StreamingRecognitionConfig extends com.google.protobuf.GeneratedMessageV3 - implements +public final class StreamingRecognitionConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v1.StreamingRecognitionConfig) StreamingRecognitionConfigOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use StreamingRecognitionConfig.newBuilder() to construct. private StreamingRecognitionConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private StreamingRecognitionConfig() {} + private StreamingRecognitionConfig() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new StreamingRecognitionConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private StreamingRecognitionConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -69,80 +53,70 @@ private StreamingRecognitionConfig( case 0: done = true; break; - case 10: - { - com.google.cloud.speech.v1.RecognitionConfig.Builder subBuilder = null; - if (config_ != null) { - subBuilder = config_.toBuilder(); - } - config_ = - input.readMessage( - com.google.cloud.speech.v1.RecognitionConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(config_); - config_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.cloud.speech.v1.RecognitionConfig.Builder subBuilder = null; + if (config_ != null) { + subBuilder = config_.toBuilder(); } - case 16: - { - singleUtterance_ = input.readBool(); - break; + config_ = input.readMessage(com.google.cloud.speech.v1.RecognitionConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(config_); + config_ = subBuilder.buildPartial(); } - case 24: - { - interimResults_ = input.readBool(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + case 16: { + + singleUtterance_ = input.readBool(); + break; + } + case 24: { + + interimResults_ = input.readBool(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v1.SpeechProto - .internal_static_google_cloud_speech_v1_StreamingRecognitionConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_StreamingRecognitionConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1.SpeechProto - .internal_static_google_cloud_speech_v1_StreamingRecognitionConfig_fieldAccessorTable + return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_StreamingRecognitionConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1.StreamingRecognitionConfig.class, - com.google.cloud.speech.v1.StreamingRecognitionConfig.Builder.class); + com.google.cloud.speech.v1.StreamingRecognitionConfig.class, com.google.cloud.speech.v1.StreamingRecognitionConfig.Builder.class); } public static final int CONFIG_FIELD_NUMBER = 1; private com.google.cloud.speech.v1.RecognitionConfig config_; /** - * - * *
    * Required. Provides information to the recognizer that specifies how to
    * process the request.
    * 
* - * - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the config field is set. */ @java.lang.Override @@ -150,36 +124,25 @@ public boolean hasConfig() { return config_ != null; } /** - * - * *
    * Required. Provides information to the recognizer that specifies how to
    * process the request.
    * 
* - * - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The config. */ @java.lang.Override public com.google.cloud.speech.v1.RecognitionConfig getConfig() { - return config_ == null - ? com.google.cloud.speech.v1.RecognitionConfig.getDefaultInstance() - : config_; + return config_ == null ? com.google.cloud.speech.v1.RecognitionConfig.getDefaultInstance() : config_; } /** - * - * *
    * Required. Provides information to the recognizer that specifies how to
    * process the request.
    * 
* - * - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.speech.v1.RecognitionConfigOrBuilder getConfigOrBuilder() { @@ -189,8 +152,6 @@ public com.google.cloud.speech.v1.RecognitionConfigOrBuilder getConfigOrBuilder( public static final int SINGLE_UTTERANCE_FIELD_NUMBER = 2; private boolean singleUtterance_; /** - * - * *
    * If `false` or omitted, the recognizer will perform continuous
    * recognition (continuing to wait for and process audio even if the user
@@ -213,7 +174,6 @@ public com.google.cloud.speech.v1.RecognitionConfigOrBuilder getConfigOrBuilder(
    * 
* * bool single_utterance = 2; - * * @return The singleUtterance. */ @java.lang.Override @@ -224,8 +184,6 @@ public boolean getSingleUtterance() { public static final int INTERIM_RESULTS_FIELD_NUMBER = 3; private boolean interimResults_; /** - * - * *
    * If `true`, interim results (tentative hypotheses) may be
    * returned as they become available (these interim results are indicated with
@@ -234,7 +192,6 @@ public boolean getSingleUtterance() {
    * 
* * bool interim_results = 3; - * * @return The interimResults. */ @java.lang.Override @@ -243,7 +200,6 @@ public boolean getInterimResults() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -255,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 (config_ != null) { output.writeMessage(1, getConfig()); } @@ -275,13 +232,16 @@ public int getSerializedSize() { size = 0; if (config_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getConfig()); } if (singleUtterance_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, singleUtterance_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, singleUtterance_); } if (interimResults_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, interimResults_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, interimResults_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -291,20 +251,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1.StreamingRecognitionConfig)) { return super.equals(obj); } - com.google.cloud.speech.v1.StreamingRecognitionConfig other = - (com.google.cloud.speech.v1.StreamingRecognitionConfig) obj; + com.google.cloud.speech.v1.StreamingRecognitionConfig other = (com.google.cloud.speech.v1.StreamingRecognitionConfig) obj; if (hasConfig() != other.hasConfig()) return false; if (hasConfig()) { - if (!getConfig().equals(other.getConfig())) return false; + if (!getConfig() + .equals(other.getConfig())) return false; } - if (getSingleUtterance() != other.getSingleUtterance()) return false; - if (getInterimResults() != other.getInterimResults()) return false; + if (getSingleUtterance() + != other.getSingleUtterance()) return false; + if (getInterimResults() + != other.getInterimResults()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -321,113 +283,107 @@ public int hashCode() { hash = (53 * hash) + getConfig().hashCode(); } hash = (37 * hash) + SINGLE_UTTERANCE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSingleUtterance()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getSingleUtterance()); hash = (37 * hash) + INTERIM_RESULTS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getInterimResults()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getInterimResults()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.speech.v1.StreamingRecognitionConfig parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1.StreamingRecognitionConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1.StreamingRecognitionConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1.StreamingRecognitionConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1.StreamingRecognitionConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1.StreamingRecognitionConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.speech.v1.StreamingRecognitionConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.speech.v1.StreamingRecognitionConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1.StreamingRecognitionConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.speech.v1.StreamingRecognitionConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.speech.v1.StreamingRecognitionConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1.StreamingRecognitionConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1.StreamingRecognitionConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1.StreamingRecognitionConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.speech.v1.StreamingRecognitionConfig prototype) { + public static Builder newBuilder(com.google.cloud.speech.v1.StreamingRecognitionConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Provides information to the recognizer that specifies how to process the
    * request.
@@ -435,23 +391,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.speech.v1.StreamingRecognitionConfig}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1.StreamingRecognitionConfig)
       com.google.cloud.speech.v1.StreamingRecognitionConfigOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.speech.v1.SpeechProto
-          .internal_static_google_cloud_speech_v1_StreamingRecognitionConfig_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_StreamingRecognitionConfig_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v1.SpeechProto
-          .internal_static_google_cloud_speech_v1_StreamingRecognitionConfig_fieldAccessorTable
+      return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_StreamingRecognitionConfig_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v1.StreamingRecognitionConfig.class,
-              com.google.cloud.speech.v1.StreamingRecognitionConfig.Builder.class);
+              com.google.cloud.speech.v1.StreamingRecognitionConfig.class, com.google.cloud.speech.v1.StreamingRecognitionConfig.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v1.StreamingRecognitionConfig.newBuilder()
@@ -459,15 +413,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -485,9 +440,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
@@ -506,8 +461,7 @@ public com.google.cloud.speech.v1.StreamingRecognitionConfig build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v1.StreamingRecognitionConfig buildPartial() {
-      com.google.cloud.speech.v1.StreamingRecognitionConfig result =
-          new com.google.cloud.speech.v1.StreamingRecognitionConfig(this);
+      com.google.cloud.speech.v1.StreamingRecognitionConfig result = new com.google.cloud.speech.v1.StreamingRecognitionConfig(this);
       if (configBuilder_ == null) {
         result.config_ = config_;
       } else {
@@ -523,39 +477,38 @@ public com.google.cloud.speech.v1.StreamingRecognitionConfig buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.speech.v1.StreamingRecognitionConfig) {
-        return mergeFrom((com.google.cloud.speech.v1.StreamingRecognitionConfig) other);
+        return mergeFrom((com.google.cloud.speech.v1.StreamingRecognitionConfig)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -563,8 +516,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());
       }
@@ -593,8 +545,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.speech.v1.StreamingRecognitionConfig) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.speech.v1.StreamingRecognitionConfig) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -606,61 +557,42 @@ public Builder mergeFrom(
 
     private com.google.cloud.speech.v1.RecognitionConfig config_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.speech.v1.RecognitionConfig,
-            com.google.cloud.speech.v1.RecognitionConfig.Builder,
-            com.google.cloud.speech.v1.RecognitionConfigOrBuilder>
-        configBuilder_;
+        com.google.cloud.speech.v1.RecognitionConfig, com.google.cloud.speech.v1.RecognitionConfig.Builder, com.google.cloud.speech.v1.RecognitionConfigOrBuilder> configBuilder_;
     /**
-     *
-     *
      * 
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the config field is set. */ public boolean hasConfig() { return configBuilder_ != null || config_ != null; } /** - * - * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The config. */ public com.google.cloud.speech.v1.RecognitionConfig getConfig() { if (configBuilder_ == null) { - return config_ == null - ? com.google.cloud.speech.v1.RecognitionConfig.getDefaultInstance() - : config_; + return config_ == null ? com.google.cloud.speech.v1.RecognitionConfig.getDefaultInstance() : config_; } else { return configBuilder_.getMessage(); } } /** - * - * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setConfig(com.google.cloud.speech.v1.RecognitionConfig value) { if (configBuilder_ == null) { @@ -676,18 +608,15 @@ public Builder setConfig(com.google.cloud.speech.v1.RecognitionConfig value) { return this; } /** - * - * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setConfig(com.google.cloud.speech.v1.RecognitionConfig.Builder builderForValue) { + public Builder setConfig( + com.google.cloud.speech.v1.RecognitionConfig.Builder builderForValue) { if (configBuilder_ == null) { config_ = builderForValue.build(); onChanged(); @@ -698,24 +627,18 @@ public Builder setConfig(com.google.cloud.speech.v1.RecognitionConfig.Builder bu return this; } /** - * - * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeConfig(com.google.cloud.speech.v1.RecognitionConfig value) { if (configBuilder_ == null) { if (config_ != null) { config_ = - com.google.cloud.speech.v1.RecognitionConfig.newBuilder(config_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.speech.v1.RecognitionConfig.newBuilder(config_).mergeFrom(value).buildPartial(); } else { config_ = value; } @@ -727,16 +650,12 @@ public Builder mergeConfig(com.google.cloud.speech.v1.RecognitionConfig value) { return this; } /** - * - * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearConfig() { if (configBuilder_ == null) { @@ -750,76 +669,58 @@ public Builder clearConfig() { return this; } /** - * - * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.speech.v1.RecognitionConfig.Builder getConfigBuilder() { - + onChanged(); return getConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.speech.v1.RecognitionConfigOrBuilder getConfigOrBuilder() { if (configBuilder_ != null) { return configBuilder_.getMessageOrBuilder(); } else { - return config_ == null - ? com.google.cloud.speech.v1.RecognitionConfig.getDefaultInstance() - : config_; + return config_ == null ? + com.google.cloud.speech.v1.RecognitionConfig.getDefaultInstance() : config_; } } /** - * - * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1.RecognitionConfig, - com.google.cloud.speech.v1.RecognitionConfig.Builder, - com.google.cloud.speech.v1.RecognitionConfigOrBuilder> + com.google.cloud.speech.v1.RecognitionConfig, com.google.cloud.speech.v1.RecognitionConfig.Builder, com.google.cloud.speech.v1.RecognitionConfigOrBuilder> getConfigFieldBuilder() { if (configBuilder_ == null) { - configBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1.RecognitionConfig, - com.google.cloud.speech.v1.RecognitionConfig.Builder, - com.google.cloud.speech.v1.RecognitionConfigOrBuilder>( - getConfig(), getParentForChildren(), isClean()); + configBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v1.RecognitionConfig, com.google.cloud.speech.v1.RecognitionConfig.Builder, com.google.cloud.speech.v1.RecognitionConfigOrBuilder>( + getConfig(), + getParentForChildren(), + isClean()); config_ = null; } return configBuilder_; } - private boolean singleUtterance_; + private boolean singleUtterance_ ; /** - * - * *
      * If `false` or omitted, the recognizer will perform continuous
      * recognition (continuing to wait for and process audio even if the user
@@ -842,7 +743,6 @@ public com.google.cloud.speech.v1.RecognitionConfigOrBuilder getConfigOrBuilder(
      * 
* * bool single_utterance = 2; - * * @return The singleUtterance. */ @java.lang.Override @@ -850,8 +750,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
@@ -874,19 +772,16 @@ public boolean getSingleUtterance() {
      * 
* * bool single_utterance = 2; - * * @param value The singleUtterance to set. * @return This builder for chaining. */ public Builder setSingleUtterance(boolean value) { - + singleUtterance_ = value; onChanged(); return this; } /** - * - * *
      * If `false` or omitted, the recognizer will perform continuous
      * recognition (continuing to wait for and process audio even if the user
@@ -909,20 +804,17 @@ public Builder setSingleUtterance(boolean value) {
      * 
* * bool single_utterance = 2; - * * @return This builder for chaining. */ public Builder clearSingleUtterance() { - + singleUtterance_ = false; onChanged(); return this; } - private boolean interimResults_; + private boolean interimResults_ ; /** - * - * *
      * If `true`, interim results (tentative hypotheses) may be
      * returned as they become available (these interim results are indicated with
@@ -931,7 +823,6 @@ public Builder clearSingleUtterance() {
      * 
* * bool interim_results = 3; - * * @return The interimResults. */ @java.lang.Override @@ -939,8 +830,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
@@ -949,19 +838,16 @@ public boolean getInterimResults() {
      * 
* * bool interim_results = 3; - * * @param value The interimResults to set. * @return This builder for chaining. */ public Builder setInterimResults(boolean value) { - + interimResults_ = value; onChanged(); return this; } /** - * - * *
      * If `true`, interim results (tentative hypotheses) may be
      * returned as they become available (these interim results are indicated with
@@ -970,18 +856,17 @@ public Builder setInterimResults(boolean value) {
      * 
* * bool interim_results = 3; - * * @return This builder for chaining. */ public Builder clearInterimResults() { - + interimResults_ = false; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -991,12 +876,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(); } @@ -1005,16 +890,16 @@ public static com.google.cloud.speech.v1.StreamingRecognitionConfig getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StreamingRecognitionConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new StreamingRecognitionConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StreamingRecognitionConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new StreamingRecognitionConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1029,4 +914,6 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.speech.v1.StreamingRecognitionConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognitionConfigOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognitionConfigOrBuilder.java similarity index 70% rename from proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognitionConfigOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognitionConfigOrBuilder.java index 7b3064599..8c5cfecdc 100644 --- a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognitionConfigOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognitionConfigOrBuilder.java @@ -1,75 +1,43 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1/cloud_speech.proto package com.google.cloud.speech.v1; -public interface StreamingRecognitionConfigOrBuilder - extends +public interface StreamingRecognitionConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1.StreamingRecognitionConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Provides information to the recognizer that specifies how to
    * process the request.
    * 
* - * - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the config field is set. */ boolean hasConfig(); /** - * - * *
    * Required. Provides information to the recognizer that specifies how to
    * process the request.
    * 
* - * - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The config. */ com.google.cloud.speech.v1.RecognitionConfig getConfig(); /** - * - * *
    * Required. Provides information to the recognizer that specifies how to
    * process the request.
    * 
* - * - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.speech.v1.RecognitionConfigOrBuilder getConfigOrBuilder(); /** - * - * *
    * If `false` or omitted, the recognizer will perform continuous
    * recognition (continuing to wait for and process audio even if the user
@@ -92,14 +60,11 @@ public interface StreamingRecognitionConfigOrBuilder
    * 
* * bool single_utterance = 2; - * * @return The singleUtterance. */ boolean getSingleUtterance(); /** - * - * *
    * If `true`, interim results (tentative hypotheses) may be
    * returned as they become available (these interim results are indicated with
@@ -108,7 +73,6 @@ public interface StreamingRecognitionConfigOrBuilder
    * 
* * bool interim_results = 3; - * * @return The interimResults. */ boolean getInterimResults(); diff --git a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognitionResult.java b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognitionResult.java similarity index 77% rename from proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognitionResult.java rename to owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognitionResult.java index 974140f81..88500e3ba 100644 --- a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognitionResult.java +++ b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognitionResult.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1/cloud_speech.proto package com.google.cloud.speech.v1; /** - * - * *
  * A streaming speech recognition result corresponding to a portion of the audio
  * that is currently being processed.
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.cloud.speech.v1.StreamingRecognitionResult}
  */
-public final class StreamingRecognitionResult extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class StreamingRecognitionResult extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.speech.v1.StreamingRecognitionResult)
     StreamingRecognitionResultOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use StreamingRecognitionResult.newBuilder() to construct.
   private StreamingRecognitionResult(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private StreamingRecognitionResult() {
     alternatives_ = java.util.Collections.emptyList();
     languageCode_ = "";
@@ -45,15 +27,16 @@ private StreamingRecognitionResult() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new StreamingRecognitionResult();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private StreamingRecognitionResult(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -73,70 +56,63 @@ private StreamingRecognitionResult(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                alternatives_ =
-                    new java.util.ArrayList<
-                        com.google.cloud.speech.v1.SpeechRecognitionAlternative>();
-                mutable_bitField0_ |= 0x00000001;
-              }
-              alternatives_.add(
-                  input.readMessage(
-                      com.google.cloud.speech.v1.SpeechRecognitionAlternative.parser(),
-                      extensionRegistry));
-              break;
+          case 10: {
+            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+              alternatives_ = new java.util.ArrayList();
+              mutable_bitField0_ |= 0x00000001;
             }
-          case 16:
-            {
-              isFinal_ = input.readBool();
-              break;
-            }
-          case 29:
-            {
-              stability_ = input.readFloat();
-              break;
-            }
-          case 34:
-            {
-              com.google.protobuf.Duration.Builder subBuilder = null;
-              if (resultEndTime_ != null) {
-                subBuilder = resultEndTime_.toBuilder();
-              }
-              resultEndTime_ =
-                  input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(resultEndTime_);
-                resultEndTime_ = subBuilder.buildPartial();
-              }
-
-              break;
+            alternatives_.add(
+                input.readMessage(com.google.cloud.speech.v1.SpeechRecognitionAlternative.parser(), extensionRegistry));
+            break;
+          }
+          case 16: {
+
+            isFinal_ = input.readBool();
+            break;
+          }
+          case 29: {
+
+            stability_ = input.readFloat();
+            break;
+          }
+          case 34: {
+            com.google.protobuf.Duration.Builder subBuilder = null;
+            if (resultEndTime_ != null) {
+              subBuilder = resultEndTime_.toBuilder();
             }
-          case 40:
-            {
-              channelTag_ = input.readInt32();
-              break;
+            resultEndTime_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(resultEndTime_);
+              resultEndTime_ = subBuilder.buildPartial();
             }
-          case 50:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
 
-              languageCode_ = s;
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            break;
+          }
+          case 40: {
+
+            channelTag_ = input.readInt32();
+            break;
+          }
+          case 50: {
+            java.lang.String s = input.readStringRequireUtf8();
+
+            languageCode_ = s;
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         alternatives_ = java.util.Collections.unmodifiableList(alternatives_);
@@ -145,27 +121,22 @@ private StreamingRecognitionResult(
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.speech.v1.SpeechProto
-        .internal_static_google_cloud_speech_v1_StreamingRecognitionResult_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_StreamingRecognitionResult_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v1.SpeechProto
-        .internal_static_google_cloud_speech_v1_StreamingRecognitionResult_fieldAccessorTable
+    return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_StreamingRecognitionResult_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v1.StreamingRecognitionResult.class,
-            com.google.cloud.speech.v1.StreamingRecognitionResult.Builder.class);
+            com.google.cloud.speech.v1.StreamingRecognitionResult.class, com.google.cloud.speech.v1.StreamingRecognitionResult.Builder.class);
   }
 
   public static final int ALTERNATIVES_FIELD_NUMBER = 1;
   private java.util.List alternatives_;
   /**
-   *
-   *
    * 
    * May contain one or more recognition hypotheses (up to the
    * maximum specified in `max_alternatives`).
@@ -176,13 +147,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`).
@@ -193,13 +161,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`).
@@ -214,8 +180,6 @@ public int getAlternativesCount() {
     return alternatives_.size();
   }
   /**
-   *
-   *
    * 
    * May contain one or more recognition hypotheses (up to the
    * maximum specified in `max_alternatives`).
@@ -230,8 +194,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`).
@@ -250,8 +212,6 @@ public com.google.cloud.speech.v1.SpeechRecognitionAlternativeOrBuilder getAlter
   public static final int IS_FINAL_FIELD_NUMBER = 2;
   private boolean isFinal_;
   /**
-   *
-   *
    * 
    * If `false`, this `StreamingRecognitionResult` represents an
    * interim result that may change. If `true`, this is the final time the
@@ -261,7 +221,6 @@ public com.google.cloud.speech.v1.SpeechRecognitionAlternativeOrBuilder getAlter
    * 
* * bool is_final = 2; - * * @return The isFinal. */ @java.lang.Override @@ -272,8 +231,6 @@ public boolean getIsFinal() { public static final int STABILITY_FIELD_NUMBER = 3; private float stability_; /** - * - * *
    * An estimate of the likelihood that the recognizer will not
    * change its guess about this interim result. Values range from 0.0
@@ -283,7 +240,6 @@ public boolean getIsFinal() {
    * 
* * float stability = 3; - * * @return The stability. */ @java.lang.Override @@ -294,15 +250,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 @@ -310,26 +263,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.
@@ -345,8 +291,6 @@ public com.google.protobuf.DurationOrBuilder getResultEndTimeOrBuilder() {
   public static final int CHANNEL_TAG_FIELD_NUMBER = 5;
   private int channelTag_;
   /**
-   *
-   *
    * 
    * For multi-channel audio, this is the channel number corresponding to the
    * recognized result for the audio from that channel.
@@ -354,7 +298,6 @@ public com.google.protobuf.DurationOrBuilder getResultEndTimeOrBuilder() {
    * 
* * int32 channel_tag = 5; - * * @return The channelTag. */ @java.lang.Override @@ -365,8 +308,6 @@ public int getChannelTag() { public static final int LANGUAGE_CODE_FIELD_NUMBER = 6; private volatile java.lang.Object languageCode_; /** - * - * *
    * Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag
    * of the language in this result. This language code was detected to have
@@ -374,7 +315,6 @@ public int getChannelTag() {
    * 
* * string language_code = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The languageCode. */ @java.lang.Override @@ -383,15 +323,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
@@ -399,15 +338,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 { @@ -416,7 +356,6 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -428,7 +367,8 @@ public final boolean isInitialized() { } @java.lang.Override - 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)); } @@ -457,19 +397,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 (stability_ != 0F) { - 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_); @@ -482,24 +427,29 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1.StreamingRecognitionResult)) { return super.equals(obj); } - com.google.cloud.speech.v1.StreamingRecognitionResult other = - (com.google.cloud.speech.v1.StreamingRecognitionResult) obj; + com.google.cloud.speech.v1.StreamingRecognitionResult other = (com.google.cloud.speech.v1.StreamingRecognitionResult) obj; - if (!getAlternativesList().equals(other.getAlternativesList())) return false; - if (getIsFinal() != other.getIsFinal()) return false; + if (!getAlternativesList() + .equals(other.getAlternativesList())) return false; + if (getIsFinal() + != other.getIsFinal()) return false; if (java.lang.Float.floatToIntBits(getStability()) - != java.lang.Float.floatToIntBits(other.getStability())) return false; + != java.lang.Float.floatToIntBits( + other.getStability())) return false; if (hasResultEndTime() != other.hasResultEndTime()) return false; if (hasResultEndTime()) { - if (!getResultEndTime().equals(other.getResultEndTime())) return false; + if (!getResultEndTime() + .equals(other.getResultEndTime())) return false; } - if (getChannelTag() != other.getChannelTag()) return false; - if (!getLanguageCode().equals(other.getLanguageCode())) return false; + if (getChannelTag() + != other.getChannelTag()) return false; + if (!getLanguageCode() + .equals(other.getLanguageCode())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -516,9 +466,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(); @@ -533,104 +485,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.
@@ -638,23 +582,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.speech.v1.StreamingRecognitionResult}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1.StreamingRecognitionResult)
       com.google.cloud.speech.v1.StreamingRecognitionResultOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.speech.v1.SpeechProto
-          .internal_static_google_cloud_speech_v1_StreamingRecognitionResult_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_StreamingRecognitionResult_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v1.SpeechProto
-          .internal_static_google_cloud_speech_v1_StreamingRecognitionResult_fieldAccessorTable
+      return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_StreamingRecognitionResult_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v1.StreamingRecognitionResult.class,
-              com.google.cloud.speech.v1.StreamingRecognitionResult.Builder.class);
+              com.google.cloud.speech.v1.StreamingRecognitionResult.class, com.google.cloud.speech.v1.StreamingRecognitionResult.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v1.StreamingRecognitionResult.newBuilder()
@@ -662,17 +604,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
         getAlternativesFieldBuilder();
       }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -700,9 +642,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
@@ -721,8 +663,7 @@ public com.google.cloud.speech.v1.StreamingRecognitionResult build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v1.StreamingRecognitionResult buildPartial() {
-      com.google.cloud.speech.v1.StreamingRecognitionResult result =
-          new com.google.cloud.speech.v1.StreamingRecognitionResult(this);
+      com.google.cloud.speech.v1.StreamingRecognitionResult result = new com.google.cloud.speech.v1.StreamingRecognitionResult(this);
       int from_bitField0_ = bitField0_;
       if (alternativesBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
@@ -750,39 +691,38 @@ public com.google.cloud.speech.v1.StreamingRecognitionResult buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.speech.v1.StreamingRecognitionResult) {
-        return mergeFrom((com.google.cloud.speech.v1.StreamingRecognitionResult) other);
+        return mergeFrom((com.google.cloud.speech.v1.StreamingRecognitionResult)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -790,8 +730,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()) {
@@ -810,10 +749,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_);
           }
@@ -854,8 +792,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.speech.v1.StreamingRecognitionResult) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.speech.v1.StreamingRecognitionResult) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -864,30 +801,21 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int bitField0_;
 
     private java.util.List alternatives_ =
-        java.util.Collections.emptyList();
-
+      java.util.Collections.emptyList();
     private void ensureAlternativesIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
-        alternatives_ =
-            new java.util.ArrayList(
-                alternatives_);
+        alternatives_ = new java.util.ArrayList(alternatives_);
         bitField0_ |= 0x00000001;
-      }
+       }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.speech.v1.SpeechRecognitionAlternative,
-            com.google.cloud.speech.v1.SpeechRecognitionAlternative.Builder,
-            com.google.cloud.speech.v1.SpeechRecognitionAlternativeOrBuilder>
-        alternativesBuilder_;
+        com.google.cloud.speech.v1.SpeechRecognitionAlternative, com.google.cloud.speech.v1.SpeechRecognitionAlternative.Builder, com.google.cloud.speech.v1.SpeechRecognitionAlternativeOrBuilder> alternativesBuilder_;
 
     /**
-     *
-     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -897,8 +825,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 {
@@ -906,8 +833,6 @@ private void ensureAlternativesIsMutable() {
       }
     }
     /**
-     *
-     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -925,8 +850,6 @@ public int getAlternativesCount() {
       }
     }
     /**
-     *
-     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -944,8 +867,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`).
@@ -970,8 +891,6 @@ public Builder setAlternatives(
       return this;
     }
     /**
-     *
-     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -982,8 +901,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());
@@ -994,8 +912,6 @@ public Builder setAlternatives(
       return this;
     }
     /**
-     *
-     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -1019,8 +935,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`).
@@ -1045,8 +959,6 @@ public Builder addAlternatives(
       return this;
     }
     /**
-     *
-     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -1068,8 +980,6 @@ public Builder addAlternatives(
       return this;
     }
     /**
-     *
-     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -1080,8 +990,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());
@@ -1092,8 +1001,6 @@ public Builder addAlternatives(
       return this;
     }
     /**
-     *
-     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -1104,11 +1011,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);
@@ -1116,8 +1023,6 @@ public Builder addAllAlternatives(
       return this;
     }
     /**
-     *
-     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -1138,8 +1043,6 @@ public Builder clearAlternatives() {
       return this;
     }
     /**
-     *
-     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -1160,8 +1063,6 @@ public Builder removeAlternatives(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -1176,8 +1077,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`).
@@ -1187,17 +1086,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`).
@@ -1207,9 +1103,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 {
@@ -1217,8 +1112,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`).
@@ -1228,14 +1121,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`).
@@ -1247,13 +1137,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`).
@@ -1263,32 +1150,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
@@ -1298,7 +1180,6 @@ public com.google.cloud.speech.v1.SpeechRecognitionAlternative.Builder addAltern
      * 
* * bool is_final = 2; - * * @return The isFinal. */ @java.lang.Override @@ -1306,8 +1187,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
@@ -1317,19 +1196,16 @@ public boolean getIsFinal() {
      * 
* * bool is_final = 2; - * * @param value The isFinal to set. * @return This builder for chaining. */ public Builder setIsFinal(boolean value) { - + isFinal_ = value; onChanged(); return this; } /** - * - * *
      * If `false`, this `StreamingRecognitionResult` represents an
      * interim result that may change. If `true`, this is the final time the
@@ -1339,20 +1215,17 @@ public Builder setIsFinal(boolean value) {
      * 
* * bool is_final = 2; - * * @return This builder for chaining. */ public Builder clearIsFinal() { - + isFinal_ = false; onChanged(); return this; } - private float stability_; + private float stability_ ; /** - * - * *
      * An estimate of the likelihood that the recognizer will not
      * change its guess about this interim result. Values range from 0.0
@@ -1362,7 +1235,6 @@ public Builder clearIsFinal() {
      * 
* * float stability = 3; - * * @return The stability. */ @java.lang.Override @@ -1370,8 +1242,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
@@ -1381,19 +1251,16 @@ public float getStability() {
      * 
* * float stability = 3; - * * @param value The stability to set. * @return This builder for chaining. */ public Builder setStability(float value) { - + stability_ = value; onChanged(); return this; } /** - * - * *
      * An estimate of the likelihood that the recognizer will not
      * change its guess about this interim result. Values range from 0.0
@@ -1403,11 +1270,10 @@ public Builder setStability(float value) {
      * 
* * float stability = 3; - * * @return This builder for chaining. */ public Builder clearStability() { - + stability_ = 0F; onChanged(); return this; @@ -1415,49 +1281,36 @@ public Builder clearStability() { private com.google.protobuf.Duration resultEndTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - resultEndTimeBuilder_; + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> resultEndTimeBuilder_; /** - * - * *
      * Time offset of the end of this result relative to the
      * beginning of the audio.
      * 
* * .google.protobuf.Duration result_end_time = 4; - * * @return Whether the resultEndTime field is set. */ public boolean hasResultEndTime() { return resultEndTimeBuilder_ != null || resultEndTime_ != null; } /** - * - * *
      * Time offset of the end of this result relative to the
      * beginning of the audio.
      * 
* * .google.protobuf.Duration result_end_time = 4; - * * @return The resultEndTime. */ public com.google.protobuf.Duration getResultEndTime() { if (resultEndTimeBuilder_ == null) { - return resultEndTime_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : resultEndTime_; + return resultEndTime_ == null ? com.google.protobuf.Duration.getDefaultInstance() : resultEndTime_; } else { return resultEndTimeBuilder_.getMessage(); } } /** - * - * *
      * Time offset of the end of this result relative to the
      * beginning of the audio.
@@ -1479,8 +1332,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.
@@ -1488,7 +1339,8 @@ public Builder setResultEndTime(com.google.protobuf.Duration value) {
      *
      * .google.protobuf.Duration result_end_time = 4;
      */
-    public Builder setResultEndTime(com.google.protobuf.Duration.Builder builderForValue) {
+    public Builder setResultEndTime(
+        com.google.protobuf.Duration.Builder builderForValue) {
       if (resultEndTimeBuilder_ == null) {
         resultEndTime_ = builderForValue.build();
         onChanged();
@@ -1499,8 +1351,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.
@@ -1512,9 +1362,7 @@ public Builder mergeResultEndTime(com.google.protobuf.Duration value) {
       if (resultEndTimeBuilder_ == null) {
         if (resultEndTime_ != null) {
           resultEndTime_ =
-              com.google.protobuf.Duration.newBuilder(resultEndTime_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.protobuf.Duration.newBuilder(resultEndTime_).mergeFrom(value).buildPartial();
         } else {
           resultEndTime_ = value;
         }
@@ -1526,8 +1374,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.
@@ -1547,8 +1393,6 @@ public Builder clearResultEndTime() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Time offset of the end of this result relative to the
      * beginning of the audio.
@@ -1557,13 +1401,11 @@ public Builder clearResultEndTime() {
      * .google.protobuf.Duration result_end_time = 4;
      */
     public com.google.protobuf.Duration.Builder getResultEndTimeBuilder() {
-
+      
       onChanged();
       return getResultEndTimeFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Time offset of the end of this result relative to the
      * beginning of the audio.
@@ -1575,14 +1417,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.
@@ -1591,26 +1430,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.
@@ -1618,7 +1452,6 @@ public com.google.protobuf.DurationOrBuilder getResultEndTimeOrBuilder() {
      * 
* * int32 channel_tag = 5; - * * @return The channelTag. */ @java.lang.Override @@ -1626,8 +1459,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.
@@ -1635,19 +1466,16 @@ public int getChannelTag() {
      * 
* * int32 channel_tag = 5; - * * @param value The channelTag to set. * @return This builder for chaining. */ public Builder setChannelTag(int value) { - + channelTag_ = value; onChanged(); return this; } /** - * - * *
      * For multi-channel audio, this is the channel number corresponding to the
      * recognized result for the audio from that channel.
@@ -1655,11 +1483,10 @@ public Builder setChannelTag(int value) {
      * 
* * int32 channel_tag = 5; - * * @return This builder for chaining. */ public Builder clearChannelTag() { - + channelTag_ = 0; onChanged(); return this; @@ -1667,8 +1494,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
@@ -1676,13 +1501,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; @@ -1691,8 +1516,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
@@ -1700,14 +1523,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 { @@ -1715,8 +1539,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
@@ -1724,22 +1546,20 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() {
      * 
* * string language_code = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCode(java.lang.String value) { + public Builder setLanguageCode( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + languageCode_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag
      * of the language in this result. This language code was detected to have
@@ -1747,18 +1567,15 @@ public Builder setLanguageCode(java.lang.String value) {
      * 
* * string language_code = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearLanguageCode() { - + languageCode_ = getDefaultInstance().getLanguageCode(); onChanged(); return this; } /** - * - * *
      * Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag
      * of the language in this result. This language code was detected to have
@@ -1766,23 +1583,23 @@ public Builder clearLanguageCode() {
      * 
* * string language_code = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { + public Builder setLanguageCodeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + languageCode_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1792,12 +1609,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(); } @@ -1806,16 +1623,16 @@ public static com.google.cloud.speech.v1.StreamingRecognitionResult getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StreamingRecognitionResult parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new StreamingRecognitionResult(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StreamingRecognitionResult parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new StreamingRecognitionResult(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1830,4 +1647,6 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.speech.v1.StreamingRecognitionResult getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognitionResultOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognitionResultOrBuilder.java similarity index 85% rename from proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognitionResultOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognitionResultOrBuilder.java index 21ef917f1..c44aa1077 100644 --- a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognitionResultOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognitionResultOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1/cloud_speech.proto package com.google.cloud.speech.v1; -public interface StreamingRecognitionResultOrBuilder - extends +public interface StreamingRecognitionResultOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1.StreamingRecognitionResult) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * May contain one or more recognition hypotheses (up to the
    * maximum specified in `max_alternatives`).
@@ -35,10 +17,9 @@ public interface StreamingRecognitionResultOrBuilder
    *
    * repeated .google.cloud.speech.v1.SpeechRecognitionAlternative alternatives = 1;
    */
-  java.util.List getAlternativesList();
+  java.util.List 
+      getAlternativesList();
   /**
-   *
-   *
    * 
    * May contain one or more recognition hypotheses (up to the
    * maximum specified in `max_alternatives`).
@@ -50,8 +31,6 @@ public interface StreamingRecognitionResultOrBuilder
    */
   com.google.cloud.speech.v1.SpeechRecognitionAlternative getAlternatives(int index);
   /**
-   *
-   *
    * 
    * May contain one or more recognition hypotheses (up to the
    * maximum specified in `max_alternatives`).
@@ -63,8 +42,6 @@ public interface StreamingRecognitionResultOrBuilder
    */
   int getAlternativesCount();
   /**
-   *
-   *
    * 
    * May contain one or more recognition hypotheses (up to the
    * maximum specified in `max_alternatives`).
@@ -74,11 +51,9 @@ public interface StreamingRecognitionResultOrBuilder
    *
    * repeated .google.cloud.speech.v1.SpeechRecognitionAlternative alternatives = 1;
    */
-  java.util.List
+  java.util.List 
       getAlternativesOrBuilderList();
   /**
-   *
-   *
    * 
    * May contain one or more recognition hypotheses (up to the
    * maximum specified in `max_alternatives`).
@@ -92,8 +67,6 @@ com.google.cloud.speech.v1.SpeechRecognitionAlternativeOrBuilder getAlternatives
       int index);
 
   /**
-   *
-   *
    * 
    * If `false`, this `StreamingRecognitionResult` represents an
    * interim result that may change. If `true`, this is the final time the
@@ -103,14 +76,11 @@ com.google.cloud.speech.v1.SpeechRecognitionAlternativeOrBuilder getAlternatives
    * 
* * bool is_final = 2; - * * @return The isFinal. */ boolean getIsFinal(); /** - * - * *
    * An estimate of the likelihood that the recognizer will not
    * change its guess about this interim result. Values range from 0.0
@@ -120,40 +90,31 @@ com.google.cloud.speech.v1.SpeechRecognitionAlternativeOrBuilder getAlternatives
    * 
* * float stability = 3; - * * @return The stability. */ float getStability(); /** - * - * *
    * Time offset of the end of this result relative to the
    * beginning of the audio.
    * 
* * .google.protobuf.Duration result_end_time = 4; - * * @return Whether the resultEndTime field is set. */ boolean hasResultEndTime(); /** - * - * *
    * Time offset of the end of this result relative to the
    * beginning of the audio.
    * 
* * .google.protobuf.Duration result_end_time = 4; - * * @return The resultEndTime. */ com.google.protobuf.Duration getResultEndTime(); /** - * - * *
    * Time offset of the end of this result relative to the
    * beginning of the audio.
@@ -164,8 +125,6 @@ com.google.cloud.speech.v1.SpeechRecognitionAlternativeOrBuilder getAlternatives
   com.google.protobuf.DurationOrBuilder getResultEndTimeOrBuilder();
 
   /**
-   *
-   *
    * 
    * For multi-channel audio, this is the channel number corresponding to the
    * recognized result for the audio from that channel.
@@ -173,14 +132,11 @@ com.google.cloud.speech.v1.SpeechRecognitionAlternativeOrBuilder getAlternatives
    * 
* * int32 channel_tag = 5; - * * @return The channelTag. */ int getChannelTag(); /** - * - * *
    * Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag
    * of the language in this result. This language code was detected to have
@@ -188,13 +144,10 @@ com.google.cloud.speech.v1.SpeechRecognitionAlternativeOrBuilder getAlternatives
    * 
* * string language_code = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The languageCode. */ java.lang.String getLanguageCode(); /** - * - * *
    * Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag
    * of the language in this result. This language code was detected to have
@@ -202,8 +155,8 @@ com.google.cloud.speech.v1.SpeechRecognitionAlternativeOrBuilder getAlternatives
    * 
* * string language_code = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for languageCode. */ - com.google.protobuf.ByteString getLanguageCodeBytes(); + com.google.protobuf.ByteString + getLanguageCodeBytes(); } diff --git a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeRequest.java b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeRequest.java similarity index 73% rename from proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeRequest.java rename to owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeRequest.java index da898b89e..993690496 100644 --- a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeRequest.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1/cloud_speech.proto package com.google.cloud.speech.v1; /** - * - * *
  * The top-level message sent by the client for the `StreamingRecognize` method.
  * Multiple `StreamingRecognizeRequest` messages are sent. The first message
@@ -31,29 +14,30 @@
  *
  * Protobuf type {@code google.cloud.speech.v1.StreamingRecognizeRequest}
  */
-public final class StreamingRecognizeRequest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class StreamingRecognizeRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.speech.v1.StreamingRecognizeRequest)
     StreamingRecognizeRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use StreamingRecognizeRequest.newBuilder() to construct.
   private StreamingRecognizeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
-  private StreamingRecognizeRequest() {}
+  private StreamingRecognizeRequest() {
+  }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new StreamingRecognizeRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private StreamingRecognizeRequest(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -72,78 +56,66 @@ private StreamingRecognizeRequest(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              com.google.cloud.speech.v1.StreamingRecognitionConfig.Builder subBuilder = null;
-              if (streamingRequestCase_ == 1) {
-                subBuilder =
-                    ((com.google.cloud.speech.v1.StreamingRecognitionConfig) streamingRequest_)
-                        .toBuilder();
-              }
-              streamingRequest_ =
-                  input.readMessage(
-                      com.google.cloud.speech.v1.StreamingRecognitionConfig.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(
-                    (com.google.cloud.speech.v1.StreamingRecognitionConfig) streamingRequest_);
-                streamingRequest_ = subBuilder.buildPartial();
-              }
-              streamingRequestCase_ = 1;
-              break;
+          case 10: {
+            com.google.cloud.speech.v1.StreamingRecognitionConfig.Builder subBuilder = null;
+            if (streamingRequestCase_ == 1) {
+              subBuilder = ((com.google.cloud.speech.v1.StreamingRecognitionConfig) streamingRequest_).toBuilder();
             }
-          case 18:
-            {
-              streamingRequestCase_ = 2;
-              streamingRequest_ = input.readBytes();
-              break;
+            streamingRequest_ =
+                input.readMessage(com.google.cloud.speech.v1.StreamingRecognitionConfig.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom((com.google.cloud.speech.v1.StreamingRecognitionConfig) streamingRequest_);
+              streamingRequest_ = subBuilder.buildPartial();
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            streamingRequestCase_ = 1;
+            break;
+          }
+          case 18: {
+            streamingRequestCase_ = 2;
+            streamingRequest_ = input.readBytes();
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.speech.v1.SpeechProto
-        .internal_static_google_cloud_speech_v1_StreamingRecognizeRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_StreamingRecognizeRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v1.SpeechProto
-        .internal_static_google_cloud_speech_v1_StreamingRecognizeRequest_fieldAccessorTable
+    return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_StreamingRecognizeRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v1.StreamingRecognizeRequest.class,
-            com.google.cloud.speech.v1.StreamingRecognizeRequest.Builder.class);
+            com.google.cloud.speech.v1.StreamingRecognizeRequest.class, com.google.cloud.speech.v1.StreamingRecognizeRequest.Builder.class);
   }
 
   private int streamingRequestCase_ = 0;
   private java.lang.Object streamingRequest_;
-
   public enum StreamingRequestCase
-      implements
-          com.google.protobuf.Internal.EnumLite,
+      implements com.google.protobuf.Internal.EnumLite,
           com.google.protobuf.AbstractMessage.InternalOneOfEnum {
     STREAMING_CONFIG(1),
     AUDIO_CONTENT(2),
     STREAMINGREQUEST_NOT_SET(0);
     private final int value;
-
     private StreamingRequestCase(int value) {
       this.value = value;
     }
@@ -159,30 +131,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
@@ -190,7 +157,6 @@ public StreamingRequestCase getStreamingRequestCase() {
    * 
* * .google.cloud.speech.v1.StreamingRecognitionConfig streaming_config = 1; - * * @return Whether the streamingConfig field is set. */ @java.lang.Override @@ -198,8 +164,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
@@ -207,19 +171,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
@@ -229,18 +190,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
@@ -253,7 +211,6 @@ public com.google.cloud.speech.v1.StreamingRecognitionConfig getStreamingConfig(
    * 
* * bytes audio_content = 2; - * * @return Whether the audioContent field is set. */ @java.lang.Override @@ -261,8 +218,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
@@ -275,7 +230,6 @@ public boolean hasAudioContent() {
    * 
* * bytes audio_content = 2; - * * @return The audioContent. */ @java.lang.Override @@ -287,7 +241,6 @@ public com.google.protobuf.ByteString getAudioContent() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -299,13 +252,14 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (streamingRequestCase_ == 1) { - output.writeMessage( - 1, (com.google.cloud.speech.v1.StreamingRecognitionConfig) streamingRequest_); + output.writeMessage(1, (com.google.cloud.speech.v1.StreamingRecognitionConfig) streamingRequest_); } if (streamingRequestCase_ == 2) { - output.writeBytes(2, (com.google.protobuf.ByteString) streamingRequest_); + output.writeBytes( + 2, (com.google.protobuf.ByteString) streamingRequest_); } unknownFields.writeTo(output); } @@ -317,14 +271,13 @@ public int getSerializedSize() { size = 0; if (streamingRequestCase_ == 1) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 1, (com.google.cloud.speech.v1.StreamingRecognitionConfig) streamingRequest_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, (com.google.cloud.speech.v1.StreamingRecognitionConfig) streamingRequest_); } if (streamingRequestCase_ == 2) { - size += - com.google.protobuf.CodedOutputStream.computeBytesSize( - 2, (com.google.protobuf.ByteString) streamingRequest_); + size += com.google.protobuf.CodedOutputStream + .computeBytesSize( + 2, (com.google.protobuf.ByteString) streamingRequest_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -334,21 +287,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: @@ -382,103 +336,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
@@ -489,23 +436,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.speech.v1.StreamingRecognizeRequest}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1.StreamingRecognizeRequest)
       com.google.cloud.speech.v1.StreamingRecognizeRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.speech.v1.SpeechProto
-          .internal_static_google_cloud_speech_v1_StreamingRecognizeRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_StreamingRecognizeRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v1.SpeechProto
-          .internal_static_google_cloud_speech_v1_StreamingRecognizeRequest_fieldAccessorTable
+      return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_StreamingRecognizeRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v1.StreamingRecognizeRequest.class,
-              com.google.cloud.speech.v1.StreamingRecognizeRequest.Builder.class);
+              com.google.cloud.speech.v1.StreamingRecognizeRequest.class, com.google.cloud.speech.v1.StreamingRecognizeRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v1.StreamingRecognizeRequest.newBuilder()
@@ -513,15 +458,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -531,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_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
@@ -552,8 +498,7 @@ public com.google.cloud.speech.v1.StreamingRecognizeRequest build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v1.StreamingRecognizeRequest buildPartial() {
-      com.google.cloud.speech.v1.StreamingRecognizeRequest result =
-          new com.google.cloud.speech.v1.StreamingRecognizeRequest(this);
+      com.google.cloud.speech.v1.StreamingRecognizeRequest result = new com.google.cloud.speech.v1.StreamingRecognizeRequest(this);
       if (streamingRequestCase_ == 1) {
         if (streamingConfigBuilder_ == null) {
           result.streamingRequest_ = streamingRequest_;
@@ -573,39 +518,38 @@ public com.google.cloud.speech.v1.StreamingRecognizeRequest buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.speech.v1.StreamingRecognizeRequest) {
-        return mergeFrom((com.google.cloud.speech.v1.StreamingRecognizeRequest) other);
+        return mergeFrom((com.google.cloud.speech.v1.StreamingRecognizeRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -613,23 +557,19 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.speech.v1.StreamingRecognizeRequest other) {
-      if (other == com.google.cloud.speech.v1.StreamingRecognizeRequest.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.speech.v1.StreamingRecognizeRequest.getDefaultInstance()) return this;
       switch (other.getStreamingRequestCase()) {
-        case STREAMING_CONFIG:
-          {
-            mergeStreamingConfig(other.getStreamingConfig());
-            break;
-          }
-        case AUDIO_CONTENT:
-          {
-            setAudioContent(other.getAudioContent());
-            break;
-          }
-        case STREAMINGREQUEST_NOT_SET:
-          {
-            break;
-          }
+        case STREAMING_CONFIG: {
+          mergeStreamingConfig(other.getStreamingConfig());
+          break;
+        }
+        case AUDIO_CONTENT: {
+          setAudioContent(other.getAudioContent());
+          break;
+        }
+        case STREAMINGREQUEST_NOT_SET: {
+          break;
+        }
       }
       this.mergeUnknownFields(other.unknownFields);
       onChanged();
@@ -650,8 +590,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.speech.v1.StreamingRecognizeRequest) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.speech.v1.StreamingRecognizeRequest) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -660,12 +599,12 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int streamingRequestCase_ = 0;
     private java.lang.Object streamingRequest_;
-
-    public StreamingRequestCase getStreamingRequestCase() {
-      return StreamingRequestCase.forNumber(streamingRequestCase_);
+    public StreamingRequestCase
+        getStreamingRequestCase() {
+      return StreamingRequestCase.forNumber(
+          streamingRequestCase_);
     }
 
     public Builder clearStreamingRequest() {
@@ -675,14 +614,10 @@ public Builder clearStreamingRequest() {
       return this;
     }
 
+
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.speech.v1.StreamingRecognitionConfig,
-            com.google.cloud.speech.v1.StreamingRecognitionConfig.Builder,
-            com.google.cloud.speech.v1.StreamingRecognitionConfigOrBuilder>
-        streamingConfigBuilder_;
+        com.google.cloud.speech.v1.StreamingRecognitionConfig, com.google.cloud.speech.v1.StreamingRecognitionConfig.Builder, com.google.cloud.speech.v1.StreamingRecognitionConfigOrBuilder> streamingConfigBuilder_;
     /**
-     *
-     *
      * 
      * Provides information to the recognizer that specifies how to process the
      * request. The first `StreamingRecognizeRequest` message must contain a
@@ -690,7 +625,6 @@ public Builder clearStreamingRequest() {
      * 
* * .google.cloud.speech.v1.StreamingRecognitionConfig streaming_config = 1; - * * @return Whether the streamingConfig field is set. */ @java.lang.Override @@ -698,8 +632,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
@@ -707,7 +639,6 @@ public boolean hasStreamingConfig() {
      * 
* * .google.cloud.speech.v1.StreamingRecognitionConfig streaming_config = 1; - * * @return The streamingConfig. */ @java.lang.Override @@ -725,8 +656,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
@@ -749,8 +678,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
@@ -771,8 +698,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
@@ -781,17 +706,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;
         }
@@ -806,8 +726,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
@@ -833,8 +751,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
@@ -843,13 +759,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
@@ -859,8 +772,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 {
@@ -871,8 +783,6 @@ public Builder clearStreamingConfig() {
       }
     }
     /**
-     *
-     *
      * 
      * Provides information to the recognizer that specifies how to process the
      * request. The first `StreamingRecognizeRequest` message must contain a
@@ -882,34 +792,25 @@ public Builder clearStreamingConfig() {
      * .google.cloud.speech.v1.StreamingRecognitionConfig streaming_config = 1;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.speech.v1.StreamingRecognitionConfig,
-            com.google.cloud.speech.v1.StreamingRecognitionConfig.Builder,
-            com.google.cloud.speech.v1.StreamingRecognitionConfigOrBuilder>
+        com.google.cloud.speech.v1.StreamingRecognitionConfig, com.google.cloud.speech.v1.StreamingRecognitionConfig.Builder, com.google.cloud.speech.v1.StreamingRecognitionConfigOrBuilder> 
         getStreamingConfigFieldBuilder() {
       if (streamingConfigBuilder_ == null) {
         if (!(streamingRequestCase_ == 1)) {
-          streamingRequest_ =
-              com.google.cloud.speech.v1.StreamingRecognitionConfig.getDefaultInstance();
+          streamingRequest_ = com.google.cloud.speech.v1.StreamingRecognitionConfig.getDefaultInstance();
         }
-        streamingConfigBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.speech.v1.StreamingRecognitionConfig,
-                com.google.cloud.speech.v1.StreamingRecognitionConfig.Builder,
-                com.google.cloud.speech.v1.StreamingRecognitionConfigOrBuilder>(
+        streamingConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.speech.v1.StreamingRecognitionConfig, com.google.cloud.speech.v1.StreamingRecognitionConfig.Builder, com.google.cloud.speech.v1.StreamingRecognitionConfigOrBuilder>(
                 (com.google.cloud.speech.v1.StreamingRecognitionConfig) streamingRequest_,
                 getParentForChildren(),
                 isClean());
         streamingRequest_ = null;
       }
       streamingRequestCase_ = 1;
-      onChanged();
-      ;
+      onChanged();;
       return streamingConfigBuilder_;
     }
 
     /**
-     *
-     *
      * 
      * The audio data to be recognized. Sequential chunks of audio data are sent
      * in sequential `StreamingRecognizeRequest` messages. The first
@@ -922,15 +823,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
@@ -943,7 +841,6 @@ public boolean hasAudioContent() {
      * 
* * bytes audio_content = 2; - * * @return The audioContent. */ public com.google.protobuf.ByteString getAudioContent() { @@ -953,8 +850,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
@@ -967,22 +862,19 @@ public com.google.protobuf.ByteString getAudioContent() {
      * 
* * bytes audio_content = 2; - * * @param value The audioContent to set. * @return This builder for chaining. */ public Builder setAudioContent(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - streamingRequestCase_ = 2; + throw new NullPointerException(); + } + streamingRequestCase_ = 2; streamingRequest_ = value; onChanged(); return this; } /** - * - * *
      * The audio data to be recognized. Sequential chunks of audio data are sent
      * in sequential `StreamingRecognizeRequest` messages. The first
@@ -995,7 +887,6 @@ public Builder setAudioContent(com.google.protobuf.ByteString value) {
      * 
* * bytes audio_content = 2; - * * @return This builder for chaining. */ public Builder clearAudioContent() { @@ -1006,9 +897,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); } @@ -1018,12 +909,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(); } @@ -1032,16 +923,16 @@ public static com.google.cloud.speech.v1.StreamingRecognizeRequest getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StreamingRecognizeRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new StreamingRecognizeRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StreamingRecognizeRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new StreamingRecognizeRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1056,4 +947,6 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.speech.v1.StreamingRecognizeRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeRequestOrBuilder.java similarity index 79% rename from proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeRequestOrBuilder.java index 13fc461c9..28ed92b15 100644 --- a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeRequestOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1/cloud_speech.proto package com.google.cloud.speech.v1; -public interface StreamingRecognizeRequestOrBuilder - extends +public interface StreamingRecognizeRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1.StreamingRecognizeRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Provides information to the recognizer that specifies how to process the
    * request. The first `StreamingRecognizeRequest` message must contain a
@@ -33,13 +15,10 @@ public interface StreamingRecognizeRequestOrBuilder
    * 
* * .google.cloud.speech.v1.StreamingRecognitionConfig streaming_config = 1; - * * @return Whether the streamingConfig field is set. */ boolean hasStreamingConfig(); /** - * - * *
    * Provides information to the recognizer that specifies how to process the
    * request. The first `StreamingRecognizeRequest` message must contain a
@@ -47,13 +26,10 @@ public interface StreamingRecognizeRequestOrBuilder
    * 
* * .google.cloud.speech.v1.StreamingRecognitionConfig streaming_config = 1; - * * @return The streamingConfig. */ com.google.cloud.speech.v1.StreamingRecognitionConfig getStreamingConfig(); /** - * - * *
    * Provides information to the recognizer that specifies how to process the
    * request. The first `StreamingRecognizeRequest` message must contain a
@@ -65,8 +41,6 @@ public interface StreamingRecognizeRequestOrBuilder
   com.google.cloud.speech.v1.StreamingRecognitionConfigOrBuilder getStreamingConfigOrBuilder();
 
   /**
-   *
-   *
    * 
    * The audio data to be recognized. Sequential chunks of audio data are sent
    * in sequential `StreamingRecognizeRequest` messages. The first
@@ -79,13 +53,10 @@ public interface StreamingRecognizeRequestOrBuilder
    * 
* * bytes audio_content = 2; - * * @return Whether the audioContent field is set. */ boolean hasAudioContent(); /** - * - * *
    * The audio data to be recognized. Sequential chunks of audio data are sent
    * in sequential `StreamingRecognizeRequest` messages. The first
@@ -98,11 +69,9 @@ public interface StreamingRecognizeRequestOrBuilder
    * 
* * bytes audio_content = 2; - * * @return The audioContent. */ com.google.protobuf.ByteString getAudioContent(); - public com.google.cloud.speech.v1.StreamingRecognizeRequest.StreamingRequestCase - getStreamingRequestCase(); + public com.google.cloud.speech.v1.StreamingRecognizeRequest.StreamingRequestCase getStreamingRequestCase(); } diff --git a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeResponse.java b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeResponse.java similarity index 77% rename from proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeResponse.java rename to owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeResponse.java index dc980f5a4..4ad45bf54 100644 --- a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeResponse.java +++ b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeResponse.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1/cloud_speech.proto package com.google.cloud.speech.v1; /** - * - * *
  * `StreamingRecognizeResponse` is the only message returned to the client by
  * `StreamingRecognize`. A series of zero or more `StreamingRecognizeResponse`
@@ -62,16 +45,15 @@
  *
  * Protobuf type {@code google.cloud.speech.v1.StreamingRecognizeResponse}
  */
-public final class StreamingRecognizeResponse extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class StreamingRecognizeResponse extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.speech.v1.StreamingRecognizeResponse)
     StreamingRecognizeResponseOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use StreamingRecognizeResponse.newBuilder() to construct.
   private StreamingRecognizeResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private StreamingRecognizeResponse() {
     results_ = java.util.Collections.emptyList();
     speechEventType_ = 0;
@@ -79,15 +61,16 @@ private StreamingRecognizeResponse() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new StreamingRecognizeResponse();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private StreamingRecognizeResponse(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -107,69 +90,61 @@ private StreamingRecognizeResponse(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              com.google.rpc.Status.Builder subBuilder = null;
-              if (error_ != null) {
-                subBuilder = error_.toBuilder();
-              }
-              error_ = input.readMessage(com.google.rpc.Status.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(error_);
-                error_ = subBuilder.buildPartial();
-              }
-
-              break;
+          case 10: {
+            com.google.rpc.Status.Builder subBuilder = null;
+            if (error_ != null) {
+              subBuilder = error_.toBuilder();
             }
-          case 18:
-            {
-              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                results_ =
-                    new java.util.ArrayList<
-                        com.google.cloud.speech.v1.StreamingRecognitionResult>();
-                mutable_bitField0_ |= 0x00000001;
-              }
-              results_.add(
-                  input.readMessage(
-                      com.google.cloud.speech.v1.StreamingRecognitionResult.parser(),
-                      extensionRegistry));
-              break;
+            error_ = input.readMessage(com.google.rpc.Status.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(error_);
+              error_ = subBuilder.buildPartial();
             }
-          case 32:
-            {
-              int rawValue = input.readEnum();
 
-              speechEventType_ = rawValue;
-              break;
+            break;
+          }
+          case 18: {
+            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+              results_ = new java.util.ArrayList();
+              mutable_bitField0_ |= 0x00000001;
             }
-          case 42:
-            {
-              com.google.protobuf.Duration.Builder subBuilder = null;
-              if (totalBilledTime_ != null) {
-                subBuilder = totalBilledTime_.toBuilder();
-              }
-              totalBilledTime_ =
-                  input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(totalBilledTime_);
-                totalBilledTime_ = subBuilder.buildPartial();
-              }
-
-              break;
+            results_.add(
+                input.readMessage(com.google.cloud.speech.v1.StreamingRecognitionResult.parser(), extensionRegistry));
+            break;
+          }
+          case 32: {
+            int rawValue = input.readEnum();
+
+            speechEventType_ = rawValue;
+            break;
+          }
+          case 42: {
+            com.google.protobuf.Duration.Builder subBuilder = null;
+            if (totalBilledTime_ != null) {
+              subBuilder = totalBilledTime_.toBuilder();
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            totalBilledTime_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(totalBilledTime_);
+              totalBilledTime_ = subBuilder.buildPartial();
             }
+
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
+            }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         results_ = java.util.Collections.unmodifiableList(results_);
@@ -178,35 +153,29 @@ private StreamingRecognizeResponse(
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.speech.v1.SpeechProto
-        .internal_static_google_cloud_speech_v1_StreamingRecognizeResponse_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_StreamingRecognizeResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v1.SpeechProto
-        .internal_static_google_cloud_speech_v1_StreamingRecognizeResponse_fieldAccessorTable
+    return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_StreamingRecognizeResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v1.StreamingRecognizeResponse.class,
-            com.google.cloud.speech.v1.StreamingRecognizeResponse.Builder.class);
+            com.google.cloud.speech.v1.StreamingRecognizeResponse.class, com.google.cloud.speech.v1.StreamingRecognizeResponse.Builder.class);
   }
 
   /**
-   *
-   *
    * 
    * Indicates the type of speech event.
    * 
* * Protobuf enum {@code google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType} */ - public enum SpeechEventType implements com.google.protobuf.ProtocolMessageEnum { + public enum SpeechEventType + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * No speech event specified.
      * 
@@ -215,8 +184,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
@@ -234,8 +201,6 @@ public enum SpeechEventType implements com.google.protobuf.ProtocolMessageEnum {
     ;
 
     /**
-     *
-     *
      * 
      * No speech event specified.
      * 
@@ -244,8 +209,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
@@ -260,6 +223,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(
@@ -284,43 +248,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();
@@ -328,7 +288,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;
@@ -348,15 +309,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 @@ -364,15 +322,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 @@ -380,8 +335,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.
@@ -397,8 +350,6 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() {
   public static final int RESULTS_FIELD_NUMBER = 2;
   private java.util.List results_;
   /**
-   *
-   *
    * 
    * This repeated list contains zero or more results that
    * correspond to consecutive portions of the audio currently being processed.
@@ -413,8 +364,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.
@@ -425,13 +374,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.
@@ -446,8 +393,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.
@@ -462,8 +407,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.
@@ -482,57 +425,39 @@ public com.google.cloud.speech.v1.StreamingRecognitionResultOrBuilder getResults
   public static final int SPEECH_EVENT_TYPE_FIELD_NUMBER = 4;
   private int speechEventType_;
   /**
-   *
-   *
    * 
    * Indicates the type of speech event.
    * 
* - * .google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType speech_event_type = 4; - * - * + * .google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType speech_event_type = 4; * @return The enum numeric value on the wire for speechEventType. */ - @java.lang.Override - public int getSpeechEventTypeValue() { + @java.lang.Override public int getSpeechEventTypeValue() { return speechEventType_; } /** - * - * *
    * Indicates the type of speech event.
    * 
* - * .google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType speech_event_type = 4; - * - * + * .google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType speech_event_type = 4; * @return The speechEventType. */ - @java.lang.Override - public com.google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType - getSpeechEventType() { + @java.lang.Override public com.google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType getSpeechEventType() { @SuppressWarnings("deprecation") - com.google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType result = - com.google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType.valueOf( - speechEventType_); - return result == null - ? com.google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType.UNRECOGNIZED - : result; + com.google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType result = com.google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType.valueOf(speechEventType_); + return result == null ? com.google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType.UNRECOGNIZED : result; } public static final int TOTAL_BILLED_TIME_FIELD_NUMBER = 5; private com.google.protobuf.Duration totalBilledTime_; /** - * - * *
    * When available, billed audio seconds for the stream.
    * Set only if this is the last response in the stream.
    * 
* * .google.protobuf.Duration total_billed_time = 5; - * * @return Whether the totalBilledTime field is set. */ @java.lang.Override @@ -540,26 +465,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.
@@ -573,7 +491,6 @@ public com.google.protobuf.DurationOrBuilder getTotalBilledTimeOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -585,17 +502,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) {
@@ -611,19 +526,20 @@ public int getSerializedSize() {
 
     size = 0;
     if (error_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getError());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(1, getError());
     }
     for (int i = 0; i < results_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, results_.get(i));
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(2, results_.get(i));
     }
-    if (speechEventType_
-        != com.google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType
-            .SPEECH_EVENT_UNSPECIFIED
-            .getNumber()) {
-      size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, speechEventType_);
+    if (speechEventType_ != com.google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType.SPEECH_EVENT_UNSPECIFIED.getNumber()) {
+      size += com.google.protobuf.CodedOutputStream
+        .computeEnumSize(4, speechEventType_);
     }
     if (totalBilledTime_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getTotalBilledTime());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(5, getTotalBilledTime());
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -633,23 +549,25 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.speech.v1.StreamingRecognizeResponse)) {
       return super.equals(obj);
     }
-    com.google.cloud.speech.v1.StreamingRecognizeResponse other =
-        (com.google.cloud.speech.v1.StreamingRecognizeResponse) obj;
+    com.google.cloud.speech.v1.StreamingRecognizeResponse other = (com.google.cloud.speech.v1.StreamingRecognizeResponse) obj;
 
     if (hasError() != other.hasError()) return false;
     if (hasError()) {
-      if (!getError().equals(other.getError())) return false;
+      if (!getError()
+          .equals(other.getError())) return false;
     }
-    if (!getResultsList().equals(other.getResultsList())) return false;
+    if (!getResultsList()
+        .equals(other.getResultsList())) return false;
     if (speechEventType_ != other.speechEventType_) return false;
     if (hasTotalBilledTime() != other.hasTotalBilledTime()) return false;
     if (hasTotalBilledTime()) {
-      if (!getTotalBilledTime().equals(other.getTotalBilledTime())) return false;
+      if (!getTotalBilledTime()
+          .equals(other.getTotalBilledTime())) return false;
     }
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
@@ -682,104 +600,96 @@ public int hashCode() {
   }
 
   public static com.google.cloud.speech.v1.StreamingRecognizeResponse parseFrom(
-      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.speech.v1.StreamingRecognizeResponse parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.speech.v1.StreamingRecognizeResponse parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.speech.v1.StreamingRecognizeResponse parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.speech.v1.StreamingRecognizeResponse parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.speech.v1.StreamingRecognizeResponse parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.speech.v1.StreamingRecognizeResponse parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.speech.v1.StreamingRecognizeResponse parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.speech.v1.StreamingRecognizeResponse parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
-
-  public static com.google.cloud.speech.v1.StreamingRecognizeResponse parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.speech.v1.StreamingRecognizeResponse parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.speech.v1.StreamingRecognizeResponse parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.speech.v1.StreamingRecognizeResponse parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.speech.v1.StreamingRecognizeResponse parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
-  public static Builder newBuilder(
-      com.google.cloud.speech.v1.StreamingRecognizeResponse prototype) {
+  public static Builder newBuilder(com.google.cloud.speech.v1.StreamingRecognizeResponse prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * `StreamingRecognizeResponse` is the only message returned to the client by
    * `StreamingRecognize`. A series of zero or more `StreamingRecognizeResponse`
@@ -821,23 +731,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.speech.v1.StreamingRecognizeResponse}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1.StreamingRecognizeResponse)
       com.google.cloud.speech.v1.StreamingRecognizeResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.speech.v1.SpeechProto
-          .internal_static_google_cloud_speech_v1_StreamingRecognizeResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_StreamingRecognizeResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v1.SpeechProto
-          .internal_static_google_cloud_speech_v1_StreamingRecognizeResponse_fieldAccessorTable
+      return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_StreamingRecognizeResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v1.StreamingRecognizeResponse.class,
-              com.google.cloud.speech.v1.StreamingRecognizeResponse.Builder.class);
+              com.google.cloud.speech.v1.StreamingRecognizeResponse.class, com.google.cloud.speech.v1.StreamingRecognizeResponse.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v1.StreamingRecognizeResponse.newBuilder()
@@ -845,17 +753,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
         getResultsFieldBuilder();
       }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -883,9 +791,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
@@ -904,8 +812,7 @@ public com.google.cloud.speech.v1.StreamingRecognizeResponse build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v1.StreamingRecognizeResponse buildPartial() {
-      com.google.cloud.speech.v1.StreamingRecognizeResponse result =
-          new com.google.cloud.speech.v1.StreamingRecognizeResponse(this);
+      com.google.cloud.speech.v1.StreamingRecognizeResponse result = new com.google.cloud.speech.v1.StreamingRecognizeResponse(this);
       int from_bitField0_ = bitField0_;
       if (errorBuilder_ == null) {
         result.error_ = error_;
@@ -935,39 +842,38 @@ public com.google.cloud.speech.v1.StreamingRecognizeResponse buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.speech.v1.StreamingRecognizeResponse) {
-        return mergeFrom((com.google.cloud.speech.v1.StreamingRecognizeResponse) other);
+        return mergeFrom((com.google.cloud.speech.v1.StreamingRecognizeResponse)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -975,8 +881,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());
       }
@@ -998,10 +903,9 @@ public Builder mergeFrom(com.google.cloud.speech.v1.StreamingRecognizeResponse o
             resultsBuilder_ = null;
             results_ = other.results_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            resultsBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getResultsFieldBuilder()
-                    : null;
+            resultsBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getResultsFieldBuilder() : null;
           } else {
             resultsBuilder_.addAllMessages(other.results_);
           }
@@ -1032,8 +936,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.speech.v1.StreamingRecognizeResponse) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.speech.v1.StreamingRecognizeResponse) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -1042,38 +945,30 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int bitField0_;
 
     private com.google.rpc.Status error_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>
-        errorBuilder_;
+        com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> errorBuilder_;
     /**
-     *
-     *
      * 
      * If set, returns a [google.rpc.Status][google.rpc.Status] message that
      * specifies the error for the operation.
      * 
* * .google.rpc.Status error = 1; - * * @return Whether the error field is set. */ public boolean hasError() { return errorBuilder_ != null || error_ != null; } /** - * - * *
      * If set, returns a [google.rpc.Status][google.rpc.Status] message that
      * specifies the error for the operation.
      * 
* * .google.rpc.Status error = 1; - * * @return The error. */ public com.google.rpc.Status getError() { @@ -1084,8 +979,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.
@@ -1107,8 +1000,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.
@@ -1116,7 +1007,8 @@ public Builder setError(com.google.rpc.Status value) {
      *
      * .google.rpc.Status error = 1;
      */
-    public Builder setError(com.google.rpc.Status.Builder builderForValue) {
+    public Builder setError(
+        com.google.rpc.Status.Builder builderForValue) {
       if (errorBuilder_ == null) {
         error_ = builderForValue.build();
         onChanged();
@@ -1127,8 +1019,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.
@@ -1139,7 +1029,8 @@ public Builder setError(com.google.rpc.Status.Builder builderForValue) {
     public Builder mergeError(com.google.rpc.Status value) {
       if (errorBuilder_ == null) {
         if (error_ != null) {
-          error_ = com.google.rpc.Status.newBuilder(error_).mergeFrom(value).buildPartial();
+          error_ =
+            com.google.rpc.Status.newBuilder(error_).mergeFrom(value).buildPartial();
         } else {
           error_ = value;
         }
@@ -1151,8 +1042,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.
@@ -1172,8 +1061,6 @@ public Builder clearError() {
       return this;
     }
     /**
-     *
-     *
      * 
      * If set, returns a [google.rpc.Status][google.rpc.Status] message that
      * specifies the error for the operation.
@@ -1182,13 +1069,11 @@ public Builder clearError() {
      * .google.rpc.Status error = 1;
      */
     public com.google.rpc.Status.Builder getErrorBuilder() {
-
+      
       onChanged();
       return getErrorFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * If set, returns a [google.rpc.Status][google.rpc.Status] message that
      * specifies the error for the operation.
@@ -1200,12 +1085,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.
@@ -1214,40 +1098,32 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() {
      * .google.rpc.Status error = 1;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>
+        com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> 
         getErrorFieldBuilder() {
       if (errorBuilder_ == null) {
-        errorBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.rpc.Status,
-                com.google.rpc.Status.Builder,
-                com.google.rpc.StatusOrBuilder>(getError(), getParentForChildren(), isClean());
+        errorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>(
+                getError(),
+                getParentForChildren(),
+                isClean());
         error_ = null;
       }
       return errorBuilder_;
     }
 
     private java.util.List results_ =
-        java.util.Collections.emptyList();
-
+      java.util.Collections.emptyList();
     private void ensureResultsIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
-        results_ =
-            new java.util.ArrayList(
-                results_);
+        results_ = new java.util.ArrayList(results_);
         bitField0_ |= 0x00000001;
-      }
+       }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.speech.v1.StreamingRecognitionResult,
-            com.google.cloud.speech.v1.StreamingRecognitionResult.Builder,
-            com.google.cloud.speech.v1.StreamingRecognitionResultOrBuilder>
-        resultsBuilder_;
+        com.google.cloud.speech.v1.StreamingRecognitionResult, com.google.cloud.speech.v1.StreamingRecognitionResult.Builder, com.google.cloud.speech.v1.StreamingRecognitionResultOrBuilder> resultsBuilder_;
 
     /**
-     *
-     *
      * 
      * This repeated list contains zero or more results that
      * correspond to consecutive portions of the audio currently being processed.
@@ -1265,8 +1141,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.
@@ -1284,8 +1158,6 @@ public int getResultsCount() {
       }
     }
     /**
-     *
-     *
      * 
      * This repeated list contains zero or more results that
      * correspond to consecutive portions of the audio currently being processed.
@@ -1303,8 +1175,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.
@@ -1329,8 +1199,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.
@@ -1352,8 +1220,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.
@@ -1377,8 +1243,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.
@@ -1403,8 +1267,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.
@@ -1426,8 +1288,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.
@@ -1449,8 +1309,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.
@@ -1461,11 +1319,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);
@@ -1473,8 +1331,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.
@@ -1495,8 +1351,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.
@@ -1517,8 +1371,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.
@@ -1533,8 +1385,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.
@@ -1547,14 +1397,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.
@@ -1564,8 +1411,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 {
@@ -1573,8 +1420,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.
@@ -1585,12 +1430,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.
@@ -1602,13 +1445,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.
@@ -1618,23 +1458,20 @@ public com.google.cloud.speech.v1.StreamingRecognitionResult.Builder addResultsB
      *
      * repeated .google.cloud.speech.v1.StreamingRecognitionResult results = 2;
      */
-    public java.util.List
-        getResultsBuilderList() {
+    public java.util.List 
+         getResultsBuilderList() {
       return getResultsFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.speech.v1.StreamingRecognitionResult,
-            com.google.cloud.speech.v1.StreamingRecognitionResult.Builder,
-            com.google.cloud.speech.v1.StreamingRecognitionResultOrBuilder>
+        com.google.cloud.speech.v1.StreamingRecognitionResult, com.google.cloud.speech.v1.StreamingRecognitionResult.Builder, com.google.cloud.speech.v1.StreamingRecognitionResultOrBuilder> 
         getResultsFieldBuilder() {
       if (resultsBuilder_ == null) {
-        resultsBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.cloud.speech.v1.StreamingRecognitionResult,
-                com.google.cloud.speech.v1.StreamingRecognitionResult.Builder,
-                com.google.cloud.speech.v1.StreamingRecognitionResultOrBuilder>(
-                results_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
+        resultsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.cloud.speech.v1.StreamingRecognitionResult, com.google.cloud.speech.v1.StreamingRecognitionResult.Builder, com.google.cloud.speech.v1.StreamingRecognitionResultOrBuilder>(
+                results_,
+                ((bitField0_ & 0x00000001) != 0),
+                getParentForChildren(),
+                isClean());
         results_ = null;
       }
       return resultsBuilder_;
@@ -1642,105 +1479,73 @@ public com.google.cloud.speech.v1.StreamingRecognitionResult.Builder addResultsB
 
     private int speechEventType_ = 0;
     /**
-     *
-     *
      * 
      * Indicates the type of speech event.
      * 
* - * - * .google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType speech_event_type = 4; - * - * + * .google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType speech_event_type = 4; * @return The enum numeric value on the wire for speechEventType. */ - @java.lang.Override - public int getSpeechEventTypeValue() { + @java.lang.Override public int getSpeechEventTypeValue() { return speechEventType_; } /** - * - * *
      * Indicates the type of speech event.
      * 
* - * - * .google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType speech_event_type = 4; - * - * + * .google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType speech_event_type = 4; * @param value The enum numeric value on the wire for speechEventType to set. * @return This builder for chaining. */ public Builder setSpeechEventTypeValue(int value) { - + speechEventType_ = value; onChanged(); return this; } /** - * - * *
      * Indicates the type of speech event.
      * 
* - * - * .google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType speech_event_type = 4; - * - * + * .google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType speech_event_type = 4; * @return The speechEventType. */ @java.lang.Override - public com.google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType - getSpeechEventType() { + public com.google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType getSpeechEventType() { @SuppressWarnings("deprecation") - com.google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType result = - com.google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType.valueOf( - speechEventType_); - return result == null - ? com.google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType.UNRECOGNIZED - : result; + com.google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType result = com.google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType.valueOf(speechEventType_); + return result == null ? com.google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType.UNRECOGNIZED : result; } /** - * - * *
      * Indicates the type of speech event.
      * 
* - * - * .google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType speech_event_type = 4; - * - * + * .google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType speech_event_type = 4; * @param value The speechEventType to set. * @return This builder for chaining. */ - public Builder setSpeechEventType( - com.google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType value) { + public Builder setSpeechEventType(com.google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType value) { if (value == null) { throw new NullPointerException(); } - + speechEventType_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Indicates the type of speech event.
      * 
* - * - * .google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType speech_event_type = 4; - * - * + * .google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType speech_event_type = 4; * @return This builder for chaining. */ public Builder clearSpeechEventType() { - + speechEventType_ = 0; onChanged(); return this; @@ -1748,49 +1553,36 @@ public Builder clearSpeechEventType() { private com.google.protobuf.Duration totalBilledTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - totalBilledTimeBuilder_; + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> totalBilledTimeBuilder_; /** - * - * *
      * When available, billed audio seconds for the stream.
      * Set only if this is the last response in the stream.
      * 
* * .google.protobuf.Duration total_billed_time = 5; - * * @return Whether the totalBilledTime field is set. */ public boolean hasTotalBilledTime() { return totalBilledTimeBuilder_ != null || totalBilledTime_ != null; } /** - * - * *
      * When available, billed audio seconds for the stream.
      * Set only if this is the last response in the stream.
      * 
* * .google.protobuf.Duration total_billed_time = 5; - * * @return The totalBilledTime. */ public com.google.protobuf.Duration getTotalBilledTime() { if (totalBilledTimeBuilder_ == null) { - return totalBilledTime_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : totalBilledTime_; + return totalBilledTime_ == null ? com.google.protobuf.Duration.getDefaultInstance() : totalBilledTime_; } else { return totalBilledTimeBuilder_.getMessage(); } } /** - * - * *
      * When available, billed audio seconds for the stream.
      * Set only if this is the last response in the stream.
@@ -1812,8 +1604,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.
@@ -1821,7 +1611,8 @@ public Builder setTotalBilledTime(com.google.protobuf.Duration value) {
      *
      * .google.protobuf.Duration total_billed_time = 5;
      */
-    public Builder setTotalBilledTime(com.google.protobuf.Duration.Builder builderForValue) {
+    public Builder setTotalBilledTime(
+        com.google.protobuf.Duration.Builder builderForValue) {
       if (totalBilledTimeBuilder_ == null) {
         totalBilledTime_ = builderForValue.build();
         onChanged();
@@ -1832,8 +1623,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.
@@ -1845,9 +1634,7 @@ public Builder mergeTotalBilledTime(com.google.protobuf.Duration value) {
       if (totalBilledTimeBuilder_ == null) {
         if (totalBilledTime_ != null) {
           totalBilledTime_ =
-              com.google.protobuf.Duration.newBuilder(totalBilledTime_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.protobuf.Duration.newBuilder(totalBilledTime_).mergeFrom(value).buildPartial();
         } else {
           totalBilledTime_ = value;
         }
@@ -1859,8 +1646,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.
@@ -1880,8 +1665,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.
@@ -1890,13 +1673,11 @@ public Builder clearTotalBilledTime() {
      * .google.protobuf.Duration total_billed_time = 5;
      */
     public com.google.protobuf.Duration.Builder getTotalBilledTimeBuilder() {
-
+      
       onChanged();
       return getTotalBilledTimeFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * When available, billed audio seconds for the stream.
      * Set only if this is the last response in the stream.
@@ -1908,14 +1689,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.
@@ -1924,24 +1702,21 @@ public com.google.protobuf.DurationOrBuilder getTotalBilledTimeOrBuilder() {
      * .google.protobuf.Duration total_billed_time = 5;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Duration,
-            com.google.protobuf.Duration.Builder,
-            com.google.protobuf.DurationOrBuilder>
+        com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> 
         getTotalBilledTimeFieldBuilder() {
       if (totalBilledTimeBuilder_ == null) {
-        totalBilledTimeBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.Duration,
-                com.google.protobuf.Duration.Builder,
-                com.google.protobuf.DurationOrBuilder>(
-                getTotalBilledTime(), getParentForChildren(), isClean());
+        totalBilledTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
+                getTotalBilledTime(),
+                getParentForChildren(),
+                isClean());
         totalBilledTime_ = null;
       }
       return totalBilledTimeBuilder_;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1951,12 +1726,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();
   }
@@ -1965,16 +1740,16 @@ public static com.google.cloud.speech.v1.StreamingRecognizeResponse getDefaultIn
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public StreamingRecognizeResponse parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          return new StreamingRecognizeResponse(input, extensionRegistry);
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public StreamingRecognizeResponse parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      return new StreamingRecognizeResponse(input, extensionRegistry);
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1989,4 +1764,6 @@ public com.google.protobuf.Parser getParserForType()
   public com.google.cloud.speech.v1.StreamingRecognizeResponse getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeResponseOrBuilder.java
similarity index 83%
rename from proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeResponseOrBuilder.java
rename to owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeResponseOrBuilder.java
index 2c285ed9f..1a3c3b062 100644
--- a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeResponseOrBuilder.java
+++ b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeResponseOrBuilder.java
@@ -1,57 +1,33 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/speech/v1/cloud_speech.proto
 
 package com.google.cloud.speech.v1;
 
-public interface StreamingRecognizeResponseOrBuilder
-    extends
+public interface StreamingRecognizeResponseOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1.StreamingRecognizeResponse)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * If set, returns a [google.rpc.Status][google.rpc.Status] message that
    * specifies the error for the operation.
    * 
* * .google.rpc.Status error = 1; - * * @return Whether the error field is set. */ boolean hasError(); /** - * - * *
    * If set, returns a [google.rpc.Status][google.rpc.Status] message that
    * specifies the error for the operation.
    * 
* * .google.rpc.Status error = 1; - * * @return The error. */ com.google.rpc.Status getError(); /** - * - * *
    * If set, returns a [google.rpc.Status][google.rpc.Status] message that
    * specifies the error for the operation.
@@ -62,8 +38,6 @@ public interface StreamingRecognizeResponseOrBuilder
   com.google.rpc.StatusOrBuilder getErrorOrBuilder();
 
   /**
-   *
-   *
    * 
    * This repeated list contains zero or more results that
    * correspond to consecutive portions of the audio currently being processed.
@@ -73,10 +47,9 @@ public interface StreamingRecognizeResponseOrBuilder
    *
    * repeated .google.cloud.speech.v1.StreamingRecognitionResult results = 2;
    */
-  java.util.List getResultsList();
+  java.util.List 
+      getResultsList();
   /**
-   *
-   *
    * 
    * This repeated list contains zero or more results that
    * correspond to consecutive portions of the audio currently being processed.
@@ -88,8 +61,6 @@ public interface StreamingRecognizeResponseOrBuilder
    */
   com.google.cloud.speech.v1.StreamingRecognitionResult getResults(int index);
   /**
-   *
-   *
    * 
    * This repeated list contains zero or more results that
    * correspond to consecutive portions of the audio currently being processed.
@@ -101,8 +72,6 @@ public interface StreamingRecognizeResponseOrBuilder
    */
   int getResultsCount();
   /**
-   *
-   *
    * 
    * This repeated list contains zero or more results that
    * correspond to consecutive portions of the audio currently being processed.
@@ -112,11 +81,9 @@ public interface StreamingRecognizeResponseOrBuilder
    *
    * repeated .google.cloud.speech.v1.StreamingRecognitionResult results = 2;
    */
-  java.util.List
+  java.util.List 
       getResultsOrBuilderList();
   /**
-   *
-   *
    * 
    * This repeated list contains zero or more results that
    * correspond to consecutive portions of the audio currently being processed.
@@ -126,64 +93,49 @@ public interface StreamingRecognizeResponseOrBuilder
    *
    * repeated .google.cloud.speech.v1.StreamingRecognitionResult results = 2;
    */
-  com.google.cloud.speech.v1.StreamingRecognitionResultOrBuilder getResultsOrBuilder(int index);
+  com.google.cloud.speech.v1.StreamingRecognitionResultOrBuilder getResultsOrBuilder(
+      int index);
 
   /**
-   *
-   *
    * 
    * Indicates the type of speech event.
    * 
* - * .google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType speech_event_type = 4; - * - * + * .google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType speech_event_type = 4; * @return The enum numeric value on the wire for speechEventType. */ int getSpeechEventTypeValue(); /** - * - * *
    * Indicates the type of speech event.
    * 
* - * .google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType speech_event_type = 4; - * - * + * .google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType speech_event_type = 4; * @return The speechEventType. */ com.google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType getSpeechEventType(); /** - * - * *
    * When available, billed audio seconds for the stream.
    * Set only if this is the last response in the stream.
    * 
* * .google.protobuf.Duration total_billed_time = 5; - * * @return Whether the totalBilledTime field is set. */ boolean hasTotalBilledTime(); /** - * - * *
    * When available, billed audio seconds for the stream.
    * Set only if this is the last response in the stream.
    * 
* * .google.protobuf.Duration total_billed_time = 5; - * * @return The totalBilledTime. */ com.google.protobuf.Duration getTotalBilledTime(); /** - * - * *
    * When available, billed audio seconds for the stream.
    * Set only if this is the last response in the stream.
diff --git a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/TranscriptOutputConfig.java b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/TranscriptOutputConfig.java
similarity index 70%
rename from proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/TranscriptOutputConfig.java
rename to owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/TranscriptOutputConfig.java
index 93ce8b9db..765850ebb 100644
--- a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/TranscriptOutputConfig.java
+++ b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/TranscriptOutputConfig.java
@@ -1,55 +1,39 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/speech/v1/cloud_speech.proto
 
 package com.google.cloud.speech.v1;
 
 /**
- *
- *
  * 
  * Specifies an optional destination for the recognition results.
  * 
* * Protobuf type {@code google.cloud.speech.v1.TranscriptOutputConfig} */ -public final class TranscriptOutputConfig extends com.google.protobuf.GeneratedMessageV3 - implements +public final class TranscriptOutputConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v1.TranscriptOutputConfig) TranscriptOutputConfigOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use TranscriptOutputConfig.newBuilder() to construct. private TranscriptOutputConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private TranscriptOutputConfig() {} + private TranscriptOutputConfig() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new TranscriptOutputConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private TranscriptOutputConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,58 +52,52 @@ private TranscriptOutputConfig( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - outputTypeCase_ = 1; - outputType_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + outputTypeCase_ = 1; + outputType_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v1.SpeechProto - .internal_static_google_cloud_speech_v1_TranscriptOutputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_TranscriptOutputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1.SpeechProto - .internal_static_google_cloud_speech_v1_TranscriptOutputConfig_fieldAccessorTable + return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_TranscriptOutputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1.TranscriptOutputConfig.class, - com.google.cloud.speech.v1.TranscriptOutputConfig.Builder.class); + com.google.cloud.speech.v1.TranscriptOutputConfig.class, com.google.cloud.speech.v1.TranscriptOutputConfig.Builder.class); } private int outputTypeCase_ = 0; private java.lang.Object outputType_; - public enum OutputTypeCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { GCS_URI(1), OUTPUTTYPE_NOT_SET(0); private final int value; - private OutputTypeCase(int value) { this.value = value; } @@ -135,28 +113,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
@@ -164,15 +138,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
@@ -180,7 +151,6 @@ public boolean hasGcsUri() {
    * 
* * string gcs_uri = 1; - * * @return The gcsUri. */ public java.lang.String getGcsUri() { @@ -191,7 +161,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; @@ -200,8 +171,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
@@ -209,17 +178,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; } @@ -230,7 +200,6 @@ public com.google.protobuf.ByteString getGcsUriBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -242,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 (outputTypeCase_ == 1) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, outputType_); } @@ -266,18 +236,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: @@ -307,126 +277,117 @@ public int hashCode() { } public static com.google.cloud.speech.v1.TranscriptOutputConfig parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1.TranscriptOutputConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1.TranscriptOutputConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1.TranscriptOutputConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1.TranscriptOutputConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1.TranscriptOutputConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.speech.v1.TranscriptOutputConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.speech.v1.TranscriptOutputConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1.TranscriptOutputConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.speech.v1.TranscriptOutputConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.speech.v1.TranscriptOutputConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1.TranscriptOutputConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1.TranscriptOutputConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1.TranscriptOutputConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.speech.v1.TranscriptOutputConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Specifies an optional destination for the recognition results.
    * 
* * Protobuf type {@code google.cloud.speech.v1.TranscriptOutputConfig} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1.TranscriptOutputConfig) com.google.cloud.speech.v1.TranscriptOutputConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v1.SpeechProto - .internal_static_google_cloud_speech_v1_TranscriptOutputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_TranscriptOutputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1.SpeechProto - .internal_static_google_cloud_speech_v1_TranscriptOutputConfig_fieldAccessorTable + return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_TranscriptOutputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1.TranscriptOutputConfig.class, - com.google.cloud.speech.v1.TranscriptOutputConfig.Builder.class); + com.google.cloud.speech.v1.TranscriptOutputConfig.class, com.google.cloud.speech.v1.TranscriptOutputConfig.Builder.class); } // Construct using com.google.cloud.speech.v1.TranscriptOutputConfig.newBuilder() @@ -434,15 +395,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -452,9 +414,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 @@ -473,8 +435,7 @@ public com.google.cloud.speech.v1.TranscriptOutputConfig build() { @java.lang.Override public com.google.cloud.speech.v1.TranscriptOutputConfig buildPartial() { - com.google.cloud.speech.v1.TranscriptOutputConfig result = - new com.google.cloud.speech.v1.TranscriptOutputConfig(this); + com.google.cloud.speech.v1.TranscriptOutputConfig result = new com.google.cloud.speech.v1.TranscriptOutputConfig(this); if (outputTypeCase_ == 1) { result.outputType_ = outputType_; } @@ -487,39 +448,38 @@ public com.google.cloud.speech.v1.TranscriptOutputConfig buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.speech.v1.TranscriptOutputConfig) { - return mergeFrom((com.google.cloud.speech.v1.TranscriptOutputConfig) other); + return mergeFrom((com.google.cloud.speech.v1.TranscriptOutputConfig)other); } else { super.mergeFrom(other); return this; @@ -527,20 +487,17 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.speech.v1.TranscriptOutputConfig other) { - if (other == com.google.cloud.speech.v1.TranscriptOutputConfig.getDefaultInstance()) - return this; + if (other == com.google.cloud.speech.v1.TranscriptOutputConfig.getDefaultInstance()) return this; switch (other.getOutputTypeCase()) { - case GCS_URI: - { - outputTypeCase_ = 1; - outputType_ = other.outputType_; - onChanged(); - break; - } - case OUTPUTTYPE_NOT_SET: - { - break; - } + case GCS_URI: { + outputTypeCase_ = 1; + outputType_ = other.outputType_; + onChanged(); + break; + } + case OUTPUTTYPE_NOT_SET: { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -561,8 +518,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.speech.v1.TranscriptOutputConfig) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.speech.v1.TranscriptOutputConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -571,12 +527,12 @@ public Builder mergeFrom( } return this; } - private int outputTypeCase_ = 0; private java.lang.Object outputType_; - - public OutputTypeCase getOutputTypeCase() { - return OutputTypeCase.forNumber(outputTypeCase_); + public OutputTypeCase + getOutputTypeCase() { + return OutputTypeCase.forNumber( + outputTypeCase_); } public Builder clearOutputType() { @@ -586,9 +542,8 @@ public Builder clearOutputType() { return this; } + /** - * - * *
      * Specifies a Cloud Storage URI for the recognition results. Must be
      * specified in the format: `gs://bucket_name/object_name`, and the bucket
@@ -596,7 +551,6 @@ public Builder clearOutputType() {
      * 
* * string gcs_uri = 1; - * * @return Whether the gcsUri field is set. */ @java.lang.Override @@ -604,8 +558,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
@@ -613,7 +565,6 @@ public boolean hasGcsUri() {
      * 
* * string gcs_uri = 1; - * * @return The gcsUri. */ @java.lang.Override @@ -623,7 +574,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; @@ -634,8 +586,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
@@ -643,18 +593,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; } @@ -664,8 +615,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
@@ -673,22 +622,20 @@ public com.google.protobuf.ByteString getGcsUriBytes() {
      * 
* * string gcs_uri = 1; - * * @param value The gcsUri to set. * @return This builder for chaining. */ - public Builder setGcsUri(java.lang.String value) { + public Builder setGcsUri( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - outputTypeCase_ = 1; + throw new NullPointerException(); + } + outputTypeCase_ = 1; outputType_ = value; onChanged(); return this; } /** - * - * *
      * Specifies a Cloud Storage URI for the recognition results. Must be
      * specified in the format: `gs://bucket_name/object_name`, and the bucket
@@ -696,7 +643,6 @@ public Builder setGcsUri(java.lang.String value) {
      * 
* * string gcs_uri = 1; - * * @return This builder for chaining. */ public Builder clearGcsUri() { @@ -708,8 +654,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
@@ -717,23 +661,23 @@ public Builder clearGcsUri() {
      * 
* * string gcs_uri = 1; - * * @param value The bytes for gcsUri to set. * @return This builder for chaining. */ - public Builder setGcsUriBytes(com.google.protobuf.ByteString value) { + public Builder setGcsUriBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); outputTypeCase_ = 1; outputType_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -743,12 +687,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(); } @@ -757,16 +701,16 @@ public static com.google.cloud.speech.v1.TranscriptOutputConfig getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TranscriptOutputConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TranscriptOutputConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TranscriptOutputConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TranscriptOutputConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -781,4 +725,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1.TranscriptOutputConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/TranscriptOutputConfigOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/TranscriptOutputConfigOrBuilder.java similarity index 63% rename from proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/TranscriptOutputConfigOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/TranscriptOutputConfigOrBuilder.java index c5255ae75..5ce9fd833 100644 --- a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/TranscriptOutputConfigOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/TranscriptOutputConfigOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1/cloud_speech.proto package com.google.cloud.speech.v1; -public interface TranscriptOutputConfigOrBuilder - extends +public interface TranscriptOutputConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1.TranscriptOutputConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Specifies a Cloud Storage URI for the recognition results. Must be
    * specified in the format: `gs://bucket_name/object_name`, and the bucket
@@ -33,13 +15,10 @@ public interface TranscriptOutputConfigOrBuilder
    * 
* * string gcs_uri = 1; - * * @return Whether the gcsUri field is set. */ boolean hasGcsUri(); /** - * - * *
    * Specifies a Cloud Storage URI for the recognition results. Must be
    * specified in the format: `gs://bucket_name/object_name`, and the bucket
@@ -47,13 +26,10 @@ public interface TranscriptOutputConfigOrBuilder
    * 
* * string gcs_uri = 1; - * * @return The gcsUri. */ java.lang.String getGcsUri(); /** - * - * *
    * Specifies a Cloud Storage URI for the recognition results. Must be
    * specified in the format: `gs://bucket_name/object_name`, and the bucket
@@ -61,10 +37,10 @@ public interface TranscriptOutputConfigOrBuilder
    * 
* * string gcs_uri = 1; - * * @return The bytes for gcsUri. */ - com.google.protobuf.ByteString getGcsUriBytes(); + com.google.protobuf.ByteString + getGcsUriBytes(); public com.google.cloud.speech.v1.TranscriptOutputConfig.OutputTypeCase getOutputTypeCase(); } diff --git a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/WordInfo.java b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/WordInfo.java similarity index 77% rename from proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/WordInfo.java rename to owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/WordInfo.java index 0acf4170a..a4d0777b6 100644 --- a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/WordInfo.java +++ b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/WordInfo.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1/cloud_speech.proto package com.google.cloud.speech.v1; /** - * - * *
  * Word-specific information for recognized words.
  * 
* * Protobuf type {@code google.cloud.speech.v1.WordInfo} */ -public final class WordInfo extends com.google.protobuf.GeneratedMessageV3 - implements +public final class WordInfo extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v1.WordInfo) WordInfoOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use WordInfo.newBuilder() to construct. private WordInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private WordInfo() { word_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new WordInfo(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private WordInfo( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,92 +53,83 @@ private WordInfo( case 0: done = true; break; - case 10: - { - com.google.protobuf.Duration.Builder subBuilder = null; - if (startTime_ != null) { - subBuilder = startTime_.toBuilder(); - } - startTime_ = - input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(startTime_); - startTime_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.protobuf.Duration.Builder subBuilder = null; + if (startTime_ != null) { + subBuilder = startTime_.toBuilder(); } - case 18: - { - com.google.protobuf.Duration.Builder subBuilder = null; - if (endTime_ != null) { - subBuilder = endTime_.toBuilder(); - } - endTime_ = - input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(endTime_); - endTime_ = subBuilder.buildPartial(); - } - - break; + startTime_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(startTime_); + startTime_ = subBuilder.buildPartial(); } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - word_ = s; - break; - } - case 37: - { - confidence_ = input.readFloat(); - break; + break; + } + case 18: { + com.google.protobuf.Duration.Builder subBuilder = null; + if (endTime_ != null) { + subBuilder = endTime_.toBuilder(); } - case 40: - { - speakerTag_ = input.readInt32(); - break; + endTime_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(endTime_); + endTime_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + word_ = s; + break; + } + case 37: { + + confidence_ = input.readFloat(); + break; + } + case 40: { + + speakerTag_ = input.readInt32(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v1.SpeechProto - .internal_static_google_cloud_speech_v1_WordInfo_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_WordInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1.SpeechProto - .internal_static_google_cloud_speech_v1_WordInfo_fieldAccessorTable + return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_WordInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1.WordInfo.class, - com.google.cloud.speech.v1.WordInfo.Builder.class); + com.google.cloud.speech.v1.WordInfo.class, com.google.cloud.speech.v1.WordInfo.Builder.class); } public static final int START_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Duration startTime_; /** - * - * *
    * Time offset relative to the beginning of the audio,
    * and corresponding to the start of the spoken word.
@@ -166,7 +140,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 @@ -174,8 +147,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.
@@ -186,7 +157,6 @@ public boolean hasStartTime() {
    * 
* * .google.protobuf.Duration start_time = 1; - * * @return The startTime. */ @java.lang.Override @@ -194,8 +164,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.
@@ -215,8 +183,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.
@@ -227,7 +193,6 @@ public com.google.protobuf.DurationOrBuilder getStartTimeOrBuilder() {
    * 
* * .google.protobuf.Duration end_time = 2; - * * @return Whether the endTime field is set. */ @java.lang.Override @@ -235,8 +200,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.
@@ -247,7 +210,6 @@ public boolean hasEndTime() {
    * 
* * .google.protobuf.Duration end_time = 2; - * * @return The endTime. */ @java.lang.Override @@ -255,8 +217,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.
@@ -276,14 +236,11 @@ public com.google.protobuf.DurationOrBuilder getEndTimeOrBuilder() {
   public static final int WORD_FIELD_NUMBER = 3;
   private volatile java.lang.Object word_;
   /**
-   *
-   *
    * 
    * The word corresponding to this set of information.
    * 
* * string word = 3; - * * @return The word. */ @java.lang.Override @@ -292,29 +249,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 { @@ -325,8 +282,6 @@ public com.google.protobuf.ByteString getWordBytes() { public static final int CONFIDENCE_FIELD_NUMBER = 4; private float confidence_; /** - * - * *
    * The confidence estimate between 0.0 and 1.0. A higher number
    * indicates an estimated greater likelihood that the recognized words are
@@ -338,7 +293,6 @@ public com.google.protobuf.ByteString getWordBytes() {
    * 
* * float confidence = 4; - * * @return The confidence. */ @java.lang.Override @@ -349,8 +303,6 @@ public float getConfidence() { public static final int SPEAKER_TAG_FIELD_NUMBER = 5; private int speakerTag_; /** - * - * *
    * Output only. A distinct integer value is assigned for every speaker within
    * the audio. This field specifies which one of those speakers was detected to
@@ -360,7 +312,6 @@ public float getConfidence() {
    * 
* * int32 speaker_tag = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The speakerTag. */ @java.lang.Override @@ -369,7 +320,6 @@ public int getSpeakerTag() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -381,7 +331,8 @@ public final boolean isInitialized() { } @java.lang.Override - public 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()); } @@ -407,19 +358,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 (confidence_ != 0F) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(4, confidence_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(4, confidence_); } if (speakerTag_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, speakerTag_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(5, speakerTag_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -429,7 +384,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); @@ -438,16 +393,21 @@ public boolean equals(final java.lang.Object obj) { if (hasStartTime() != other.hasStartTime()) return false; if (hasStartTime()) { - if (!getStartTime().equals(other.getStartTime())) return false; + if (!getStartTime() + .equals(other.getStartTime())) return false; } if (hasEndTime() != other.hasEndTime()) return false; if (hasEndTime()) { - if (!getEndTime().equals(other.getEndTime())) return false; + if (!getEndTime() + .equals(other.getEndTime())) return false; } - if (!getWord().equals(other.getWord())) return false; + if (!getWord() + .equals(other.getWord())) return false; if (java.lang.Float.floatToIntBits(getConfidence()) - != java.lang.Float.floatToIntBits(other.getConfidence())) return false; - if (getSpeakerTag() != other.getSpeakerTag()) return false; + != java.lang.Float.floatToIntBits( + other.getConfidence())) return false; + if (getSpeakerTag() + != other.getSpeakerTag()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -470,7 +430,8 @@ public int hashCode() { hash = (37 * hash) + WORD_FIELD_NUMBER; hash = (53 * hash) + getWord().hashCode(); hash = (37 * hash) + CONFIDENCE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getConfidence()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getConfidence()); hash = (37 * hash) + SPEAKER_TAG_FIELD_NUMBER; hash = (53 * hash) + getSpeakerTag(); hash = (29 * hash) + unknownFields.hashCode(); @@ -478,126 +439,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.speech.v1.WordInfo parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.speech.v1.WordInfo parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1.WordInfo parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.speech.v1.WordInfo parseFrom(com.google.protobuf.ByteString data) + public static com.google.cloud.speech.v1.WordInfo parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1.WordInfo parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1.WordInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1.WordInfo parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1.WordInfo parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1.WordInfo parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1.WordInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1.WordInfo parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1.WordInfo parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1.WordInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.speech.v1.WordInfo prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Word-specific information for recognized words.
    * 
* * Protobuf type {@code google.cloud.speech.v1.WordInfo} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1.WordInfo) com.google.cloud.speech.v1.WordInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v1.SpeechProto - .internal_static_google_cloud_speech_v1_WordInfo_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_WordInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1.SpeechProto - .internal_static_google_cloud_speech_v1_WordInfo_fieldAccessorTable + return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_WordInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1.WordInfo.class, - com.google.cloud.speech.v1.WordInfo.Builder.class); + com.google.cloud.speech.v1.WordInfo.class, com.google.cloud.speech.v1.WordInfo.Builder.class); } // Construct using com.google.cloud.speech.v1.WordInfo.newBuilder() @@ -605,15 +558,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -639,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_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 @@ -682,39 +636,38 @@ public com.google.cloud.speech.v1.WordInfo buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.speech.v1.WordInfo) { - return mergeFrom((com.google.cloud.speech.v1.WordInfo) other); + return mergeFrom((com.google.cloud.speech.v1.WordInfo)other); } else { super.mergeFrom(other); return this; @@ -770,13 +723,8 @@ public Builder mergeFrom( private com.google.protobuf.Duration startTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - startTimeBuilder_; + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> startTimeBuilder_; /** - * - * *
      * Time offset relative to the beginning of the audio,
      * and corresponding to the start of the spoken word.
@@ -787,15 +735,12 @@ public Builder mergeFrom(
      * 
* * .google.protobuf.Duration start_time = 1; - * * @return Whether the startTime field is set. */ public boolean hasStartTime() { return startTimeBuilder_ != null || startTime_ != null; } /** - * - * *
      * Time offset relative to the beginning of the audio,
      * and corresponding to the start of the spoken word.
@@ -806,7 +751,6 @@ public boolean hasStartTime() {
      * 
* * .google.protobuf.Duration start_time = 1; - * * @return The startTime. */ public com.google.protobuf.Duration getStartTime() { @@ -817,8 +761,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.
@@ -844,8 +786,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.
@@ -857,7 +797,8 @@ public Builder setStartTime(com.google.protobuf.Duration value) {
      *
      * .google.protobuf.Duration start_time = 1;
      */
-    public Builder setStartTime(com.google.protobuf.Duration.Builder builderForValue) {
+    public Builder setStartTime(
+        com.google.protobuf.Duration.Builder builderForValue) {
       if (startTimeBuilder_ == null) {
         startTime_ = builderForValue.build();
         onChanged();
@@ -868,8 +809,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.
@@ -885,7 +824,7 @@ public Builder mergeStartTime(com.google.protobuf.Duration value) {
       if (startTimeBuilder_ == null) {
         if (startTime_ != null) {
           startTime_ =
-              com.google.protobuf.Duration.newBuilder(startTime_).mergeFrom(value).buildPartial();
+            com.google.protobuf.Duration.newBuilder(startTime_).mergeFrom(value).buildPartial();
         } else {
           startTime_ = value;
         }
@@ -897,8 +836,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.
@@ -922,8 +859,6 @@ public Builder clearStartTime() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Time offset relative to the beginning of the audio,
      * and corresponding to the start of the spoken word.
@@ -936,13 +871,11 @@ public Builder clearStartTime() {
      * .google.protobuf.Duration start_time = 1;
      */
     public com.google.protobuf.Duration.Builder getStartTimeBuilder() {
-
+      
       onChanged();
       return getStartTimeFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Time offset relative to the beginning of the audio,
      * and corresponding to the start of the spoken word.
@@ -958,12 +891,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.
@@ -976,17 +908,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_;
@@ -994,13 +923,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.
@@ -1011,15 +935,12 @@ public com.google.protobuf.DurationOrBuilder getStartTimeOrBuilder() {
      * 
* * .google.protobuf.Duration end_time = 2; - * * @return Whether the endTime field is set. */ public boolean hasEndTime() { return endTimeBuilder_ != null || endTime_ != null; } /** - * - * *
      * Time offset relative to the beginning of the audio,
      * and corresponding to the end of the spoken word.
@@ -1030,7 +951,6 @@ public boolean hasEndTime() {
      * 
* * .google.protobuf.Duration end_time = 2; - * * @return The endTime. */ public com.google.protobuf.Duration getEndTime() { @@ -1041,8 +961,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.
@@ -1068,8 +986,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.
@@ -1081,7 +997,8 @@ public Builder setEndTime(com.google.protobuf.Duration value) {
      *
      * .google.protobuf.Duration end_time = 2;
      */
-    public Builder setEndTime(com.google.protobuf.Duration.Builder builderForValue) {
+    public Builder setEndTime(
+        com.google.protobuf.Duration.Builder builderForValue) {
       if (endTimeBuilder_ == null) {
         endTime_ = builderForValue.build();
         onChanged();
@@ -1092,8 +1009,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.
@@ -1109,7 +1024,7 @@ public Builder mergeEndTime(com.google.protobuf.Duration value) {
       if (endTimeBuilder_ == null) {
         if (endTime_ != null) {
           endTime_ =
-              com.google.protobuf.Duration.newBuilder(endTime_).mergeFrom(value).buildPartial();
+            com.google.protobuf.Duration.newBuilder(endTime_).mergeFrom(value).buildPartial();
         } else {
           endTime_ = value;
         }
@@ -1121,8 +1036,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.
@@ -1146,8 +1059,6 @@ public Builder clearEndTime() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Time offset relative to the beginning of the audio,
      * and corresponding to the end of the spoken word.
@@ -1160,13 +1071,11 @@ public Builder clearEndTime() {
      * .google.protobuf.Duration end_time = 2;
      */
     public com.google.protobuf.Duration.Builder getEndTimeBuilder() {
-
+      
       onChanged();
       return getEndTimeFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Time offset relative to the beginning of the audio,
      * and corresponding to the end of the spoken word.
@@ -1182,12 +1091,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.
@@ -1200,17 +1108,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_;
@@ -1218,20 +1123,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; @@ -1240,21 +1143,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 { @@ -1262,70 +1164,61 @@ public com.google.protobuf.ByteString getWordBytes() { } } /** - * - * *
      * The word corresponding to this set of information.
      * 
* * string word = 3; - * * @param value The word to set. * @return This builder for chaining. */ - public Builder setWord(java.lang.String value) { + public Builder setWord( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + word_ = value; onChanged(); return this; } /** - * - * *
      * The word corresponding to this set of information.
      * 
* * string word = 3; - * * @return This builder for chaining. */ public Builder clearWord() { - + word_ = getDefaultInstance().getWord(); onChanged(); return this; } /** - * - * *
      * The word corresponding to this set of information.
      * 
* * string word = 3; - * * @param value The bytes for word to set. * @return This builder for chaining. */ - public Builder setWordBytes(com.google.protobuf.ByteString value) { + public Builder setWordBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + word_ = value; onChanged(); return this; } - private float confidence_; + private float confidence_ ; /** - * - * *
      * The confidence estimate between 0.0 and 1.0. A higher number
      * indicates an estimated greater likelihood that the recognized words are
@@ -1337,7 +1230,6 @@ public Builder setWordBytes(com.google.protobuf.ByteString value) {
      * 
* * float confidence = 4; - * * @return The confidence. */ @java.lang.Override @@ -1345,8 +1237,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
@@ -1358,19 +1248,16 @@ public float getConfidence() {
      * 
* * float confidence = 4; - * * @param value The confidence to set. * @return This builder for chaining. */ public Builder setConfidence(float value) { - + confidence_ = value; onChanged(); return this; } /** - * - * *
      * The confidence estimate between 0.0 and 1.0. A higher number
      * indicates an estimated greater likelihood that the recognized words are
@@ -1382,20 +1269,17 @@ public Builder setConfidence(float value) {
      * 
* * float confidence = 4; - * * @return This builder for chaining. */ public Builder clearConfidence() { - + confidence_ = 0F; onChanged(); return this; } - private int speakerTag_; + private int speakerTag_ ; /** - * - * *
      * Output only. A distinct integer value is assigned for every speaker within
      * the audio. This field specifies which one of those speakers was detected to
@@ -1405,7 +1289,6 @@ public Builder clearConfidence() {
      * 
* * int32 speaker_tag = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The speakerTag. */ @java.lang.Override @@ -1413,8 +1296,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
@@ -1424,19 +1305,16 @@ public int getSpeakerTag() {
      * 
* * int32 speaker_tag = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The speakerTag to set. * @return This builder for chaining. */ public Builder setSpeakerTag(int value) { - + speakerTag_ = value; onChanged(); return this; } /** - * - * *
      * Output only. A distinct integer value is assigned for every speaker within
      * the audio. This field specifies which one of those speakers was detected to
@@ -1446,18 +1324,17 @@ public Builder setSpeakerTag(int value) {
      * 
* * int32 speaker_tag = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearSpeakerTag() { - + speakerTag_ = 0; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1467,12 +1344,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(); } @@ -1481,16 +1358,16 @@ public static com.google.cloud.speech.v1.WordInfo getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WordInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new WordInfo(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WordInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WordInfo(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1505,4 +1382,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1.WordInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/WordInfoOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/WordInfoOrBuilder.java similarity index 84% rename from proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/WordInfoOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/WordInfoOrBuilder.java index 45ed38fc6..f8e889216 100644 --- a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/WordInfoOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/WordInfoOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1/cloud_speech.proto package com.google.cloud.speech.v1; -public interface WordInfoOrBuilder - extends +public interface WordInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1.WordInfo) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Time offset relative to the beginning of the audio,
    * and corresponding to the start of the spoken word.
@@ -36,13 +18,10 @@ public interface WordInfoOrBuilder
    * 
* * .google.protobuf.Duration start_time = 1; - * * @return Whether the startTime field is set. */ boolean hasStartTime(); /** - * - * *
    * Time offset relative to the beginning of the audio,
    * and corresponding to the start of the spoken word.
@@ -53,13 +32,10 @@ public interface WordInfoOrBuilder
    * 
* * .google.protobuf.Duration start_time = 1; - * * @return The startTime. */ com.google.protobuf.Duration getStartTime(); /** - * - * *
    * Time offset relative to the beginning of the audio,
    * and corresponding to the start of the spoken word.
@@ -74,8 +50,6 @@ public interface WordInfoOrBuilder
   com.google.protobuf.DurationOrBuilder getStartTimeOrBuilder();
 
   /**
-   *
-   *
    * 
    * Time offset relative to the beginning of the audio,
    * and corresponding to the end of the spoken word.
@@ -86,13 +60,10 @@ public interface WordInfoOrBuilder
    * 
* * .google.protobuf.Duration end_time = 2; - * * @return Whether the endTime field is set. */ boolean hasEndTime(); /** - * - * *
    * Time offset relative to the beginning of the audio,
    * and corresponding to the end of the spoken word.
@@ -103,13 +74,10 @@ public interface WordInfoOrBuilder
    * 
* * .google.protobuf.Duration end_time = 2; - * * @return The endTime. */ com.google.protobuf.Duration getEndTime(); /** - * - * *
    * Time offset relative to the beginning of the audio,
    * and corresponding to the end of the spoken word.
@@ -124,33 +92,26 @@ public interface WordInfoOrBuilder
   com.google.protobuf.DurationOrBuilder getEndTimeOrBuilder();
 
   /**
-   *
-   *
    * 
    * The word corresponding to this set of information.
    * 
* * string word = 3; - * * @return The word. */ java.lang.String getWord(); /** - * - * *
    * The word corresponding to this set of information.
    * 
* * string word = 3; - * * @return The bytes for word. */ - com.google.protobuf.ByteString getWordBytes(); + com.google.protobuf.ByteString + getWordBytes(); /** - * - * *
    * The confidence estimate between 0.0 and 1.0. A higher number
    * indicates an estimated greater likelihood that the recognized words are
@@ -162,14 +123,11 @@ public interface WordInfoOrBuilder
    * 
* * float confidence = 4; - * * @return The confidence. */ float getConfidence(); /** - * - * *
    * Output only. A distinct integer value is assigned for every speaker within
    * the audio. This field specifies which one of those speakers was detected to
@@ -179,7 +137,6 @@ public interface WordInfoOrBuilder
    * 
* * int32 speaker_tag = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The speakerTag. */ int getSpeakerTag(); diff --git a/proto-google-cloud-speech-v1/src/main/proto/google/cloud/speech/v1/cloud_speech.proto b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/proto/google/cloud/speech/v1/cloud_speech.proto similarity index 100% rename from proto-google-cloud-speech-v1/src/main/proto/google/cloud/speech/v1/cloud_speech.proto rename to owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/proto/google/cloud/speech/v1/cloud_speech.proto diff --git a/proto-google-cloud-speech-v1/src/main/proto/google/cloud/speech/v1/resource.proto b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/proto/google/cloud/speech/v1/resource.proto similarity index 100% rename from proto-google-cloud-speech-v1/src/main/proto/google/cloud/speech/v1/resource.proto rename to owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/proto/google/cloud/speech/v1/resource.proto diff --git a/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/AdaptationClient.java b/owl-bot-staging/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/AdaptationClient.java similarity index 94% rename from google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/AdaptationClient.java rename to owl-bot-staging/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/AdaptationClient.java index 27b168075..e96ee1f16 100644 --- a/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/AdaptationClient.java +++ b/owl-bot-staging/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/AdaptationClient.java @@ -58,13 +58,13 @@ * methods: * *
    - *
  1. A "flattened" method. With this type of method, the fields of the request type have been + *
  2. A "flattened" method. With this type of method, the fields of the request type have been * converted into function parameters. It may be the case that not all fields are available as * parameters, and not every API method will have a flattened method entry point. - *
  3. A "request object" method. This type of method only takes one parameter, a request object, + *
  4. A "request object" method. This type of method only takes one parameter, a request object, * which must be constructed before the call. Not every API method will have a request object * method. - *
  5. A "callable" method. This type of method takes no parameters and returns an immutable API + *
  6. A "callable" method. This type of method takes no parameters and returns an immutable API * callable object, which can be used to initiate calls to the service. *
* @@ -170,8 +170,9 @@ public AdaptationStub getStub() { *

`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` 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. + * location. To specify a region, use a [regional + * endpoint](https://cloud.google.com/speech-to-text/docs/endpoints) with matching `us` or + * `eu` location value. * @param phraseSet Required. The phrase set to create. * @param phraseSetId Required. The ID to use for the phrase set, which will become the final * component of the phrase set's resource name. @@ -210,8 +211,9 @@ public final PhraseSet createPhraseSet( *

`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` 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. + * location. To specify a region, use a [regional + * endpoint](https://cloud.google.com/speech-to-text/docs/endpoints) with matching `us` or + * `eu` location value. * @param phraseSet Required. The phrase set to create. * @param phraseSetId Required. The ID to use for the phrase set, which will become the final * component of the phrase set's resource name. @@ -298,8 +300,9 @@ public final UnaryCallable createPhraseSetCal *

`projects/{project}/locations/{location}/phraseSets/{phrase_set}` *

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. + * location. To specify a region, use a [regional + * endpoint](https://cloud.google.com/speech-to-text/docs/endpoints) with matching `us` or + * `eu` location value. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final PhraseSet getPhraseSet(PhraseSetName name) { @@ -325,8 +328,9 @@ public final PhraseSet getPhraseSet(PhraseSetName name) { *

`projects/{project}/locations/{location}/phraseSets/{phrase_set}` *

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. + * location. To specify a region, use a [regional + * endpoint](https://cloud.google.com/speech-to-text/docs/endpoints) with matching `us` or + * `eu` location value. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final PhraseSet getPhraseSet(String name) { @@ -398,8 +402,9 @@ public final UnaryCallable getPhraseSetCallable( *

`projects/{project}/locations/{location}` *

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. + * location. To specify a region, use a [regional + * endpoint](https://cloud.google.com/speech-to-text/docs/endpoints) with matching `us` or + * `eu` location value. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListPhraseSetPagedResponse listPhraseSet(LocationName parent) { @@ -429,8 +434,9 @@ public final ListPhraseSetPagedResponse listPhraseSet(LocationName parent) { *

`projects/{project}/locations/{location}` *

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. + * location. To specify a region, use a [regional + * endpoint](https://cloud.google.com/speech-to-text/docs/endpoints) with matching `us` or + * `eu` location value. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListPhraseSetPagedResponse listPhraseSet(String parent) { @@ -545,8 +551,9 @@ public final UnaryCallable listPhra *

`projects/{project}/locations/{location}/phraseSets/{phrase_set}` *

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. + * location. To specify a region, use a [regional + * endpoint](https://cloud.google.com/speech-to-text/docs/endpoints) with matching `us` or + * `eu` location value. * @param updateMask The list of fields to be updated. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -715,8 +722,9 @@ public final UnaryCallable deletePhraseSetCallabl *

`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` 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. + * location. To specify a region, use a [regional + * endpoint](https://cloud.google.com/speech-to-text/docs/endpoints) with matching `us` or + * `eu` location value. * @param customClass Required. The custom class to create. * @param customClassId Required. The ID to use for the custom class, which will become the final * component of the custom class' resource name. @@ -753,8 +761,9 @@ public final CustomClass createCustomClass( *

`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` 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. + * location. To specify a region, use a [regional + * endpoint](https://cloud.google.com/speech-to-text/docs/endpoints) with matching `us` or + * `eu` location value. * @param customClass Required. The custom class to create. * @param customClassId Required. The ID to use for the custom class, which will become the final * component of the custom class' resource name. @@ -931,8 +940,9 @@ public final UnaryCallable getCustomClassCal *

`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` 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. + * location. To specify a region, use a [regional + * endpoint](https://cloud.google.com/speech-to-text/docs/endpoints) with matching `us` or + * `eu` location value. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListCustomClassesPagedResponse listCustomClasses(LocationName parent) { @@ -962,8 +972,9 @@ public final ListCustomClassesPagedResponse listCustomClasses(LocationName paren *

`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` 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. + * location. To specify a region, use a [regional + * endpoint](https://cloud.google.com/speech-to-text/docs/endpoints) with matching `us` or + * `eu` location value. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListCustomClassesPagedResponse listCustomClasses(String parent) { @@ -1082,8 +1093,9 @@ public final ListCustomClassesPagedResponse listCustomClasses(ListCustomClassesR *

`projects/{project}/locations/{location}/customClasses/{custom_class}` *

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. + * location. To specify a region, use a [regional + * endpoint](https://cloud.google.com/speech-to-text/docs/endpoints) with matching `us` or + * `eu` location value. * @param updateMask The list of fields to be updated. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -1161,8 +1173,9 @@ public final UnaryCallable updateCustomCl *

`projects/{project}/locations/{location}/customClasses/{custom_class}` *

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. + * location. To specify a region, use a [regional + * endpoint](https://cloud.google.com/speech-to-text/docs/endpoints) with matching `us` or + * `eu` location value. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final void deleteCustomClass(CustomClassName name) { @@ -1190,8 +1203,9 @@ public final void deleteCustomClass(CustomClassName name) { *

`projects/{project}/locations/{location}/customClasses/{custom_class}` *

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. + * location. To specify a region, use a [regional + * endpoint](https://cloud.google.com/speech-to-text/docs/endpoints) with matching `us` or + * `eu` location value. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final void deleteCustomClass(String name) { @@ -1276,10 +1290,7 @@ public boolean awaitTermination(long duration, TimeUnit unit) throws Interrupted public static class ListPhraseSetPagedResponse extends AbstractPagedListResponse< - ListPhraseSetRequest, - ListPhraseSetResponse, - PhraseSet, - ListPhraseSetPage, + ListPhraseSetRequest, ListPhraseSetResponse, PhraseSet, ListPhraseSetPage, ListPhraseSetFixedSizeCollection> { public static ApiFuture createAsync( @@ -1329,10 +1340,7 @@ public ApiFuture createPageAsync( public static class ListPhraseSetFixedSizeCollection extends AbstractFixedSizeCollection< - ListPhraseSetRequest, - ListPhraseSetResponse, - PhraseSet, - ListPhraseSetPage, + ListPhraseSetRequest, ListPhraseSetResponse, PhraseSet, ListPhraseSetPage, ListPhraseSetFixedSizeCollection> { private ListPhraseSetFixedSizeCollection(List pages, int collectionSize) { @@ -1352,10 +1360,7 @@ protected ListPhraseSetFixedSizeCollection createCollection( public static class ListCustomClassesPagedResponse extends AbstractPagedListResponse< - ListCustomClassesRequest, - ListCustomClassesResponse, - CustomClass, - ListCustomClassesPage, + ListCustomClassesRequest, ListCustomClassesResponse, CustomClass, ListCustomClassesPage, ListCustomClassesFixedSizeCollection> { public static ApiFuture createAsync( @@ -1405,10 +1410,7 @@ public ApiFuture createPageAsync( public static class ListCustomClassesFixedSizeCollection extends AbstractFixedSizeCollection< - ListCustomClassesRequest, - ListCustomClassesResponse, - CustomClass, - ListCustomClassesPage, + ListCustomClassesRequest, ListCustomClassesResponse, CustomClass, ListCustomClassesPage, ListCustomClassesFixedSizeCollection> { private ListCustomClassesFixedSizeCollection( diff --git a/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/AdaptationSettings.java b/owl-bot-staging/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/AdaptationSettings.java similarity index 97% rename from google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/AdaptationSettings.java rename to owl-bot-staging/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/AdaptationSettings.java index b852275f2..aa70f94b6 100644 --- a/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/AdaptationSettings.java +++ b/owl-bot-staging/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/AdaptationSettings.java @@ -28,6 +28,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; @@ -43,9 +44,9 @@ *

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

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

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

    - *
  1. A "flattened" method. With this type of method, the fields of the request type have been + *
  2. A "flattened" method. With this type of method, the fields of the request type have been * converted into function parameters. It may be the case that not all fields are available as * parameters, and not every API method will have a flattened method entry point. - *
  3. A "request object" method. This type of method only takes one parameter, a request object, + *
  4. A "request object" method. This type of method only takes one parameter, a request object, * which must be constructed before the call. Not every API method will have a request object * method. - *
  5. A "callable" method. This type of method takes no parameters and returns an immutable API + *
  6. A "callable" method. This type of method takes no parameters and returns an immutable API * callable object, which can be used to initiate calls to the service. *
* diff --git a/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechSettings.java b/owl-bot-staging/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechSettings.java similarity index 96% rename from google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechSettings.java rename to owl-bot-staging/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechSettings.java index 2dad612a2..1ed215f3d 100644 --- a/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechSettings.java +++ b/owl-bot-staging/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechSettings.java @@ -26,6 +26,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; @@ -41,9 +42,9 @@ *

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

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

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

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

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

The builder of this class is recursive, so contained classes are themselves builders. When @@ -214,8 +214,7 @@ public ApiFuture getFuturePagedResponse( ListCustomClassesRequest, ListCustomClassesResponse, ListCustomClassesPagedResponse> LIST_CUSTOM_CLASSES_PAGE_STR_FACT = new PagedListResponseFactory< - ListCustomClassesRequest, - ListCustomClassesResponse, + ListCustomClassesRequest, ListCustomClassesResponse, ListCustomClassesPagedResponse>() { @Override public ApiFuture getFuturePagedResponse( diff --git a/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/GrpcAdaptationCallableFactory.java b/owl-bot-staging/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/GrpcAdaptationCallableFactory.java similarity index 100% rename from google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/GrpcAdaptationCallableFactory.java rename to owl-bot-staging/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/GrpcAdaptationCallableFactory.java diff --git a/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/GrpcAdaptationStub.java b/owl-bot-staging/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/GrpcAdaptationStub.java similarity index 99% rename from google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/GrpcAdaptationStub.java rename to owl-bot-staging/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/GrpcAdaptationStub.java index be361d622..8a46e9cfb 100644 --- a/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/GrpcAdaptationStub.java +++ b/owl-bot-staging/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/GrpcAdaptationStub.java @@ -46,6 +46,7 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; +import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/GrpcSpeechCallableFactory.java b/owl-bot-staging/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/GrpcSpeechCallableFactory.java similarity index 100% rename from google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/GrpcSpeechCallableFactory.java rename to owl-bot-staging/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/GrpcSpeechCallableFactory.java diff --git a/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/GrpcSpeechStub.java b/owl-bot-staging/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/GrpcSpeechStub.java similarity index 100% rename from google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/GrpcSpeechStub.java rename to owl-bot-staging/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/GrpcSpeechStub.java diff --git a/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/SpeechStub.java b/owl-bot-staging/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/SpeechStub.java similarity index 100% rename from google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/SpeechStub.java rename to owl-bot-staging/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/SpeechStub.java diff --git a/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/SpeechStubSettings.java b/owl-bot-staging/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/SpeechStubSettings.java similarity index 98% rename from google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/SpeechStubSettings.java rename to owl-bot-staging/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/SpeechStubSettings.java index b9a2aedb7..a1fcee665 100644 --- a/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/SpeechStubSettings.java +++ b/owl-bot-staging/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/SpeechStubSettings.java @@ -60,9 +60,9 @@ *

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

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

The builder of this class is recursive, so contained classes are themselves builders. When diff --git a/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/AdaptationClientTest.java b/owl-bot-staging/v1p1beta1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/AdaptationClientTest.java similarity index 100% rename from google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/AdaptationClientTest.java rename to owl-bot-staging/v1p1beta1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/AdaptationClientTest.java diff --git a/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/MockAdaptation.java b/owl-bot-staging/v1p1beta1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/MockAdaptation.java similarity index 100% rename from google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/MockAdaptation.java rename to owl-bot-staging/v1p1beta1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/MockAdaptation.java diff --git a/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/MockAdaptationImpl.java b/owl-bot-staging/v1p1beta1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/MockAdaptationImpl.java similarity index 100% rename from google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/MockAdaptationImpl.java rename to owl-bot-staging/v1p1beta1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/MockAdaptationImpl.java diff --git a/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/MockSpeech.java b/owl-bot-staging/v1p1beta1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/MockSpeech.java similarity index 100% rename from google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/MockSpeech.java rename to owl-bot-staging/v1p1beta1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/MockSpeech.java diff --git a/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/MockSpeechImpl.java b/owl-bot-staging/v1p1beta1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/MockSpeechImpl.java similarity index 100% rename from google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/MockSpeechImpl.java rename to owl-bot-staging/v1p1beta1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/MockSpeechImpl.java diff --git a/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/SpeechClientTest.java b/owl-bot-staging/v1p1beta1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/SpeechClientTest.java similarity index 100% rename from google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/SpeechClientTest.java rename to owl-bot-staging/v1p1beta1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/SpeechClientTest.java diff --git a/owl-bot-staging/v1p1beta1/grpc-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/AdaptationGrpc.java b/owl-bot-staging/v1p1beta1/grpc-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/AdaptationGrpc.java new file mode 100644 index 000000000..e41d203e7 --- /dev/null +++ b/owl-bot-staging/v1p1beta1/grpc-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/AdaptationGrpc.java @@ -0,0 +1,1085 @@ +package com.google.cloud.speech.v1p1beta1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + *

+ * Service that implements Google Cloud Speech Adaptation API.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/speech/v1p1beta1/cloud_speech_adaptation.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class AdaptationGrpc { + + private AdaptationGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.speech.v1p1beta1.Adaptation"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor getCreatePhraseSetMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreatePhraseSet", + requestType = com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest.class, + responseType = com.google.cloud.speech.v1p1beta1.PhraseSet.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreatePhraseSetMethod() { + io.grpc.MethodDescriptor getCreatePhraseSetMethod; + if ((getCreatePhraseSetMethod = AdaptationGrpc.getCreatePhraseSetMethod) == null) { + synchronized (AdaptationGrpc.class) { + if ((getCreatePhraseSetMethod = AdaptationGrpc.getCreatePhraseSetMethod) == null) { + AdaptationGrpc.getCreatePhraseSetMethod = getCreatePhraseSetMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreatePhraseSet")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v1p1beta1.PhraseSet.getDefaultInstance())) + .setSchemaDescriptor(new AdaptationMethodDescriptorSupplier("CreatePhraseSet")) + .build(); + } + } + } + return getCreatePhraseSetMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetPhraseSetMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetPhraseSet", + requestType = com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest.class, + responseType = com.google.cloud.speech.v1p1beta1.PhraseSet.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetPhraseSetMethod() { + io.grpc.MethodDescriptor getGetPhraseSetMethod; + if ((getGetPhraseSetMethod = AdaptationGrpc.getGetPhraseSetMethod) == null) { + synchronized (AdaptationGrpc.class) { + if ((getGetPhraseSetMethod = AdaptationGrpc.getGetPhraseSetMethod) == null) { + AdaptationGrpc.getGetPhraseSetMethod = getGetPhraseSetMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetPhraseSet")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v1p1beta1.PhraseSet.getDefaultInstance())) + .setSchemaDescriptor(new AdaptationMethodDescriptorSupplier("GetPhraseSet")) + .build(); + } + } + } + return getGetPhraseSetMethod; + } + + private static volatile io.grpc.MethodDescriptor getListPhraseSetMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListPhraseSet", + requestType = com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest.class, + responseType = com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListPhraseSetMethod() { + io.grpc.MethodDescriptor getListPhraseSetMethod; + if ((getListPhraseSetMethod = AdaptationGrpc.getListPhraseSetMethod) == null) { + synchronized (AdaptationGrpc.class) { + if ((getListPhraseSetMethod = AdaptationGrpc.getListPhraseSetMethod) == null) { + AdaptationGrpc.getListPhraseSetMethod = getListPhraseSetMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListPhraseSet")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse.getDefaultInstance())) + .setSchemaDescriptor(new AdaptationMethodDescriptorSupplier("ListPhraseSet")) + .build(); + } + } + } + return getListPhraseSetMethod; + } + + private static volatile io.grpc.MethodDescriptor getUpdatePhraseSetMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdatePhraseSet", + requestType = com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest.class, + responseType = com.google.cloud.speech.v1p1beta1.PhraseSet.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUpdatePhraseSetMethod() { + io.grpc.MethodDescriptor getUpdatePhraseSetMethod; + if ((getUpdatePhraseSetMethod = AdaptationGrpc.getUpdatePhraseSetMethod) == null) { + synchronized (AdaptationGrpc.class) { + if ((getUpdatePhraseSetMethod = AdaptationGrpc.getUpdatePhraseSetMethod) == null) { + AdaptationGrpc.getUpdatePhraseSetMethod = getUpdatePhraseSetMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdatePhraseSet")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v1p1beta1.PhraseSet.getDefaultInstance())) + .setSchemaDescriptor(new AdaptationMethodDescriptorSupplier("UpdatePhraseSet")) + .build(); + } + } + } + return getUpdatePhraseSetMethod; + } + + private static volatile io.grpc.MethodDescriptor getDeletePhraseSetMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeletePhraseSet", + requestType = com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDeletePhraseSetMethod() { + io.grpc.MethodDescriptor getDeletePhraseSetMethod; + if ((getDeletePhraseSetMethod = AdaptationGrpc.getDeletePhraseSetMethod) == null) { + synchronized (AdaptationGrpc.class) { + if ((getDeletePhraseSetMethod = AdaptationGrpc.getDeletePhraseSetMethod) == null) { + AdaptationGrpc.getDeletePhraseSetMethod = getDeletePhraseSetMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeletePhraseSet")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor(new AdaptationMethodDescriptorSupplier("DeletePhraseSet")) + .build(); + } + } + } + return getDeletePhraseSetMethod; + } + + private static volatile io.grpc.MethodDescriptor getCreateCustomClassMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateCustomClass", + requestType = com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest.class, + responseType = com.google.cloud.speech.v1p1beta1.CustomClass.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateCustomClassMethod() { + io.grpc.MethodDescriptor getCreateCustomClassMethod; + if ((getCreateCustomClassMethod = AdaptationGrpc.getCreateCustomClassMethod) == null) { + synchronized (AdaptationGrpc.class) { + if ((getCreateCustomClassMethod = AdaptationGrpc.getCreateCustomClassMethod) == null) { + AdaptationGrpc.getCreateCustomClassMethod = getCreateCustomClassMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateCustomClass")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v1p1beta1.CustomClass.getDefaultInstance())) + .setSchemaDescriptor(new AdaptationMethodDescriptorSupplier("CreateCustomClass")) + .build(); + } + } + } + return getCreateCustomClassMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetCustomClassMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetCustomClass", + requestType = com.google.cloud.speech.v1p1beta1.GetCustomClassRequest.class, + responseType = com.google.cloud.speech.v1p1beta1.CustomClass.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetCustomClassMethod() { + io.grpc.MethodDescriptor getGetCustomClassMethod; + if ((getGetCustomClassMethod = AdaptationGrpc.getGetCustomClassMethod) == null) { + synchronized (AdaptationGrpc.class) { + if ((getGetCustomClassMethod = AdaptationGrpc.getGetCustomClassMethod) == null) { + AdaptationGrpc.getGetCustomClassMethod = getGetCustomClassMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetCustomClass")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v1p1beta1.GetCustomClassRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v1p1beta1.CustomClass.getDefaultInstance())) + .setSchemaDescriptor(new AdaptationMethodDescriptorSupplier("GetCustomClass")) + .build(); + } + } + } + return getGetCustomClassMethod; + } + + private static volatile io.grpc.MethodDescriptor getListCustomClassesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListCustomClasses", + requestType = com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest.class, + responseType = com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListCustomClassesMethod() { + io.grpc.MethodDescriptor getListCustomClassesMethod; + if ((getListCustomClassesMethod = AdaptationGrpc.getListCustomClassesMethod) == null) { + synchronized (AdaptationGrpc.class) { + if ((getListCustomClassesMethod = AdaptationGrpc.getListCustomClassesMethod) == null) { + AdaptationGrpc.getListCustomClassesMethod = getListCustomClassesMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListCustomClasses")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse.getDefaultInstance())) + .setSchemaDescriptor(new AdaptationMethodDescriptorSupplier("ListCustomClasses")) + .build(); + } + } + } + return getListCustomClassesMethod; + } + + private static volatile io.grpc.MethodDescriptor getUpdateCustomClassMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateCustomClass", + requestType = com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest.class, + responseType = com.google.cloud.speech.v1p1beta1.CustomClass.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUpdateCustomClassMethod() { + io.grpc.MethodDescriptor getUpdateCustomClassMethod; + if ((getUpdateCustomClassMethod = AdaptationGrpc.getUpdateCustomClassMethod) == null) { + synchronized (AdaptationGrpc.class) { + if ((getUpdateCustomClassMethod = AdaptationGrpc.getUpdateCustomClassMethod) == null) { + AdaptationGrpc.getUpdateCustomClassMethod = getUpdateCustomClassMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateCustomClass")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v1p1beta1.CustomClass.getDefaultInstance())) + .setSchemaDescriptor(new AdaptationMethodDescriptorSupplier("UpdateCustomClass")) + .build(); + } + } + } + return getUpdateCustomClassMethod; + } + + private static volatile io.grpc.MethodDescriptor getDeleteCustomClassMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteCustomClass", + requestType = com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDeleteCustomClassMethod() { + io.grpc.MethodDescriptor getDeleteCustomClassMethod; + if ((getDeleteCustomClassMethod = AdaptationGrpc.getDeleteCustomClassMethod) == null) { + synchronized (AdaptationGrpc.class) { + if ((getDeleteCustomClassMethod = AdaptationGrpc.getDeleteCustomClassMethod) == null) { + AdaptationGrpc.getDeleteCustomClassMethod = getDeleteCustomClassMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteCustomClass")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor(new AdaptationMethodDescriptorSupplier("DeleteCustomClass")) + .build(); + } + } + } + return getDeleteCustomClassMethod; + } + + /** + * Creates a new async stub that supports all call types for the service + */ + public static AdaptationStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public AdaptationStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AdaptationStub(channel, callOptions); + } + }; + return AdaptationStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static AdaptationBlockingStub newBlockingStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public AdaptationBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AdaptationBlockingStub(channel, callOptions); + } + }; + return AdaptationBlockingStub.newStub(factory, channel); + } + + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static AdaptationFutureStub newFutureStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public AdaptationFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AdaptationFutureStub(channel, callOptions); + } + }; + return AdaptationFutureStub.newStub(factory, channel); + } + + /** + *
+   * Service that implements Google Cloud Speech Adaptation API.
+   * 
+ */ + public static abstract class AdaptationImplBase implements io.grpc.BindableService { + + /** + *
+     * Create a set of phrase hints. Each item in the set can be a single word or
+     * a multi-word phrase. The items in the PhraseSet are favored by the
+     * recognition model when you send a call that includes the PhraseSet.
+     * 
+ */ + public void createPhraseSet(com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreatePhraseSetMethod(), responseObserver); + } + + /** + *
+     * Get a phrase set.
+     * 
+ */ + public void getPhraseSet(com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetPhraseSetMethod(), responseObserver); + } + + /** + *
+     * List phrase sets.
+     * 
+ */ + public void listPhraseSet(com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListPhraseSetMethod(), responseObserver); + } + + /** + *
+     * Update a phrase set.
+     * 
+ */ + public void updatePhraseSet(com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdatePhraseSetMethod(), responseObserver); + } + + /** + *
+     * Delete a phrase set.
+     * 
+ */ + public void deletePhraseSet(com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeletePhraseSetMethod(), responseObserver); + } + + /** + *
+     * Create a custom class.
+     * 
+ */ + public void createCustomClass(com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateCustomClassMethod(), responseObserver); + } + + /** + *
+     * Get a custom class.
+     * 
+ */ + public void getCustomClass(com.google.cloud.speech.v1p1beta1.GetCustomClassRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetCustomClassMethod(), responseObserver); + } + + /** + *
+     * List custom classes.
+     * 
+ */ + public void listCustomClasses(com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListCustomClassesMethod(), responseObserver); + } + + /** + *
+     * Update a custom class.
+     * 
+ */ + public void updateCustomClass(com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateCustomClassMethod(), responseObserver); + } + + /** + *
+     * Delete a custom class.
+     * 
+ */ + public void deleteCustomClass(com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteCustomClassMethod(), responseObserver); + } + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getCreatePhraseSetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest, + com.google.cloud.speech.v1p1beta1.PhraseSet>( + this, METHODID_CREATE_PHRASE_SET))) + .addMethod( + getGetPhraseSetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest, + com.google.cloud.speech.v1p1beta1.PhraseSet>( + this, METHODID_GET_PHRASE_SET))) + .addMethod( + getListPhraseSetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest, + com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse>( + this, METHODID_LIST_PHRASE_SET))) + .addMethod( + getUpdatePhraseSetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest, + com.google.cloud.speech.v1p1beta1.PhraseSet>( + this, METHODID_UPDATE_PHRASE_SET))) + .addMethod( + getDeletePhraseSetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest, + com.google.protobuf.Empty>( + this, METHODID_DELETE_PHRASE_SET))) + .addMethod( + getCreateCustomClassMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest, + com.google.cloud.speech.v1p1beta1.CustomClass>( + this, METHODID_CREATE_CUSTOM_CLASS))) + .addMethod( + getGetCustomClassMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.speech.v1p1beta1.GetCustomClassRequest, + com.google.cloud.speech.v1p1beta1.CustomClass>( + this, METHODID_GET_CUSTOM_CLASS))) + .addMethod( + getListCustomClassesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest, + com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse>( + this, METHODID_LIST_CUSTOM_CLASSES))) + .addMethod( + getUpdateCustomClassMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest, + com.google.cloud.speech.v1p1beta1.CustomClass>( + this, METHODID_UPDATE_CUSTOM_CLASS))) + .addMethod( + getDeleteCustomClassMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest, + com.google.protobuf.Empty>( + this, METHODID_DELETE_CUSTOM_CLASS))) + .build(); + } + } + + /** + *
+   * Service that implements Google Cloud Speech Adaptation API.
+   * 
+ */ + public static final class AdaptationStub extends io.grpc.stub.AbstractAsyncStub { + private AdaptationStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected AdaptationStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AdaptationStub(channel, callOptions); + } + + /** + *
+     * Create a set of phrase hints. Each item in the set can be a single word or
+     * a multi-word phrase. The items in the PhraseSet are favored by the
+     * recognition model when you send a call that includes the PhraseSet.
+     * 
+ */ + public void createPhraseSet(com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreatePhraseSetMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Get a phrase set.
+     * 
+ */ + public void getPhraseSet(com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetPhraseSetMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * List phrase sets.
+     * 
+ */ + public void listPhraseSet(com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListPhraseSetMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Update a phrase set.
+     * 
+ */ + public void updatePhraseSet(com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdatePhraseSetMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Delete a phrase set.
+     * 
+ */ + public void deletePhraseSet(com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeletePhraseSetMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Create a custom class.
+     * 
+ */ + public void createCustomClass(com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateCustomClassMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Get a custom class.
+     * 
+ */ + public void getCustomClass(com.google.cloud.speech.v1p1beta1.GetCustomClassRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetCustomClassMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * List custom classes.
+     * 
+ */ + public void listCustomClasses(com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListCustomClassesMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Update a custom class.
+     * 
+ */ + public void updateCustomClass(com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateCustomClassMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Delete a custom class.
+     * 
+ */ + public void deleteCustomClass(com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteCustomClassMethod(), getCallOptions()), request, responseObserver); + } + } + + /** + *
+   * Service that implements Google Cloud Speech Adaptation API.
+   * 
+ */ + public static final class AdaptationBlockingStub extends io.grpc.stub.AbstractBlockingStub { + private AdaptationBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected AdaptationBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AdaptationBlockingStub(channel, callOptions); + } + + /** + *
+     * Create a set of phrase hints. Each item in the set can be a single word or
+     * a multi-word phrase. The items in the PhraseSet are favored by the
+     * recognition model when you send a call that includes the PhraseSet.
+     * 
+ */ + public com.google.cloud.speech.v1p1beta1.PhraseSet createPhraseSet(com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreatePhraseSetMethod(), getCallOptions(), request); + } + + /** + *
+     * Get a phrase set.
+     * 
+ */ + public com.google.cloud.speech.v1p1beta1.PhraseSet getPhraseSet(com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetPhraseSetMethod(), getCallOptions(), request); + } + + /** + *
+     * List phrase sets.
+     * 
+ */ + public com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse listPhraseSet(com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListPhraseSetMethod(), getCallOptions(), request); + } + + /** + *
+     * Update a phrase set.
+     * 
+ */ + public com.google.cloud.speech.v1p1beta1.PhraseSet updatePhraseSet(com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdatePhraseSetMethod(), getCallOptions(), request); + } + + /** + *
+     * Delete a phrase set.
+     * 
+ */ + public com.google.protobuf.Empty deletePhraseSet(com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeletePhraseSetMethod(), getCallOptions(), request); + } + + /** + *
+     * Create a custom class.
+     * 
+ */ + public com.google.cloud.speech.v1p1beta1.CustomClass createCustomClass(com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateCustomClassMethod(), getCallOptions(), request); + } + + /** + *
+     * Get a custom class.
+     * 
+ */ + public com.google.cloud.speech.v1p1beta1.CustomClass getCustomClass(com.google.cloud.speech.v1p1beta1.GetCustomClassRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetCustomClassMethod(), getCallOptions(), request); + } + + /** + *
+     * List custom classes.
+     * 
+ */ + public com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse listCustomClasses(com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListCustomClassesMethod(), getCallOptions(), request); + } + + /** + *
+     * Update a custom class.
+     * 
+ */ + public com.google.cloud.speech.v1p1beta1.CustomClass updateCustomClass(com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateCustomClassMethod(), getCallOptions(), request); + } + + /** + *
+     * Delete a custom class.
+     * 
+ */ + public com.google.protobuf.Empty deleteCustomClass(com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteCustomClassMethod(), getCallOptions(), request); + } + } + + /** + *
+   * Service that implements Google Cloud Speech Adaptation API.
+   * 
+ */ + public static final class AdaptationFutureStub extends io.grpc.stub.AbstractFutureStub { + private AdaptationFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected AdaptationFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AdaptationFutureStub(channel, callOptions); + } + + /** + *
+     * Create a set of phrase hints. Each item in the set can be a single word or
+     * a multi-word phrase. The items in the PhraseSet are favored by the
+     * recognition model when you send a call that includes the PhraseSet.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture createPhraseSet( + com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreatePhraseSetMethod(), getCallOptions()), request); + } + + /** + *
+     * Get a phrase set.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getPhraseSet( + com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetPhraseSetMethod(), getCallOptions()), request); + } + + /** + *
+     * List phrase sets.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listPhraseSet( + com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListPhraseSetMethod(), getCallOptions()), request); + } + + /** + *
+     * Update a phrase set.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture updatePhraseSet( + com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdatePhraseSetMethod(), getCallOptions()), request); + } + + /** + *
+     * Delete a phrase set.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture deletePhraseSet( + com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeletePhraseSetMethod(), getCallOptions()), request); + } + + /** + *
+     * Create a custom class.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture createCustomClass( + com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateCustomClassMethod(), getCallOptions()), request); + } + + /** + *
+     * Get a custom class.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getCustomClass( + com.google.cloud.speech.v1p1beta1.GetCustomClassRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetCustomClassMethod(), getCallOptions()), request); + } + + /** + *
+     * List custom classes.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listCustomClasses( + com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListCustomClassesMethod(), getCallOptions()), request); + } + + /** + *
+     * Update a custom class.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture updateCustomClass( + com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateCustomClassMethod(), getCallOptions()), request); + } + + /** + *
+     * Delete a custom class.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture deleteCustomClass( + com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteCustomClassMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_CREATE_PHRASE_SET = 0; + private static final int METHODID_GET_PHRASE_SET = 1; + private static final int METHODID_LIST_PHRASE_SET = 2; + private static final int METHODID_UPDATE_PHRASE_SET = 3; + private static final int METHODID_DELETE_PHRASE_SET = 4; + private static final int METHODID_CREATE_CUSTOM_CLASS = 5; + private static final int METHODID_GET_CUSTOM_CLASS = 6; + private static final int METHODID_LIST_CUSTOM_CLASSES = 7; + private static final int METHODID_UPDATE_CUSTOM_CLASS = 8; + private static final int METHODID_DELETE_CUSTOM_CLASS = 9; + + private static final class MethodHandlers implements + io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final AdaptationImplBase serviceImpl; + private final int methodId; + + MethodHandlers(AdaptationImplBase serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_CREATE_PHRASE_SET: + serviceImpl.createPhraseSet((com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_PHRASE_SET: + serviceImpl.getPhraseSet((com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_PHRASE_SET: + serviceImpl.listPhraseSet((com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_PHRASE_SET: + serviceImpl.updatePhraseSet((com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_PHRASE_SET: + serviceImpl.deletePhraseSet((com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_CUSTOM_CLASS: + serviceImpl.createCustomClass((com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_CUSTOM_CLASS: + serviceImpl.getCustomClass((com.google.cloud.speech.v1p1beta1.GetCustomClassRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_CUSTOM_CLASSES: + serviceImpl.listCustomClasses((com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_CUSTOM_CLASS: + serviceImpl.updateCustomClass((com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_CUSTOM_CLASS: + serviceImpl.deleteCustomClass((com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + private static abstract class AdaptationBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + AdaptationBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("Adaptation"); + } + } + + private static final class AdaptationFileDescriptorSupplier + extends AdaptationBaseDescriptorSupplier { + AdaptationFileDescriptorSupplier() {} + } + + private static final class AdaptationMethodDescriptorSupplier + extends AdaptationBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + AdaptationMethodDescriptorSupplier(String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (AdaptationGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new AdaptationFileDescriptorSupplier()) + .addMethod(getCreatePhraseSetMethod()) + .addMethod(getGetPhraseSetMethod()) + .addMethod(getListPhraseSetMethod()) + .addMethod(getUpdatePhraseSetMethod()) + .addMethod(getDeletePhraseSetMethod()) + .addMethod(getCreateCustomClassMethod()) + .addMethod(getGetCustomClassMethod()) + .addMethod(getListCustomClassesMethod()) + .addMethod(getUpdateCustomClassMethod()) + .addMethod(getDeleteCustomClassMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/owl-bot-staging/v1p1beta1/grpc-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechGrpc.java b/owl-bot-staging/v1p1beta1/grpc-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechGrpc.java new file mode 100644 index 000000000..5879fdc44 --- /dev/null +++ b/owl-bot-staging/v1p1beta1/grpc-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechGrpc.java @@ -0,0 +1,479 @@ +package com.google.cloud.speech.v1p1beta1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + *
+ * Service that implements Google Cloud Speech API.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/speech/v1p1beta1/cloud_speech.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class SpeechGrpc { + + private SpeechGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.speech.v1p1beta1.Speech"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor getRecognizeMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "Recognize", + requestType = com.google.cloud.speech.v1p1beta1.RecognizeRequest.class, + responseType = com.google.cloud.speech.v1p1beta1.RecognizeResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getRecognizeMethod() { + io.grpc.MethodDescriptor getRecognizeMethod; + if ((getRecognizeMethod = SpeechGrpc.getRecognizeMethod) == null) { + synchronized (SpeechGrpc.class) { + if ((getRecognizeMethod = SpeechGrpc.getRecognizeMethod) == null) { + SpeechGrpc.getRecognizeMethod = getRecognizeMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Recognize")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v1p1beta1.RecognizeRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v1p1beta1.RecognizeResponse.getDefaultInstance())) + .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("Recognize")) + .build(); + } + } + } + return getRecognizeMethod; + } + + private static volatile io.grpc.MethodDescriptor getLongRunningRecognizeMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "LongRunningRecognize", + requestType = com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getLongRunningRecognizeMethod() { + io.grpc.MethodDescriptor getLongRunningRecognizeMethod; + if ((getLongRunningRecognizeMethod = SpeechGrpc.getLongRunningRecognizeMethod) == null) { + synchronized (SpeechGrpc.class) { + if ((getLongRunningRecognizeMethod = SpeechGrpc.getLongRunningRecognizeMethod) == null) { + SpeechGrpc.getLongRunningRecognizeMethod = getLongRunningRecognizeMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "LongRunningRecognize")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("LongRunningRecognize")) + .build(); + } + } + } + return getLongRunningRecognizeMethod; + } + + private static volatile io.grpc.MethodDescriptor getStreamingRecognizeMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "StreamingRecognize", + requestType = com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest.class, + responseType = com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING) + public static io.grpc.MethodDescriptor getStreamingRecognizeMethod() { + io.grpc.MethodDescriptor getStreamingRecognizeMethod; + if ((getStreamingRecognizeMethod = SpeechGrpc.getStreamingRecognizeMethod) == null) { + synchronized (SpeechGrpc.class) { + if ((getStreamingRecognizeMethod = SpeechGrpc.getStreamingRecognizeMethod) == null) { + SpeechGrpc.getStreamingRecognizeMethod = getStreamingRecognizeMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StreamingRecognize")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.getDefaultInstance())) + .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("StreamingRecognize")) + .build(); + } + } + } + return getStreamingRecognizeMethod; + } + + /** + * Creates a new async stub that supports all call types for the service + */ + public static SpeechStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public SpeechStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SpeechStub(channel, callOptions); + } + }; + return SpeechStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static SpeechBlockingStub newBlockingStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public SpeechBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SpeechBlockingStub(channel, callOptions); + } + }; + return SpeechBlockingStub.newStub(factory, channel); + } + + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static SpeechFutureStub newFutureStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public SpeechFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SpeechFutureStub(channel, callOptions); + } + }; + return SpeechFutureStub.newStub(factory, channel); + } + + /** + *
+   * Service that implements Google Cloud Speech API.
+   * 
+ */ + public static abstract class SpeechImplBase implements io.grpc.BindableService { + + /** + *
+     * Performs synchronous speech recognition: receive results after all audio
+     * has been sent and processed.
+     * 
+ */ + public void recognize(com.google.cloud.speech.v1p1beta1.RecognizeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRecognizeMethod(), responseObserver); + } + + /** + *
+     * Performs asynchronous speech recognition: receive results via the
+     * google.longrunning.Operations interface. Returns either an
+     * `Operation.error` or an `Operation.response` which contains
+     * a `LongRunningRecognizeResponse` message.
+     * For more information on asynchronous speech recognition, see the
+     * [how-to](https://cloud.google.com/speech-to-text/docs/async-recognize).
+     * 
+ */ + public void longRunningRecognize(com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getLongRunningRecognizeMethod(), responseObserver); + } + + /** + *
+     * Performs bidirectional streaming speech recognition: receive results while
+     * sending audio. This method is only available via the gRPC API (not REST).
+     * 
+ */ + public io.grpc.stub.StreamObserver streamingRecognize( + io.grpc.stub.StreamObserver responseObserver) { + return io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall(getStreamingRecognizeMethod(), responseObserver); + } + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getRecognizeMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.speech.v1p1beta1.RecognizeRequest, + com.google.cloud.speech.v1p1beta1.RecognizeResponse>( + this, METHODID_RECOGNIZE))) + .addMethod( + getLongRunningRecognizeMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest, + com.google.longrunning.Operation>( + this, METHODID_LONG_RUNNING_RECOGNIZE))) + .addMethod( + getStreamingRecognizeMethod(), + io.grpc.stub.ServerCalls.asyncBidiStreamingCall( + new MethodHandlers< + com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest, + com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse>( + this, METHODID_STREAMING_RECOGNIZE))) + .build(); + } + } + + /** + *
+   * Service that implements Google Cloud Speech API.
+   * 
+ */ + public static final class SpeechStub extends io.grpc.stub.AbstractAsyncStub { + private SpeechStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected SpeechStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SpeechStub(channel, callOptions); + } + + /** + *
+     * Performs synchronous speech recognition: receive results after all audio
+     * has been sent and processed.
+     * 
+ */ + public void recognize(com.google.cloud.speech.v1p1beta1.RecognizeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getRecognizeMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Performs asynchronous speech recognition: receive results via the
+     * google.longrunning.Operations interface. Returns either an
+     * `Operation.error` or an `Operation.response` which contains
+     * a `LongRunningRecognizeResponse` message.
+     * For more information on asynchronous speech recognition, see the
+     * [how-to](https://cloud.google.com/speech-to-text/docs/async-recognize).
+     * 
+ */ + public void longRunningRecognize(com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getLongRunningRecognizeMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Performs bidirectional streaming speech recognition: receive results while
+     * sending audio. This method is only available via the gRPC API (not REST).
+     * 
+ */ + public io.grpc.stub.StreamObserver streamingRecognize( + io.grpc.stub.StreamObserver responseObserver) { + return io.grpc.stub.ClientCalls.asyncBidiStreamingCall( + getChannel().newCall(getStreamingRecognizeMethod(), getCallOptions()), responseObserver); + } + } + + /** + *
+   * Service that implements Google Cloud Speech API.
+   * 
+ */ + public static final class SpeechBlockingStub extends io.grpc.stub.AbstractBlockingStub { + private SpeechBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected SpeechBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SpeechBlockingStub(channel, callOptions); + } + + /** + *
+     * Performs synchronous speech recognition: receive results after all audio
+     * has been sent and processed.
+     * 
+ */ + public com.google.cloud.speech.v1p1beta1.RecognizeResponse recognize(com.google.cloud.speech.v1p1beta1.RecognizeRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getRecognizeMethod(), getCallOptions(), request); + } + + /** + *
+     * Performs asynchronous speech recognition: receive results via the
+     * google.longrunning.Operations interface. Returns either an
+     * `Operation.error` or an `Operation.response` which contains
+     * a `LongRunningRecognizeResponse` message.
+     * For more information on asynchronous speech recognition, see the
+     * [how-to](https://cloud.google.com/speech-to-text/docs/async-recognize).
+     * 
+ */ + public com.google.longrunning.Operation longRunningRecognize(com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getLongRunningRecognizeMethod(), getCallOptions(), request); + } + } + + /** + *
+   * Service that implements Google Cloud Speech API.
+   * 
+ */ + public static final class SpeechFutureStub extends io.grpc.stub.AbstractFutureStub { + private SpeechFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected SpeechFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SpeechFutureStub(channel, callOptions); + } + + /** + *
+     * Performs synchronous speech recognition: receive results after all audio
+     * has been sent and processed.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture recognize( + com.google.cloud.speech.v1p1beta1.RecognizeRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getRecognizeMethod(), getCallOptions()), request); + } + + /** + *
+     * Performs asynchronous speech recognition: receive results via the
+     * google.longrunning.Operations interface. Returns either an
+     * `Operation.error` or an `Operation.response` which contains
+     * a `LongRunningRecognizeResponse` message.
+     * For more information on asynchronous speech recognition, see the
+     * [how-to](https://cloud.google.com/speech-to-text/docs/async-recognize).
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture longRunningRecognize( + com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getLongRunningRecognizeMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_RECOGNIZE = 0; + private static final int METHODID_LONG_RUNNING_RECOGNIZE = 1; + private static final int METHODID_STREAMING_RECOGNIZE = 2; + + private static final class MethodHandlers implements + io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final SpeechImplBase serviceImpl; + private final int methodId; + + MethodHandlers(SpeechImplBase serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_RECOGNIZE: + serviceImpl.recognize((com.google.cloud.speech.v1p1beta1.RecognizeRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LONG_RUNNING_RECOGNIZE: + serviceImpl.longRunningRecognize((com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_STREAMING_RECOGNIZE: + return (io.grpc.stub.StreamObserver) serviceImpl.streamingRecognize( + (io.grpc.stub.StreamObserver) responseObserver); + default: + throw new AssertionError(); + } + } + } + + private static abstract class SpeechBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + SpeechBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("Speech"); + } + } + + private static final class SpeechFileDescriptorSupplier + extends SpeechBaseDescriptorSupplier { + SpeechFileDescriptorSupplier() {} + } + + private static final class SpeechMethodDescriptorSupplier + extends SpeechBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + SpeechMethodDescriptorSupplier(String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (SpeechGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new SpeechFileDescriptorSupplier()) + .addMethod(getRecognizeMethod()) + .addMethod(getLongRunningRecognizeMethod()) + .addMethod(getStreamingRecognizeMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreateCustomClassRequest.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreateCustomClassRequest.java similarity index 66% rename from proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreateCustomClassRequest.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreateCustomClassRequest.java index e504c5aec..4f3543180 100644 --- a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreateCustomClassRequest.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreateCustomClassRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech_adaptation.proto package com.google.cloud.speech.v1p1beta1; /** - * - * *
  * Message sent by the client for the `CreateCustomClass` method.
  * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.CreateCustomClassRequest} */ -public final class CreateCustomClassRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreateCustomClassRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v1p1beta1.CreateCustomClassRequest) CreateCustomClassRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateCustomClassRequest.newBuilder() to construct. private CreateCustomClassRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateCustomClassRequest() { parent_ = ""; customClassId_ = ""; @@ -44,15 +26,16 @@ private CreateCustomClassRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateCustomClassRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private CreateCustomClassRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,89 +54,78 @@ private CreateCustomClassRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - customClassId_ = s; - break; + customClassId_ = s; + break; + } + case 26: { + com.google.cloud.speech.v1p1beta1.CustomClass.Builder subBuilder = null; + if (customClass_ != null) { + subBuilder = customClass_.toBuilder(); } - case 26: - { - com.google.cloud.speech.v1p1beta1.CustomClass.Builder subBuilder = null; - if (customClass_ != null) { - subBuilder = customClass_.toBuilder(); - } - customClass_ = - input.readMessage( - com.google.cloud.speech.v1p1beta1.CustomClass.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(customClass_); - customClass_ = subBuilder.buildPartial(); - } - - break; + customClass_ = input.readMessage(com.google.cloud.speech.v1p1beta1.CustomClass.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(customClass_); + customClass_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto - .internal_static_google_cloud_speech_v1p1beta1_CreateCustomClassRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_CreateCustomClassRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto - .internal_static_google_cloud_speech_v1p1beta1_CreateCustomClassRequest_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_CreateCustomClassRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest.class, - com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest.Builder.class); + com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest.class, com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
-   * Required. The parent resource where this custom class will be created. Format:
+   * 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`
    * 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.
    * 
* - * - * string parent = 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 @@ -162,37 +134,36 @@ 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`
    * 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.
    * 
* - * - * string parent = 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 { @@ -203,8 +174,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int CUSTOM_CLASS_ID_FIELD_NUMBER = 2; private volatile java.lang.Object customClassId_; /** - * - * *
    * Required. The ID to use for the custom class, which will become the final
    * component of the custom class' resource name.
@@ -213,7 +182,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * string custom_class_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The customClassId. */ @java.lang.Override @@ -222,15 +190,14 @@ public java.lang.String getCustomClassId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); customClassId_ = s; return s; } } /** - * - * *
    * Required. The ID to use for the custom class, which will become the final
    * component of the custom class' resource name.
@@ -239,15 +206,16 @@ public java.lang.String getCustomClassId() {
    * 
* * string custom_class_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for customClassId. */ @java.lang.Override - public com.google.protobuf.ByteString getCustomClassIdBytes() { + public com.google.protobuf.ByteString + getCustomClassIdBytes() { java.lang.Object ref = customClassId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); customClassId_ = b; return b; } else { @@ -258,16 +226,11 @@ public com.google.protobuf.ByteString getCustomClassIdBytes() { public static final int CUSTOM_CLASS_FIELD_NUMBER = 3; private com.google.cloud.speech.v1p1beta1.CustomClass customClass_; /** - * - * *
    * Required. The custom class to create.
    * 
* - * - * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the customClass field is set. */ @java.lang.Override @@ -275,34 +238,23 @@ public boolean hasCustomClass() { return customClass_ != null; } /** - * - * *
    * Required. The custom class to create.
    * 
* - * - * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The customClass. */ @java.lang.Override public com.google.cloud.speech.v1p1beta1.CustomClass getCustomClass() { - return customClass_ == null - ? com.google.cloud.speech.v1p1beta1.CustomClass.getDefaultInstance() - : customClass_; + return customClass_ == null ? com.google.cloud.speech.v1p1beta1.CustomClass.getDefaultInstance() : customClass_; } /** - * - * *
    * Required. The custom class to create.
    * 
* - * - * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 3 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.speech.v1p1beta1.CustomClassOrBuilder getCustomClassOrBuilder() { @@ -310,7 +262,6 @@ public com.google.cloud.speech.v1p1beta1.CustomClassOrBuilder getCustomClassOrBu } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -322,7 +273,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -348,7 +300,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, customClassId_); } if (customClass_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCustomClass()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getCustomClass()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -358,19 +311,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest)) { return super.equals(obj); } - com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest other = - (com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest) obj; + com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest other = (com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (!getCustomClassId().equals(other.getCustomClassId())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (!getCustomClassId() + .equals(other.getCustomClassId())) return false; if (hasCustomClass() != other.hasCustomClass()) return false; if (hasCustomClass()) { - if (!getCustomClass().equals(other.getCustomClass())) return false; + if (!getCustomClass() + .equals(other.getCustomClass())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -397,127 +352,117 @@ public int hashCode() { } public static com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest prototype) { + public static Builder newBuilder(com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Message sent by the client for the `CreateCustomClass` method.
    * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.CreateCustomClassRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1p1beta1.CreateCustomClassRequest) com.google.cloud.speech.v1p1beta1.CreateCustomClassRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto - .internal_static_google_cloud_speech_v1p1beta1_CreateCustomClassRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_CreateCustomClassRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto - .internal_static_google_cloud_speech_v1p1beta1_CreateCustomClassRequest_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_CreateCustomClassRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest.class, - com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest.Builder.class); + com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest.class, com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest.Builder.class); } // Construct using com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest.newBuilder() @@ -525,15 +470,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -551,9 +497,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto - .internal_static_google_cloud_speech_v1p1beta1_CreateCustomClassRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_CreateCustomClassRequest_descriptor; } @java.lang.Override @@ -572,8 +518,7 @@ public com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest build() { @java.lang.Override public com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest buildPartial() { - com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest result = - new com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest(this); + com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest result = new com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest(this); result.parent_ = parent_; result.customClassId_ = customClassId_; if (customClassBuilder_ == null) { @@ -589,39 +534,38 @@ public com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest buildPartial() public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest) { - return mergeFrom((com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest) other); + return mergeFrom((com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest)other); } else { super.mergeFrom(other); return this; @@ -629,8 +573,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest other) { - if (other == com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -661,8 +604,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -674,28 +616,25 @@ public Builder mergeFrom( 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`
      * 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.
      * 
* - * - * string parent = 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; @@ -704,29 +643,27 @@ 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`
      * 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.
      * 
* - * - * string parent = 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 { @@ -734,85 +671,75 @@ 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`
      * 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.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
-     * Required. The parent resource where this custom class will be created. Format:
+     * 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`
      * 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.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
-     * Required. The parent resource where this custom class will be created. Format:
+     * 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`
      * 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.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -820,8 +747,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.
@@ -830,13 +755,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; @@ -845,8 +770,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.
@@ -855,14 +778,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 { @@ -870,8 +794,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.
@@ -880,22 +802,20 @@ public com.google.protobuf.ByteString getCustomClassIdBytes() {
      * 
* * string custom_class_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The customClassId to set. * @return This builder for chaining. */ - public Builder setCustomClassId(java.lang.String value) { + public Builder setCustomClassId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + customClassId_ = value; onChanged(); return this; } /** - * - * *
      * Required. The ID to use for the custom class, which will become the final
      * component of the custom class' resource name.
@@ -904,18 +824,15 @@ public Builder setCustomClassId(java.lang.String value) {
      * 
* * string custom_class_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearCustomClassId() { - + customClassId_ = getDefaultInstance().getCustomClassId(); onChanged(); return this; } /** - * - * *
      * Required. The ID to use for the custom class, which will become the final
      * component of the custom class' resource name.
@@ -924,16 +841,16 @@ public Builder clearCustomClassId() {
      * 
* * string custom_class_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for customClassId to set. * @return This builder for chaining. */ - public Builder setCustomClassIdBytes(com.google.protobuf.ByteString value) { + public Builder setCustomClassIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + customClassId_ = value; onChanged(); return this; @@ -941,58 +858,39 @@ public Builder setCustomClassIdBytes(com.google.protobuf.ByteString value) { private com.google.cloud.speech.v1p1beta1.CustomClass customClass_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.CustomClass, - com.google.cloud.speech.v1p1beta1.CustomClass.Builder, - com.google.cloud.speech.v1p1beta1.CustomClassOrBuilder> - customClassBuilder_; + com.google.cloud.speech.v1p1beta1.CustomClass, com.google.cloud.speech.v1p1beta1.CustomClass.Builder, com.google.cloud.speech.v1p1beta1.CustomClassOrBuilder> customClassBuilder_; /** - * - * *
      * Required. The custom class to create.
      * 
* - * - * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the customClass field is set. */ public boolean hasCustomClass() { return customClassBuilder_ != null || customClass_ != null; } /** - * - * *
      * Required. The custom class to create.
      * 
* - * - * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The customClass. */ public com.google.cloud.speech.v1p1beta1.CustomClass getCustomClass() { if (customClassBuilder_ == null) { - return customClass_ == null - ? com.google.cloud.speech.v1p1beta1.CustomClass.getDefaultInstance() - : customClass_; + return customClass_ == null ? com.google.cloud.speech.v1p1beta1.CustomClass.getDefaultInstance() : customClass_; } else { return customClassBuilder_.getMessage(); } } /** - * - * *
      * Required. The custom class to create.
      * 
* - * - * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setCustomClass(com.google.cloud.speech.v1p1beta1.CustomClass value) { if (customClassBuilder_ == null) { @@ -1008,15 +906,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) { @@ -1030,23 +924,17 @@ public Builder setCustomClass( return this; } /** - * - * *
      * Required. The custom class to create.
      * 
* - * - * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeCustomClass(com.google.cloud.speech.v1p1beta1.CustomClass value) { if (customClassBuilder_ == null) { if (customClass_ != null) { customClass_ = - com.google.cloud.speech.v1p1beta1.CustomClass.newBuilder(customClass_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.speech.v1p1beta1.CustomClass.newBuilder(customClass_).mergeFrom(value).buildPartial(); } else { customClass_ = value; } @@ -1058,15 +946,11 @@ public Builder mergeCustomClass(com.google.cloud.speech.v1p1beta1.CustomClass va return this; } /** - * - * *
      * Required. The custom class to create.
      * 
* - * - * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearCustomClass() { if (customClassBuilder_ == null) { @@ -1080,71 +964,55 @@ public Builder clearCustomClass() { return this; } /** - * - * *
      * Required. The custom class to create.
      * 
* - * - * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.speech.v1p1beta1.CustomClass.Builder getCustomClassBuilder() { - + onChanged(); return getCustomClassFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The custom class to create.
      * 
* - * - * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.speech.v1p1beta1.CustomClassOrBuilder getCustomClassOrBuilder() { if (customClassBuilder_ != null) { return customClassBuilder_.getMessageOrBuilder(); } else { - return customClass_ == null - ? com.google.cloud.speech.v1p1beta1.CustomClass.getDefaultInstance() - : customClass_; + return customClass_ == null ? + com.google.cloud.speech.v1p1beta1.CustomClass.getDefaultInstance() : customClass_; } } /** - * - * *
      * Required. The custom class to create.
      * 
* - * - * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 3 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.CustomClass, - com.google.cloud.speech.v1p1beta1.CustomClass.Builder, - com.google.cloud.speech.v1p1beta1.CustomClassOrBuilder> + com.google.cloud.speech.v1p1beta1.CustomClass, com.google.cloud.speech.v1p1beta1.CustomClass.Builder, com.google.cloud.speech.v1p1beta1.CustomClassOrBuilder> getCustomClassFieldBuilder() { if (customClassBuilder_ == null) { - customClassBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.CustomClass, - com.google.cloud.speech.v1p1beta1.CustomClass.Builder, - com.google.cloud.speech.v1p1beta1.CustomClassOrBuilder>( - getCustomClass(), getParentForChildren(), isClean()); + customClassBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v1p1beta1.CustomClass, com.google.cloud.speech.v1p1beta1.CustomClass.Builder, com.google.cloud.speech.v1p1beta1.CustomClassOrBuilder>( + getCustomClass(), + getParentForChildren(), + isClean()); customClass_ = null; } return customClassBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1154,12 +1022,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(); } @@ -1168,16 +1036,16 @@ public static com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateCustomClassRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateCustomClassRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateCustomClassRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateCustomClassRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1192,4 +1060,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreateCustomClassRequestOrBuilder.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreateCustomClassRequestOrBuilder.java similarity index 58% rename from proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreateCustomClassRequestOrBuilder.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreateCustomClassRequestOrBuilder.java index 7380bc4df..9052226ab 100644 --- a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreateCustomClassRequestOrBuilder.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreateCustomClassRequestOrBuilder.java @@ -1,72 +1,47 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific 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`
    * 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.
    * 
* - * - * string parent = 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`
    * 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.
    * 
* - * - * string parent = 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/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreatePhraseSetRequest.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreatePhraseSetRequest.java similarity index 66% rename from proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreatePhraseSetRequest.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreatePhraseSetRequest.java index 8fcbc6727..3ca0a6e05 100644 --- a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreatePhraseSetRequest.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreatePhraseSetRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech_adaptation.proto package com.google.cloud.speech.v1p1beta1; /** - * - * *
  * Message sent by the client for the `CreatePhraseSet` method.
  * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.CreatePhraseSetRequest} */ -public final class CreatePhraseSetRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreatePhraseSetRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v1p1beta1.CreatePhraseSetRequest) CreatePhraseSetRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreatePhraseSetRequest.newBuilder() to construct. private CreatePhraseSetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreatePhraseSetRequest() { parent_ = ""; phraseSetId_ = ""; @@ -44,15 +26,16 @@ private CreatePhraseSetRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreatePhraseSetRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private CreatePhraseSetRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,89 +54,78 @@ private CreatePhraseSetRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - phraseSetId_ = s; - break; + phraseSetId_ = s; + break; + } + case 26: { + com.google.cloud.speech.v1p1beta1.PhraseSet.Builder subBuilder = null; + if (phraseSet_ != null) { + subBuilder = phraseSet_.toBuilder(); } - case 26: - { - com.google.cloud.speech.v1p1beta1.PhraseSet.Builder subBuilder = null; - if (phraseSet_ != null) { - subBuilder = phraseSet_.toBuilder(); - } - phraseSet_ = - input.readMessage( - com.google.cloud.speech.v1p1beta1.PhraseSet.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(phraseSet_); - phraseSet_ = subBuilder.buildPartial(); - } - - break; + phraseSet_ = input.readMessage(com.google.cloud.speech.v1p1beta1.PhraseSet.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(phraseSet_); + phraseSet_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto - .internal_static_google_cloud_speech_v1p1beta1_CreatePhraseSetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_CreatePhraseSetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto - .internal_static_google_cloud_speech_v1p1beta1_CreatePhraseSetRequest_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_CreatePhraseSetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest.class, - com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest.Builder.class); + com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest.class, com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
-   * Required. The parent resource where this phrase set will be created. Format:
+   * 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`
    * 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.
    * 
* - * - * string parent = 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 @@ -162,37 +134,36 @@ 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`
    * 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.
    * 
* - * - * string parent = 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 { @@ -203,8 +174,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PHRASE_SET_ID_FIELD_NUMBER = 2; private volatile java.lang.Object phraseSetId_; /** - * - * *
    * Required. The ID to use for the phrase set, which will become the final
    * component of the phrase set's resource name.
@@ -213,7 +182,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * string phrase_set_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The phraseSetId. */ @java.lang.Override @@ -222,15 +190,14 @@ public java.lang.String getPhraseSetId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); phraseSetId_ = s; return s; } } /** - * - * *
    * Required. The ID to use for the phrase set, which will become the final
    * component of the phrase set's resource name.
@@ -239,15 +206,16 @@ public java.lang.String getPhraseSetId() {
    * 
* * string phrase_set_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for phraseSetId. */ @java.lang.Override - public com.google.protobuf.ByteString getPhraseSetIdBytes() { + public com.google.protobuf.ByteString + getPhraseSetIdBytes() { java.lang.Object ref = phraseSetId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); phraseSetId_ = b; return b; } else { @@ -258,16 +226,11 @@ public com.google.protobuf.ByteString getPhraseSetIdBytes() { public static final int PHRASE_SET_FIELD_NUMBER = 3; private com.google.cloud.speech.v1p1beta1.PhraseSet phraseSet_; /** - * - * *
    * Required. The phrase set to create.
    * 
* - * - * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the phraseSet field is set. */ @java.lang.Override @@ -275,34 +238,23 @@ public boolean hasPhraseSet() { return phraseSet_ != null; } /** - * - * *
    * Required. The phrase set to create.
    * 
* - * - * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The phraseSet. */ @java.lang.Override public com.google.cloud.speech.v1p1beta1.PhraseSet getPhraseSet() { - return phraseSet_ == null - ? com.google.cloud.speech.v1p1beta1.PhraseSet.getDefaultInstance() - : phraseSet_; + return phraseSet_ == null ? com.google.cloud.speech.v1p1beta1.PhraseSet.getDefaultInstance() : phraseSet_; } /** - * - * *
    * Required. The phrase set to create.
    * 
* - * - * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 3 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.speech.v1p1beta1.PhraseSetOrBuilder getPhraseSetOrBuilder() { @@ -310,7 +262,6 @@ public com.google.cloud.speech.v1p1beta1.PhraseSetOrBuilder getPhraseSetOrBuilde } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -322,7 +273,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -348,7 +300,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, phraseSetId_); } if (phraseSet_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getPhraseSet()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getPhraseSet()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -358,19 +311,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest)) { return super.equals(obj); } - com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest other = - (com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest) obj; + com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest other = (com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (!getPhraseSetId().equals(other.getPhraseSetId())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (!getPhraseSetId() + .equals(other.getPhraseSetId())) return false; if (hasPhraseSet() != other.hasPhraseSet()) return false; if (hasPhraseSet()) { - if (!getPhraseSet().equals(other.getPhraseSet())) return false; + if (!getPhraseSet() + .equals(other.getPhraseSet())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -397,127 +352,117 @@ public int hashCode() { } public static com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest prototype) { + public static Builder newBuilder(com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Message sent by the client for the `CreatePhraseSet` method.
    * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.CreatePhraseSetRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1p1beta1.CreatePhraseSetRequest) com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto - .internal_static_google_cloud_speech_v1p1beta1_CreatePhraseSetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_CreatePhraseSetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto - .internal_static_google_cloud_speech_v1p1beta1_CreatePhraseSetRequest_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_CreatePhraseSetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest.class, - com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest.Builder.class); + com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest.class, com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest.Builder.class); } // Construct using com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest.newBuilder() @@ -525,15 +470,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -551,9 +497,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto - .internal_static_google_cloud_speech_v1p1beta1_CreatePhraseSetRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_CreatePhraseSetRequest_descriptor; } @java.lang.Override @@ -572,8 +518,7 @@ public com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest build() { @java.lang.Override public com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest buildPartial() { - com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest result = - new com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest(this); + com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest result = new com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest(this); result.parent_ = parent_; result.phraseSetId_ = phraseSetId_; if (phraseSetBuilder_ == null) { @@ -589,39 +534,38 @@ public com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest) { - return mergeFrom((com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest) other); + return mergeFrom((com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest)other); } else { super.mergeFrom(other); return this; @@ -629,8 +573,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest other) { - if (other == com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -661,8 +604,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -674,28 +616,25 @@ public Builder mergeFrom( 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`
      * 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.
      * 
* - * - * string parent = 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; @@ -704,29 +643,27 @@ 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`
      * 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.
      * 
* - * - * string parent = 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 { @@ -734,85 +671,75 @@ 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`
      * 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.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
-     * Required. The parent resource where this phrase set will be created. Format:
+     * 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`
      * 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.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
-     * Required. The parent resource where this phrase set will be created. Format:
+     * 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`
      * 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.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -820,8 +747,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.
@@ -830,13 +755,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; @@ -845,8 +770,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.
@@ -855,14 +778,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 { @@ -870,8 +794,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.
@@ -880,22 +802,20 @@ public com.google.protobuf.ByteString getPhraseSetIdBytes() {
      * 
* * string phrase_set_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The phraseSetId to set. * @return This builder for chaining. */ - public Builder setPhraseSetId(java.lang.String value) { + public Builder setPhraseSetId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + phraseSetId_ = value; onChanged(); return this; } /** - * - * *
      * Required. The ID to use for the phrase set, which will become the final
      * component of the phrase set's resource name.
@@ -904,18 +824,15 @@ public Builder setPhraseSetId(java.lang.String value) {
      * 
* * string phrase_set_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearPhraseSetId() { - + phraseSetId_ = getDefaultInstance().getPhraseSetId(); onChanged(); return this; } /** - * - * *
      * Required. The ID to use for the phrase set, which will become the final
      * component of the phrase set's resource name.
@@ -924,16 +841,16 @@ public Builder clearPhraseSetId() {
      * 
* * string phrase_set_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for phraseSetId to set. * @return This builder for chaining. */ - public Builder setPhraseSetIdBytes(com.google.protobuf.ByteString value) { + public Builder setPhraseSetIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + phraseSetId_ = value; onChanged(); return this; @@ -941,58 +858,39 @@ public Builder setPhraseSetIdBytes(com.google.protobuf.ByteString value) { private com.google.cloud.speech.v1p1beta1.PhraseSet phraseSet_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.PhraseSet, - com.google.cloud.speech.v1p1beta1.PhraseSet.Builder, - com.google.cloud.speech.v1p1beta1.PhraseSetOrBuilder> - phraseSetBuilder_; + com.google.cloud.speech.v1p1beta1.PhraseSet, com.google.cloud.speech.v1p1beta1.PhraseSet.Builder, com.google.cloud.speech.v1p1beta1.PhraseSetOrBuilder> phraseSetBuilder_; /** - * - * *
      * Required. The phrase set to create.
      * 
* - * - * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the phraseSet field is set. */ public boolean hasPhraseSet() { return phraseSetBuilder_ != null || phraseSet_ != null; } /** - * - * *
      * Required. The phrase set to create.
      * 
* - * - * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The phraseSet. */ public com.google.cloud.speech.v1p1beta1.PhraseSet getPhraseSet() { if (phraseSetBuilder_ == null) { - return phraseSet_ == null - ? com.google.cloud.speech.v1p1beta1.PhraseSet.getDefaultInstance() - : phraseSet_; + return phraseSet_ == null ? com.google.cloud.speech.v1p1beta1.PhraseSet.getDefaultInstance() : phraseSet_; } else { return phraseSetBuilder_.getMessage(); } } /** - * - * *
      * Required. The phrase set to create.
      * 
* - * - * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setPhraseSet(com.google.cloud.speech.v1p1beta1.PhraseSet value) { if (phraseSetBuilder_ == null) { @@ -1008,15 +906,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) { @@ -1030,23 +924,17 @@ public Builder setPhraseSet( return this; } /** - * - * *
      * Required. The phrase set to create.
      * 
* - * - * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergePhraseSet(com.google.cloud.speech.v1p1beta1.PhraseSet value) { if (phraseSetBuilder_ == null) { if (phraseSet_ != null) { phraseSet_ = - com.google.cloud.speech.v1p1beta1.PhraseSet.newBuilder(phraseSet_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.speech.v1p1beta1.PhraseSet.newBuilder(phraseSet_).mergeFrom(value).buildPartial(); } else { phraseSet_ = value; } @@ -1058,15 +946,11 @@ public Builder mergePhraseSet(com.google.cloud.speech.v1p1beta1.PhraseSet value) return this; } /** - * - * *
      * Required. The phrase set to create.
      * 
* - * - * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearPhraseSet() { if (phraseSetBuilder_ == null) { @@ -1080,71 +964,55 @@ public Builder clearPhraseSet() { return this; } /** - * - * *
      * Required. The phrase set to create.
      * 
* - * - * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.speech.v1p1beta1.PhraseSet.Builder getPhraseSetBuilder() { - + onChanged(); return getPhraseSetFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The phrase set to create.
      * 
* - * - * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.speech.v1p1beta1.PhraseSetOrBuilder getPhraseSetOrBuilder() { if (phraseSetBuilder_ != null) { return phraseSetBuilder_.getMessageOrBuilder(); } else { - return phraseSet_ == null - ? com.google.cloud.speech.v1p1beta1.PhraseSet.getDefaultInstance() - : phraseSet_; + return phraseSet_ == null ? + com.google.cloud.speech.v1p1beta1.PhraseSet.getDefaultInstance() : phraseSet_; } } /** - * - * *
      * Required. The phrase set to create.
      * 
* - * - * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 3 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.PhraseSet, - com.google.cloud.speech.v1p1beta1.PhraseSet.Builder, - com.google.cloud.speech.v1p1beta1.PhraseSetOrBuilder> + com.google.cloud.speech.v1p1beta1.PhraseSet, com.google.cloud.speech.v1p1beta1.PhraseSet.Builder, com.google.cloud.speech.v1p1beta1.PhraseSetOrBuilder> getPhraseSetFieldBuilder() { if (phraseSetBuilder_ == null) { - phraseSetBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.PhraseSet, - com.google.cloud.speech.v1p1beta1.PhraseSet.Builder, - com.google.cloud.speech.v1p1beta1.PhraseSetOrBuilder>( - getPhraseSet(), getParentForChildren(), isClean()); + phraseSetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v1p1beta1.PhraseSet, com.google.cloud.speech.v1p1beta1.PhraseSet.Builder, com.google.cloud.speech.v1p1beta1.PhraseSetOrBuilder>( + getPhraseSet(), + getParentForChildren(), + isClean()); phraseSet_ = null; } return phraseSetBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1154,12 +1022,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(); } @@ -1168,16 +1036,16 @@ public static com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreatePhraseSetRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreatePhraseSetRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreatePhraseSetRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreatePhraseSetRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1192,4 +1060,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreatePhraseSetRequestOrBuilder.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreatePhraseSetRequestOrBuilder.java similarity index 58% rename from proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreatePhraseSetRequestOrBuilder.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreatePhraseSetRequestOrBuilder.java index c5e1da3ee..70540b9c8 100644 --- a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreatePhraseSetRequestOrBuilder.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreatePhraseSetRequestOrBuilder.java @@ -1,72 +1,47 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific 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`
    * 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.
    * 
* - * - * string parent = 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`
    * 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.
    * 
* - * - * string parent = 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/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CustomClass.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CustomClass.java similarity index 74% rename from proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CustomClass.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CustomClass.java index cd805e892..81c2dec7e 100644 --- a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CustomClass.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CustomClass.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/resource.proto package com.google.cloud.speech.v1p1beta1; /** - * - * *
  * A set of words or phrases that represents a common concept likely to appear
  * in your audio, for example a list of passenger ship names. CustomClass items
@@ -29,16 +12,15 @@
  *
  * Protobuf type {@code google.cloud.speech.v1p1beta1.CustomClass}
  */
-public final class CustomClass extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class CustomClass extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.speech.v1p1beta1.CustomClass)
     CustomClassOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use CustomClass.newBuilder() to construct.
   private CustomClass(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private CustomClass() {
     name_ = "";
     customClassId_ = "";
@@ -47,15 +29,16 @@ private CustomClass() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new CustomClass();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private CustomClass(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -75,47 +58,41 @@ private CustomClass(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              name_ = s;
-              break;
-            }
-          case 18:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            name_ = s;
+            break;
+          }
+          case 18: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              customClassId_ = s;
-              break;
-            }
-          case 26:
-            {
-              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                items_ =
-                    new java.util.ArrayList<
-                        com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem>();
-                mutable_bitField0_ |= 0x00000001;
-              }
-              items_.add(
-                  input.readMessage(
-                      com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem.parser(),
-                      extensionRegistry));
-              break;
+            customClassId_ = s;
+            break;
+          }
+          case 26: {
+            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+              items_ = new java.util.ArrayList();
+              mutable_bitField0_ |= 0x00000001;
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            items_.add(
+                input.readMessage(com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem.parser(), extensionRegistry));
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         items_ = java.util.Collections.unmodifiableList(items_);
@@ -124,86 +101,75 @@ private CustomClass(
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.speech.v1p1beta1.SpeechResourceProto
-        .internal_static_google_cloud_speech_v1p1beta1_CustomClass_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.speech.v1p1beta1.SpeechResourceProto.internal_static_google_cloud_speech_v1p1beta1_CustomClass_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v1p1beta1.SpeechResourceProto
-        .internal_static_google_cloud_speech_v1p1beta1_CustomClass_fieldAccessorTable
+    return com.google.cloud.speech.v1p1beta1.SpeechResourceProto.internal_static_google_cloud_speech_v1p1beta1_CustomClass_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v1p1beta1.CustomClass.class,
-            com.google.cloud.speech.v1p1beta1.CustomClass.Builder.class);
+            com.google.cloud.speech.v1p1beta1.CustomClass.class, com.google.cloud.speech.v1p1beta1.CustomClass.Builder.class);
   }
 
-  public interface ClassItemOrBuilder
-      extends
+  public interface ClassItemOrBuilder extends
       // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1p1beta1.CustomClass.ClassItem)
       com.google.protobuf.MessageOrBuilder {
 
     /**
-     *
-     *
      * 
      * The class item's value.
      * 
* * string value = 1; - * * @return The value. */ java.lang.String getValue(); /** - * - * *
      * The class item's value.
      * 
* * string value = 1; - * * @return The bytes for value. */ - com.google.protobuf.ByteString getValueBytes(); + com.google.protobuf.ByteString + getValueBytes(); } /** - * - * *
    * An item of the class.
    * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.CustomClass.ClassItem} */ - public static final class ClassItem extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class ClassItem extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v1p1beta1.CustomClass.ClassItem) ClassItemOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ClassItem.newBuilder() to construct. private ClassItem(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ClassItem() { value_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ClassItem(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ClassItem( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -222,58 +188,52 @@ private ClassItem( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - value_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + value_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechResourceProto - .internal_static_google_cloud_speech_v1p1beta1_CustomClass_ClassItem_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechResourceProto.internal_static_google_cloud_speech_v1p1beta1_CustomClass_ClassItem_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechResourceProto - .internal_static_google_cloud_speech_v1p1beta1_CustomClass_ClassItem_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechResourceProto.internal_static_google_cloud_speech_v1p1beta1_CustomClass_ClassItem_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem.class, - com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem.Builder.class); + com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem.class, com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem.Builder.class); } public static final int VALUE_FIELD_NUMBER = 1; private volatile java.lang.Object value_; /** - * - * *
      * The class item's value.
      * 
* * string value = 1; - * * @return The value. */ @java.lang.Override @@ -282,29 +242,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 { @@ -313,7 +273,6 @@ public com.google.protobuf.ByteString getValueBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -325,7 +284,8 @@ public final boolean isInitialized() { } @java.lang.Override - public 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_); } @@ -349,15 +309,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem)) { return super.equals(obj); } - com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem other = - (com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem) obj; + com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem other = (com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem) obj; - if (!getValue().equals(other.getValue())) return false; + if (!getValue() + .equals(other.getValue())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -377,94 +337,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 @@ -474,32 +427,27 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * An item of the class.
      * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.CustomClass.ClassItem} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1p1beta1.CustomClass.ClassItem) com.google.cloud.speech.v1p1beta1.CustomClass.ClassItemOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechResourceProto - .internal_static_google_cloud_speech_v1p1beta1_CustomClass_ClassItem_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechResourceProto.internal_static_google_cloud_speech_v1p1beta1_CustomClass_ClassItem_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechResourceProto - .internal_static_google_cloud_speech_v1p1beta1_CustomClass_ClassItem_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechResourceProto.internal_static_google_cloud_speech_v1p1beta1_CustomClass_ClassItem_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem.class, - com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem.Builder.class); + com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem.class, com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem.Builder.class); } // Construct using com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem.newBuilder() @@ -507,15 +455,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -525,9 +474,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 @@ -546,8 +495,7 @@ public com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem build() { @java.lang.Override public com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem buildPartial() { - com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem result = - new com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem(this); + com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem result = new com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem(this); result.value_ = value_; onBuilt(); return result; @@ -557,41 +505,38 @@ public com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem) { - return mergeFrom((com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem) other); + return mergeFrom((com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem)other); } else { super.mergeFrom(other); return this; @@ -599,8 +544,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem other) { - if (other == com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem.getDefaultInstance()) - return this; + if (other == com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem.getDefaultInstance()) return this; if (!other.getValue().isEmpty()) { value_ = other.value_; onChanged(); @@ -624,8 +568,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -637,20 +580,18 @@ public Builder mergeFrom( private java.lang.Object value_ = ""; /** - * - * *
        * The class item's value.
        * 
* * string value = 1; - * * @return The value. */ public java.lang.String getValue() { java.lang.Object ref = value_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); value_ = s; return s; @@ -659,21 +600,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 { @@ -681,66 +621,58 @@ public com.google.protobuf.ByteString getValueBytes() { } } /** - * - * *
        * The class item's value.
        * 
* * string value = 1; - * * @param value The value to set. * @return This builder for chaining. */ - public Builder setValue(java.lang.String value) { + public Builder setValue( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + value_ = value; onChanged(); return this; } /** - * - * *
        * The class item's value.
        * 
* * string value = 1; - * * @return This builder for chaining. */ public Builder clearValue() { - + value_ = getDefaultInstance().getValue(); onChanged(); return this; } /** - * - * *
        * The class item's value.
        * 
* * string value = 1; - * * @param value The bytes for value to set. * @return This builder for chaining. */ - public Builder setValueBytes(com.google.protobuf.ByteString value) { + public Builder setValueBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + value_ = value; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -753,12 +685,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(); } @@ -767,16 +699,16 @@ public static com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ClassItem parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ClassItem(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ClassItem parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ClassItem(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -791,19 +723,17 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * The resource name of the custom class.
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -812,29 +742,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 { @@ -845,15 +775,12 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int CUSTOM_CLASS_ID_FIELD_NUMBER = 2; private volatile java.lang.Object customClassId_; /** - * - * *
    * If this custom class is a resource, the custom_class_id is the resource id
    * of the CustomClass. Case sensitive.
    * 
* * string custom_class_id = 2; - * * @return The customClassId. */ @java.lang.Override @@ -862,30 +789,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 { @@ -896,8 +823,6 @@ public com.google.protobuf.ByteString getCustomClassIdBytes() { public static final int ITEMS_FIELD_NUMBER = 3; private java.util.List items_; /** - * - * *
    * A collection of class items.
    * 
@@ -909,8 +834,6 @@ public java.util.List g return items_; } /** - * - * *
    * A collection of class items.
    * 
@@ -918,13 +841,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.
    * 
@@ -936,8 +857,6 @@ public int getItemsCount() { return items_.size(); } /** - * - * *
    * A collection of class items.
    * 
@@ -949,8 +868,6 @@ public com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem getItems(int inde return items_.get(index); } /** - * - * *
    * A collection of class items.
    * 
@@ -964,7 +881,6 @@ public com.google.cloud.speech.v1p1beta1.CustomClass.ClassItemOrBuilder getItems } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -976,7 +892,8 @@ public final boolean isInitialized() { } @java.lang.Override - public 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_); } @@ -1002,7 +919,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, customClassId_); } for (int i = 0; i < items_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, items_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, items_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1012,17 +930,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1p1beta1.CustomClass)) { return super.equals(obj); } - com.google.cloud.speech.v1p1beta1.CustomClass other = - (com.google.cloud.speech.v1p1beta1.CustomClass) obj; + com.google.cloud.speech.v1p1beta1.CustomClass other = (com.google.cloud.speech.v1p1beta1.CustomClass) obj; - if (!getName().equals(other.getName())) return false; - if (!getCustomClassId().equals(other.getCustomClassId())) return false; - if (!getItemsList().equals(other.getItemsList())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getCustomClassId() + .equals(other.getCustomClassId())) return false; + if (!getItemsList() + .equals(other.getItemsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1047,104 +967,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
@@ -1153,23 +1066,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.speech.v1p1beta1.CustomClass}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1p1beta1.CustomClass)
       com.google.cloud.speech.v1p1beta1.CustomClassOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.speech.v1p1beta1.SpeechResourceProto
-          .internal_static_google_cloud_speech_v1p1beta1_CustomClass_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.speech.v1p1beta1.SpeechResourceProto.internal_static_google_cloud_speech_v1p1beta1_CustomClass_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v1p1beta1.SpeechResourceProto
-          .internal_static_google_cloud_speech_v1p1beta1_CustomClass_fieldAccessorTable
+      return com.google.cloud.speech.v1p1beta1.SpeechResourceProto.internal_static_google_cloud_speech_v1p1beta1_CustomClass_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v1p1beta1.CustomClass.class,
-              com.google.cloud.speech.v1p1beta1.CustomClass.Builder.class);
+              com.google.cloud.speech.v1p1beta1.CustomClass.class, com.google.cloud.speech.v1p1beta1.CustomClass.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v1p1beta1.CustomClass.newBuilder()
@@ -1177,17 +1088,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
         getItemsFieldBuilder();
       }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1205,9 +1116,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
@@ -1226,8 +1137,7 @@ public com.google.cloud.speech.v1p1beta1.CustomClass build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v1p1beta1.CustomClass buildPartial() {
-      com.google.cloud.speech.v1p1beta1.CustomClass result =
-          new com.google.cloud.speech.v1p1beta1.CustomClass(this);
+      com.google.cloud.speech.v1p1beta1.CustomClass result = new com.google.cloud.speech.v1p1beta1.CustomClass(this);
       int from_bitField0_ = bitField0_;
       result.name_ = name_;
       result.customClassId_ = customClassId_;
@@ -1248,39 +1158,38 @@ public com.google.cloud.speech.v1p1beta1.CustomClass buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.speech.v1p1beta1.CustomClass) {
-        return mergeFrom((com.google.cloud.speech.v1p1beta1.CustomClass) other);
+        return mergeFrom((com.google.cloud.speech.v1p1beta1.CustomClass)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1315,10 +1224,9 @@ public Builder mergeFrom(com.google.cloud.speech.v1p1beta1.CustomClass other) {
             itemsBuilder_ = null;
             items_ = other.items_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            itemsBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getItemsFieldBuilder()
-                    : null;
+            itemsBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getItemsFieldBuilder() : null;
           } else {
             itemsBuilder_.addAllMessages(other.items_);
           }
@@ -1352,25 +1260,22 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * The resource name of the custom class.
      * 
* * string name = 1; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1379,21 +1284,20 @@ public java.lang.String getName() { } } /** - * - * *
      * The resource name of the custom class.
      * 
* * string name = 1; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -1401,61 +1305,54 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * The resource name of the custom class.
      * 
* * string name = 1; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * The resource name of the custom class.
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * The resource name of the custom class.
      * 
* * string name = 1; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -1463,21 +1360,19 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object customClassId_ = ""; /** - * - * *
      * If this custom class is a resource, the custom_class_id is the resource id
      * of the CustomClass. Case sensitive.
      * 
* * string custom_class_id = 2; - * * @return The customClassId. */ public java.lang.String getCustomClassId() { java.lang.Object ref = customClassId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); customClassId_ = s; return s; @@ -1486,22 +1381,21 @@ public java.lang.String getCustomClassId() { } } /** - * - * *
      * If this custom class is a resource, the custom_class_id is the resource id
      * of the CustomClass. Case sensitive.
      * 
* * string custom_class_id = 2; - * * @return The bytes for customClassId. */ - public com.google.protobuf.ByteString getCustomClassIdBytes() { + public com.google.protobuf.ByteString + getCustomClassIdBytes() { java.lang.Object ref = customClassId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); customClassId_ = b; return b; } else { @@ -1509,90 +1403,75 @@ public com.google.protobuf.ByteString getCustomClassIdBytes() { } } /** - * - * *
      * If this custom class is a resource, the custom_class_id is the resource id
      * of the CustomClass. Case sensitive.
      * 
* * string custom_class_id = 2; - * * @param value The customClassId to set. * @return This builder for chaining. */ - public Builder setCustomClassId(java.lang.String value) { + public Builder setCustomClassId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + customClassId_ = value; onChanged(); return this; } /** - * - * *
      * If this custom class is a resource, the custom_class_id is the resource id
      * of the CustomClass. Case sensitive.
      * 
* * string custom_class_id = 2; - * * @return This builder for chaining. */ public Builder clearCustomClassId() { - + customClassId_ = getDefaultInstance().getCustomClassId(); onChanged(); return this; } /** - * - * *
      * If this custom class is a resource, the custom_class_id is the resource id
      * of the CustomClass. Case sensitive.
      * 
* * string custom_class_id = 2; - * * @param value The bytes for customClassId to set. * @return This builder for chaining. */ - public Builder setCustomClassIdBytes(com.google.protobuf.ByteString value) { + public Builder setCustomClassIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + customClassId_ = value; onChanged(); return this; } private java.util.List items_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureItemsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - items_ = - new java.util.ArrayList( - items_); + items_ = new java.util.ArrayList(items_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem, - com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem.Builder, - com.google.cloud.speech.v1p1beta1.CustomClass.ClassItemOrBuilder> - itemsBuilder_; + com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem, com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem.Builder, com.google.cloud.speech.v1p1beta1.CustomClass.ClassItemOrBuilder> itemsBuilder_; /** - * - * *
      * A collection of class items.
      * 
@@ -1607,8 +1486,6 @@ public java.util.List g } } /** - * - * *
      * A collection of class items.
      * 
@@ -1623,8 +1500,6 @@ public int getItemsCount() { } } /** - * - * *
      * A collection of class items.
      * 
@@ -1639,8 +1514,6 @@ public com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem getItems(int inde } } /** - * - * *
      * A collection of class items.
      * 
@@ -1662,8 +1535,6 @@ public Builder setItems( return this; } /** - * - * *
      * A collection of class items.
      * 
@@ -1671,8 +1542,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()); @@ -1683,8 +1553,6 @@ public Builder setItems( return this; } /** - * - * *
      * A collection of class items.
      * 
@@ -1705,8 +1573,6 @@ public Builder addItems(com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem return this; } /** - * - * *
      * A collection of class items.
      * 
@@ -1728,8 +1594,6 @@ public Builder addItems( return this; } /** - * - * *
      * A collection of class items.
      * 
@@ -1748,8 +1612,6 @@ public Builder addItems( return this; } /** - * - * *
      * A collection of class items.
      * 
@@ -1757,8 +1619,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()); @@ -1769,8 +1630,6 @@ public Builder addItems( return this; } /** - * - * *
      * A collection of class items.
      * 
@@ -1778,11 +1637,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); @@ -1790,8 +1649,6 @@ public Builder addAllItems( return this; } /** - * - * *
      * A collection of class items.
      * 
@@ -1809,8 +1666,6 @@ public Builder clearItems() { return this; } /** - * - * *
      * A collection of class items.
      * 
@@ -1828,8 +1683,6 @@ public Builder removeItems(int index) { return this; } /** - * - * *
      * A collection of class items.
      * 
@@ -1841,8 +1694,6 @@ public com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem.Builder getItemsB return getItemsFieldBuilder().getBuilder(index); } /** - * - * *
      * A collection of class items.
      * 
@@ -1852,23 +1703,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 { @@ -1876,8 +1723,6 @@ public com.google.cloud.speech.v1p1beta1.CustomClass.ClassItemOrBuilder getItems } } /** - * - * *
      * A collection of class items.
      * 
@@ -1885,12 +1730,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.
      * 
@@ -1899,43 +1742,37 @@ public com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem.Builder addItemsB */ public com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem.Builder addItemsBuilder( int index) { - return getItemsFieldBuilder() - .addBuilder( - index, com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem.getDefaultInstance()); + return getItemsFieldBuilder().addBuilder( + index, com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem.getDefaultInstance()); } /** - * - * *
      * A collection of class items.
      * 
* * repeated .google.cloud.speech.v1p1beta1.CustomClass.ClassItem items = 3; */ - public java.util.List - getItemsBuilderList() { + public java.util.List + getItemsBuilderList() { return getItemsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem, - com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem.Builder, - com.google.cloud.speech.v1p1beta1.CustomClass.ClassItemOrBuilder> + com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem, com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem.Builder, com.google.cloud.speech.v1p1beta1.CustomClass.ClassItemOrBuilder> getItemsFieldBuilder() { if (itemsBuilder_ == null) { - itemsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem, - com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem.Builder, - com.google.cloud.speech.v1p1beta1.CustomClass.ClassItemOrBuilder>( - items_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + itemsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem, com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem.Builder, com.google.cloud.speech.v1p1beta1.CustomClass.ClassItemOrBuilder>( + items_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); items_ = null; } return itemsBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1945,12 +1782,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(); } @@ -1959,16 +1796,16 @@ public static com.google.cloud.speech.v1p1beta1.CustomClass getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CustomClass parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CustomClass(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CustomClass parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CustomClass(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1983,4 +1820,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.CustomClass getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CustomClassName.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CustomClassName.java similarity index 100% rename from proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CustomClassName.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CustomClassName.java diff --git a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CustomClassOrBuilder.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CustomClassOrBuilder.java similarity index 70% rename from proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CustomClassOrBuilder.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CustomClassOrBuilder.java index 494362336..5a2383a9c 100644 --- a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CustomClassOrBuilder.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CustomClassOrBuilder.java @@ -1,93 +1,64 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/resource.proto package com.google.cloud.speech.v1p1beta1; -public interface CustomClassOrBuilder - extends +public interface CustomClassOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1p1beta1.CustomClass) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The resource name of the custom class.
    * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * The resource name of the custom class.
    * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * If this custom class is a resource, the custom_class_id is the resource id
    * of the CustomClass. Case sensitive.
    * 
* * string custom_class_id = 2; - * * @return The customClassId. */ java.lang.String getCustomClassId(); /** - * - * *
    * If this custom class is a resource, the custom_class_id is the resource id
    * of the CustomClass. Case sensitive.
    * 
* * string custom_class_id = 2; - * * @return The bytes for customClassId. */ - com.google.protobuf.ByteString getCustomClassIdBytes(); + com.google.protobuf.ByteString + getCustomClassIdBytes(); /** - * - * *
    * A collection of class items.
    * 
* * repeated .google.cloud.speech.v1p1beta1.CustomClass.ClassItem items = 3; */ - java.util.List getItemsList(); + java.util.List + getItemsList(); /** - * - * *
    * A collection of class items.
    * 
@@ -96,8 +67,6 @@ public interface CustomClassOrBuilder */ com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem getItems(int index); /** - * - * *
    * A collection of class items.
    * 
@@ -106,24 +75,21 @@ public interface CustomClassOrBuilder */ int getItemsCount(); /** - * - * *
    * A collection of class items.
    * 
* * repeated .google.cloud.speech.v1p1beta1.CustomClass.ClassItem items = 3; */ - java.util.List + java.util.List getItemsOrBuilderList(); /** - * - * *
    * A collection of class items.
    * 
* * repeated .google.cloud.speech.v1p1beta1.CustomClass.ClassItem items = 3; */ - com.google.cloud.speech.v1p1beta1.CustomClass.ClassItemOrBuilder getItemsOrBuilder(int index); + com.google.cloud.speech.v1p1beta1.CustomClass.ClassItemOrBuilder getItemsOrBuilder( + int index); } diff --git a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeleteCustomClassRequest.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeleteCustomClassRequest.java similarity index 66% rename from proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeleteCustomClassRequest.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeleteCustomClassRequest.java index 7c33bb7a8..c50330b25 100644 --- a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeleteCustomClassRequest.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeleteCustomClassRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech_adaptation.proto package com.google.cloud.speech.v1p1beta1; /** - * - * *
  * Message sent by the client for the `DeleteCustomClass` method.
  * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.DeleteCustomClassRequest} */ -public final class DeleteCustomClassRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DeleteCustomClassRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v1p1beta1.DeleteCustomClassRequest) DeleteCustomClassRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DeleteCustomClassRequest.newBuilder() to construct. private DeleteCustomClassRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DeleteCustomClassRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DeleteCustomClassRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private DeleteCustomClassRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,66 +53,58 @@ private DeleteCustomClassRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto - .internal_static_google_cloud_speech_v1p1beta1_DeleteCustomClassRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_DeleteCustomClassRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto - .internal_static_google_cloud_speech_v1p1beta1_DeleteCustomClassRequest_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_DeleteCustomClassRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest.class, - com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest.Builder.class); + com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest.class, com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. The name of the custom class to delete. Format:
    * `projects/{project}/locations/{location}/customClasses/{custom_class}`
    * 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.
    * 
* - * - * string name = 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 @@ -138,37 +113,35 @@ 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}`
    * 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.
    * 
* - * - * string name = 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 { @@ -177,7 +150,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -189,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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -213,15 +186,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest)) { return super.equals(obj); } - com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest other = - (com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest) obj; + com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest other = (com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -241,127 +214,117 @@ public int hashCode() { } public static com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest prototype) { + public static Builder newBuilder(com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Message sent by the client for the `DeleteCustomClass` method.
    * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.DeleteCustomClassRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1p1beta1.DeleteCustomClassRequest) com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto - .internal_static_google_cloud_speech_v1p1beta1_DeleteCustomClassRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_DeleteCustomClassRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto - .internal_static_google_cloud_speech_v1p1beta1_DeleteCustomClassRequest_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_DeleteCustomClassRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest.class, - com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest.Builder.class); + com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest.class, com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest.Builder.class); } // Construct using com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest.newBuilder() @@ -369,15 +332,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -387,9 +351,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 @@ -408,8 +372,7 @@ public com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest build() { @java.lang.Override public com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest buildPartial() { - com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest result = - new com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest(this); + com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest result = new com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest(this); result.name_ = name_; onBuilt(); return result; @@ -419,39 +382,38 @@ public com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest buildPartial() public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest) { - return mergeFrom((com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest) other); + return mergeFrom((com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest)other); } else { super.mergeFrom(other); return this; @@ -459,8 +421,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest other) { - if (other == com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -484,8 +445,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -497,28 +457,24 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. The name of the custom class to delete. Format:
      * `projects/{project}/locations/{location}/customClasses/{custom_class}`
      * 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.
      * 
* - * - * string name = 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; @@ -527,29 +483,26 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The name of the custom class to delete. Format:
      * `projects/{project}/locations/{location}/customClasses/{custom_class}`
      * 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.
      * 
* - * - * string name = 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 { @@ -557,92 +510,79 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The name of the custom class to delete. Format:
      * `projects/{project}/locations/{location}/customClasses/{custom_class}`
      * 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.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. The name of the custom class to delete. Format:
      * `projects/{project}/locations/{location}/customClasses/{custom_class}`
      * 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.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. The name of the custom class to delete. Format:
      * `projects/{project}/locations/{location}/customClasses/{custom_class}`
      * 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.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -652,12 +592,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(); } @@ -666,16 +606,16 @@ public static com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteCustomClassRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteCustomClassRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteCustomClassRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteCustomClassRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -690,4 +630,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeleteCustomClassRequestOrBuilder.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeleteCustomClassRequestOrBuilder.java similarity index 50% rename from proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeleteCustomClassRequestOrBuilder.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeleteCustomClassRequestOrBuilder.java index 29f90c2ea..477f46c0e 100644 --- a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeleteCustomClassRequestOrBuilder.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeleteCustomClassRequestOrBuilder.java @@ -1,66 +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 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}`
    * 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.
    * 
* - * - * string name = 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}`
    * 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.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); } diff --git a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeletePhraseSetRequest.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeletePhraseSetRequest.java similarity index 66% rename from proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeletePhraseSetRequest.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeletePhraseSetRequest.java index 19d61461d..b866a39b9 100644 --- a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeletePhraseSetRequest.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeletePhraseSetRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech_adaptation.proto package com.google.cloud.speech.v1p1beta1; /** - * - * *
  * Message sent by the client for the `DeletePhraseSet` method.
  * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.DeletePhraseSetRequest} */ -public final class DeletePhraseSetRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DeletePhraseSetRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v1p1beta1.DeletePhraseSetRequest) DeletePhraseSetRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DeletePhraseSetRequest.newBuilder() to construct. private DeletePhraseSetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DeletePhraseSetRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DeletePhraseSetRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private DeletePhraseSetRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,61 +53,53 @@ private DeletePhraseSetRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto - .internal_static_google_cloud_speech_v1p1beta1_DeletePhraseSetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_DeletePhraseSetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto - .internal_static_google_cloud_speech_v1p1beta1_DeletePhraseSetRequest_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_DeletePhraseSetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest.class, - com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest.Builder.class); + com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest.class, com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. The name of the phrase set to delete. Format:
    * `projects/{project}/locations/{location}/phraseSets/{phrase_set}`
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -133,32 +108,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 { @@ -167,7 +140,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -179,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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -203,15 +176,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest)) { return super.equals(obj); } - com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest other = - (com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest) obj; + com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest other = (com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -231,127 +204,117 @@ public int hashCode() { } public static com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest prototype) { + public static Builder newBuilder(com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Message sent by the client for the `DeletePhraseSet` method.
    * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.DeletePhraseSetRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1p1beta1.DeletePhraseSetRequest) com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto - .internal_static_google_cloud_speech_v1p1beta1_DeletePhraseSetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_DeletePhraseSetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto - .internal_static_google_cloud_speech_v1p1beta1_DeletePhraseSetRequest_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_DeletePhraseSetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest.class, - com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest.Builder.class); + com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest.class, com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest.Builder.class); } // Construct using com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest.newBuilder() @@ -359,15 +322,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -377,9 +341,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 @@ -398,8 +362,7 @@ public com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest build() { @java.lang.Override public com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest buildPartial() { - com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest result = - new com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest(this); + com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest result = new com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest(this); result.name_ = name_; onBuilt(); return result; @@ -409,39 +372,38 @@ public com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest) { - return mergeFrom((com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest) other); + return mergeFrom((com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest)other); } else { super.mergeFrom(other); return this; @@ -449,8 +411,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest other) { - if (other == com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -474,8 +435,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -487,23 +447,19 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. The name of the phrase set to delete. Format:
      * `projects/{project}/locations/{location}/phraseSets/{phrase_set}`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -512,24 +468,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 { @@ -537,77 +490,64 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The name of the phrase set to delete. Format:
      * `projects/{project}/locations/{location}/phraseSets/{phrase_set}`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. The name of the phrase set to delete. Format:
      * `projects/{project}/locations/{location}/phraseSets/{phrase_set}`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. The name of the phrase set to delete. Format:
      * `projects/{project}/locations/{location}/phraseSets/{phrase_set}`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -617,12 +557,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(); } @@ -631,16 +571,16 @@ public static com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeletePhraseSetRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeletePhraseSetRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeletePhraseSetRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeletePhraseSetRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -655,4 +595,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeletePhraseSetRequestOrBuilder.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeletePhraseSetRequestOrBuilder.java new file mode 100644 index 000000000..246c425ca --- /dev/null +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeletePhraseSetRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/speech/v1p1beta1/cloud_speech_adaptation.proto + +package com.google.cloud.speech.v1p1beta1; + +public interface DeletePhraseSetRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1p1beta1.DeletePhraseSetRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The name of the phrase set to delete. Format:
+   * `projects/{project}/locations/{location}/phraseSets/{phrase_set}`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The name of the phrase set to delete. Format:
+   * `projects/{project}/locations/{location}/phraseSets/{phrase_set}`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetCustomClassRequest.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetCustomClassRequest.java similarity index 66% rename from proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetCustomClassRequest.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetCustomClassRequest.java index fe9c530e9..54a6bdf5b 100644 --- a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetCustomClassRequest.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetCustomClassRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech_adaptation.proto package com.google.cloud.speech.v1p1beta1; /** - * - * *
  * Message sent by the client for the `GetCustomClass` method.
  * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.GetCustomClassRequest} */ -public final class GetCustomClassRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetCustomClassRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v1p1beta1.GetCustomClassRequest) GetCustomClassRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetCustomClassRequest.newBuilder() to construct. private GetCustomClassRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetCustomClassRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetCustomClassRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GetCustomClassRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,61 +53,53 @@ private GetCustomClassRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto - .internal_static_google_cloud_speech_v1p1beta1_GetCustomClassRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_GetCustomClassRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto - .internal_static_google_cloud_speech_v1p1beta1_GetCustomClassRequest_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_GetCustomClassRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.GetCustomClassRequest.class, - com.google.cloud.speech.v1p1beta1.GetCustomClassRequest.Builder.class); + com.google.cloud.speech.v1p1beta1.GetCustomClassRequest.class, com.google.cloud.speech.v1p1beta1.GetCustomClassRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. The name of the custom class to retrieve. Format:
    * `projects/{project}/locations/{location}/customClasses/{custom_class}`
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -133,32 +108,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 { @@ -167,7 +140,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -179,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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -203,15 +176,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1p1beta1.GetCustomClassRequest)) { return super.equals(obj); } - com.google.cloud.speech.v1p1beta1.GetCustomClassRequest other = - (com.google.cloud.speech.v1p1beta1.GetCustomClassRequest) obj; + com.google.cloud.speech.v1p1beta1.GetCustomClassRequest other = (com.google.cloud.speech.v1p1beta1.GetCustomClassRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -231,127 +204,117 @@ public int hashCode() { } public static com.google.cloud.speech.v1p1beta1.GetCustomClassRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1p1beta1.GetCustomClassRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.GetCustomClassRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1p1beta1.GetCustomClassRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.GetCustomClassRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1p1beta1.GetCustomClassRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.speech.v1p1beta1.GetCustomClassRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.speech.v1p1beta1.GetCustomClassRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1p1beta1.GetCustomClassRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.speech.v1p1beta1.GetCustomClassRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.speech.v1p1beta1.GetCustomClassRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1p1beta1.GetCustomClassRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.GetCustomClassRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1p1beta1.GetCustomClassRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.speech.v1p1beta1.GetCustomClassRequest prototype) { + public static Builder newBuilder(com.google.cloud.speech.v1p1beta1.GetCustomClassRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Message sent by the client for the `GetCustomClass` method.
    * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.GetCustomClassRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1p1beta1.GetCustomClassRequest) com.google.cloud.speech.v1p1beta1.GetCustomClassRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto - .internal_static_google_cloud_speech_v1p1beta1_GetCustomClassRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_GetCustomClassRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto - .internal_static_google_cloud_speech_v1p1beta1_GetCustomClassRequest_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_GetCustomClassRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.GetCustomClassRequest.class, - com.google.cloud.speech.v1p1beta1.GetCustomClassRequest.Builder.class); + com.google.cloud.speech.v1p1beta1.GetCustomClassRequest.class, com.google.cloud.speech.v1p1beta1.GetCustomClassRequest.Builder.class); } // Construct using com.google.cloud.speech.v1p1beta1.GetCustomClassRequest.newBuilder() @@ -359,15 +322,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -377,9 +341,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 @@ -398,8 +362,7 @@ public com.google.cloud.speech.v1p1beta1.GetCustomClassRequest build() { @java.lang.Override public com.google.cloud.speech.v1p1beta1.GetCustomClassRequest buildPartial() { - com.google.cloud.speech.v1p1beta1.GetCustomClassRequest result = - new com.google.cloud.speech.v1p1beta1.GetCustomClassRequest(this); + com.google.cloud.speech.v1p1beta1.GetCustomClassRequest result = new com.google.cloud.speech.v1p1beta1.GetCustomClassRequest(this); result.name_ = name_; onBuilt(); return result; @@ -409,39 +372,38 @@ public com.google.cloud.speech.v1p1beta1.GetCustomClassRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.speech.v1p1beta1.GetCustomClassRequest) { - return mergeFrom((com.google.cloud.speech.v1p1beta1.GetCustomClassRequest) other); + return mergeFrom((com.google.cloud.speech.v1p1beta1.GetCustomClassRequest)other); } else { super.mergeFrom(other); return this; @@ -449,8 +411,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.speech.v1p1beta1.GetCustomClassRequest other) { - if (other == com.google.cloud.speech.v1p1beta1.GetCustomClassRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.speech.v1p1beta1.GetCustomClassRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -474,8 +435,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.speech.v1p1beta1.GetCustomClassRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.speech.v1p1beta1.GetCustomClassRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -487,23 +447,19 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. The name of the custom class to retrieve. Format:
      * `projects/{project}/locations/{location}/customClasses/{custom_class}`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -512,24 +468,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The name of the custom class to retrieve. Format:
      * `projects/{project}/locations/{location}/customClasses/{custom_class}`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -537,77 +490,64 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The name of the custom class to retrieve. Format:
      * `projects/{project}/locations/{location}/customClasses/{custom_class}`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. The name of the custom class to retrieve. Format:
      * `projects/{project}/locations/{location}/customClasses/{custom_class}`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. The name of the custom class to retrieve. Format:
      * `projects/{project}/locations/{location}/customClasses/{custom_class}`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -617,12 +557,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(); } @@ -631,16 +571,16 @@ public static com.google.cloud.speech.v1p1beta1.GetCustomClassRequest getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetCustomClassRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetCustomClassRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetCustomClassRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetCustomClassRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -655,4 +595,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.GetCustomClassRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetCustomClassRequestOrBuilder.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetCustomClassRequestOrBuilder.java new file mode 100644 index 000000000..721b97fda --- /dev/null +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetCustomClassRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/speech/v1p1beta1/cloud_speech_adaptation.proto + +package com.google.cloud.speech.v1p1beta1; + +public interface GetCustomClassRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1p1beta1.GetCustomClassRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The name of the custom class to retrieve. Format:
+   * `projects/{project}/locations/{location}/customClasses/{custom_class}`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The name of the custom class to retrieve. Format:
+   * `projects/{project}/locations/{location}/customClasses/{custom_class}`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetPhraseSetRequest.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetPhraseSetRequest.java similarity index 66% rename from proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetPhraseSetRequest.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetPhraseSetRequest.java index 858f21155..0c86e65a4 100644 --- a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetPhraseSetRequest.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetPhraseSetRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech_adaptation.proto package com.google.cloud.speech.v1p1beta1; /** - * - * *
  * Message sent by the client for the `GetPhraseSet` method.
  * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.GetPhraseSetRequest} */ -public final class GetPhraseSetRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetPhraseSetRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v1p1beta1.GetPhraseSetRequest) GetPhraseSetRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetPhraseSetRequest.newBuilder() to construct. private GetPhraseSetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetPhraseSetRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetPhraseSetRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GetPhraseSetRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,66 +53,58 @@ private GetPhraseSetRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto - .internal_static_google_cloud_speech_v1p1beta1_GetPhraseSetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_GetPhraseSetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto - .internal_static_google_cloud_speech_v1p1beta1_GetPhraseSetRequest_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_GetPhraseSetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest.class, - com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest.Builder.class); + com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest.class, com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. The name of the phrase set to retrieve. Format:
    * `projects/{project}/locations/{location}/phraseSets/{phrase_set}`
    * 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.
    * 
* - * - * string name = 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 @@ -138,37 +113,35 @@ 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}`
    * 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.
    * 
* - * - * string name = 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 { @@ -177,7 +150,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -189,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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -213,15 +186,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest)) { return super.equals(obj); } - com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest other = - (com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest) obj; + com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest other = (com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -241,127 +214,117 @@ public int hashCode() { } public static com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest prototype) { + public static Builder newBuilder(com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Message sent by the client for the `GetPhraseSet` method.
    * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.GetPhraseSetRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1p1beta1.GetPhraseSetRequest) com.google.cloud.speech.v1p1beta1.GetPhraseSetRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto - .internal_static_google_cloud_speech_v1p1beta1_GetPhraseSetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_GetPhraseSetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto - .internal_static_google_cloud_speech_v1p1beta1_GetPhraseSetRequest_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_GetPhraseSetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest.class, - com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest.Builder.class); + com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest.class, com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest.Builder.class); } // Construct using com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest.newBuilder() @@ -369,15 +332,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -387,9 +351,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 @@ -408,8 +372,7 @@ public com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest build() { @java.lang.Override public com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest buildPartial() { - com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest result = - new com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest(this); + com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest result = new com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest(this); result.name_ = name_; onBuilt(); return result; @@ -419,39 +382,38 @@ public com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest) { - return mergeFrom((com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest) other); + return mergeFrom((com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest)other); } else { super.mergeFrom(other); return this; @@ -459,8 +421,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest other) { - if (other == com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -484,8 +445,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -497,28 +457,24 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. The name of the phrase set to retrieve. Format:
      * `projects/{project}/locations/{location}/phraseSets/{phrase_set}`
      * 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.
      * 
* - * - * string name = 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; @@ -527,29 +483,26 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The name of the phrase set to retrieve. Format:
      * `projects/{project}/locations/{location}/phraseSets/{phrase_set}`
      * 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.
      * 
* - * - * string name = 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 { @@ -557,92 +510,79 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The name of the phrase set to retrieve. Format:
      * `projects/{project}/locations/{location}/phraseSets/{phrase_set}`
      * 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.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. The name of the phrase set to retrieve. Format:
      * `projects/{project}/locations/{location}/phraseSets/{phrase_set}`
      * 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.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. The name of the phrase set to retrieve. Format:
      * `projects/{project}/locations/{location}/phraseSets/{phrase_set}`
      * 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.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -652,12 +592,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(); } @@ -666,16 +606,16 @@ public static com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetPhraseSetRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetPhraseSetRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetPhraseSetRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetPhraseSetRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -690,4 +630,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetPhraseSetRequestOrBuilder.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetPhraseSetRequestOrBuilder.java new file mode 100644 index 000000000..b5ad6ae00 --- /dev/null +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetPhraseSetRequestOrBuilder.java @@ -0,0 +1,41 @@ +// 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 + // @@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}`
+   * 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](https://cloud.google.com/speech-to-text/docs/endpoints)
+   * with matching `us` or `eu` location value.
+   * 
+ * + * 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}`
+   * 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](https://cloud.google.com/speech-to-text/docs/endpoints)
+   * with matching `us` or `eu` location value.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesRequest.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesRequest.java similarity index 70% rename from proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesRequest.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesRequest.java index 48407776d..5e13802d3 100644 --- a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesRequest.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech_adaptation.proto package com.google.cloud.speech.v1p1beta1; /** - * - * *
  * Message sent by the client for the `ListCustomClasses` method.
  * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.ListCustomClassesRequest} */ -public final class ListCustomClassesRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListCustomClassesRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v1p1beta1.ListCustomClassesRequest) ListCustomClassesRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListCustomClassesRequest.newBuilder() to construct. private ListCustomClassesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListCustomClassesRequest() { parent_ = ""; pageToken_ = ""; @@ -44,15 +26,16 @@ private ListCustomClassesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListCustomClassesRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListCustomClassesRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,78 +54,69 @@ private ListCustomClassesRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 16: - { - pageSize_ = input.readInt32(); - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 16: { - pageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + pageSize_ = input.readInt32(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + pageToken_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto - .internal_static_google_cloud_speech_v1p1beta1_ListCustomClassesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_ListCustomClassesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto - .internal_static_google_cloud_speech_v1p1beta1_ListCustomClassesRequest_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_ListCustomClassesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest.class, - com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest.Builder.class); + com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest.class, com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. The parent, which owns this collection of custom classes. Format:
    * `projects/{project}/locations/{location}/customClasses`
    * 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.
    * 
* - * - * string parent = 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 @@ -151,37 +125,35 @@ 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`
    * 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.
    * 
* - * - * string parent = 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 { @@ -192,8 +164,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** - * - * *
    * The maximum number of custom classes to return. The service may return
    * fewer than this value. If unspecified, at most 50 custom classes will be
@@ -202,7 +172,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -213,8 +182,6 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** - * - * *
    * A page token, received from a previous `ListCustomClass` call.
    * Provide this to retrieve the subsequent page.
@@ -223,7 +190,6 @@ public int getPageSize() {
    * 
* * string page_token = 3; - * * @return The pageToken. */ @java.lang.Override @@ -232,15 +198,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.
@@ -249,15 +214,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 { @@ -266,7 +232,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -278,7 +243,8 @@ public final boolean isInitialized() { } @java.lang.Override - public 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_); } @@ -301,7 +267,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_); @@ -314,17 +281,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest)) { return super.equals(obj); } - com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest other = - (com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest) obj; + com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest other = (com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -348,127 +317,117 @@ public int hashCode() { } public static com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest prototype) { + public static Builder newBuilder(com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Message sent by the client for the `ListCustomClasses` method.
    * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.ListCustomClassesRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1p1beta1.ListCustomClassesRequest) com.google.cloud.speech.v1p1beta1.ListCustomClassesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto - .internal_static_google_cloud_speech_v1p1beta1_ListCustomClassesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_ListCustomClassesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto - .internal_static_google_cloud_speech_v1p1beta1_ListCustomClassesRequest_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_ListCustomClassesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest.class, - com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest.Builder.class); + com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest.class, com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest.Builder.class); } // Construct using com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest.newBuilder() @@ -476,15 +435,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -498,9 +458,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 @@ -519,8 +479,7 @@ public com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest build() { @java.lang.Override public com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest buildPartial() { - com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest result = - new com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest(this); + com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest result = new com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -532,39 +491,38 @@ public com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest buildPartial() public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest) { - return mergeFrom((com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest) other); + return mergeFrom((com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest)other); } else { super.mergeFrom(other); return this; @@ -572,8 +530,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest other) { - if (other == com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -604,8 +561,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -617,28 +573,24 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The parent, which owns this collection of custom classes. 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`
      * 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.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -647,29 +599,26 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The parent, which owns this collection of custom classes. 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`
      * 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.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -677,94 +626,79 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The parent, which owns this collection of custom classes. 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`
      * 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.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. The parent, which owns this collection of custom classes. Format:
      * `projects/{project}/locations/{location}/customClasses`
      * 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.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. The parent, which owns this collection of custom classes. Format:
      * `projects/{project}/locations/{location}/customClasses`
      * 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.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * The maximum number of custom classes to return. The service may return
      * fewer than this value. If unspecified, at most 50 custom classes will be
@@ -773,7 +707,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -781,8 +714,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
@@ -791,19 +722,16 @@ public int getPageSize() {
      * 
* * int32 page_size = 2; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** - * - * *
      * The maximum number of custom classes to return. The service may return
      * fewer than this value. If unspecified, at most 50 custom classes will be
@@ -812,11 +740,10 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -824,8 +751,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.
@@ -834,13 +759,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 +774,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * A page token, received from a previous `ListCustomClass` call.
      * Provide this to retrieve the subsequent page.
@@ -859,14 +782,15 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -874,8 +798,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * A page token, received from a previous `ListCustomClass` call.
      * Provide this to retrieve the subsequent page.
@@ -884,22 +806,20 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
      * 
* * string page_token = 3; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { + public Builder setPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** - * - * *
      * A page token, received from a previous `ListCustomClass` call.
      * Provide this to retrieve the subsequent page.
@@ -908,18 +828,15 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 3; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** - * - * *
      * A page token, received from a previous `ListCustomClass` call.
      * Provide this to retrieve the subsequent page.
@@ -928,23 +845,23 @@ public Builder clearPageToken() {
      * 
* * string page_token = 3; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -954,12 +871,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(); } @@ -968,16 +885,16 @@ public static com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListCustomClassesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListCustomClassesRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListCustomClassesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListCustomClassesRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -992,4 +909,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesRequestOrBuilder.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesRequestOrBuilder.java similarity index 64% rename from proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesRequestOrBuilder.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesRequestOrBuilder.java index c74ed3745..e83c2e601 100644 --- a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesRequestOrBuilder.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesRequestOrBuilder.java @@ -1,72 +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/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`
    * 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.
    * 
* - * - * string parent = 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`
    * 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.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * The maximum number of custom classes to return. The service may return
    * fewer than this value. If unspecified, at most 50 custom classes will be
@@ -75,14 +48,11 @@ public interface ListCustomClassesRequestOrBuilder
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * A page token, received from a previous `ListCustomClass` call.
    * Provide this to retrieve the subsequent page.
@@ -91,13 +61,10 @@ public interface ListCustomClassesRequestOrBuilder
    * 
* * string page_token = 3; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * A page token, received from a previous `ListCustomClass` call.
    * Provide this to retrieve the subsequent page.
@@ -106,8 +73,8 @@ public interface ListCustomClassesRequestOrBuilder
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); } diff --git a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesResponse.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesResponse.java similarity index 75% rename from proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesResponse.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesResponse.java index e8a09d56c..a84e608fa 100644 --- a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesResponse.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesResponse.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech_adaptation.proto package com.google.cloud.speech.v1p1beta1; /** - * - * *
  * Message returned to the client by the `ListCustomClasses` method.
  * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.ListCustomClassesResponse} */ -public final class ListCustomClassesResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListCustomClassesResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v1p1beta1.ListCustomClassesResponse) ListCustomClassesResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListCustomClassesResponse.newBuilder() to construct. private ListCustomClassesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListCustomClassesResponse() { customClasses_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -44,15 +26,16 @@ private ListCustomClassesResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListCustomClassesResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListCustomClassesResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,38 +55,35 @@ private ListCustomClassesResponse( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - customClasses_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - customClasses_.add( - input.readMessage( - com.google.cloud.speech.v1p1beta1.CustomClass.parser(), extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + customClasses_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + customClasses_.add( + input.readMessage(com.google.cloud.speech.v1p1beta1.CustomClass.parser(), extensionRegistry)); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + nextPageToken_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { customClasses_ = java.util.Collections.unmodifiableList(customClasses_); @@ -112,27 +92,22 @@ private ListCustomClassesResponse( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto - .internal_static_google_cloud_speech_v1p1beta1_ListCustomClassesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_ListCustomClassesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto - .internal_static_google_cloud_speech_v1p1beta1_ListCustomClassesResponse_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_ListCustomClassesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse.class, - com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse.Builder.class); + com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse.class, com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse.Builder.class); } public static final int CUSTOM_CLASSES_FIELD_NUMBER = 1; private java.util.List customClasses_; /** - * - * *
    * The custom classes.
    * 
@@ -144,8 +119,6 @@ public java.util.List getCustomCl return customClasses_; } /** - * - * *
    * The custom classes.
    * 
@@ -153,13 +126,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.
    * 
@@ -171,8 +142,6 @@ public int getCustomClassesCount() { return customClasses_.size(); } /** - * - * *
    * The custom classes.
    * 
@@ -184,8 +153,6 @@ public com.google.cloud.speech.v1p1beta1.CustomClass getCustomClasses(int index) return customClasses_.get(index); } /** - * - * *
    * The custom classes.
    * 
@@ -201,15 +168,12 @@ public com.google.cloud.speech.v1p1beta1.CustomClassOrBuilder getCustomClassesOr public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** - * - * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -218,30 +182,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -250,7 +214,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -262,7 +225,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < customClasses_.size(); i++) { output.writeMessage(1, customClasses_.get(i)); } @@ -279,7 +243,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < customClasses_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, customClasses_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, customClasses_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -292,16 +257,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse)) { return super.equals(obj); } - com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse other = - (com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse) obj; + com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse other = (com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse) obj; - if (!getCustomClassesList().equals(other.getCustomClassesList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getCustomClassesList() + .equals(other.getCustomClassesList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -325,127 +291,117 @@ public int hashCode() { } public static com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse prototype) { + public static Builder newBuilder(com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Message returned to the client by the `ListCustomClasses` method.
    * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.ListCustomClassesResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1p1beta1.ListCustomClassesResponse) com.google.cloud.speech.v1p1beta1.ListCustomClassesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto - .internal_static_google_cloud_speech_v1p1beta1_ListCustomClassesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_ListCustomClassesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto - .internal_static_google_cloud_speech_v1p1beta1_ListCustomClassesResponse_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_ListCustomClassesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse.class, - com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse.Builder.class); + com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse.class, com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse.Builder.class); } // Construct using com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse.newBuilder() @@ -453,17 +409,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getCustomClassesFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -479,9 +435,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 @@ -500,8 +456,7 @@ public com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse build() { @java.lang.Override public com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse buildPartial() { - com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse result = - new com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse(this); + com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse result = new com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse(this); int from_bitField0_ = bitField0_; if (customClassesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -521,39 +476,38 @@ public com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse buildPartial( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse) { - return mergeFrom((com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse) other); + return mergeFrom((com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse)other); } else { super.mergeFrom(other); return this; @@ -561,8 +515,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()) { @@ -581,10 +534,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_); } @@ -613,8 +565,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -623,29 +574,21 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.util.List customClasses_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureCustomClassesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - customClasses_ = - new java.util.ArrayList(customClasses_); + customClasses_ = new java.util.ArrayList(customClasses_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.CustomClass, - com.google.cloud.speech.v1p1beta1.CustomClass.Builder, - com.google.cloud.speech.v1p1beta1.CustomClassOrBuilder> - customClassesBuilder_; + com.google.cloud.speech.v1p1beta1.CustomClass, com.google.cloud.speech.v1p1beta1.CustomClass.Builder, com.google.cloud.speech.v1p1beta1.CustomClassOrBuilder> customClassesBuilder_; /** - * - * *
      * The custom classes.
      * 
@@ -660,8 +603,6 @@ public java.util.List getCustomCl } } /** - * - * *
      * The custom classes.
      * 
@@ -676,8 +617,6 @@ public int getCustomClassesCount() { } } /** - * - * *
      * The custom classes.
      * 
@@ -692,8 +631,6 @@ public com.google.cloud.speech.v1p1beta1.CustomClass getCustomClasses(int index) } } /** - * - * *
      * The custom classes.
      * 
@@ -715,8 +652,6 @@ public Builder setCustomClasses( return this; } /** - * - * *
      * The custom classes.
      * 
@@ -735,8 +670,6 @@ public Builder setCustomClasses( return this; } /** - * - * *
      * The custom classes.
      * 
@@ -757,8 +690,6 @@ public Builder addCustomClasses(com.google.cloud.speech.v1p1beta1.CustomClass va return this; } /** - * - * *
      * The custom classes.
      * 
@@ -780,8 +711,6 @@ public Builder addCustomClasses( return this; } /** - * - * *
      * The custom classes.
      * 
@@ -800,8 +729,6 @@ public Builder addCustomClasses( return this; } /** - * - * *
      * The custom classes.
      * 
@@ -820,8 +747,6 @@ public Builder addCustomClasses( return this; } /** - * - * *
      * The custom classes.
      * 
@@ -832,7 +757,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); @@ -840,8 +766,6 @@ public Builder addAllCustomClasses( return this; } /** - * - * *
      * The custom classes.
      * 
@@ -859,8 +783,6 @@ public Builder clearCustomClasses() { return this; } /** - * - * *
      * The custom classes.
      * 
@@ -878,8 +800,6 @@ public Builder removeCustomClasses(int index) { return this; } /** - * - * *
      * The custom classes.
      * 
@@ -891,8 +811,6 @@ public com.google.cloud.speech.v1p1beta1.CustomClass.Builder getCustomClassesBui return getCustomClassesFieldBuilder().getBuilder(index); } /** - * - * *
      * The custom classes.
      * 
@@ -902,22 +820,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 { @@ -925,8 +840,6 @@ public com.google.cloud.speech.v1p1beta1.CustomClassOrBuilder getCustomClassesOr } } /** - * - * *
      * The custom classes.
      * 
@@ -934,12 +847,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.
      * 
@@ -948,34 +859,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(), @@ -987,21 +890,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; @@ -1010,22 +911,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 { @@ -1033,71 +933,64 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { + public Builder setNextPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** - * - * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** - * - * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1107,12 +1000,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(); } @@ -1121,16 +1014,16 @@ public static com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListCustomClassesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListCustomClassesResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListCustomClassesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListCustomClassesResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1145,4 +1038,6 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesResponseOrBuilder.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesResponseOrBuilder.java similarity index 69% rename from proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesResponseOrBuilder.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesResponseOrBuilder.java index ba426471d..bb845e981 100644 --- a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesResponseOrBuilder.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesResponseOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech_adaptation.proto package com.google.cloud.speech.v1p1beta1; -public interface ListCustomClassesResponseOrBuilder - extends +public interface ListCustomClassesResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1p1beta1.ListCustomClassesResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The custom classes.
    * 
* * repeated .google.cloud.speech.v1p1beta1.CustomClass custom_classes = 1; */ - java.util.List getCustomClassesList(); + java.util.List + getCustomClassesList(); /** - * - * *
    * The custom classes.
    * 
@@ -44,8 +25,6 @@ public interface ListCustomClassesResponseOrBuilder */ com.google.cloud.speech.v1p1beta1.CustomClass getCustomClasses(int index); /** - * - * *
    * The custom classes.
    * 
@@ -54,51 +33,43 @@ public interface ListCustomClassesResponseOrBuilder */ int getCustomClassesCount(); /** - * - * *
    * The custom classes.
    * 
* * repeated .google.cloud.speech.v1p1beta1.CustomClass custom_classes = 1; */ - java.util.List + java.util.List getCustomClassesOrBuilderList(); /** - * - * *
    * The custom classes.
    * 
* * repeated .google.cloud.speech.v1p1beta1.CustomClass custom_classes = 1; */ - com.google.cloud.speech.v1p1beta1.CustomClassOrBuilder getCustomClassesOrBuilder(int index); + com.google.cloud.speech.v1p1beta1.CustomClassOrBuilder getCustomClassesOrBuilder( + int index); /** - * - * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); } diff --git a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetRequest.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetRequest.java similarity index 70% rename from proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetRequest.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetRequest.java index 06bf1a8b0..c3aa38744 100644 --- a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetRequest.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech_adaptation.proto package com.google.cloud.speech.v1p1beta1; /** - * - * *
  * Message sent by the client for the `ListPhraseSet` method.
  * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.ListPhraseSetRequest} */ -public final class ListPhraseSetRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListPhraseSetRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v1p1beta1.ListPhraseSetRequest) ListPhraseSetRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListPhraseSetRequest.newBuilder() to construct. private ListPhraseSetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListPhraseSetRequest() { parent_ = ""; pageToken_ = ""; @@ -44,15 +26,16 @@ private ListPhraseSetRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListPhraseSetRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListPhraseSetRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,78 +54,69 @@ private ListPhraseSetRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 16: - { - pageSize_ = input.readInt32(); - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 16: { - pageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + pageSize_ = input.readInt32(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + pageToken_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto - .internal_static_google_cloud_speech_v1p1beta1_ListPhraseSetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_ListPhraseSetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto - .internal_static_google_cloud_speech_v1p1beta1_ListPhraseSetRequest_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_ListPhraseSetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest.class, - com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest.Builder.class); + com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest.class, com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. The parent, which owns this collection of phrase set. Format:
    * `projects/{project}/locations/{location}`
    * 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.
    * 
* - * - * string parent = 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 @@ -151,37 +125,35 @@ 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}`
    * 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.
    * 
* - * - * string parent = 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 { @@ -192,8 +164,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** - * - * *
    * The maximum number of phrase sets to return. The service may return
    * fewer than this value. If unspecified, at most 50 phrase sets will be
@@ -202,7 +172,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -213,8 +182,6 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** - * - * *
    * A page token, received from a previous `ListPhraseSet` call.
    * Provide this to retrieve the subsequent page.
@@ -223,7 +190,6 @@ public int getPageSize() {
    * 
* * string page_token = 3; - * * @return The pageToken. */ @java.lang.Override @@ -232,15 +198,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.
@@ -249,15 +214,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 { @@ -266,7 +232,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -278,7 +243,8 @@ public final boolean isInitialized() { } @java.lang.Override - public 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_); } @@ -301,7 +267,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_); @@ -314,17 +281,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest)) { return super.equals(obj); } - com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest other = - (com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest) obj; + com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest other = (com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -348,127 +317,117 @@ public int hashCode() { } public static com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest prototype) { + public static Builder newBuilder(com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Message sent by the client for the `ListPhraseSet` method.
    * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.ListPhraseSetRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1p1beta1.ListPhraseSetRequest) com.google.cloud.speech.v1p1beta1.ListPhraseSetRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto - .internal_static_google_cloud_speech_v1p1beta1_ListPhraseSetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_ListPhraseSetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto - .internal_static_google_cloud_speech_v1p1beta1_ListPhraseSetRequest_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_ListPhraseSetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest.class, - com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest.Builder.class); + com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest.class, com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest.Builder.class); } // Construct using com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest.newBuilder() @@ -476,15 +435,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -498,9 +458,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 @@ -519,8 +479,7 @@ public com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest build() { @java.lang.Override public com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest buildPartial() { - com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest result = - new com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest(this); + com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest result = new com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -532,39 +491,38 @@ public com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest) { - return mergeFrom((com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest) other); + return mergeFrom((com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest)other); } else { super.mergeFrom(other); return this; @@ -572,8 +530,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest other) { - if (other == com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -604,8 +561,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -617,28 +573,24 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The parent, which owns this collection of phrase set. Format:
      * `projects/{project}/locations/{location}`
      * 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.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -647,29 +599,26 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The parent, which owns this collection of phrase set. Format:
      * `projects/{project}/locations/{location}`
      * 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.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -677,94 +626,79 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The parent, which owns this collection of phrase set. Format:
      * `projects/{project}/locations/{location}`
      * 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.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. The parent, which owns this collection of phrase set. Format:
      * `projects/{project}/locations/{location}`
      * 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.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. The parent, which owns this collection of phrase set. Format:
      * `projects/{project}/locations/{location}`
      * 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.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * The maximum number of phrase sets to return. The service may return
      * fewer than this value. If unspecified, at most 50 phrase sets will be
@@ -773,7 +707,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -781,8 +714,6 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * The maximum number of phrase sets to return. The service may return
      * fewer than this value. If unspecified, at most 50 phrase sets will be
@@ -791,19 +722,16 @@ public int getPageSize() {
      * 
* * int32 page_size = 2; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** - * - * *
      * The maximum number of phrase sets to return. The service may return
      * fewer than this value. If unspecified, at most 50 phrase sets will be
@@ -812,11 +740,10 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -824,8 +751,6 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * A page token, received from a previous `ListPhraseSet` call.
      * Provide this to retrieve the subsequent page.
@@ -834,13 +759,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 +774,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * A page token, received from a previous `ListPhraseSet` call.
      * Provide this to retrieve the subsequent page.
@@ -859,14 +782,15 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -874,8 +798,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * A page token, received from a previous `ListPhraseSet` call.
      * Provide this to retrieve the subsequent page.
@@ -884,22 +806,20 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
      * 
* * string page_token = 3; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { + public Builder setPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** - * - * *
      * A page token, received from a previous `ListPhraseSet` call.
      * Provide this to retrieve the subsequent page.
@@ -908,18 +828,15 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 3; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** - * - * *
      * A page token, received from a previous `ListPhraseSet` call.
      * Provide this to retrieve the subsequent page.
@@ -928,23 +845,23 @@ public Builder clearPageToken() {
      * 
* * string page_token = 3; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -954,12 +871,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(); } @@ -968,16 +885,16 @@ public static com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListPhraseSetRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListPhraseSetRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListPhraseSetRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListPhraseSetRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -992,4 +909,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetRequestOrBuilder.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetRequestOrBuilder.java similarity index 63% rename from proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetRequestOrBuilder.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetRequestOrBuilder.java index bb7eca8aa..1f93fa365 100644 --- a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetRequestOrBuilder.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetRequestOrBuilder.java @@ -1,72 +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/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}`
    * 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.
    * 
* - * - * string parent = 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}`
    * 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.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * The maximum number of phrase sets to return. The service may return
    * fewer than this value. If unspecified, at most 50 phrase sets will be
@@ -75,14 +48,11 @@ public interface ListPhraseSetRequestOrBuilder
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * A page token, received from a previous `ListPhraseSet` call.
    * Provide this to retrieve the subsequent page.
@@ -91,13 +61,10 @@ public interface ListPhraseSetRequestOrBuilder
    * 
* * string page_token = 3; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * A page token, received from a previous `ListPhraseSet` call.
    * Provide this to retrieve the subsequent page.
@@ -106,8 +73,8 @@ public interface ListPhraseSetRequestOrBuilder
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); } diff --git a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetResponse.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetResponse.java similarity index 73% rename from proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetResponse.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetResponse.java index be6be5a26..83716c395 100644 --- a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetResponse.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetResponse.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech_adaptation.proto package com.google.cloud.speech.v1p1beta1; /** - * - * *
  * Message returned to the client by the `ListPhraseSet` method.
  * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.ListPhraseSetResponse} */ -public final class ListPhraseSetResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListPhraseSetResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v1p1beta1.ListPhraseSetResponse) ListPhraseSetResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListPhraseSetResponse.newBuilder() to construct. private ListPhraseSetResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListPhraseSetResponse() { phraseSets_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -44,15 +26,16 @@ private ListPhraseSetResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListPhraseSetResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListPhraseSetResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,38 +55,35 @@ private ListPhraseSetResponse( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - phraseSets_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - phraseSets_.add( - input.readMessage( - com.google.cloud.speech.v1p1beta1.PhraseSet.parser(), extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + phraseSets_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + phraseSets_.add( + input.readMessage(com.google.cloud.speech.v1p1beta1.PhraseSet.parser(), extensionRegistry)); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + nextPageToken_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { phraseSets_ = java.util.Collections.unmodifiableList(phraseSets_); @@ -112,27 +92,22 @@ private ListPhraseSetResponse( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto - .internal_static_google_cloud_speech_v1p1beta1_ListPhraseSetResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_ListPhraseSetResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto - .internal_static_google_cloud_speech_v1p1beta1_ListPhraseSetResponse_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_ListPhraseSetResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse.class, - com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse.Builder.class); + com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse.class, com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse.Builder.class); } public static final int PHRASE_SETS_FIELD_NUMBER = 1; private java.util.List phraseSets_; /** - * - * *
    * The phrase set.
    * 
@@ -144,8 +119,6 @@ public java.util.List getPhraseSets return phraseSets_; } /** - * - * *
    * The phrase set.
    * 
@@ -153,13 +126,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.
    * 
@@ -171,8 +142,6 @@ public int getPhraseSetsCount() { return phraseSets_.size(); } /** - * - * *
    * The phrase set.
    * 
@@ -184,8 +153,6 @@ public com.google.cloud.speech.v1p1beta1.PhraseSet getPhraseSets(int index) { return phraseSets_.get(index); } /** - * - * *
    * The phrase set.
    * 
@@ -193,22 +160,20 @@ public com.google.cloud.speech.v1p1beta1.PhraseSet getPhraseSets(int index) { * repeated .google.cloud.speech.v1p1beta1.PhraseSet phrase_sets = 1; */ @java.lang.Override - public com.google.cloud.speech.v1p1beta1.PhraseSetOrBuilder getPhraseSetsOrBuilder(int index) { + public com.google.cloud.speech.v1p1beta1.PhraseSetOrBuilder getPhraseSetsOrBuilder( + int index) { return phraseSets_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** - * - * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -217,30 +182,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 { @@ -249,7 +214,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -261,7 +225,8 @@ public final boolean isInitialized() { } @java.lang.Override - 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)); } @@ -278,7 +243,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_); @@ -291,16 +257,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse)) { return super.equals(obj); } - com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse other = - (com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse) obj; + com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse other = (com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse) obj; - if (!getPhraseSetsList().equals(other.getPhraseSetsList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getPhraseSetsList() + .equals(other.getPhraseSetsList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -324,127 +291,117 @@ public int hashCode() { } public static com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse prototype) { + public static Builder newBuilder(com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Message returned to the client by the `ListPhraseSet` method.
    * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.ListPhraseSetResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1p1beta1.ListPhraseSetResponse) com.google.cloud.speech.v1p1beta1.ListPhraseSetResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto - .internal_static_google_cloud_speech_v1p1beta1_ListPhraseSetResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_ListPhraseSetResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto - .internal_static_google_cloud_speech_v1p1beta1_ListPhraseSetResponse_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_ListPhraseSetResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse.class, - com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse.Builder.class); + com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse.class, com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse.Builder.class); } // Construct using com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse.newBuilder() @@ -452,17 +409,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getPhraseSetsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -478,9 +435,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 @@ -499,8 +456,7 @@ public com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse build() { @java.lang.Override public com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse buildPartial() { - com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse result = - new com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse(this); + com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse result = new com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse(this); int from_bitField0_ = bitField0_; if (phraseSetsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -520,39 +476,38 @@ public com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse) { - return mergeFrom((com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse) other); + return mergeFrom((com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse)other); } else { super.mergeFrom(other); return this; @@ -560,8 +515,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()) { @@ -580,10 +534,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_); } @@ -612,8 +565,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -622,29 +574,21 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.util.List phraseSets_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensurePhraseSetsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - phraseSets_ = - new java.util.ArrayList(phraseSets_); + phraseSets_ = new java.util.ArrayList(phraseSets_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.PhraseSet, - com.google.cloud.speech.v1p1beta1.PhraseSet.Builder, - com.google.cloud.speech.v1p1beta1.PhraseSetOrBuilder> - phraseSetsBuilder_; + com.google.cloud.speech.v1p1beta1.PhraseSet, com.google.cloud.speech.v1p1beta1.PhraseSet.Builder, com.google.cloud.speech.v1p1beta1.PhraseSetOrBuilder> phraseSetsBuilder_; /** - * - * *
      * The phrase set.
      * 
@@ -659,8 +603,6 @@ public java.util.List getPhraseSets } } /** - * - * *
      * The phrase set.
      * 
@@ -675,8 +617,6 @@ public int getPhraseSetsCount() { } } /** - * - * *
      * The phrase set.
      * 
@@ -691,15 +631,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(); @@ -713,8 +652,6 @@ public Builder setPhraseSets(int index, com.google.cloud.speech.v1p1beta1.Phrase return this; } /** - * - * *
      * The phrase set.
      * 
@@ -733,8 +670,6 @@ public Builder setPhraseSets( return this; } /** - * - * *
      * The phrase set.
      * 
@@ -755,15 +690,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(); @@ -777,8 +711,6 @@ public Builder addPhraseSets(int index, com.google.cloud.speech.v1p1beta1.Phrase return this; } /** - * - * *
      * The phrase set.
      * 
@@ -797,8 +729,6 @@ public Builder addPhraseSets( return this; } /** - * - * *
      * The phrase set.
      * 
@@ -817,8 +747,6 @@ public Builder addPhraseSets( return this; } /** - * - * *
      * The phrase set.
      * 
@@ -829,7 +757,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); @@ -837,8 +766,6 @@ public Builder addAllPhraseSets( return this; } /** - * - * *
      * The phrase set.
      * 
@@ -856,8 +783,6 @@ public Builder clearPhraseSets() { return this; } /** - * - * *
      * The phrase set.
      * 
@@ -875,44 +800,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 { @@ -920,8 +840,6 @@ public com.google.cloud.speech.v1p1beta1.PhraseSetOrBuilder getPhraseSetsOrBuild } } /** - * - * *
      * The phrase set.
      * 
@@ -929,48 +847,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_; @@ -978,21 +890,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; @@ -1001,22 +911,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 { @@ -1024,71 +933,64 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { + public Builder setNextPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** - * - * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** - * - * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1098,12 +1000,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(); } @@ -1112,16 +1014,16 @@ public static com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListPhraseSetResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListPhraseSetResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListPhraseSetResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListPhraseSetResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1136,4 +1038,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetResponseOrBuilder.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetResponseOrBuilder.java similarity index 67% rename from proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetResponseOrBuilder.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetResponseOrBuilder.java index 319d29f4f..7a24d1b77 100644 --- a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetResponseOrBuilder.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetResponseOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech_adaptation.proto package com.google.cloud.speech.v1p1beta1; -public interface ListPhraseSetResponseOrBuilder - extends +public interface ListPhraseSetResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1p1beta1.ListPhraseSetResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The phrase set.
    * 
* * repeated .google.cloud.speech.v1p1beta1.PhraseSet phrase_sets = 1; */ - java.util.List getPhraseSetsList(); + java.util.List + getPhraseSetsList(); /** - * - * *
    * The phrase set.
    * 
@@ -44,8 +25,6 @@ public interface ListPhraseSetResponseOrBuilder */ com.google.cloud.speech.v1p1beta1.PhraseSet getPhraseSets(int index); /** - * - * *
    * The phrase set.
    * 
@@ -54,51 +33,43 @@ public interface ListPhraseSetResponseOrBuilder */ int getPhraseSetsCount(); /** - * - * *
    * The phrase set.
    * 
* * repeated .google.cloud.speech.v1p1beta1.PhraseSet phrase_sets = 1; */ - java.util.List + java.util.List getPhraseSetsOrBuilderList(); /** - * - * *
    * The phrase set.
    * 
* * repeated .google.cloud.speech.v1p1beta1.PhraseSet phrase_sets = 1; */ - com.google.cloud.speech.v1p1beta1.PhraseSetOrBuilder getPhraseSetsOrBuilder(int index); + com.google.cloud.speech.v1p1beta1.PhraseSetOrBuilder getPhraseSetsOrBuilder( + int index); /** - * - * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); } diff --git a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LocationName.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LocationName.java similarity index 100% rename from proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LocationName.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LocationName.java diff --git a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeMetadata.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeMetadata.java similarity index 68% rename from proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeMetadata.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeMetadata.java index e3e8d3fdf..77f6b5c37 100644 --- a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeMetadata.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeMetadata.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech.proto package com.google.cloud.speech.v1p1beta1; /** - * - * *
  * Describes the progress of a long-running `LongRunningRecognize` call. It is
  * included in the `metadata` field of the `Operation` returned by the
@@ -29,31 +12,31 @@
  *
  * Protobuf type {@code google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata}
  */
-public final class LongRunningRecognizeMetadata extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class LongRunningRecognizeMetadata extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata)
     LongRunningRecognizeMetadataOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use LongRunningRecognizeMetadata.newBuilder() to construct.
   private LongRunningRecognizeMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private LongRunningRecognizeMetadata() {
     uri_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new LongRunningRecognizeMetadata();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private LongRunningRecognizeMetadata(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -72,111 +55,97 @@ private LongRunningRecognizeMetadata(
           case 0:
             done = true;
             break;
-          case 8:
-            {
-              progressPercent_ = input.readInt32();
-              break;
+          case 8: {
+
+            progressPercent_ = input.readInt32();
+            break;
+          }
+          case 18: {
+            com.google.protobuf.Timestamp.Builder subBuilder = null;
+            if (startTime_ != null) {
+              subBuilder = startTime_.toBuilder();
             }
-          case 18:
-            {
-              com.google.protobuf.Timestamp.Builder subBuilder = null;
-              if (startTime_ != null) {
-                subBuilder = startTime_.toBuilder();
-              }
-              startTime_ =
-                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(startTime_);
-                startTime_ = subBuilder.buildPartial();
-              }
-
-              break;
+            startTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(startTime_);
+              startTime_ = subBuilder.buildPartial();
+            }
+
+            break;
+          }
+          case 26: {
+            com.google.protobuf.Timestamp.Builder subBuilder = null;
+            if (lastUpdateTime_ != null) {
+              subBuilder = lastUpdateTime_.toBuilder();
             }
-          case 26:
-            {
-              com.google.protobuf.Timestamp.Builder subBuilder = null;
-              if (lastUpdateTime_ != null) {
-                subBuilder = lastUpdateTime_.toBuilder();
-              }
-              lastUpdateTime_ =
-                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(lastUpdateTime_);
-                lastUpdateTime_ = subBuilder.buildPartial();
-              }
-
-              break;
+            lastUpdateTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(lastUpdateTime_);
+              lastUpdateTime_ = subBuilder.buildPartial();
             }
-          case 34:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
 
-              uri_ = s;
-              break;
+            break;
+          }
+          case 34: {
+            java.lang.String s = input.readStringRequireUtf8();
+
+            uri_ = s;
+            break;
+          }
+          case 42: {
+            com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.Builder subBuilder = null;
+            if (outputConfig_ != null) {
+              subBuilder = outputConfig_.toBuilder();
             }
-          case 42:
-            {
-              com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.Builder subBuilder = null;
-              if (outputConfig_ != null) {
-                subBuilder = outputConfig_.toBuilder();
-              }
-              outputConfig_ =
-                  input.readMessage(
-                      com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(outputConfig_);
-                outputConfig_ = subBuilder.buildPartial();
-              }
-
-              break;
+            outputConfig_ = input.readMessage(com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(outputConfig_);
+              outputConfig_ = subBuilder.buildPartial();
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.speech.v1p1beta1.SpeechProto
-        .internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeMetadata_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeMetadata_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v1p1beta1.SpeechProto
-        .internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeMetadata_fieldAccessorTable
+    return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeMetadata_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata.class,
-            com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata.Builder.class);
+            com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata.class, com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata.Builder.class);
   }
 
   public static final int PROGRESS_PERCENT_FIELD_NUMBER = 1;
   private int progressPercent_;
   /**
-   *
-   *
    * 
    * Approximate percentage of audio processed thus far. Guaranteed to be 100
    * when the audio is fully processed and the results are available.
    * 
* * int32 progress_percent = 1; - * * @return The progressPercent. */ @java.lang.Override @@ -187,14 +156,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 @@ -202,14 +168,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 @@ -217,8 +180,6 @@ public com.google.protobuf.Timestamp getStartTime() { return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } /** - * - * *
    * Time when the request was received.
    * 
@@ -233,14 +194,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 @@ -248,25 +206,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.
    * 
@@ -281,15 +232,12 @@ public com.google.protobuf.TimestampOrBuilder getLastUpdateTimeOrBuilder() { public static final int URI_FIELD_NUMBER = 4; private volatile java.lang.Object uri_; /** - * - * *
    * Output only. The URI of the audio file being transcribed. Empty if the audio was sent
    * as byte content.
    * 
* * string uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The uri. */ @java.lang.Override @@ -298,30 +246,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 { @@ -332,16 +280,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 @@ -349,43 +292,30 @@ public boolean hasOutputConfig() { return outputConfig_ != null; } /** - * - * *
    * Output only. A copy of the TranscriptOutputConfig if it was set in the request.
    * 
* - * - * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The outputConfig. */ @java.lang.Override public com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig getOutputConfig() { - return outputConfig_ == null - ? com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.getDefaultInstance() - : outputConfig_; + return outputConfig_ == null ? com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.getDefaultInstance() : outputConfig_; } /** - * - * *
    * Output only. A copy of the TranscriptOutputConfig if it was set in the request.
    * 
* - * - * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override - public com.google.cloud.speech.v1p1beta1.TranscriptOutputConfigOrBuilder - getOutputConfigOrBuilder() { + public com.google.cloud.speech.v1p1beta1.TranscriptOutputConfigOrBuilder getOutputConfigOrBuilder() { return getOutputConfig(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -397,7 +327,8 @@ public final boolean isInitialized() { } @java.lang.Override - public 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_); } @@ -423,19 +354,23 @@ public int getSerializedSize() { size = 0; if (progressPercent_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, progressPercent_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(1, progressPercent_); } if (startTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getStartTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getStartTime()); } if (lastUpdateTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getLastUpdateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getLastUpdateTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, uri_); } if (outputConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getOutputConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getOutputConfig()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -445,27 +380,31 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata)) { return super.equals(obj); } - com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata other = - (com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata) obj; + com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata other = (com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata) obj; - if (getProgressPercent() != other.getProgressPercent()) return false; + if (getProgressPercent() + != other.getProgressPercent()) return false; if (hasStartTime() != other.hasStartTime()) return false; if (hasStartTime()) { - if (!getStartTime().equals(other.getStartTime())) return false; + if (!getStartTime() + .equals(other.getStartTime())) return false; } if (hasLastUpdateTime() != other.hasLastUpdateTime()) return false; if (hasLastUpdateTime()) { - if (!getLastUpdateTime().equals(other.getLastUpdateTime())) return false; + if (!getLastUpdateTime() + .equals(other.getLastUpdateTime())) return false; } - if (!getUri().equals(other.getUri())) return false; + if (!getUri() + .equals(other.getUri())) return false; if (hasOutputConfig() != other.hasOutputConfig()) return false; if (hasOutputConfig()) { - if (!getOutputConfig().equals(other.getOutputConfig())) return false; + if (!getOutputConfig() + .equals(other.getOutputConfig())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -500,104 +439,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
@@ -606,23 +537,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata)
       com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadataOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.speech.v1p1beta1.SpeechProto
-          .internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeMetadata_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeMetadata_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v1p1beta1.SpeechProto
-          .internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeMetadata_fieldAccessorTable
+      return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeMetadata_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata.class,
-              com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata.Builder.class);
+              com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata.class, com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata.newBuilder()
@@ -630,15 +559,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -668,14 +598,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();
     }
 
@@ -690,8 +619,7 @@ public com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata buildPartial() {
-      com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata result =
-          new com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata(this);
+      com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata result = new com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata(this);
       result.progressPercent_ = progressPercent_;
       if (startTimeBuilder_ == null) {
         result.startTime_ = startTime_;
@@ -717,39 +645,38 @@ public com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata buildParti
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata) {
-        return mergeFrom((com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata) other);
+        return mergeFrom((com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -757,9 +684,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());
       }
@@ -795,9 +720,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata)
-                e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -807,17 +730,14 @@ public Builder mergeFrom(
       return this;
     }
 
-    private int progressPercent_;
+    private int progressPercent_ ;
     /**
-     *
-     *
      * 
      * Approximate percentage of audio processed thus far. Guaranteed to be 100
      * when the audio is fully processed and the results are available.
      * 
* * int32 progress_percent = 1; - * * @return The progressPercent. */ @java.lang.Override @@ -825,38 +745,32 @@ public int getProgressPercent() { return progressPercent_; } /** - * - * *
      * Approximate percentage of audio processed thus far. Guaranteed to be 100
      * when the audio is fully processed and the results are available.
      * 
* * int32 progress_percent = 1; - * * @param value The progressPercent to set. * @return This builder for chaining. */ public Builder setProgressPercent(int value) { - + progressPercent_ = value; onChanged(); return this; } /** - * - * *
      * Approximate percentage of audio processed thus far. Guaranteed to be 100
      * when the audio is fully processed and the results are available.
      * 
* * int32 progress_percent = 1; - * * @return This builder for chaining. */ public Builder clearProgressPercent() { - + progressPercent_ = 0; onChanged(); return this; @@ -864,33 +778,24 @@ public Builder clearProgressPercent() { private com.google.protobuf.Timestamp startTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - startTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> startTimeBuilder_; /** - * - * *
      * Time when the request was received.
      * 
* * .google.protobuf.Timestamp start_time = 2; - * * @return Whether the startTime field is set. */ public boolean hasStartTime() { return startTimeBuilder_ != null || startTime_ != null; } /** - * - * *
      * Time when the request was received.
      * 
* * .google.protobuf.Timestamp start_time = 2; - * * @return The startTime. */ public com.google.protobuf.Timestamp getStartTime() { @@ -901,8 +806,6 @@ public com.google.protobuf.Timestamp getStartTime() { } } /** - * - * *
      * Time when the request was received.
      * 
@@ -923,15 +826,14 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Time when the request was received.
      * 
* * .google.protobuf.Timestamp start_time = 2; */ - public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setStartTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (startTimeBuilder_ == null) { startTime_ = builderForValue.build(); onChanged(); @@ -942,8 +844,6 @@ public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValu return this; } /** - * - * *
      * Time when the request was received.
      * 
@@ -954,7 +854,7 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { if (startTimeBuilder_ == null) { if (startTime_ != null) { startTime_ = - com.google.protobuf.Timestamp.newBuilder(startTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(startTime_).mergeFrom(value).buildPartial(); } else { startTime_ = value; } @@ -966,8 +866,6 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Time when the request was received.
      * 
@@ -986,8 +884,6 @@ public Builder clearStartTime() { return this; } /** - * - * *
      * Time when the request was received.
      * 
@@ -995,13 +891,11 @@ public Builder clearStartTime() { * .google.protobuf.Timestamp start_time = 2; */ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { - + onChanged(); return getStartTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Time when the request was received.
      * 
@@ -1012,12 +906,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.
      * 
@@ -1025,17 +918,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_; @@ -1043,47 +933,34 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { private com.google.protobuf.Timestamp lastUpdateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - lastUpdateTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> lastUpdateTimeBuilder_; /** - * - * *
      * Time of the most recent processing update.
      * 
* * .google.protobuf.Timestamp last_update_time = 3; - * * @return Whether the lastUpdateTime field is set. */ public boolean hasLastUpdateTime() { return lastUpdateTimeBuilder_ != null || lastUpdateTime_ != null; } /** - * - * *
      * Time of the most recent processing update.
      * 
* * .google.protobuf.Timestamp last_update_time = 3; - * * @return The lastUpdateTime. */ public com.google.protobuf.Timestamp getLastUpdateTime() { if (lastUpdateTimeBuilder_ == null) { - return lastUpdateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : lastUpdateTime_; + return lastUpdateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastUpdateTime_; } else { return lastUpdateTimeBuilder_.getMessage(); } } /** - * - * *
      * Time of the most recent processing update.
      * 
@@ -1104,15 +981,14 @@ public Builder setLastUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Time of the most recent processing update.
      * 
* * .google.protobuf.Timestamp last_update_time = 3; */ - public Builder setLastUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setLastUpdateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (lastUpdateTimeBuilder_ == null) { lastUpdateTime_ = builderForValue.build(); onChanged(); @@ -1123,8 +999,6 @@ public Builder setLastUpdateTime(com.google.protobuf.Timestamp.Builder builderFo return this; } /** - * - * *
      * Time of the most recent processing update.
      * 
@@ -1135,9 +1009,7 @@ public Builder mergeLastUpdateTime(com.google.protobuf.Timestamp value) { if (lastUpdateTimeBuilder_ == null) { if (lastUpdateTime_ != null) { lastUpdateTime_ = - com.google.protobuf.Timestamp.newBuilder(lastUpdateTime_) - .mergeFrom(value) - .buildPartial(); + com.google.protobuf.Timestamp.newBuilder(lastUpdateTime_).mergeFrom(value).buildPartial(); } else { lastUpdateTime_ = value; } @@ -1149,8 +1021,6 @@ public Builder mergeLastUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Time of the most recent processing update.
      * 
@@ -1169,8 +1039,6 @@ public Builder clearLastUpdateTime() { return this; } /** - * - * *
      * Time of the most recent processing update.
      * 
@@ -1178,13 +1046,11 @@ public Builder clearLastUpdateTime() { * .google.protobuf.Timestamp last_update_time = 3; */ public com.google.protobuf.Timestamp.Builder getLastUpdateTimeBuilder() { - + onChanged(); return getLastUpdateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Time of the most recent processing update.
      * 
@@ -1195,14 +1061,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.
      * 
@@ -1210,17 +1073,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_; @@ -1228,21 +1088,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; @@ -1251,22 +1109,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 { @@ -1274,64 +1131,57 @@ public com.google.protobuf.ByteString getUriBytes() { } } /** - * - * *
      * Output only. The URI of the audio file being transcribed. Empty if the audio was sent
      * as byte content.
      * 
* * string uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The uri to set. * @return This builder for chaining. */ - public Builder setUri(java.lang.String value) { + public Builder setUri( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + uri_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The URI of the audio file being transcribed. Empty if the audio was sent
      * as byte content.
      * 
* * string uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearUri() { - + uri_ = getDefaultInstance().getUri(); onChanged(); return this; } /** - * - * *
      * Output only. The URI of the audio file being transcribed. Empty if the audio was sent
      * as byte content.
      * 
* * string uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for uri to set. * @return This builder for chaining. */ - public Builder setUriBytes(com.google.protobuf.ByteString value) { + public Builder setUriBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + uri_ = value; onChanged(); return this; @@ -1339,58 +1189,39 @@ public Builder setUriBytes(com.google.protobuf.ByteString value) { private com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig outputConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig, - com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.Builder, - com.google.cloud.speech.v1p1beta1.TranscriptOutputConfigOrBuilder> - outputConfigBuilder_; + com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig, com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.Builder, com.google.cloud.speech.v1p1beta1.TranscriptOutputConfigOrBuilder> outputConfigBuilder_; /** - * - * *
      * Output only. A copy of the TranscriptOutputConfig if it was set in the request.
      * 
* - * - * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the outputConfig field is set. */ public boolean hasOutputConfig() { return outputConfigBuilder_ != null || outputConfig_ != null; } /** - * - * *
      * Output only. A copy of the TranscriptOutputConfig if it was set in the request.
      * 
* - * - * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The outputConfig. */ public com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig getOutputConfig() { if (outputConfigBuilder_ == null) { - return outputConfig_ == null - ? com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.getDefaultInstance() - : outputConfig_; + return outputConfig_ == null ? com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.getDefaultInstance() : outputConfig_; } else { return outputConfigBuilder_.getMessage(); } } /** - * - * *
      * Output only. A copy of the TranscriptOutputConfig if it was set in the request.
      * 
* - * - * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setOutputConfig(com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig value) { if (outputConfigBuilder_ == null) { @@ -1406,15 +1237,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) { @@ -1428,24 +1255,17 @@ public Builder setOutputConfig( return this; } /** - * - * *
      * Output only. A copy of the TranscriptOutputConfig if it was set in the request.
      * 
* - * - * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder mergeOutputConfig( - com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig value) { + public Builder mergeOutputConfig(com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig value) { if (outputConfigBuilder_ == null) { if (outputConfig_ != null) { outputConfig_ = - com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.newBuilder(outputConfig_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.newBuilder(outputConfig_).mergeFrom(value).buildPartial(); } else { outputConfig_ = value; } @@ -1457,15 +1277,11 @@ public Builder mergeOutputConfig( return this; } /** - * - * *
      * Output only. A copy of the TranscriptOutputConfig if it was set in the request.
      * 
* - * - * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearOutputConfig() { if (outputConfigBuilder_ == null) { @@ -1479,73 +1295,55 @@ public Builder clearOutputConfig() { return this; } /** - * - * *
      * Output only. A copy of the TranscriptOutputConfig if it was set in the request.
      * 
* - * - * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.Builder - getOutputConfigBuilder() { - + public com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.Builder getOutputConfigBuilder() { + onChanged(); return getOutputConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. A copy of the TranscriptOutputConfig if it was set in the request.
      * 
* - * - * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.speech.v1p1beta1.TranscriptOutputConfigOrBuilder - getOutputConfigOrBuilder() { + public com.google.cloud.speech.v1p1beta1.TranscriptOutputConfigOrBuilder getOutputConfigOrBuilder() { if (outputConfigBuilder_ != null) { return outputConfigBuilder_.getMessageOrBuilder(); } else { - return outputConfig_ == null - ? com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.getDefaultInstance() - : outputConfig_; + return outputConfig_ == null ? + com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.getDefaultInstance() : outputConfig_; } } /** - * - * *
      * Output only. A copy of the TranscriptOutputConfig if it was set in the request.
      * 
* - * - * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig, - com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.Builder, - com.google.cloud.speech.v1p1beta1.TranscriptOutputConfigOrBuilder> + com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig, com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.Builder, com.google.cloud.speech.v1p1beta1.TranscriptOutputConfigOrBuilder> getOutputConfigFieldBuilder() { if (outputConfigBuilder_ == null) { - outputConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig, - com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.Builder, - com.google.cloud.speech.v1p1beta1.TranscriptOutputConfigOrBuilder>( - getOutputConfig(), getParentForChildren(), isClean()); + outputConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig, com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.Builder, com.google.cloud.speech.v1p1beta1.TranscriptOutputConfigOrBuilder>( + getOutputConfig(), + getParentForChildren(), + isClean()); outputConfig_ = null; } return outputConfigBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1555,32 +1353,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata) - private static final com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata - DEFAULT_INSTANCE; - + private static final com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata(); } - public static com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata - getDefaultInstance() { + public static com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LongRunningRecognizeMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new LongRunningRecognizeMetadata(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LongRunningRecognizeMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LongRunningRecognizeMetadata(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1592,8 +1388,9 @@ public com.google.protobuf.Parser getParserForType } @java.lang.Override - public com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata - getDefaultInstanceForType() { + public com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeMetadataOrBuilder.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeMetadataOrBuilder.java similarity index 70% rename from proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeMetadataOrBuilder.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeMetadataOrBuilder.java index 0016ab958..2e4b54cbc 100644 --- a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeMetadataOrBuilder.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeMetadataOrBuilder.java @@ -1,69 +1,42 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech.proto package com.google.cloud.speech.v1p1beta1; -public interface LongRunningRecognizeMetadataOrBuilder - extends +public interface LongRunningRecognizeMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Approximate percentage of audio processed thus far. Guaranteed to be 100
    * when the audio is fully processed and the results are available.
    * 
* * int32 progress_percent = 1; - * * @return The progressPercent. */ int getProgressPercent(); /** - * - * *
    * Time when the request was received.
    * 
* * .google.protobuf.Timestamp start_time = 2; - * * @return Whether the startTime field is set. */ boolean hasStartTime(); /** - * - * *
    * Time when the request was received.
    * 
* * .google.protobuf.Timestamp start_time = 2; - * * @return The startTime. */ com.google.protobuf.Timestamp getStartTime(); /** - * - * *
    * Time when the request was received.
    * 
@@ -73,32 +46,24 @@ public interface LongRunningRecognizeMetadataOrBuilder com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder(); /** - * - * *
    * Time of the most recent processing update.
    * 
* * .google.protobuf.Timestamp last_update_time = 3; - * * @return Whether the lastUpdateTime field is set. */ boolean hasLastUpdateTime(); /** - * - * *
    * Time of the most recent processing update.
    * 
* * .google.protobuf.Timestamp last_update_time = 3; - * * @return The lastUpdateTime. */ com.google.protobuf.Timestamp getLastUpdateTime(); /** - * - * *
    * Time of the most recent processing update.
    * 
@@ -108,70 +73,51 @@ public interface LongRunningRecognizeMetadataOrBuilder com.google.protobuf.TimestampOrBuilder getLastUpdateTimeOrBuilder(); /** - * - * *
    * Output only. The URI of the audio file being transcribed. Empty if the audio was sent
    * as byte content.
    * 
* * string uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The uri. */ java.lang.String getUri(); /** - * - * *
    * Output only. The URI of the audio file being transcribed. Empty if the audio was sent
    * as byte content.
    * 
* * string uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for uri. */ - com.google.protobuf.ByteString getUriBytes(); + com.google.protobuf.ByteString + getUriBytes(); /** - * - * *
    * Output only. A copy of the TranscriptOutputConfig if it was set in the request.
    * 
* - * - * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the outputConfig field is set. */ boolean hasOutputConfig(); /** - * - * *
    * Output only. A copy of the TranscriptOutputConfig if it was set in the request.
    * 
* - * - * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The outputConfig. */ com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig getOutputConfig(); /** - * - * *
    * Output only. A copy of the TranscriptOutputConfig if it was set in the request.
    * 
* - * - * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.cloud.speech.v1p1beta1.TranscriptOutputConfigOrBuilder getOutputConfigOrBuilder(); } diff --git a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeRequest.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeRequest.java similarity index 59% rename from proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeRequest.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeRequest.java index d05dbda8a..183355d0c 100644 --- a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeRequest.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeRequest.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech.proto package com.google.cloud.speech.v1p1beta1; /** - * - * *
  * The top-level message sent by the client for the `LongRunningRecognize`
  * method.
@@ -28,29 +11,30 @@
  *
  * Protobuf type {@code google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest}
  */
-public final class LongRunningRecognizeRequest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class LongRunningRecognizeRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest)
     LongRunningRecognizeRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use LongRunningRecognizeRequest.newBuilder() to construct.
   private LongRunningRecognizeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
-  private LongRunningRecognizeRequest() {}
+  private LongRunningRecognizeRequest() {
+  }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new LongRunningRecognizeRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private LongRunningRecognizeRequest(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -69,105 +53,86 @@ private LongRunningRecognizeRequest(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              com.google.cloud.speech.v1p1beta1.RecognitionConfig.Builder subBuilder = null;
-              if (config_ != null) {
-                subBuilder = config_.toBuilder();
-              }
-              config_ =
-                  input.readMessage(
-                      com.google.cloud.speech.v1p1beta1.RecognitionConfig.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(config_);
-                config_ = subBuilder.buildPartial();
-              }
-
-              break;
+          case 10: {
+            com.google.cloud.speech.v1p1beta1.RecognitionConfig.Builder subBuilder = null;
+            if (config_ != null) {
+              subBuilder = config_.toBuilder();
+            }
+            config_ = input.readMessage(com.google.cloud.speech.v1p1beta1.RecognitionConfig.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(config_);
+              config_ = subBuilder.buildPartial();
             }
-          case 18:
-            {
-              com.google.cloud.speech.v1p1beta1.RecognitionAudio.Builder subBuilder = null;
-              if (audio_ != null) {
-                subBuilder = audio_.toBuilder();
-              }
-              audio_ =
-                  input.readMessage(
-                      com.google.cloud.speech.v1p1beta1.RecognitionAudio.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(audio_);
-                audio_ = subBuilder.buildPartial();
-              }
 
-              break;
+            break;
+          }
+          case 18: {
+            com.google.cloud.speech.v1p1beta1.RecognitionAudio.Builder subBuilder = null;
+            if (audio_ != null) {
+              subBuilder = audio_.toBuilder();
+            }
+            audio_ = input.readMessage(com.google.cloud.speech.v1p1beta1.RecognitionAudio.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(audio_);
+              audio_ = subBuilder.buildPartial();
             }
-          case 34:
-            {
-              com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.Builder subBuilder = null;
-              if (outputConfig_ != null) {
-                subBuilder = outputConfig_.toBuilder();
-              }
-              outputConfig_ =
-                  input.readMessage(
-                      com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(outputConfig_);
-                outputConfig_ = subBuilder.buildPartial();
-              }
 
-              break;
+            break;
+          }
+          case 34: {
+            com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.Builder subBuilder = null;
+            if (outputConfig_ != null) {
+              subBuilder = outputConfig_.toBuilder();
+            }
+            outputConfig_ = input.readMessage(com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(outputConfig_);
+              outputConfig_ = subBuilder.buildPartial();
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.speech.v1p1beta1.SpeechProto
-        .internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v1p1beta1.SpeechProto
-        .internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeRequest_fieldAccessorTable
+    return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest.class,
-            com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest.Builder.class);
+            com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest.class, com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest.Builder.class);
   }
 
   public static final int CONFIG_FIELD_NUMBER = 1;
   private com.google.cloud.speech.v1p1beta1.RecognitionConfig config_;
   /**
-   *
-   *
    * 
    * Required. Provides information to the recognizer that specifies how to
    * process the request.
    * 
* - * - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the config field is set. */ @java.lang.Override @@ -175,36 +140,25 @@ public boolean hasConfig() { return config_ != null; } /** - * - * *
    * Required. Provides information to the recognizer that specifies how to
    * process the request.
    * 
* - * - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The config. */ @java.lang.Override public com.google.cloud.speech.v1p1beta1.RecognitionConfig getConfig() { - return config_ == null - ? com.google.cloud.speech.v1p1beta1.RecognitionConfig.getDefaultInstance() - : config_; + return config_ == null ? com.google.cloud.speech.v1p1beta1.RecognitionConfig.getDefaultInstance() : config_; } /** - * - * *
    * Required. Provides information to the recognizer that specifies how to
    * process the request.
    * 
* - * - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.speech.v1p1beta1.RecognitionConfigOrBuilder getConfigOrBuilder() { @@ -214,16 +168,11 @@ public com.google.cloud.speech.v1p1beta1.RecognitionConfigOrBuilder getConfigOrB public static final int AUDIO_FIELD_NUMBER = 2; private com.google.cloud.speech.v1p1beta1.RecognitionAudio audio_; /** - * - * *
    * Required. The audio data to be recognized.
    * 
* - * - * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the audio field is set. */ @java.lang.Override @@ -231,34 +180,23 @@ public boolean hasAudio() { return audio_ != null; } /** - * - * *
    * Required. The audio data to be recognized.
    * 
* - * - * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The audio. */ @java.lang.Override public com.google.cloud.speech.v1p1beta1.RecognitionAudio getAudio() { - return audio_ == null - ? com.google.cloud.speech.v1p1beta1.RecognitionAudio.getDefaultInstance() - : audio_; + return audio_ == null ? com.google.cloud.speech.v1p1beta1.RecognitionAudio.getDefaultInstance() : audio_; } /** - * - * *
    * Required. The audio data to be recognized.
    * 
* - * - * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.speech.v1p1beta1.RecognitionAudioOrBuilder getAudioOrBuilder() { @@ -268,16 +206,11 @@ public com.google.cloud.speech.v1p1beta1.RecognitionAudioOrBuilder getAudioOrBui public static final int OUTPUT_CONFIG_FIELD_NUMBER = 4; private com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig outputConfig_; /** - * - * *
    * Optional. Specifies an optional destination for the recognition results.
    * 
* - * - * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the outputConfig field is set. */ @java.lang.Override @@ -285,43 +218,30 @@ public boolean hasOutputConfig() { return outputConfig_ != null; } /** - * - * *
    * Optional. Specifies an optional destination for the recognition results.
    * 
* - * - * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The outputConfig. */ @java.lang.Override public com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig getOutputConfig() { - return outputConfig_ == null - ? com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.getDefaultInstance() - : outputConfig_; + return outputConfig_ == null ? com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.getDefaultInstance() : outputConfig_; } /** - * - * *
    * Optional. Specifies an optional destination for the recognition results.
    * 
* - * - * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.cloud.speech.v1p1beta1.TranscriptOutputConfigOrBuilder - getOutputConfigOrBuilder() { + public com.google.cloud.speech.v1p1beta1.TranscriptOutputConfigOrBuilder getOutputConfigOrBuilder() { return getOutputConfig(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -333,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 (config_ != null) { output.writeMessage(1, getConfig()); } @@ -353,13 +274,16 @@ public int getSerializedSize() { size = 0; if (config_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getConfig()); } if (audio_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getAudio()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getAudio()); } if (outputConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getOutputConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getOutputConfig()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -369,25 +293,27 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest)) { return super.equals(obj); } - com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest other = - (com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest) obj; + com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest other = (com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest) obj; if (hasConfig() != other.hasConfig()) return false; if (hasConfig()) { - if (!getConfig().equals(other.getConfig())) return false; + if (!getConfig() + .equals(other.getConfig())) return false; } if (hasAudio() != other.hasAudio()) return false; if (hasAudio()) { - if (!getAudio().equals(other.getAudio())) return false; + if (!getAudio() + .equals(other.getAudio())) return false; } if (hasOutputConfig() != other.hasOutputConfig()) return false; if (hasOutputConfig()) { - if (!getOutputConfig().equals(other.getOutputConfig())) return false; + if (!getOutputConfig() + .equals(other.getOutputConfig())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -418,104 +344,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.
@@ -523,23 +441,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest)
       com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.speech.v1p1beta1.SpeechProto
-          .internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v1p1beta1.SpeechProto
-          .internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeRequest_fieldAccessorTable
+      return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest.class,
-              com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest.Builder.class);
+              com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest.class, com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest.newBuilder()
@@ -547,15 +463,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -581,14 +498,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();
     }
 
@@ -603,8 +519,7 @@ public com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest buildPartial() {
-      com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest result =
-          new com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest(this);
+      com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest result = new com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest(this);
       if (configBuilder_ == null) {
         result.config_ = config_;
       } else {
@@ -628,39 +543,38 @@ public com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest buildPartia
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest) {
-        return mergeFrom((com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest) other);
+        return mergeFrom((com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -668,9 +582,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());
       }
@@ -699,9 +611,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest)
-                e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -713,61 +623,42 @@ public Builder mergeFrom(
 
     private com.google.cloud.speech.v1p1beta1.RecognitionConfig config_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.speech.v1p1beta1.RecognitionConfig,
-            com.google.cloud.speech.v1p1beta1.RecognitionConfig.Builder,
-            com.google.cloud.speech.v1p1beta1.RecognitionConfigOrBuilder>
-        configBuilder_;
+        com.google.cloud.speech.v1p1beta1.RecognitionConfig, com.google.cloud.speech.v1p1beta1.RecognitionConfig.Builder, com.google.cloud.speech.v1p1beta1.RecognitionConfigOrBuilder> configBuilder_;
     /**
-     *
-     *
      * 
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the config field is set. */ public boolean hasConfig() { return configBuilder_ != null || config_ != null; } /** - * - * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The config. */ public com.google.cloud.speech.v1p1beta1.RecognitionConfig getConfig() { if (configBuilder_ == null) { - return config_ == null - ? com.google.cloud.speech.v1p1beta1.RecognitionConfig.getDefaultInstance() - : config_; + return config_ == null ? com.google.cloud.speech.v1p1beta1.RecognitionConfig.getDefaultInstance() : config_; } else { return configBuilder_.getMessage(); } } /** - * - * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setConfig(com.google.cloud.speech.v1p1beta1.RecognitionConfig value) { if (configBuilder_ == null) { @@ -783,16 +674,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) { @@ -806,24 +693,18 @@ public Builder setConfig( return this; } /** - * - * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeConfig(com.google.cloud.speech.v1p1beta1.RecognitionConfig value) { if (configBuilder_ == null) { if (config_ != null) { config_ = - com.google.cloud.speech.v1p1beta1.RecognitionConfig.newBuilder(config_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.speech.v1p1beta1.RecognitionConfig.newBuilder(config_).mergeFrom(value).buildPartial(); } else { config_ = value; } @@ -835,16 +716,12 @@ public Builder mergeConfig(com.google.cloud.speech.v1p1beta1.RecognitionConfig v return this; } /** - * - * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearConfig() { if (configBuilder_ == null) { @@ -858,67 +735,51 @@ public Builder clearConfig() { return this; } /** - * - * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.speech.v1p1beta1.RecognitionConfig.Builder getConfigBuilder() { - + onChanged(); return getConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.speech.v1p1beta1.RecognitionConfigOrBuilder getConfigOrBuilder() { if (configBuilder_ != null) { return configBuilder_.getMessageOrBuilder(); } else { - return config_ == null - ? com.google.cloud.speech.v1p1beta1.RecognitionConfig.getDefaultInstance() - : config_; + return config_ == null ? + com.google.cloud.speech.v1p1beta1.RecognitionConfig.getDefaultInstance() : config_; } } /** - * - * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.RecognitionConfig, - com.google.cloud.speech.v1p1beta1.RecognitionConfig.Builder, - com.google.cloud.speech.v1p1beta1.RecognitionConfigOrBuilder> + com.google.cloud.speech.v1p1beta1.RecognitionConfig, com.google.cloud.speech.v1p1beta1.RecognitionConfig.Builder, com.google.cloud.speech.v1p1beta1.RecognitionConfigOrBuilder> getConfigFieldBuilder() { if (configBuilder_ == null) { - configBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.RecognitionConfig, - com.google.cloud.speech.v1p1beta1.RecognitionConfig.Builder, - com.google.cloud.speech.v1p1beta1.RecognitionConfigOrBuilder>( - getConfig(), getParentForChildren(), isClean()); + configBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v1p1beta1.RecognitionConfig, com.google.cloud.speech.v1p1beta1.RecognitionConfig.Builder, com.google.cloud.speech.v1p1beta1.RecognitionConfigOrBuilder>( + getConfig(), + getParentForChildren(), + isClean()); config_ = null; } return configBuilder_; @@ -926,58 +787,39 @@ public com.google.cloud.speech.v1p1beta1.RecognitionConfigOrBuilder getConfigOrB private com.google.cloud.speech.v1p1beta1.RecognitionAudio audio_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.RecognitionAudio, - com.google.cloud.speech.v1p1beta1.RecognitionAudio.Builder, - com.google.cloud.speech.v1p1beta1.RecognitionAudioOrBuilder> - audioBuilder_; + com.google.cloud.speech.v1p1beta1.RecognitionAudio, com.google.cloud.speech.v1p1beta1.RecognitionAudio.Builder, com.google.cloud.speech.v1p1beta1.RecognitionAudioOrBuilder> audioBuilder_; /** - * - * *
      * Required. The audio data to be recognized.
      * 
* - * - * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the audio field is set. */ public boolean hasAudio() { return audioBuilder_ != null || audio_ != null; } /** - * - * *
      * Required. The audio data to be recognized.
      * 
* - * - * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The audio. */ public com.google.cloud.speech.v1p1beta1.RecognitionAudio getAudio() { if (audioBuilder_ == null) { - return audio_ == null - ? com.google.cloud.speech.v1p1beta1.RecognitionAudio.getDefaultInstance() - : audio_; + return audio_ == null ? com.google.cloud.speech.v1p1beta1.RecognitionAudio.getDefaultInstance() : audio_; } else { return audioBuilder_.getMessage(); } } /** - * - * *
      * Required. The audio data to be recognized.
      * 
* - * - * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setAudio(com.google.cloud.speech.v1p1beta1.RecognitionAudio value) { if (audioBuilder_ == null) { @@ -993,15 +835,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) { @@ -1015,23 +853,17 @@ public Builder setAudio( return this; } /** - * - * *
      * Required. The audio data to be recognized.
      * 
* - * - * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeAudio(com.google.cloud.speech.v1p1beta1.RecognitionAudio value) { if (audioBuilder_ == null) { if (audio_ != null) { audio_ = - com.google.cloud.speech.v1p1beta1.RecognitionAudio.newBuilder(audio_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.speech.v1p1beta1.RecognitionAudio.newBuilder(audio_).mergeFrom(value).buildPartial(); } else { audio_ = value; } @@ -1043,15 +875,11 @@ public Builder mergeAudio(com.google.cloud.speech.v1p1beta1.RecognitionAudio val return this; } /** - * - * *
      * Required. The audio data to be recognized.
      * 
* - * - * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearAudio() { if (audioBuilder_ == null) { @@ -1065,64 +893,48 @@ public Builder clearAudio() { return this; } /** - * - * *
      * Required. The audio data to be recognized.
      * 
* - * - * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.speech.v1p1beta1.RecognitionAudio.Builder getAudioBuilder() { - + onChanged(); return getAudioFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The audio data to be recognized.
      * 
* - * - * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.speech.v1p1beta1.RecognitionAudioOrBuilder getAudioOrBuilder() { if (audioBuilder_ != null) { return audioBuilder_.getMessageOrBuilder(); } else { - return audio_ == null - ? com.google.cloud.speech.v1p1beta1.RecognitionAudio.getDefaultInstance() - : audio_; + return audio_ == null ? + com.google.cloud.speech.v1p1beta1.RecognitionAudio.getDefaultInstance() : audio_; } } /** - * - * *
      * Required. The audio data to be recognized.
      * 
* - * - * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.RecognitionAudio, - com.google.cloud.speech.v1p1beta1.RecognitionAudio.Builder, - com.google.cloud.speech.v1p1beta1.RecognitionAudioOrBuilder> + com.google.cloud.speech.v1p1beta1.RecognitionAudio, com.google.cloud.speech.v1p1beta1.RecognitionAudio.Builder, com.google.cloud.speech.v1p1beta1.RecognitionAudioOrBuilder> getAudioFieldBuilder() { if (audioBuilder_ == null) { - audioBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.RecognitionAudio, - com.google.cloud.speech.v1p1beta1.RecognitionAudio.Builder, - com.google.cloud.speech.v1p1beta1.RecognitionAudioOrBuilder>( - getAudio(), getParentForChildren(), isClean()); + audioBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v1p1beta1.RecognitionAudio, com.google.cloud.speech.v1p1beta1.RecognitionAudio.Builder, com.google.cloud.speech.v1p1beta1.RecognitionAudioOrBuilder>( + getAudio(), + getParentForChildren(), + isClean()); audio_ = null; } return audioBuilder_; @@ -1130,58 +942,39 @@ public com.google.cloud.speech.v1p1beta1.RecognitionAudioOrBuilder getAudioOrBui private com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig outputConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig, - com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.Builder, - com.google.cloud.speech.v1p1beta1.TranscriptOutputConfigOrBuilder> - outputConfigBuilder_; + com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig, com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.Builder, com.google.cloud.speech.v1p1beta1.TranscriptOutputConfigOrBuilder> outputConfigBuilder_; /** - * - * *
      * Optional. Specifies an optional destination for the recognition results.
      * 
* - * - * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the outputConfig field is set. */ public boolean hasOutputConfig() { return outputConfigBuilder_ != null || outputConfig_ != null; } /** - * - * *
      * Optional. Specifies an optional destination for the recognition results.
      * 
* - * - * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The outputConfig. */ public com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig getOutputConfig() { if (outputConfigBuilder_ == null) { - return outputConfig_ == null - ? com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.getDefaultInstance() - : outputConfig_; + return outputConfig_ == null ? com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.getDefaultInstance() : outputConfig_; } else { return outputConfigBuilder_.getMessage(); } } /** - * - * *
      * Optional. Specifies an optional destination for the recognition results.
      * 
* - * - * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setOutputConfig(com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig value) { if (outputConfigBuilder_ == null) { @@ -1197,15 +990,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) { @@ -1219,24 +1008,17 @@ public Builder setOutputConfig( return this; } /** - * - * *
      * Optional. Specifies an optional destination for the recognition results.
      * 
* - * - * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder mergeOutputConfig( - com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig value) { + public Builder mergeOutputConfig(com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig value) { if (outputConfigBuilder_ == null) { if (outputConfig_ != null) { outputConfig_ = - com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.newBuilder(outputConfig_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.newBuilder(outputConfig_).mergeFrom(value).buildPartial(); } else { outputConfig_ = value; } @@ -1248,15 +1030,11 @@ public Builder mergeOutputConfig( return this; } /** - * - * *
      * Optional. Specifies an optional destination for the recognition results.
      * 
* - * - * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearOutputConfig() { if (outputConfigBuilder_ == null) { @@ -1270,73 +1048,55 @@ public Builder clearOutputConfig() { return this; } /** - * - * *
      * Optional. Specifies an optional destination for the recognition results.
      * 
* - * - * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.Builder - getOutputConfigBuilder() { - + public com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.Builder getOutputConfigBuilder() { + onChanged(); return getOutputConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. Specifies an optional destination for the recognition results.
      * 
* - * - * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.speech.v1p1beta1.TranscriptOutputConfigOrBuilder - getOutputConfigOrBuilder() { + public com.google.cloud.speech.v1p1beta1.TranscriptOutputConfigOrBuilder getOutputConfigOrBuilder() { if (outputConfigBuilder_ != null) { return outputConfigBuilder_.getMessageOrBuilder(); } else { - return outputConfig_ == null - ? com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.getDefaultInstance() - : outputConfig_; + return outputConfig_ == null ? + com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.getDefaultInstance() : outputConfig_; } } /** - * - * *
      * Optional. Specifies an optional destination for the recognition results.
      * 
* - * - * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig, - com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.Builder, - com.google.cloud.speech.v1p1beta1.TranscriptOutputConfigOrBuilder> + com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig, com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.Builder, com.google.cloud.speech.v1p1beta1.TranscriptOutputConfigOrBuilder> getOutputConfigFieldBuilder() { if (outputConfigBuilder_ == null) { - outputConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig, - com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.Builder, - com.google.cloud.speech.v1p1beta1.TranscriptOutputConfigOrBuilder>( - getOutputConfig(), getParentForChildren(), isClean()); + outputConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig, com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.Builder, com.google.cloud.speech.v1p1beta1.TranscriptOutputConfigOrBuilder>( + getOutputConfig(), + getParentForChildren(), + isClean()); outputConfig_ = null; } return outputConfigBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1346,13 +1106,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(); } @@ -1361,16 +1120,16 @@ public static com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LongRunningRecognizeRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new LongRunningRecognizeRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LongRunningRecognizeRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LongRunningRecognizeRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1385,4 +1144,6 @@ public com.google.protobuf.Parser getParserForType( public com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeRequestOrBuilder.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeRequestOrBuilder.java similarity index 51% rename from proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeRequestOrBuilder.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeRequestOrBuilder.java index 02d21f70f..5a5a7bb3a 100644 --- a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeRequestOrBuilder.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeRequestOrBuilder.java @@ -1,151 +1,93 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech.proto package com.google.cloud.speech.v1p1beta1; -public interface LongRunningRecognizeRequestOrBuilder - extends +public interface LongRunningRecognizeRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Provides information to the recognizer that specifies how to
    * process the request.
    * 
* - * - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the config field is set. */ boolean hasConfig(); /** - * - * *
    * Required. Provides information to the recognizer that specifies how to
    * process the request.
    * 
* - * - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The config. */ com.google.cloud.speech.v1p1beta1.RecognitionConfig getConfig(); /** - * - * *
    * Required. Provides information to the recognizer that specifies how to
    * process the request.
    * 
* - * - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.speech.v1p1beta1.RecognitionConfigOrBuilder getConfigOrBuilder(); /** - * - * *
    * Required. The audio data to be recognized.
    * 
* - * - * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the audio field is set. */ boolean hasAudio(); /** - * - * *
    * Required. The audio data to be recognized.
    * 
* - * - * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The audio. */ com.google.cloud.speech.v1p1beta1.RecognitionAudio getAudio(); /** - * - * *
    * Required. The audio data to be recognized.
    * 
* - * - * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.speech.v1p1beta1.RecognitionAudioOrBuilder getAudioOrBuilder(); /** - * - * *
    * Optional. Specifies an optional destination for the recognition results.
    * 
* - * - * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the outputConfig field is set. */ boolean hasOutputConfig(); /** - * - * *
    * Optional. Specifies an optional destination for the recognition results.
    * 
* - * - * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The outputConfig. */ com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig getOutputConfig(); /** - * - * *
    * Optional. Specifies an optional destination for the recognition results.
    * 
* - * - * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.cloud.speech.v1p1beta1.TranscriptOutputConfigOrBuilder getOutputConfigOrBuilder(); } diff --git a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeResponse.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeResponse.java similarity index 73% rename from proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeResponse.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeResponse.java index 3d09e7157..772da0d3f 100644 --- a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeResponse.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeResponse.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech.proto package com.google.cloud.speech.v1p1beta1; /** - * - * *
  * The only message returned to the client by the `LongRunningRecognize` method.
  * It contains the result as zero or more sequential `SpeechRecognitionResult`
@@ -31,31 +14,31 @@
  *
  * Protobuf type {@code google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse}
  */
-public final class LongRunningRecognizeResponse extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class LongRunningRecognizeResponse extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse)
     LongRunningRecognizeResponseOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use LongRunningRecognizeResponse.newBuilder() to construct.
   private LongRunningRecognizeResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private LongRunningRecognizeResponse() {
     results_ = java.util.Collections.emptyList();
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new LongRunningRecognizeResponse();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private LongRunningRecognizeResponse(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -75,79 +58,68 @@ private LongRunningRecognizeResponse(
           case 0:
             done = true;
             break;
-          case 18:
-            {
-              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                results_ =
-                    new java.util.ArrayList<
-                        com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult>();
-                mutable_bitField0_ |= 0x00000001;
-              }
-              results_.add(
-                  input.readMessage(
-                      com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult.parser(),
-                      extensionRegistry));
-              break;
+          case 18: {
+            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+              results_ = new java.util.ArrayList();
+              mutable_bitField0_ |= 0x00000001;
             }
-          case 26:
-            {
-              com.google.protobuf.Duration.Builder subBuilder = null;
-              if (totalBilledTime_ != null) {
-                subBuilder = totalBilledTime_.toBuilder();
-              }
-              totalBilledTime_ =
-                  input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(totalBilledTime_);
-                totalBilledTime_ = subBuilder.buildPartial();
-              }
-
-              break;
+            results_.add(
+                input.readMessage(com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult.parser(), extensionRegistry));
+            break;
+          }
+          case 26: {
+            com.google.protobuf.Duration.Builder subBuilder = null;
+            if (totalBilledTime_ != null) {
+              subBuilder = totalBilledTime_.toBuilder();
+            }
+            totalBilledTime_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(totalBilledTime_);
+              totalBilledTime_ = subBuilder.buildPartial();
             }
-          case 50:
-            {
-              com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.Builder subBuilder = null;
-              if (outputConfig_ != null) {
-                subBuilder = outputConfig_.toBuilder();
-              }
-              outputConfig_ =
-                  input.readMessage(
-                      com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(outputConfig_);
-                outputConfig_ = subBuilder.buildPartial();
-              }
 
-              break;
+            break;
+          }
+          case 50: {
+            com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.Builder subBuilder = null;
+            if (outputConfig_ != null) {
+              subBuilder = outputConfig_.toBuilder();
+            }
+            outputConfig_ = input.readMessage(com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(outputConfig_);
+              outputConfig_ = subBuilder.buildPartial();
             }
-          case 58:
-            {
-              com.google.rpc.Status.Builder subBuilder = null;
-              if (outputError_ != null) {
-                subBuilder = outputError_.toBuilder();
-              }
-              outputError_ = input.readMessage(com.google.rpc.Status.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(outputError_);
-                outputError_ = subBuilder.buildPartial();
-              }
 
-              break;
+            break;
+          }
+          case 58: {
+            com.google.rpc.Status.Builder subBuilder = null;
+            if (outputError_ != null) {
+              subBuilder = outputError_.toBuilder();
+            }
+            outputError_ = input.readMessage(com.google.rpc.Status.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(outputError_);
+              outputError_ = subBuilder.buildPartial();
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         results_ = java.util.Collections.unmodifiableList(results_);
@@ -156,27 +128,22 @@ private LongRunningRecognizeResponse(
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.speech.v1p1beta1.SpeechProto
-        .internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeResponse_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v1p1beta1.SpeechProto
-        .internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeResponse_fieldAccessorTable
+    return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse.class,
-            com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse.Builder.class);
+            com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse.class, com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse.Builder.class);
   }
 
   public static final int RESULTS_FIELD_NUMBER = 2;
   private java.util.List results_;
   /**
-   *
-   *
    * 
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -185,13 +152,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.
@@ -200,14 +164,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.
@@ -220,8 +181,6 @@ public int getResultsCount() {
     return results_.size();
   }
   /**
-   *
-   *
    * 
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -234,8 +193,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.
@@ -252,14 +209,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 @@ -267,25 +221,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.
    * 
@@ -300,14 +247,11 @@ public com.google.protobuf.DurationOrBuilder getTotalBilledTimeOrBuilder() { public static final int OUTPUT_CONFIG_FIELD_NUMBER = 6; private com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig outputConfig_; /** - * - * *
    * Original output config if present in the request.
    * 
* * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 6; - * * @return Whether the outputConfig field is set. */ @java.lang.Override @@ -315,25 +259,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.
    * 
@@ -341,22 +278,18 @@ public com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig getOutputConfig( * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 6; */ @java.lang.Override - public com.google.cloud.speech.v1p1beta1.TranscriptOutputConfigOrBuilder - getOutputConfigOrBuilder() { + public com.google.cloud.speech.v1p1beta1.TranscriptOutputConfigOrBuilder getOutputConfigOrBuilder() { return getOutputConfig(); } public static final int OUTPUT_ERROR_FIELD_NUMBER = 7; private com.google.rpc.Status outputError_; /** - * - * *
    * If the transcript output fails this field contains the relevant error.
    * 
* * .google.rpc.Status output_error = 7; - * * @return Whether the outputError field is set. */ @java.lang.Override @@ -364,14 +297,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 @@ -379,8 +309,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.
    * 
@@ -393,7 +321,6 @@ public com.google.rpc.StatusOrBuilder getOutputErrorOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -405,7 +332,8 @@ public final boolean isInitialized() { } @java.lang.Override - 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)); } @@ -428,16 +356,20 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < results_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, results_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, results_.get(i)); } if (totalBilledTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getTotalBilledTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getTotalBilledTime()); } if (outputConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getOutputConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getOutputConfig()); } if (outputError_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getOutputError()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getOutputError()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -447,26 +379,29 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse)) { return super.equals(obj); } - com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse other = - (com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse) obj; + com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse other = (com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse) obj; - if (!getResultsList().equals(other.getResultsList())) return false; + if (!getResultsList() + .equals(other.getResultsList())) return false; if (hasTotalBilledTime() != other.hasTotalBilledTime()) return false; if (hasTotalBilledTime()) { - if (!getTotalBilledTime().equals(other.getTotalBilledTime())) return false; + if (!getTotalBilledTime() + .equals(other.getTotalBilledTime())) return false; } if (hasOutputConfig() != other.hasOutputConfig()) return false; if (hasOutputConfig()) { - if (!getOutputConfig().equals(other.getOutputConfig())) return false; + if (!getOutputConfig() + .equals(other.getOutputConfig())) return false; } if (hasOutputError() != other.hasOutputError()) return false; if (hasOutputError()) { - if (!getOutputError().equals(other.getOutputError())) return false; + if (!getOutputError() + .equals(other.getOutputError())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -501,104 +436,96 @@ public int hashCode() { } public static com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse prototype) { + public static Builder newBuilder(com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The only message returned to the client by the `LongRunningRecognize` method.
    * It contains the result as zero or more sequential `SpeechRecognitionResult`
@@ -609,23 +536,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse)
       com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.speech.v1p1beta1.SpeechProto
-          .internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v1p1beta1.SpeechProto
-          .internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeResponse_fieldAccessorTable
+      return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse.class,
-              com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse.Builder.class);
+              com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse.class, com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse.newBuilder()
@@ -633,17 +558,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
         getResultsFieldBuilder();
       }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -675,14 +600,13 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.speech.v1p1beta1.SpeechProto
-          .internal_static_google_cloud_speech_v1p1beta1_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();
     }
 
@@ -697,8 +621,7 @@ public com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse buildPartial() {
-      com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse result =
-          new com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse(this);
+      com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse result = new com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse(this);
       int from_bitField0_ = bitField0_;
       if (resultsBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
@@ -732,39 +655,38 @@ public com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse buildParti
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse) {
-        return mergeFrom((com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse) other);
+        return mergeFrom((com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -772,9 +694,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()) {
@@ -793,10 +713,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_);
           }
@@ -830,9 +749,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse)
-                e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -841,30 +758,21 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int bitField0_;
 
     private java.util.List results_ =
-        java.util.Collections.emptyList();
-
+      java.util.Collections.emptyList();
     private void ensureResultsIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
-        results_ =
-            new java.util.ArrayList(
-                results_);
+        results_ = new java.util.ArrayList(results_);
         bitField0_ |= 0x00000001;
-      }
+       }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult,
-            com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult.Builder,
-            com.google.cloud.speech.v1p1beta1.SpeechRecognitionResultOrBuilder>
-        resultsBuilder_;
+        com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult, com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult.Builder, com.google.cloud.speech.v1p1beta1.SpeechRecognitionResultOrBuilder> resultsBuilder_;
 
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -872,8 +780,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 {
@@ -881,8 +788,6 @@ private void ensureResultsIsMutable() {
       }
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -898,8 +803,6 @@ public int getResultsCount() {
       }
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -915,8 +818,6 @@ public com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult getResults(int
       }
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -939,8 +840,6 @@ public Builder setResults(
       return this;
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -949,8 +848,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());
@@ -961,8 +859,6 @@ public Builder setResults(
       return this;
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -984,8 +880,6 @@ public Builder addResults(com.google.cloud.speech.v1p1beta1.SpeechRecognitionRes
       return this;
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -1008,8 +902,6 @@ public Builder addResults(
       return this;
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -1029,8 +921,6 @@ public Builder addResults(
       return this;
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -1039,8 +929,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());
@@ -1051,8 +940,6 @@ public Builder addResults(
       return this;
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -1061,11 +948,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);
@@ -1073,8 +960,6 @@ public Builder addAllResults(
       return this;
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -1093,8 +978,6 @@ public Builder clearResults() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -1113,8 +996,6 @@ public Builder removeResults(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -1127,8 +1008,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.
@@ -1139,14 +1018,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.
@@ -1154,9 +1030,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 {
@@ -1164,8 +1039,6 @@ public com.google.cloud.speech.v1p1beta1.SpeechRecognitionResultOrBuilder getRes
       }
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -1174,13 +1047,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.
@@ -1190,14 +1060,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.
@@ -1205,23 +1071,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_;
@@ -1229,47 +1092,34 @@ public com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult.Builder addResu
 
     private com.google.protobuf.Duration totalBilledTime_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Duration,
-            com.google.protobuf.Duration.Builder,
-            com.google.protobuf.DurationOrBuilder>
-        totalBilledTimeBuilder_;
+        com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> totalBilledTimeBuilder_;
     /**
-     *
-     *
      * 
      * When available, billed audio seconds for the corresponding request.
      * 
* * .google.protobuf.Duration total_billed_time = 3; - * * @return Whether the totalBilledTime field is set. */ public boolean hasTotalBilledTime() { return totalBilledTimeBuilder_ != null || totalBilledTime_ != null; } /** - * - * *
      * When available, billed audio seconds for the corresponding request.
      * 
* * .google.protobuf.Duration total_billed_time = 3; - * * @return The totalBilledTime. */ public com.google.protobuf.Duration getTotalBilledTime() { if (totalBilledTimeBuilder_ == null) { - return totalBilledTime_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : totalBilledTime_; + return totalBilledTime_ == null ? com.google.protobuf.Duration.getDefaultInstance() : totalBilledTime_; } else { return totalBilledTimeBuilder_.getMessage(); } } /** - * - * *
      * When available, billed audio seconds for the corresponding request.
      * 
@@ -1290,15 +1140,14 @@ public Builder setTotalBilledTime(com.google.protobuf.Duration value) { return this; } /** - * - * *
      * When available, billed audio seconds for the corresponding request.
      * 
* * .google.protobuf.Duration total_billed_time = 3; */ - public Builder setTotalBilledTime(com.google.protobuf.Duration.Builder builderForValue) { + public Builder setTotalBilledTime( + com.google.protobuf.Duration.Builder builderForValue) { if (totalBilledTimeBuilder_ == null) { totalBilledTime_ = builderForValue.build(); onChanged(); @@ -1309,8 +1158,6 @@ public Builder setTotalBilledTime(com.google.protobuf.Duration.Builder builderFo return this; } /** - * - * *
      * When available, billed audio seconds for the corresponding request.
      * 
@@ -1321,9 +1168,7 @@ public Builder mergeTotalBilledTime(com.google.protobuf.Duration value) { if (totalBilledTimeBuilder_ == null) { if (totalBilledTime_ != null) { totalBilledTime_ = - com.google.protobuf.Duration.newBuilder(totalBilledTime_) - .mergeFrom(value) - .buildPartial(); + com.google.protobuf.Duration.newBuilder(totalBilledTime_).mergeFrom(value).buildPartial(); } else { totalBilledTime_ = value; } @@ -1335,8 +1180,6 @@ public Builder mergeTotalBilledTime(com.google.protobuf.Duration value) { return this; } /** - * - * *
      * When available, billed audio seconds for the corresponding request.
      * 
@@ -1355,8 +1198,6 @@ public Builder clearTotalBilledTime() { return this; } /** - * - * *
      * When available, billed audio seconds for the corresponding request.
      * 
@@ -1364,13 +1205,11 @@ public Builder clearTotalBilledTime() { * .google.protobuf.Duration total_billed_time = 3; */ public com.google.protobuf.Duration.Builder getTotalBilledTimeBuilder() { - + onChanged(); return getTotalBilledTimeFieldBuilder().getBuilder(); } /** - * - * *
      * When available, billed audio seconds for the corresponding request.
      * 
@@ -1381,14 +1220,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.
      * 
@@ -1396,17 +1232,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_; @@ -1414,47 +1247,34 @@ public com.google.protobuf.DurationOrBuilder getTotalBilledTimeOrBuilder() { private com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig outputConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig, - com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.Builder, - com.google.cloud.speech.v1p1beta1.TranscriptOutputConfigOrBuilder> - outputConfigBuilder_; + com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig, com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.Builder, com.google.cloud.speech.v1p1beta1.TranscriptOutputConfigOrBuilder> outputConfigBuilder_; /** - * - * *
      * Original output config if present in the request.
      * 
* * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 6; - * * @return Whether the outputConfig field is set. */ public boolean hasOutputConfig() { return outputConfigBuilder_ != null || outputConfig_ != null; } /** - * - * *
      * Original output config if present in the request.
      * 
* * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 6; - * * @return The outputConfig. */ public com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig getOutputConfig() { if (outputConfigBuilder_ == null) { - return outputConfig_ == null - ? com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.getDefaultInstance() - : outputConfig_; + return outputConfig_ == null ? com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.getDefaultInstance() : outputConfig_; } else { return outputConfigBuilder_.getMessage(); } } /** - * - * *
      * Original output config if present in the request.
      * 
@@ -1475,8 +1295,6 @@ public Builder setOutputConfig(com.google.cloud.speech.v1p1beta1.TranscriptOutpu return this; } /** - * - * *
      * Original output config if present in the request.
      * 
@@ -1495,22 +1313,17 @@ public Builder setOutputConfig( return this; } /** - * - * *
      * Original output config if present in the request.
      * 
* * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 6; */ - public Builder mergeOutputConfig( - com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig value) { + public Builder mergeOutputConfig(com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig value) { if (outputConfigBuilder_ == null) { if (outputConfig_ != null) { outputConfig_ = - com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.newBuilder(outputConfig_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.newBuilder(outputConfig_).mergeFrom(value).buildPartial(); } else { outputConfig_ = value; } @@ -1522,8 +1335,6 @@ public Builder mergeOutputConfig( return this; } /** - * - * *
      * Original output config if present in the request.
      * 
@@ -1542,42 +1353,33 @@ public Builder clearOutputConfig() { return this; } /** - * - * *
      * Original output config if present in the request.
      * 
* * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 6; */ - public com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.Builder - getOutputConfigBuilder() { - + public com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.Builder getOutputConfigBuilder() { + onChanged(); return getOutputConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Original output config if present in the request.
      * 
* * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 6; */ - public com.google.cloud.speech.v1p1beta1.TranscriptOutputConfigOrBuilder - getOutputConfigOrBuilder() { + public com.google.cloud.speech.v1p1beta1.TranscriptOutputConfigOrBuilder getOutputConfigOrBuilder() { if (outputConfigBuilder_ != null) { return outputConfigBuilder_.getMessageOrBuilder(); } else { - return outputConfig_ == null - ? com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.getDefaultInstance() - : outputConfig_; + return outputConfig_ == null ? + com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.getDefaultInstance() : outputConfig_; } } /** - * - * *
      * Original output config if present in the request.
      * 
@@ -1585,17 +1387,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_; @@ -1603,31 +1402,24 @@ public Builder clearOutputConfig() { private com.google.rpc.Status outputError_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> - outputErrorBuilder_; + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> outputErrorBuilder_; /** - * - * *
      * If the transcript output fails this field contains the relevant error.
      * 
* * .google.rpc.Status output_error = 7; - * * @return Whether the outputError field is set. */ public boolean hasOutputError() { return outputErrorBuilder_ != null || outputError_ != null; } /** - * - * *
      * If the transcript output fails this field contains the relevant error.
      * 
* * .google.rpc.Status output_error = 7; - * * @return The outputError. */ public com.google.rpc.Status getOutputError() { @@ -1638,8 +1430,6 @@ public com.google.rpc.Status getOutputError() { } } /** - * - * *
      * If the transcript output fails this field contains the relevant error.
      * 
@@ -1660,15 +1450,14 @@ public Builder setOutputError(com.google.rpc.Status value) { return this; } /** - * - * *
      * If the transcript output fails this field contains the relevant error.
      * 
* * .google.rpc.Status output_error = 7; */ - public Builder setOutputError(com.google.rpc.Status.Builder builderForValue) { + public Builder setOutputError( + com.google.rpc.Status.Builder builderForValue) { if (outputErrorBuilder_ == null) { outputError_ = builderForValue.build(); onChanged(); @@ -1679,8 +1468,6 @@ public Builder setOutputError(com.google.rpc.Status.Builder builderForValue) { return this; } /** - * - * *
      * If the transcript output fails this field contains the relevant error.
      * 
@@ -1691,7 +1478,7 @@ public Builder mergeOutputError(com.google.rpc.Status value) { if (outputErrorBuilder_ == null) { if (outputError_ != null) { outputError_ = - com.google.rpc.Status.newBuilder(outputError_).mergeFrom(value).buildPartial(); + com.google.rpc.Status.newBuilder(outputError_).mergeFrom(value).buildPartial(); } else { outputError_ = value; } @@ -1703,8 +1490,6 @@ public Builder mergeOutputError(com.google.rpc.Status value) { return this; } /** - * - * *
      * If the transcript output fails this field contains the relevant error.
      * 
@@ -1723,8 +1508,6 @@ public Builder clearOutputError() { return this; } /** - * - * *
      * If the transcript output fails this field contains the relevant error.
      * 
@@ -1732,13 +1515,11 @@ public Builder clearOutputError() { * .google.rpc.Status output_error = 7; */ public com.google.rpc.Status.Builder getOutputErrorBuilder() { - + onChanged(); return getOutputErrorFieldBuilder().getBuilder(); } /** - * - * *
      * If the transcript output fails this field contains the relevant error.
      * 
@@ -1749,12 +1530,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.
      * 
@@ -1762,22 +1542,21 @@ public com.google.rpc.StatusOrBuilder getOutputErrorOrBuilder() { * .google.rpc.Status output_error = 7; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> getOutputErrorFieldBuilder() { if (outputErrorBuilder_ == null) { - outputErrorBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.Status, - com.google.rpc.Status.Builder, - com.google.rpc.StatusOrBuilder>( - getOutputError(), getParentForChildren(), isClean()); + outputErrorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>( + getOutputError(), + getParentForChildren(), + isClean()); outputError_ = null; } return outputErrorBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1787,32 +1566,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse) - private static final com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse - DEFAULT_INSTANCE; - + private static final com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse(); } - public static com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse - getDefaultInstance() { + public static com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LongRunningRecognizeResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new LongRunningRecognizeResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LongRunningRecognizeResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LongRunningRecognizeResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1824,8 +1601,9 @@ public com.google.protobuf.Parser getParserForType } @java.lang.Override - public com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse - getDefaultInstanceForType() { + public com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeResponseOrBuilder.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeResponseOrBuilder.java similarity index 81% rename from proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeResponseOrBuilder.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeResponseOrBuilder.java index e5af48096..f6b5867ce 100644 --- a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeResponseOrBuilder.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeResponseOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech.proto package com.google.cloud.speech.v1p1beta1; -public interface LongRunningRecognizeResponseOrBuilder - extends +public interface LongRunningRecognizeResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -33,10 +15,9 @@ public interface LongRunningRecognizeResponseOrBuilder
    *
    * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionResult results = 2;
    */
-  java.util.List getResultsList();
+  java.util.List 
+      getResultsList();
   /**
-   *
-   *
    * 
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -46,8 +27,6 @@ public interface LongRunningRecognizeResponseOrBuilder
    */
   com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult getResults(int index);
   /**
-   *
-   *
    * 
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -57,8 +36,6 @@ public interface LongRunningRecognizeResponseOrBuilder
    */
   int getResultsCount();
   /**
-   *
-   *
    * 
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -66,11 +43,9 @@ public interface LongRunningRecognizeResponseOrBuilder
    *
    * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionResult results = 2;
    */
-  java.util.List
+  java.util.List 
       getResultsOrBuilderList();
   /**
-   *
-   *
    * 
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -78,35 +53,28 @@ public interface LongRunningRecognizeResponseOrBuilder
    *
    * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionResult results = 2;
    */
-  com.google.cloud.speech.v1p1beta1.SpeechRecognitionResultOrBuilder getResultsOrBuilder(int index);
+  com.google.cloud.speech.v1p1beta1.SpeechRecognitionResultOrBuilder getResultsOrBuilder(
+      int index);
 
   /**
-   *
-   *
    * 
    * When available, billed audio seconds for the corresponding request.
    * 
* * .google.protobuf.Duration total_billed_time = 3; - * * @return Whether the totalBilledTime field is set. */ boolean hasTotalBilledTime(); /** - * - * *
    * When available, billed audio seconds for the corresponding request.
    * 
* * .google.protobuf.Duration total_billed_time = 3; - * * @return The totalBilledTime. */ com.google.protobuf.Duration getTotalBilledTime(); /** - * - * *
    * When available, billed audio seconds for the corresponding request.
    * 
@@ -116,32 +84,24 @@ public interface LongRunningRecognizeResponseOrBuilder com.google.protobuf.DurationOrBuilder getTotalBilledTimeOrBuilder(); /** - * - * *
    * Original output config if present in the request.
    * 
* * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 6; - * * @return Whether the outputConfig field is set. */ boolean hasOutputConfig(); /** - * - * *
    * Original output config if present in the request.
    * 
* * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 6; - * * @return The outputConfig. */ com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig getOutputConfig(); /** - * - * *
    * Original output config if present in the request.
    * 
@@ -151,32 +111,24 @@ public interface LongRunningRecognizeResponseOrBuilder com.google.cloud.speech.v1p1beta1.TranscriptOutputConfigOrBuilder getOutputConfigOrBuilder(); /** - * - * *
    * If the transcript output fails this field contains the relevant error.
    * 
* * .google.rpc.Status output_error = 7; - * * @return Whether the outputError field is set. */ boolean hasOutputError(); /** - * - * *
    * If the transcript output fails this field contains the relevant error.
    * 
* * .google.rpc.Status output_error = 7; - * * @return The outputError. */ com.google.rpc.Status getOutputError(); /** - * - * *
    * If the transcript output fails this field contains the relevant error.
    * 
diff --git a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/PhraseSet.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/PhraseSet.java similarity index 77% rename from proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/PhraseSet.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/PhraseSet.java index 663595375..fc9054d6e 100644 --- a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/PhraseSet.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/PhraseSet.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/resource.proto package com.google.cloud.speech.v1p1beta1; /** - * - * *
  * Provides "hints" to the speech recognizer to favor specific words and phrases
  * in the results.
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.cloud.speech.v1p1beta1.PhraseSet}
  */
-public final class PhraseSet extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class PhraseSet extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.speech.v1p1beta1.PhraseSet)
     PhraseSetOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use PhraseSet.newBuilder() to construct.
   private PhraseSet(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private PhraseSet() {
     name_ = "";
     phrases_ = java.util.Collections.emptyList();
@@ -45,15 +27,16 @@ private PhraseSet() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new PhraseSet();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private PhraseSet(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -73,44 +56,40 @@ private PhraseSet(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              name_ = s;
-              break;
-            }
-          case 18:
-            {
-              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                phrases_ =
-                    new java.util.ArrayList();
-                mutable_bitField0_ |= 0x00000001;
-              }
-              phrases_.add(
-                  input.readMessage(
-                      com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase.parser(),
-                      extensionRegistry));
-              break;
-            }
-          case 37:
-            {
-              boost_ = input.readFloat();
-              break;
+            name_ = s;
+            break;
+          }
+          case 18: {
+            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+              phrases_ = new java.util.ArrayList();
+              mutable_bitField0_ |= 0x00000001;
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            phrases_.add(
+                input.readMessage(com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase.parser(), extensionRegistry));
+            break;
+          }
+          case 37: {
+
+            boost_ = input.readFloat();
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         phrases_ = java.util.Collections.unmodifiableList(phrases_);
@@ -119,55 +98,44 @@ private PhraseSet(
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.speech.v1p1beta1.SpeechResourceProto
-        .internal_static_google_cloud_speech_v1p1beta1_PhraseSet_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.speech.v1p1beta1.SpeechResourceProto.internal_static_google_cloud_speech_v1p1beta1_PhraseSet_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v1p1beta1.SpeechResourceProto
-        .internal_static_google_cloud_speech_v1p1beta1_PhraseSet_fieldAccessorTable
+    return com.google.cloud.speech.v1p1beta1.SpeechResourceProto.internal_static_google_cloud_speech_v1p1beta1_PhraseSet_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v1p1beta1.PhraseSet.class,
-            com.google.cloud.speech.v1p1beta1.PhraseSet.Builder.class);
+            com.google.cloud.speech.v1p1beta1.PhraseSet.class, com.google.cloud.speech.v1p1beta1.PhraseSet.Builder.class);
   }
 
-  public interface PhraseOrBuilder
-      extends
+  public interface PhraseOrBuilder extends
       // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1p1beta1.PhraseSet.Phrase)
       com.google.protobuf.MessageOrBuilder {
 
     /**
-     *
-     *
      * 
      * The phrase itself.
      * 
* * string value = 1; - * * @return The value. */ java.lang.String getValue(); /** - * - * *
      * The phrase itself.
      * 
* * string value = 1; - * * @return The bytes for value. */ - com.google.protobuf.ByteString getValueBytes(); + com.google.protobuf.ByteString + getValueBytes(); /** - * - * *
      * Hint Boost. Overrides the boost set at the phrase set level.
      * Positive value will increase the probability that a specific phrase will
@@ -181,14 +149,11 @@ public interface PhraseOrBuilder
      * 
* * float boost = 2; - * * @return The boost. */ float getBoost(); } /** - * - * *
    * A phrases containing words and phrase "hints" so that
    * the speech recognition is more likely to recognize them. This can be used
@@ -217,31 +182,31 @@ public interface PhraseOrBuilder
    *
    * Protobuf type {@code google.cloud.speech.v1p1beta1.PhraseSet.Phrase}
    */
-  public static final class Phrase extends com.google.protobuf.GeneratedMessageV3
-      implements
+  public static final class Phrase extends
+      com.google.protobuf.GeneratedMessageV3 implements
       // @@protoc_insertion_point(message_implements:google.cloud.speech.v1p1beta1.PhraseSet.Phrase)
       PhraseOrBuilder {
-    private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
     // Use Phrase.newBuilder() to construct.
     private Phrase(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
-
     private Phrase() {
       value_ = "";
     }
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(
+        UnusedPrivateParameter unused) {
       return new Phrase();
     }
 
     @java.lang.Override
-    public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+    public final com.google.protobuf.UnknownFieldSet
+    getUnknownFields() {
       return this.unknownFields;
     }
-
     private Phrase(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -260,63 +225,57 @@ private Phrase(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                java.lang.String s = input.readStringRequireUtf8();
+            case 10: {
+              java.lang.String s = input.readStringRequireUtf8();
 
-                value_ = s;
-                break;
-              }
-            case 21:
-              {
-                boost_ = input.readFloat();
-                break;
-              }
-            default:
-              {
-                if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                  done = true;
-                }
-                break;
+              value_ = s;
+              break;
+            }
+            case 21: {
+
+              boost_ = input.readFloat();
+              break;
+            }
+            default: {
+              if (!parseUnknownField(
+                  input, unknownFields, extensionRegistry, tag)) {
+                done = true;
               }
+              break;
+            }
           }
         }
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
         throw e.setUnfinishedMessage(this);
       } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+        throw new com.google.protobuf.InvalidProtocolBufferException(
+            e).setUnfinishedMessage(this);
       } finally {
         this.unknownFields = unknownFields.build();
         makeExtensionsImmutable();
       }
     }
-
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.speech.v1p1beta1.SpeechResourceProto
-          .internal_static_google_cloud_speech_v1p1beta1_PhraseSet_Phrase_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.speech.v1p1beta1.SpeechResourceProto.internal_static_google_cloud_speech_v1p1beta1_PhraseSet_Phrase_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v1p1beta1.SpeechResourceProto
-          .internal_static_google_cloud_speech_v1p1beta1_PhraseSet_Phrase_fieldAccessorTable
+      return com.google.cloud.speech.v1p1beta1.SpeechResourceProto.internal_static_google_cloud_speech_v1p1beta1_PhraseSet_Phrase_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase.class,
-              com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase.Builder.class);
+              com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase.class, com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase.Builder.class);
     }
 
     public static final int VALUE_FIELD_NUMBER = 1;
     private volatile java.lang.Object value_;
     /**
-     *
-     *
      * 
      * The phrase itself.
      * 
* * string value = 1; - * * @return The value. */ @java.lang.Override @@ -325,29 +284,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 { @@ -358,8 +317,6 @@ public com.google.protobuf.ByteString getValueBytes() { public static final int BOOST_FIELD_NUMBER = 2; private float boost_; /** - * - * *
      * Hint Boost. Overrides the boost set at the phrase set level.
      * Positive value will increase the probability that a specific phrase will
@@ -373,7 +330,6 @@ public com.google.protobuf.ByteString getValueBytes() {
      * 
* * float boost = 2; - * * @return The boost. */ @java.lang.Override @@ -382,7 +338,6 @@ public float getBoost() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -394,7 +349,8 @@ public final boolean isInitialized() { } @java.lang.Override - public 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,7 +370,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, value_); } if (boost_ != 0F) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, boost_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(2, boost_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -424,17 +381,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase)) { return super.equals(obj); } - com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase other = - (com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase) obj; + com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase other = (com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase) obj; - if (!getValue().equals(other.getValue())) return false; + if (!getValue() + .equals(other.getValue())) return false; if (java.lang.Float.floatToIntBits(getBoost()) - != java.lang.Float.floatToIntBits(other.getBoost())) return false; + != java.lang.Float.floatToIntBits( + other.getBoost())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -449,100 +407,95 @@ public int hashCode() { hash = (37 * hash) + VALUE_FIELD_NUMBER; hash = (53 * hash) + getValue().hashCode(); hash = (37 * hash) + BOOST_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getBoost()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getBoost()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -552,8 +505,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
@@ -582,24 +533,21 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.cloud.speech.v1p1beta1.PhraseSet.Phrase}
      */
-    public static final class Builder
-        extends com.google.protobuf.GeneratedMessageV3.Builder
-        implements
+    public static final class Builder extends
+        com.google.protobuf.GeneratedMessageV3.Builder implements
         // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1p1beta1.PhraseSet.Phrase)
         com.google.cloud.speech.v1p1beta1.PhraseSet.PhraseOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-        return com.google.cloud.speech.v1p1beta1.SpeechResourceProto
-            .internal_static_google_cloud_speech_v1p1beta1_PhraseSet_Phrase_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor
+          getDescriptor() {
+        return com.google.cloud.speech.v1p1beta1.SpeechResourceProto.internal_static_google_cloud_speech_v1p1beta1_PhraseSet_Phrase_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.cloud.speech.v1p1beta1.SpeechResourceProto
-            .internal_static_google_cloud_speech_v1p1beta1_PhraseSet_Phrase_fieldAccessorTable
+        return com.google.cloud.speech.v1p1beta1.SpeechResourceProto.internal_static_google_cloud_speech_v1p1beta1_PhraseSet_Phrase_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase.class,
-                com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase.Builder.class);
+                com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase.class, com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase.Builder.class);
       }
 
       // Construct using com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase.newBuilder()
@@ -607,15 +555,16 @@ private Builder() {
         maybeForceBuilderInitialization();
       }
 
-      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      private Builder(
+          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         super(parent);
         maybeForceBuilderInitialization();
       }
-
       private void maybeForceBuilderInitialization() {
-        if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+        if (com.google.protobuf.GeneratedMessageV3
+                .alwaysUseFieldBuilders) {
+        }
       }
-
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -627,9 +576,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
@@ -648,8 +597,7 @@ public com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase build() {
 
       @java.lang.Override
       public com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase buildPartial() {
-        com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase result =
-            new com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase(this);
+        com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase result = new com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase(this);
         result.value_ = value_;
         result.boost_ = boost_;
         onBuilt();
@@ -660,41 +608,38 @@ public com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase buildPartial() {
       public Builder clone() {
         return super.clone();
       }
-
       @java.lang.Override
       public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field,
+          java.lang.Object value) {
         return super.setField(field, value);
       }
-
       @java.lang.Override
-      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+      public Builder clearField(
+          com.google.protobuf.Descriptors.FieldDescriptor field) {
         return super.clearField(field);
       }
-
       @java.lang.Override
-      public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+      public Builder clearOneof(
+          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
         return super.clearOneof(oneof);
       }
-
       @java.lang.Override
       public Builder setRepeatedField(
           com.google.protobuf.Descriptors.FieldDescriptor field,
-          int index,
-          java.lang.Object value) {
+          int index, java.lang.Object value) {
         return super.setRepeatedField(field, index, value);
       }
-
       @java.lang.Override
       public Builder addRepeatedField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field,
+          java.lang.Object value) {
         return super.addRepeatedField(field, value);
       }
-
       @java.lang.Override
       public Builder mergeFrom(com.google.protobuf.Message other) {
         if (other instanceof com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase) {
-          return mergeFrom((com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase) other);
+          return mergeFrom((com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase)other);
         } else {
           super.mergeFrom(other);
           return this;
@@ -702,8 +647,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
       }
 
       public Builder mergeFrom(com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase other) {
-        if (other == com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase.getDefaultInstance())
-          return this;
+        if (other == com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase.getDefaultInstance()) return this;
         if (!other.getValue().isEmpty()) {
           value_ = other.value_;
           onChanged();
@@ -730,8 +674,7 @@ public Builder mergeFrom(
         try {
           parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-          parsedMessage =
-              (com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase) e.getUnfinishedMessage();
+          parsedMessage = (com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase) e.getUnfinishedMessage();
           throw e.unwrapIOException();
         } finally {
           if (parsedMessage != null) {
@@ -743,20 +686,18 @@ public Builder mergeFrom(
 
       private java.lang.Object value_ = "";
       /**
-       *
-       *
        * 
        * The phrase itself.
        * 
* * string value = 1; - * * @return The value. */ public java.lang.String getValue() { java.lang.Object ref = value_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); value_ = s; return s; @@ -765,21 +706,20 @@ public java.lang.String getValue() { } } /** - * - * *
        * The phrase itself.
        * 
* * string value = 1; - * * @return The bytes for value. */ - public com.google.protobuf.ByteString getValueBytes() { + public com.google.protobuf.ByteString + getValueBytes() { java.lang.Object ref = value_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); value_ = b; return b; } else { @@ -787,70 +727,61 @@ public com.google.protobuf.ByteString getValueBytes() { } } /** - * - * *
        * The phrase itself.
        * 
* * string value = 1; - * * @param value The value to set. * @return This builder for chaining. */ - public Builder setValue(java.lang.String value) { + public Builder setValue( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + value_ = value; onChanged(); return this; } /** - * - * *
        * The phrase itself.
        * 
* * string value = 1; - * * @return This builder for chaining. */ public Builder clearValue() { - + value_ = getDefaultInstance().getValue(); onChanged(); return this; } /** - * - * *
        * The phrase itself.
        * 
* * string value = 1; - * * @param value The bytes for value to set. * @return This builder for chaining. */ - public Builder setValueBytes(com.google.protobuf.ByteString value) { + public Builder setValueBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + value_ = value; onChanged(); return this; } - private float boost_; + private float boost_ ; /** - * - * *
        * Hint Boost. Overrides the boost set at the phrase set level.
        * Positive value will increase the probability that a specific phrase will
@@ -864,7 +795,6 @@ public Builder setValueBytes(com.google.protobuf.ByteString value) {
        * 
* * float boost = 2; - * * @return The boost. */ @java.lang.Override @@ -872,8 +802,6 @@ public float getBoost() { return boost_; } /** - * - * *
        * Hint Boost. Overrides the boost set at the phrase set level.
        * Positive value will increase the probability that a specific phrase will
@@ -887,19 +815,16 @@ public float getBoost() {
        * 
* * float boost = 2; - * * @param value The boost to set. * @return This builder for chaining. */ public Builder setBoost(float value) { - + boost_ = value; onChanged(); return this; } /** - * - * *
        * Hint Boost. Overrides the boost set at the phrase set level.
        * Positive value will increase the probability that a specific phrase will
@@ -913,16 +838,14 @@ public Builder setBoost(float value) {
        * 
* * float boost = 2; - * * @return This builder for chaining. */ public Builder clearBoost() { - + boost_ = 0F; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -935,12 +858,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(); } @@ -949,16 +872,16 @@ public static com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Phrase parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Phrase(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Phrase parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Phrase(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -973,19 +896,17 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * The resource name of the phrase set.
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -994,29 +915,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * The resource name of the phrase set.
    * 
* * string name = 1; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -1027,8 +948,6 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int PHRASES_FIELD_NUMBER = 2; private java.util.List phrases_; /** - * - * *
    * A list of word and phrases.
    * 
@@ -1040,8 +959,6 @@ public java.util.List getPhr return phrases_; } /** - * - * *
    * A list of word and phrases.
    * 
@@ -1049,13 +966,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.
    * 
@@ -1067,8 +982,6 @@ public int getPhrasesCount() { return phrases_.size(); } /** - * - * *
    * A list of word and phrases.
    * 
@@ -1080,8 +993,6 @@ public com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase getPhrases(int index) return phrases_.get(index); } /** - * - * *
    * A list of word and phrases.
    * 
@@ -1097,8 +1008,6 @@ public com.google.cloud.speech.v1p1beta1.PhraseSet.PhraseOrBuilder getPhrasesOrB public static final int BOOST_FIELD_NUMBER = 4; private float boost_; /** - * - * *
    * Hint Boost. Positive value will increase the probability that a specific
    * phrase will be recognized over other similar sounding phrases. The higher
@@ -1112,7 +1021,6 @@ public com.google.cloud.speech.v1p1beta1.PhraseSet.PhraseOrBuilder getPhrasesOrB
    * 
* * float boost = 4; - * * @return The boost. */ @java.lang.Override @@ -1121,7 +1029,6 @@ public float getBoost() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1133,7 +1040,8 @@ public final boolean isInitialized() { } @java.lang.Override - public 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_); } @@ -1156,10 +1064,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 (boost_ != 0F) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(4, boost_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(4, boost_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1169,18 +1079,20 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1p1beta1.PhraseSet)) { return super.equals(obj); } - com.google.cloud.speech.v1p1beta1.PhraseSet other = - (com.google.cloud.speech.v1p1beta1.PhraseSet) obj; + com.google.cloud.speech.v1p1beta1.PhraseSet other = (com.google.cloud.speech.v1p1beta1.PhraseSet) obj; - if (!getName().equals(other.getName())) return false; - if (!getPhrasesList().equals(other.getPhrasesList())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getPhrasesList() + .equals(other.getPhrasesList())) return false; if (java.lang.Float.floatToIntBits(getBoost()) - != java.lang.Float.floatToIntBits(other.getBoost())) return false; + != java.lang.Float.floatToIntBits( + other.getBoost())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1199,110 +1111,104 @@ public int hashCode() { hash = (53 * hash) + getPhrasesList().hashCode(); } hash = (37 * hash) + BOOST_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getBoost()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getBoost()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.speech.v1p1beta1.PhraseSet parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.speech.v1p1beta1.PhraseSet parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1p1beta1.PhraseSet parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.PhraseSet parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1p1beta1.PhraseSet parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.PhraseSet parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1p1beta1.PhraseSet parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.PhraseSet parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1p1beta1.PhraseSet parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.speech.v1p1beta1.PhraseSet parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.speech.v1p1beta1.PhraseSet parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1p1beta1.PhraseSet parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.PhraseSet parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1p1beta1.PhraseSet parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.speech.v1p1beta1.PhraseSet prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Provides "hints" to the speech recognizer to favor specific words and phrases
    * in the results.
@@ -1310,23 +1216,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.speech.v1p1beta1.PhraseSet}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1p1beta1.PhraseSet)
       com.google.cloud.speech.v1p1beta1.PhraseSetOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.speech.v1p1beta1.SpeechResourceProto
-          .internal_static_google_cloud_speech_v1p1beta1_PhraseSet_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.speech.v1p1beta1.SpeechResourceProto.internal_static_google_cloud_speech_v1p1beta1_PhraseSet_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v1p1beta1.SpeechResourceProto
-          .internal_static_google_cloud_speech_v1p1beta1_PhraseSet_fieldAccessorTable
+      return com.google.cloud.speech.v1p1beta1.SpeechResourceProto.internal_static_google_cloud_speech_v1p1beta1_PhraseSet_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v1p1beta1.PhraseSet.class,
-              com.google.cloud.speech.v1p1beta1.PhraseSet.Builder.class);
+              com.google.cloud.speech.v1p1beta1.PhraseSet.class, com.google.cloud.speech.v1p1beta1.PhraseSet.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v1p1beta1.PhraseSet.newBuilder()
@@ -1334,17 +1238,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
         getPhrasesFieldBuilder();
       }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1362,9 +1266,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
@@ -1383,8 +1287,7 @@ public com.google.cloud.speech.v1p1beta1.PhraseSet build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v1p1beta1.PhraseSet buildPartial() {
-      com.google.cloud.speech.v1p1beta1.PhraseSet result =
-          new com.google.cloud.speech.v1p1beta1.PhraseSet(this);
+      com.google.cloud.speech.v1p1beta1.PhraseSet result = new com.google.cloud.speech.v1p1beta1.PhraseSet(this);
       int from_bitField0_ = bitField0_;
       result.name_ = name_;
       if (phrasesBuilder_ == null) {
@@ -1405,39 +1308,38 @@ public com.google.cloud.speech.v1p1beta1.PhraseSet buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.speech.v1p1beta1.PhraseSet) {
-        return mergeFrom((com.google.cloud.speech.v1p1beta1.PhraseSet) other);
+        return mergeFrom((com.google.cloud.speech.v1p1beta1.PhraseSet)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1468,10 +1370,9 @@ public Builder mergeFrom(com.google.cloud.speech.v1p1beta1.PhraseSet other) {
             phrasesBuilder_ = null;
             phrases_ = other.phrases_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            phrasesBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getPhrasesFieldBuilder()
-                    : null;
+            phrasesBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getPhrasesFieldBuilder() : null;
           } else {
             phrasesBuilder_.addAllMessages(other.phrases_);
           }
@@ -1508,25 +1409,22 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * The resource name of the phrase set.
      * 
* * string name = 1; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1535,21 +1433,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 { @@ -1557,86 +1454,72 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * The resource name of the phrase set.
      * 
* * string name = 1; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * The resource name of the phrase set.
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * The resource name of the phrase set.
      * 
* * string name = 1; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } private java.util.List phrases_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensurePhrasesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - phrases_ = - new java.util.ArrayList(phrases_); + phrases_ = new java.util.ArrayList(phrases_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase, - com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase.Builder, - com.google.cloud.speech.v1p1beta1.PhraseSet.PhraseOrBuilder> - phrasesBuilder_; + com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase, com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase.Builder, com.google.cloud.speech.v1p1beta1.PhraseSet.PhraseOrBuilder> phrasesBuilder_; /** - * - * *
      * A list of word and phrases.
      * 
@@ -1651,8 +1534,6 @@ public java.util.List getPhr } } /** - * - * *
      * A list of word and phrases.
      * 
@@ -1667,8 +1548,6 @@ public int getPhrasesCount() { } } /** - * - * *
      * A list of word and phrases.
      * 
@@ -1683,15 +1562,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(); @@ -1705,8 +1583,6 @@ public Builder setPhrases(int index, com.google.cloud.speech.v1p1beta1.PhraseSet return this; } /** - * - * *
      * A list of word and phrases.
      * 
@@ -1725,8 +1601,6 @@ public Builder setPhrases( return this; } /** - * - * *
      * A list of word and phrases.
      * 
@@ -1747,15 +1621,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(); @@ -1769,8 +1642,6 @@ public Builder addPhrases(int index, com.google.cloud.speech.v1p1beta1.PhraseSet return this; } /** - * - * *
      * A list of word and phrases.
      * 
@@ -1789,8 +1660,6 @@ public Builder addPhrases( return this; } /** - * - * *
      * A list of word and phrases.
      * 
@@ -1809,8 +1678,6 @@ public Builder addPhrases( return this; } /** - * - * *
      * A list of word and phrases.
      * 
@@ -1821,7 +1688,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); @@ -1829,8 +1697,6 @@ public Builder addAllPhrases( return this; } /** - * - * *
      * A list of word and phrases.
      * 
@@ -1848,8 +1714,6 @@ public Builder clearPhrases() { return this; } /** - * - * *
      * A list of word and phrases.
      * 
@@ -1867,20 +1731,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.
      * 
@@ -1890,22 +1751,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 { @@ -1913,8 +1771,6 @@ public com.google.cloud.speech.v1p1beta1.PhraseSet.PhraseOrBuilder getPhrasesOrB } } /** - * - * *
      * A list of word and phrases.
      * 
@@ -1922,58 +1778,49 @@ public com.google.cloud.speech.v1p1beta1.PhraseSet.PhraseOrBuilder getPhrasesOrB * repeated .google.cloud.speech.v1p1beta1.PhraseSet.Phrase phrases = 2; */ public com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase.Builder addPhrasesBuilder() { - return getPhrasesFieldBuilder() - .addBuilder(com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase.getDefaultInstance()); + return getPhrasesFieldBuilder().addBuilder( + com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase.getDefaultInstance()); } /** - * - * *
      * A list of word and phrases.
      * 
* * repeated .google.cloud.speech.v1p1beta1.PhraseSet.Phrase phrases = 2; */ - public com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase.Builder addPhrasesBuilder(int index) { - return getPhrasesFieldBuilder() - .addBuilder( - index, com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase.getDefaultInstance()); + public com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase.Builder addPhrasesBuilder( + int index) { + return getPhrasesFieldBuilder().addBuilder( + index, com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase.getDefaultInstance()); } /** - * - * *
      * A list of word and phrases.
      * 
* * repeated .google.cloud.speech.v1p1beta1.PhraseSet.Phrase phrases = 2; */ - public java.util.List - getPhrasesBuilderList() { + public java.util.List + getPhrasesBuilderList() { return getPhrasesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase, - com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase.Builder, - com.google.cloud.speech.v1p1beta1.PhraseSet.PhraseOrBuilder> + com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase, com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase.Builder, com.google.cloud.speech.v1p1beta1.PhraseSet.PhraseOrBuilder> getPhrasesFieldBuilder() { if (phrasesBuilder_ == null) { - phrasesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase, - com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase.Builder, - com.google.cloud.speech.v1p1beta1.PhraseSet.PhraseOrBuilder>( - phrases_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + phrasesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase, com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase.Builder, com.google.cloud.speech.v1p1beta1.PhraseSet.PhraseOrBuilder>( + phrases_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); phrases_ = null; } return phrasesBuilder_; } - private float boost_; + private float boost_ ; /** - * - * *
      * Hint Boost. Positive value will increase the probability that a specific
      * phrase will be recognized over other similar sounding phrases. The higher
@@ -1987,7 +1834,6 @@ public com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase.Builder addPhrasesBuil
      * 
* * float boost = 4; - * * @return The boost. */ @java.lang.Override @@ -1995,8 +1841,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
@@ -2010,19 +1854,16 @@ public float getBoost() {
      * 
* * float boost = 4; - * * @param value The boost to set. * @return This builder for chaining. */ public Builder setBoost(float value) { - + boost_ = value; onChanged(); return this; } /** - * - * *
      * Hint Boost. Positive value will increase the probability that a specific
      * phrase will be recognized over other similar sounding phrases. The higher
@@ -2036,18 +1877,17 @@ public Builder setBoost(float value) {
      * 
* * float boost = 4; - * * @return This builder for chaining. */ public Builder clearBoost() { - + boost_ = 0F; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2057,12 +1897,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(); } @@ -2071,16 +1911,16 @@ public static com.google.cloud.speech.v1p1beta1.PhraseSet getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PhraseSet parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PhraseSet(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PhraseSet parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PhraseSet(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2095,4 +1935,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.PhraseSet getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/PhraseSetName.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/PhraseSetName.java similarity index 100% rename from proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/PhraseSetName.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/PhraseSetName.java diff --git a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/PhraseSetOrBuilder.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/PhraseSetOrBuilder.java similarity index 74% rename from proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/PhraseSetOrBuilder.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/PhraseSetOrBuilder.java index 55f1127b4..1ed61ed52 100644 --- a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/PhraseSetOrBuilder.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/PhraseSetOrBuilder.java @@ -1,66 +1,42 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/resource.proto package com.google.cloud.speech.v1p1beta1; -public interface PhraseSetOrBuilder - extends +public interface PhraseSetOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1p1beta1.PhraseSet) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The resource name of the phrase set.
    * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * The resource name of the phrase set.
    * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * A list of word and phrases.
    * 
* * repeated .google.cloud.speech.v1p1beta1.PhraseSet.Phrase phrases = 2; */ - java.util.List getPhrasesList(); + java.util.List + getPhrasesList(); /** - * - * *
    * A list of word and phrases.
    * 
@@ -69,8 +45,6 @@ public interface PhraseSetOrBuilder */ com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase getPhrases(int index); /** - * - * *
    * A list of word and phrases.
    * 
@@ -79,30 +53,25 @@ public interface PhraseSetOrBuilder */ int getPhrasesCount(); /** - * - * *
    * A list of word and phrases.
    * 
* * repeated .google.cloud.speech.v1p1beta1.PhraseSet.Phrase phrases = 2; */ - java.util.List + java.util.List getPhrasesOrBuilderList(); /** - * - * *
    * A list of word and phrases.
    * 
* * repeated .google.cloud.speech.v1p1beta1.PhraseSet.Phrase phrases = 2; */ - com.google.cloud.speech.v1p1beta1.PhraseSet.PhraseOrBuilder getPhrasesOrBuilder(int index); + com.google.cloud.speech.v1p1beta1.PhraseSet.PhraseOrBuilder getPhrasesOrBuilder( + int index); /** - * - * *
    * Hint Boost. Positive value will increase the probability that a specific
    * phrase will be recognized over other similar sounding phrases. The higher
@@ -116,7 +85,6 @@ public interface PhraseSetOrBuilder
    * 
* * float boost = 4; - * * @return The boost. */ float getBoost(); diff --git a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionAudio.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionAudio.java similarity index 75% rename from proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionAudio.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionAudio.java index 1a4741551..9fca1214b 100644 --- a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionAudio.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionAudio.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech.proto package com.google.cloud.speech.v1p1beta1; /** - * - * *
  * Contains audio data in the encoding specified in the `RecognitionConfig`.
  * Either `content` or `uri` must be supplied. Supplying both or neither
@@ -30,29 +13,30 @@
  *
  * Protobuf type {@code google.cloud.speech.v1p1beta1.RecognitionAudio}
  */
-public final class RecognitionAudio extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class RecognitionAudio extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.speech.v1p1beta1.RecognitionAudio)
     RecognitionAudioOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use RecognitionAudio.newBuilder() to construct.
   private RecognitionAudio(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
-  private RecognitionAudio() {}
+  private RecognitionAudio() {
+  }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new RecognitionAudio();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private RecognitionAudio(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -71,65 +55,58 @@ private RecognitionAudio(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              audioSourceCase_ = 1;
-              audioSource_ = input.readBytes();
-              break;
-            }
-          case 18:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
-              audioSourceCase_ = 2;
-              audioSource_ = s;
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+          case 10: {
+            audioSourceCase_ = 1;
+            audioSource_ = input.readBytes();
+            break;
+          }
+          case 18: {
+            java.lang.String s = input.readStringRequireUtf8();
+            audioSourceCase_ = 2;
+            audioSource_ = s;
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.speech.v1p1beta1.SpeechProto
-        .internal_static_google_cloud_speech_v1p1beta1_RecognitionAudio_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_RecognitionAudio_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v1p1beta1.SpeechProto
-        .internal_static_google_cloud_speech_v1p1beta1_RecognitionAudio_fieldAccessorTable
+    return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_RecognitionAudio_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v1p1beta1.RecognitionAudio.class,
-            com.google.cloud.speech.v1p1beta1.RecognitionAudio.Builder.class);
+            com.google.cloud.speech.v1p1beta1.RecognitionAudio.class, com.google.cloud.speech.v1p1beta1.RecognitionAudio.Builder.class);
   }
 
   private int audioSourceCase_ = 0;
   private java.lang.Object audioSource_;
-
   public enum AudioSourceCase
-      implements
-          com.google.protobuf.Internal.EnumLite,
+      implements com.google.protobuf.Internal.EnumLite,
           com.google.protobuf.AbstractMessage.InternalOneOfEnum {
     CONTENT(1),
     URI(2),
     AUDIOSOURCE_NOT_SET(0);
     private final int value;
-
     private AudioSourceCase(int value) {
       this.value = value;
     }
@@ -145,30 +122,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
@@ -176,7 +148,6 @@ public AudioSourceCase getAudioSourceCase() {
    * 
* * bytes content = 1; - * * @return Whether the content field is set. */ @java.lang.Override @@ -184,8 +155,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
@@ -193,7 +162,6 @@ public boolean hasContent() {
    * 
* * bytes content = 1; - * * @return The content. */ @java.lang.Override @@ -206,8 +174,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).
@@ -219,15 +185,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).
@@ -239,7 +202,6 @@ public boolean hasUri() {
    * 
* * string uri = 2; - * * @return The uri. */ public java.lang.String getUri() { @@ -250,7 +212,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; @@ -259,8 +222,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).
@@ -272,17 +233,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; } @@ -293,7 +255,6 @@ public com.google.protobuf.ByteString getUriBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -305,9 +266,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_); @@ -322,9 +285,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_); @@ -337,21 +300,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: @@ -385,103 +349,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
@@ -491,23 +448,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.speech.v1p1beta1.RecognitionAudio}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1p1beta1.RecognitionAudio)
       com.google.cloud.speech.v1p1beta1.RecognitionAudioOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.speech.v1p1beta1.SpeechProto
-          .internal_static_google_cloud_speech_v1p1beta1_RecognitionAudio_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_RecognitionAudio_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v1p1beta1.SpeechProto
-          .internal_static_google_cloud_speech_v1p1beta1_RecognitionAudio_fieldAccessorTable
+      return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_RecognitionAudio_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v1p1beta1.RecognitionAudio.class,
-              com.google.cloud.speech.v1p1beta1.RecognitionAudio.Builder.class);
+              com.google.cloud.speech.v1p1beta1.RecognitionAudio.class, com.google.cloud.speech.v1p1beta1.RecognitionAudio.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v1p1beta1.RecognitionAudio.newBuilder()
@@ -515,15 +470,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -533,9 +489,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
@@ -554,8 +510,7 @@ public com.google.cloud.speech.v1p1beta1.RecognitionAudio build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v1p1beta1.RecognitionAudio buildPartial() {
-      com.google.cloud.speech.v1p1beta1.RecognitionAudio result =
-          new com.google.cloud.speech.v1p1beta1.RecognitionAudio(this);
+      com.google.cloud.speech.v1p1beta1.RecognitionAudio result = new com.google.cloud.speech.v1p1beta1.RecognitionAudio(this);
       if (audioSourceCase_ == 1) {
         result.audioSource_ = audioSource_;
       }
@@ -571,39 +526,38 @@ public com.google.cloud.speech.v1p1beta1.RecognitionAudio buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.speech.v1p1beta1.RecognitionAudio) {
-        return mergeFrom((com.google.cloud.speech.v1p1beta1.RecognitionAudio) other);
+        return mergeFrom((com.google.cloud.speech.v1p1beta1.RecognitionAudio)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -611,25 +565,21 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.speech.v1p1beta1.RecognitionAudio other) {
-      if (other == com.google.cloud.speech.v1p1beta1.RecognitionAudio.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.speech.v1p1beta1.RecognitionAudio.getDefaultInstance()) return this;
       switch (other.getAudioSourceCase()) {
-        case CONTENT:
-          {
-            setContent(other.getContent());
-            break;
-          }
-        case URI:
-          {
-            audioSourceCase_ = 2;
-            audioSource_ = other.audioSource_;
-            onChanged();
-            break;
-          }
-        case AUDIOSOURCE_NOT_SET:
-          {
-            break;
-          }
+        case CONTENT: {
+          setContent(other.getContent());
+          break;
+        }
+        case URI: {
+          audioSourceCase_ = 2;
+          audioSource_ = other.audioSource_;
+          onChanged();
+          break;
+        }
+        case AUDIOSOURCE_NOT_SET: {
+          break;
+        }
       }
       this.mergeUnknownFields(other.unknownFields);
       onChanged();
@@ -650,8 +600,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.speech.v1p1beta1.RecognitionAudio) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.speech.v1p1beta1.RecognitionAudio) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -660,12 +609,12 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int audioSourceCase_ = 0;
     private java.lang.Object audioSource_;
-
-    public AudioSourceCase getAudioSourceCase() {
-      return AudioSourceCase.forNumber(audioSourceCase_);
+    public AudioSourceCase
+        getAudioSourceCase() {
+      return AudioSourceCase.forNumber(
+          audioSourceCase_);
     }
 
     public Builder clearAudioSource() {
@@ -675,9 +624,8 @@ public Builder clearAudioSource() {
       return this;
     }
 
+
     /**
-     *
-     *
      * 
      * The audio data bytes encoded as specified in
      * `RecognitionConfig`. Note: as with all bytes fields, proto buffers use a
@@ -685,15 +633,12 @@ public Builder clearAudioSource() {
      * 
* * bytes content = 1; - * * @return Whether the content field is set. */ public boolean hasContent() { return audioSourceCase_ == 1; } /** - * - * *
      * The audio data bytes encoded as specified in
      * `RecognitionConfig`. Note: as with all bytes fields, proto buffers use a
@@ -701,7 +646,6 @@ public boolean hasContent() {
      * 
* * bytes content = 1; - * * @return The content. */ public com.google.protobuf.ByteString getContent() { @@ -711,8 +655,6 @@ public com.google.protobuf.ByteString getContent() { return com.google.protobuf.ByteString.EMPTY; } /** - * - * *
      * The audio data bytes encoded as specified in
      * `RecognitionConfig`. Note: as with all bytes fields, proto buffers use a
@@ -720,22 +662,19 @@ public com.google.protobuf.ByteString getContent() {
      * 
* * bytes content = 1; - * * @param value The content to set. * @return This builder for chaining. */ public Builder setContent(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - audioSourceCase_ = 1; + throw new NullPointerException(); + } + audioSourceCase_ = 1; audioSource_ = value; onChanged(); return this; } /** - * - * *
      * The audio data bytes encoded as specified in
      * `RecognitionConfig`. Note: as with all bytes fields, proto buffers use a
@@ -743,7 +682,6 @@ public Builder setContent(com.google.protobuf.ByteString value) {
      * 
* * bytes content = 1; - * * @return This builder for chaining. */ public Builder clearContent() { @@ -756,8 +694,6 @@ public Builder clearContent() { } /** - * - * *
      * URI that points to a file that contains audio data bytes as specified in
      * `RecognitionConfig`. The file must not be compressed (for example, gzip).
@@ -769,7 +705,6 @@ public Builder clearContent() {
      * 
* * string uri = 2; - * * @return Whether the uri field is set. */ @java.lang.Override @@ -777,8 +712,6 @@ public boolean hasUri() { return audioSourceCase_ == 2; } /** - * - * *
      * URI that points to a file that contains audio data bytes as specified in
      * `RecognitionConfig`. The file must not be compressed (for example, gzip).
@@ -790,7 +723,6 @@ public boolean hasUri() {
      * 
* * string uri = 2; - * * @return The uri. */ @java.lang.Override @@ -800,7 +732,8 @@ public java.lang.String getUri() { ref = audioSource_; } if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (audioSourceCase_ == 2) { audioSource_ = s; @@ -811,8 +744,6 @@ public java.lang.String getUri() { } } /** - * - * *
      * URI that points to a file that contains audio data bytes as specified in
      * `RecognitionConfig`. The file must not be compressed (for example, gzip).
@@ -824,18 +755,19 @@ public java.lang.String getUri() {
      * 
* * string uri = 2; - * * @return The bytes for uri. */ @java.lang.Override - public com.google.protobuf.ByteString getUriBytes() { + public com.google.protobuf.ByteString + getUriBytes() { java.lang.Object ref = ""; if (audioSourceCase_ == 2) { ref = audioSource_; } if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); if (audioSourceCase_ == 2) { audioSource_ = b; } @@ -845,8 +777,6 @@ public com.google.protobuf.ByteString getUriBytes() { } } /** - * - * *
      * URI that points to a file that contains audio data bytes as specified in
      * `RecognitionConfig`. The file must not be compressed (for example, gzip).
@@ -858,22 +788,20 @@ public com.google.protobuf.ByteString getUriBytes() {
      * 
* * string uri = 2; - * * @param value The uri to set. * @return This builder for chaining. */ - public Builder setUri(java.lang.String value) { + public Builder setUri( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - audioSourceCase_ = 2; + throw new NullPointerException(); + } + audioSourceCase_ = 2; audioSource_ = value; onChanged(); return this; } /** - * - * *
      * URI that points to a file that contains audio data bytes as specified in
      * `RecognitionConfig`. The file must not be compressed (for example, gzip).
@@ -885,7 +813,6 @@ public Builder setUri(java.lang.String value) {
      * 
* * string uri = 2; - * * @return This builder for chaining. */ public Builder clearUri() { @@ -897,8 +824,6 @@ public Builder clearUri() { return this; } /** - * - * *
      * URI that points to a file that contains audio data bytes as specified in
      * `RecognitionConfig`. The file must not be compressed (for example, gzip).
@@ -910,23 +835,23 @@ public Builder clearUri() {
      * 
* * string uri = 2; - * * @param value The bytes for uri to set. * @return This builder for chaining. */ - public Builder setUriBytes(com.google.protobuf.ByteString value) { + public Builder setUriBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); audioSourceCase_ = 2; audioSource_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -936,12 +861,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(); } @@ -950,16 +875,16 @@ public static com.google.cloud.speech.v1p1beta1.RecognitionAudio getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RecognitionAudio parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new RecognitionAudio(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RecognitionAudio parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RecognitionAudio(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -974,4 +899,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.RecognitionAudio getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionAudioOrBuilder.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionAudioOrBuilder.java similarity index 79% rename from proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionAudioOrBuilder.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionAudioOrBuilder.java index 37850c3d9..6127a94e2 100644 --- a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionAudioOrBuilder.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionAudioOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech.proto package com.google.cloud.speech.v1p1beta1; -public interface RecognitionAudioOrBuilder - extends +public interface RecognitionAudioOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1p1beta1.RecognitionAudio) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The audio data bytes encoded as specified in
    * `RecognitionConfig`. Note: as with all bytes fields, proto buffers use a
@@ -33,13 +15,10 @@ public interface RecognitionAudioOrBuilder
    * 
* * bytes content = 1; - * * @return Whether the content field is set. */ boolean hasContent(); /** - * - * *
    * The audio data bytes encoded as specified in
    * `RecognitionConfig`. Note: as with all bytes fields, proto buffers use a
@@ -47,14 +26,11 @@ public interface RecognitionAudioOrBuilder
    * 
* * bytes content = 1; - * * @return The content. */ com.google.protobuf.ByteString getContent(); /** - * - * *
    * URI that points to a file that contains audio data bytes as specified in
    * `RecognitionConfig`. The file must not be compressed (for example, gzip).
@@ -66,13 +42,10 @@ public interface RecognitionAudioOrBuilder
    * 
* * string uri = 2; - * * @return Whether the uri field is set. */ boolean hasUri(); /** - * - * *
    * URI that points to a file that contains audio data bytes as specified in
    * `RecognitionConfig`. The file must not be compressed (for example, gzip).
@@ -84,13 +57,10 @@ public interface RecognitionAudioOrBuilder
    * 
* * string uri = 2; - * * @return The uri. */ java.lang.String getUri(); /** - * - * *
    * URI that points to a file that contains audio data bytes as specified in
    * `RecognitionConfig`. The file must not be compressed (for example, gzip).
@@ -102,10 +72,10 @@ public interface RecognitionAudioOrBuilder
    * 
* * string uri = 2; - * * @return The bytes for uri. */ - com.google.protobuf.ByteString getUriBytes(); + com.google.protobuf.ByteString + getUriBytes(); public com.google.cloud.speech.v1p1beta1.RecognitionAudio.AudioSourceCase getAudioSourceCase(); } diff --git a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionConfig.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionConfig.java similarity index 82% rename from proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionConfig.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionConfig.java index 720bfd14c..c9aa11013 100644 --- a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionConfig.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionConfig.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech.proto package com.google.cloud.speech.v1p1beta1; /** - * - * *
  * Provides information to the recognizer that specifies how to process the
  * request.
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.cloud.speech.v1p1beta1.RecognitionConfig}
  */
-public final class RecognitionConfig extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class RecognitionConfig extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.speech.v1p1beta1.RecognitionConfig)
     RecognitionConfigOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use RecognitionConfig.newBuilder() to construct.
   private RecognitionConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private RecognitionConfig() {
     encoding_ = 0;
     languageCode_ = "";
@@ -48,15 +30,16 @@ private RecognitionConfig() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new RecognitionConfig();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private RecognitionConfig(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -76,215 +59,189 @@ private RecognitionConfig(
           case 0:
             done = true;
             break;
-          case 8:
-            {
-              int rawValue = input.readEnum();
+          case 8: {
+            int rawValue = input.readEnum();
 
-              encoding_ = rawValue;
-              break;
-            }
-          case 16:
-            {
-              sampleRateHertz_ = input.readInt32();
-              break;
-            }
-          case 26:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            encoding_ = rawValue;
+            break;
+          }
+          case 16: {
 
-              languageCode_ = s;
-              break;
-            }
-          case 32:
-            {
-              maxAlternatives_ = input.readInt32();
-              break;
-            }
-          case 40:
-            {
-              profanityFilter_ = input.readBool();
-              break;
-            }
-          case 50:
-            {
-              if (!((mutable_bitField0_ & 0x00000002) != 0)) {
-                speechContexts_ =
-                    new java.util.ArrayList();
-                mutable_bitField0_ |= 0x00000002;
-              }
-              speechContexts_.add(
-                  input.readMessage(
-                      com.google.cloud.speech.v1p1beta1.SpeechContext.parser(), extensionRegistry));
-              break;
-            }
-          case 56:
-            {
-              audioChannelCount_ = input.readInt32();
-              break;
-            }
-          case 64:
-            {
-              enableWordTimeOffsets_ = input.readBool();
-              break;
-            }
-          case 74:
-            {
-              com.google.cloud.speech.v1p1beta1.RecognitionMetadata.Builder subBuilder = null;
-              if (metadata_ != null) {
-                subBuilder = metadata_.toBuilder();
-              }
-              metadata_ =
-                  input.readMessage(
-                      com.google.cloud.speech.v1p1beta1.RecognitionMetadata.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(metadata_);
-                metadata_ = subBuilder.buildPartial();
-              }
-
-              break;
+            sampleRateHertz_ = input.readInt32();
+            break;
+          }
+          case 26: {
+            java.lang.String s = input.readStringRequireUtf8();
+
+            languageCode_ = s;
+            break;
+          }
+          case 32: {
+
+            maxAlternatives_ = input.readInt32();
+            break;
+          }
+          case 40: {
+
+            profanityFilter_ = input.readBool();
+            break;
+          }
+          case 50: {
+            if (!((mutable_bitField0_ & 0x00000002) != 0)) {
+              speechContexts_ = new java.util.ArrayList();
+              mutable_bitField0_ |= 0x00000002;
             }
-          case 88:
-            {
-              enableAutomaticPunctuation_ = input.readBool();
-              break;
+            speechContexts_.add(
+                input.readMessage(com.google.cloud.speech.v1p1beta1.SpeechContext.parser(), extensionRegistry));
+            break;
+          }
+          case 56: {
+
+            audioChannelCount_ = input.readInt32();
+            break;
+          }
+          case 64: {
+
+            enableWordTimeOffsets_ = input.readBool();
+            break;
+          }
+          case 74: {
+            com.google.cloud.speech.v1p1beta1.RecognitionMetadata.Builder subBuilder = null;
+            if (metadata_ != null) {
+              subBuilder = metadata_.toBuilder();
             }
-          case 96:
-            {
-              enableSeparateRecognitionPerChannel_ = input.readBool();
-              break;
+            metadata_ = input.readMessage(com.google.cloud.speech.v1p1beta1.RecognitionMetadata.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(metadata_);
+              metadata_ = subBuilder.buildPartial();
             }
-          case 106:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
 
-              model_ = s;
-              break;
+            break;
+          }
+          case 88: {
+
+            enableAutomaticPunctuation_ = input.readBool();
+            break;
+          }
+          case 96: {
+
+            enableSeparateRecognitionPerChannel_ = input.readBool();
+            break;
+          }
+          case 106: {
+            java.lang.String s = input.readStringRequireUtf8();
+
+            model_ = s;
+            break;
+          }
+          case 112: {
+
+            useEnhanced_ = input.readBool();
+            break;
+          }
+          case 120: {
+
+            enableWordConfidence_ = input.readBool();
+            break;
+          }
+          case 128: {
+
+            enableSpeakerDiarization_ = input.readBool();
+            break;
+          }
+          case 136: {
+
+            diarizationSpeakerCount_ = input.readInt32();
+            break;
+          }
+          case 146: {
+            java.lang.String s = input.readStringRequireUtf8();
+            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+              alternativeLanguageCodes_ = new com.google.protobuf.LazyStringArrayList();
+              mutable_bitField0_ |= 0x00000001;
             }
-          case 112:
-            {
-              useEnhanced_ = input.readBool();
-              break;
+            alternativeLanguageCodes_.add(s);
+            break;
+          }
+          case 154: {
+            com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig.Builder subBuilder = null;
+            if (diarizationConfig_ != null) {
+              subBuilder = diarizationConfig_.toBuilder();
             }
-          case 120:
-            {
-              enableWordConfidence_ = input.readBool();
-              break;
+            diarizationConfig_ = input.readMessage(com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(diarizationConfig_);
+              diarizationConfig_ = subBuilder.buildPartial();
             }
-          case 128:
-            {
-              enableSpeakerDiarization_ = input.readBool();
-              break;
+
+            break;
+          }
+          case 162: {
+            com.google.cloud.speech.v1p1beta1.SpeechAdaptation.Builder subBuilder = null;
+            if (adaptation_ != null) {
+              subBuilder = adaptation_.toBuilder();
             }
-          case 136:
-            {
-              diarizationSpeakerCount_ = input.readInt32();
-              break;
+            adaptation_ = input.readMessage(com.google.cloud.speech.v1p1beta1.SpeechAdaptation.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(adaptation_);
+              adaptation_ = subBuilder.buildPartial();
             }
-          case 146:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
-              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                alternativeLanguageCodes_ = new com.google.protobuf.LazyStringArrayList();
-                mutable_bitField0_ |= 0x00000001;
-              }
-              alternativeLanguageCodes_.add(s);
-              break;
+
+            break;
+          }
+          case 178: {
+            com.google.protobuf.BoolValue.Builder subBuilder = null;
+            if (enableSpokenPunctuation_ != null) {
+              subBuilder = enableSpokenPunctuation_.toBuilder();
             }
-          case 154:
-            {
-              com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig.Builder subBuilder = null;
-              if (diarizationConfig_ != null) {
-                subBuilder = diarizationConfig_.toBuilder();
-              }
-              diarizationConfig_ =
-                  input.readMessage(
-                      com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(diarizationConfig_);
-                diarizationConfig_ = subBuilder.buildPartial();
-              }
-
-              break;
+            enableSpokenPunctuation_ = input.readMessage(com.google.protobuf.BoolValue.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(enableSpokenPunctuation_);
+              enableSpokenPunctuation_ = subBuilder.buildPartial();
             }
-          case 162:
-            {
-              com.google.cloud.speech.v1p1beta1.SpeechAdaptation.Builder subBuilder = null;
-              if (adaptation_ != null) {
-                subBuilder = adaptation_.toBuilder();
-              }
-              adaptation_ =
-                  input.readMessage(
-                      com.google.cloud.speech.v1p1beta1.SpeechAdaptation.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(adaptation_);
-                adaptation_ = subBuilder.buildPartial();
-              }
-
-              break;
+
+            break;
+          }
+          case 186: {
+            com.google.protobuf.BoolValue.Builder subBuilder = null;
+            if (enableSpokenEmojis_ != null) {
+              subBuilder = enableSpokenEmojis_.toBuilder();
             }
-          case 178:
-            {
-              com.google.protobuf.BoolValue.Builder subBuilder = null;
-              if (enableSpokenPunctuation_ != null) {
-                subBuilder = enableSpokenPunctuation_.toBuilder();
-              }
-              enableSpokenPunctuation_ =
-                  input.readMessage(com.google.protobuf.BoolValue.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(enableSpokenPunctuation_);
-                enableSpokenPunctuation_ = subBuilder.buildPartial();
-              }
-
-              break;
+            enableSpokenEmojis_ = input.readMessage(com.google.protobuf.BoolValue.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(enableSpokenEmojis_);
+              enableSpokenEmojis_ = subBuilder.buildPartial();
             }
-          case 186:
-            {
-              com.google.protobuf.BoolValue.Builder subBuilder = null;
-              if (enableSpokenEmojis_ != null) {
-                subBuilder = enableSpokenEmojis_.toBuilder();
-              }
-              enableSpokenEmojis_ =
-                  input.readMessage(com.google.protobuf.BoolValue.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(enableSpokenEmojis_);
-                enableSpokenEmojis_ = subBuilder.buildPartial();
-              }
-
-              break;
+
+            break;
+          }
+          case 194: {
+            com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Builder subBuilder = null;
+            if (transcriptNormalization_ != null) {
+              subBuilder = transcriptNormalization_.toBuilder();
             }
-          case 194:
-            {
-              com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Builder subBuilder = null;
-              if (transcriptNormalization_ != null) {
-                subBuilder = transcriptNormalization_.toBuilder();
-              }
-              transcriptNormalization_ =
-                  input.readMessage(
-                      com.google.cloud.speech.v1p1beta1.TranscriptNormalization.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(transcriptNormalization_);
-                transcriptNormalization_ = subBuilder.buildPartial();
-              }
-
-              break;
+            transcriptNormalization_ = input.readMessage(com.google.cloud.speech.v1p1beta1.TranscriptNormalization.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(transcriptNormalization_);
+              transcriptNormalization_ = subBuilder.buildPartial();
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000002) != 0)) {
         speechContexts_ = java.util.Collections.unmodifiableList(speechContexts_);
@@ -296,25 +253,20 @@ private RecognitionConfig(
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.speech.v1p1beta1.SpeechProto
-        .internal_static_google_cloud_speech_v1p1beta1_RecognitionConfig_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_RecognitionConfig_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v1p1beta1.SpeechProto
-        .internal_static_google_cloud_speech_v1p1beta1_RecognitionConfig_fieldAccessorTable
+    return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_RecognitionConfig_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v1p1beta1.RecognitionConfig.class,
-            com.google.cloud.speech.v1p1beta1.RecognitionConfig.Builder.class);
+            com.google.cloud.speech.v1p1beta1.RecognitionConfig.class, com.google.cloud.speech.v1p1beta1.RecognitionConfig.Builder.class);
   }
 
   /**
-   *
-   *
    * 
    * The encoding of the audio data sent in the request.
    * All encodings support only 1 channel (mono) audio, unless the
@@ -340,10 +292,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.
      * 
@@ -352,8 +303,6 @@ public enum AudioEncoding implements com.google.protobuf.ProtocolMessageEnum { */ ENCODING_UNSPECIFIED(0), /** - * - * *
      * Uncompressed 16-bit signed little-endian samples (Linear PCM).
      * 
@@ -362,8 +311,6 @@ public enum AudioEncoding implements com.google.protobuf.ProtocolMessageEnum { */ LINEAR16(1), /** - * - * *
      * `FLAC` (Free Lossless Audio
      * Codec) is the recommended encoding because it is
@@ -377,8 +324,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.
      * 
@@ -387,8 +332,6 @@ public enum AudioEncoding implements com.google.protobuf.ProtocolMessageEnum { */ MULAW(3), /** - * - * *
      * Adaptive Multi-Rate Narrowband codec. `sample_rate_hertz` must be 8000.
      * 
@@ -397,8 +340,6 @@ public enum AudioEncoding implements com.google.protobuf.ProtocolMessageEnum { */ AMR(4), /** - * - * *
      * Adaptive Multi-Rate Wideband codec. `sample_rate_hertz` must be 16000.
      * 
@@ -407,8 +348,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)).
@@ -419,8 +358,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
@@ -441,8 +378,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
@@ -454,8 +389,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
@@ -469,8 +402,6 @@ public enum AudioEncoding implements com.google.protobuf.ProtocolMessageEnum {
     ;
 
     /**
-     *
-     *
      * 
      * Not specified.
      * 
@@ -479,8 +410,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).
      * 
@@ -489,8 +418,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
@@ -504,8 +431,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.
      * 
@@ -514,8 +439,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.
      * 
@@ -524,8 +447,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.
      * 
@@ -534,8 +455,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)).
@@ -546,8 +465,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
@@ -568,8 +485,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
@@ -581,8 +496,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
@@ -593,6 +506,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(
@@ -617,65 +531,56 @@ public static AudioEncoding valueOf(int value) {
      */
     public static AudioEncoding forNumber(int value) {
       switch (value) {
-        case 0:
-          return ENCODING_UNSPECIFIED;
-        case 1:
-          return LINEAR16;
-        case 2:
-          return FLAC;
-        case 3:
-          return MULAW;
-        case 4:
-          return AMR;
-        case 5:
-          return AMR_WB;
-        case 6:
-          return OGG_OPUS;
-        case 7:
-          return SPEEX_WITH_HEADER_BYTE;
-        case 8:
-          return MP3;
-        case 9:
-          return WEBM_OPUS;
-        default:
-          return null;
+        case 0: return ENCODING_UNSPECIFIED;
+        case 1: return LINEAR16;
+        case 2: return FLAC;
+        case 3: return MULAW;
+        case 4: return AMR;
+        case 5: return AMR_WB;
+        case 6: return OGG_OPUS;
+        case 7: return SPEEX_WITH_HEADER_BYTE;
+        case 8: return MP3;
+        case 9: return WEBM_OPUS;
+        default: return null;
       }
     }
 
-    public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
+    public static com.google.protobuf.Internal.EnumLiteMap
+        internalGetValueMap() {
       return internalValueMap;
     }
+    private static final com.google.protobuf.Internal.EnumLiteMap<
+        AudioEncoding> internalValueMap =
+          new com.google.protobuf.Internal.EnumLiteMap() {
+            public AudioEncoding findValueByNumber(int number) {
+              return AudioEncoding.forNumber(number);
+            }
+          };
 
-    private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
-        new com.google.protobuf.Internal.EnumLiteMap() {
-          public AudioEncoding findValueByNumber(int number) {
-            return AudioEncoding.forNumber(number);
-          }
-        };
-
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
+    public final com.google.protobuf.Descriptors.EnumValueDescriptor
+        getValueDescriptor() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalStateException(
             "Can't get the descriptor of an unrecognized enum value.");
       }
       return getDescriptor().getValues().get(ordinal());
     }
-
-    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
+    public final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptorForType() {
       return getDescriptor();
     }
-
-    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
-      return com.google.cloud.speech.v1p1beta1.RecognitionConfig.getDescriptor()
-          .getEnumTypes()
-          .get(0);
+    public static final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptor() {
+      return com.google.cloud.speech.v1p1beta1.RecognitionConfig.getDescriptor().getEnumTypes().get(0);
     }
 
     private static final AudioEncoding[] VALUES = values();
 
-    public static AudioEncoding valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+    public static AudioEncoding valueOf(
+        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
       if (desc.getType() != getDescriptor()) {
-        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
+        throw new java.lang.IllegalArgumentException(
+          "EnumValueDescriptor is not for this type.");
       }
       if (desc.getIndex() == -1) {
         return UNRECOGNIZED;
@@ -695,8 +600,6 @@ private AudioEncoding(int value) {
   public static final int ENCODING_FIELD_NUMBER = 1;
   private int encoding_;
   /**
-   *
-   *
    * 
    * Encoding of audio data sent in all `RecognitionAudio` messages.
    * This field is optional for `FLAC` and `WAV` audio files and required
@@ -704,16 +607,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
@@ -721,24 +620,17 @@ public int getEncodingValue() {
    * 
* * .google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding encoding = 1; - * * @return The encoding. */ - @java.lang.Override - public com.google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding getEncoding() { + @java.lang.Override public com.google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding getEncoding() { @SuppressWarnings("deprecation") - com.google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding result = - com.google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding.valueOf(encoding_); - return result == null - ? com.google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding.UNRECOGNIZED - : result; + com.google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding result = com.google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding.valueOf(encoding_); + return result == null ? com.google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding.UNRECOGNIZED : result; } public static final int SAMPLE_RATE_HERTZ_FIELD_NUMBER = 2; private int sampleRateHertz_; /** - * - * *
    * Sample rate in Hertz of the audio data sent in all
    * `RecognitionAudio` messages. Valid values are: 8000-48000.
@@ -750,7 +642,6 @@ public com.google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding getEnco
    * 
* * int32 sample_rate_hertz = 2; - * * @return The sampleRateHertz. */ @java.lang.Override @@ -761,8 +652,6 @@ public int getSampleRateHertz() { public static final int AUDIO_CHANNEL_COUNT_FIELD_NUMBER = 7; private int audioChannelCount_; /** - * - * *
    * The number of channels in the input audio data.
    * ONLY set this for MULTI-CHANNEL recognition.
@@ -776,7 +665,6 @@ public int getSampleRateHertz() {
    * 
* * int32 audio_channel_count = 7; - * * @return The audioChannelCount. */ @java.lang.Override @@ -787,8 +675,6 @@ public int getAudioChannelCount() { public static final int ENABLE_SEPARATE_RECOGNITION_PER_CHANNEL_FIELD_NUMBER = 12; private boolean enableSeparateRecognitionPerChannel_; /** - * - * *
    * This needs to be set to `true` explicitly and `audio_channel_count` > 1
    * to get each channel recognized separately. The recognition result will
@@ -799,7 +685,6 @@ public int getAudioChannelCount() {
    * 
* * bool enable_separate_recognition_per_channel = 12; - * * @return The enableSeparateRecognitionPerChannel. */ @java.lang.Override @@ -810,8 +695,6 @@ public boolean getEnableSeparateRecognitionPerChannel() { public static final int LANGUAGE_CODE_FIELD_NUMBER = 3; private volatile java.lang.Object languageCode_; /** - * - * *
    * Required. The language of the supplied audio as a
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.
@@ -822,7 +705,6 @@ public boolean getEnableSeparateRecognitionPerChannel() {
    * 
* * string language_code = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The languageCode. */ @java.lang.Override @@ -831,15 +713,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.
@@ -850,15 +731,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 { @@ -869,8 +751,6 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() { public static final int ALTERNATIVE_LANGUAGE_CODES_FIELD_NUMBER = 18; private com.google.protobuf.LazyStringList alternativeLanguageCodes_; /** - * - * *
    * A list of up to 3 additional
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags,
@@ -887,15 +767,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,
@@ -912,15 +790,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,
@@ -937,7 +812,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. */ @@ -945,8 +819,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,
@@ -963,19 +835,17 @@ public java.lang.String getAlternativeLanguageCodes(int index) {
    * 
* * repeated string alternative_language_codes = 18; - * * @param index The index of the value to return. * @return The bytes of the alternativeLanguageCodes at the given index. */ - public com.google.protobuf.ByteString getAlternativeLanguageCodesBytes(int index) { + public com.google.protobuf.ByteString + getAlternativeLanguageCodesBytes(int index) { return alternativeLanguageCodes_.getByteString(index); } public static final int MAX_ALTERNATIVES_FIELD_NUMBER = 4; private int maxAlternatives_; /** - * - * *
    * Maximum number of recognition hypotheses to be returned.
    * Specifically, the maximum number of `SpeechRecognitionAlternative` messages
@@ -986,7 +856,6 @@ public com.google.protobuf.ByteString getAlternativeLanguageCodesBytes(int index
    * 
* * int32 max_alternatives = 4; - * * @return The maxAlternatives. */ @java.lang.Override @@ -997,8 +866,6 @@ public int getMaxAlternatives() { public static final int PROFANITY_FILTER_FIELD_NUMBER = 5; private boolean profanityFilter_; /** - * - * *
    * If set to `true`, the server will attempt to filter out
    * profanities, replacing all but the initial character in each filtered word
@@ -1007,7 +874,6 @@ public int getMaxAlternatives() {
    * 
* * bool profanity_filter = 5; - * * @return The profanityFilter. */ @java.lang.Override @@ -1018,8 +884,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
@@ -1029,7 +893,6 @@ public boolean getProfanityFilter() {
    * 
* * .google.cloud.speech.v1p1beta1.SpeechAdaptation adaptation = 20; - * * @return Whether the adaptation field is set. */ @java.lang.Override @@ -1037,8 +900,6 @@ public boolean hasAdaptation() { return adaptation_ != null; } /** - * - * *
    * Speech adaptation configuration improves the accuracy of speech
    * recognition. For more information, see the [speech
@@ -1048,18 +909,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
@@ -1078,8 +934,6 @@ public com.google.cloud.speech.v1p1beta1.SpeechAdaptationOrBuilder getAdaptation
   public static final int TRANSCRIPT_NORMALIZATION_FIELD_NUMBER = 24;
   private com.google.cloud.speech.v1p1beta1.TranscriptNormalization transcriptNormalization_;
   /**
-   *
-   *
    * 
    * Use transcription normalization to automatically replace parts of the
    * transcript with phrases of your choosing. For StreamingRecognize, this
@@ -1087,9 +941,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 @@ -1097,8 +949,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
@@ -1106,20 +956,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
@@ -1127,20 +971,16 @@ public com.google.cloud.speech.v1p1beta1.TranscriptNormalization getTranscriptNo
    * and final transcripts.
    * 
* - * .google.cloud.speech.v1p1beta1.TranscriptNormalization transcript_normalization = 24; - * + * .google.cloud.speech.v1p1beta1.TranscriptNormalization transcript_normalization = 24; */ @java.lang.Override - public com.google.cloud.speech.v1p1beta1.TranscriptNormalizationOrBuilder - getTranscriptNormalizationOrBuilder() { + public com.google.cloud.speech.v1p1beta1.TranscriptNormalizationOrBuilder getTranscriptNormalizationOrBuilder() { return getTranscriptNormalization(); } public static final int SPEECH_CONTEXTS_FIELD_NUMBER = 6; private java.util.List speechContexts_; /** - * - * *
    * Array of [SpeechContext][google.cloud.speech.v1p1beta1.SpeechContext].
    * A means to provide context to assist the speech recognition. For more
@@ -1156,8 +996,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
@@ -1169,13 +1007,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
@@ -1191,8 +1027,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
@@ -1208,8 +1042,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
@@ -1229,8 +1061,6 @@ public com.google.cloud.speech.v1p1beta1.SpeechContextOrBuilder getSpeechContext
   public static final int ENABLE_WORD_TIME_OFFSETS_FIELD_NUMBER = 8;
   private boolean enableWordTimeOffsets_;
   /**
-   *
-   *
    * 
    * If `true`, the top result includes a list of words and
    * the start and end time offsets (timestamps) for those words. If
@@ -1239,7 +1069,6 @@ public com.google.cloud.speech.v1p1beta1.SpeechContextOrBuilder getSpeechContext
    * 
* * bool enable_word_time_offsets = 8; - * * @return The enableWordTimeOffsets. */ @java.lang.Override @@ -1250,8 +1079,6 @@ public boolean getEnableWordTimeOffsets() { public static final int ENABLE_WORD_CONFIDENCE_FIELD_NUMBER = 15; private boolean enableWordConfidence_; /** - * - * *
    * If `true`, the top result includes a list of words and the
    * confidence for those words. If `false`, no word-level confidence
@@ -1259,7 +1086,6 @@ public boolean getEnableWordTimeOffsets() {
    * 
* * bool enable_word_confidence = 15; - * * @return The enableWordConfidence. */ @java.lang.Override @@ -1270,8 +1096,6 @@ public boolean getEnableWordConfidence() { public static final int ENABLE_AUTOMATIC_PUNCTUATION_FIELD_NUMBER = 11; private boolean enableAutomaticPunctuation_; /** - * - * *
    * If 'true', adds punctuation to recognition result hypotheses.
    * This feature is only available in select languages. Setting this for
@@ -1280,7 +1104,6 @@ public boolean getEnableWordConfidence() {
    * 
* * bool enable_automatic_punctuation = 11; - * * @return The enableAutomaticPunctuation. */ @java.lang.Override @@ -1291,8 +1114,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
@@ -1304,7 +1125,6 @@ public boolean getEnableAutomaticPunctuation() {
    * 
* * .google.protobuf.BoolValue enable_spoken_punctuation = 22; - * * @return Whether the enableSpokenPunctuation field is set. */ @java.lang.Override @@ -1312,8 +1132,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
@@ -1325,18 +1143,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
@@ -1357,8 +1170,6 @@ public com.google.protobuf.BoolValueOrBuilder getEnableSpokenPunctuationOrBuilde
   public static final int ENABLE_SPOKEN_EMOJIS_FIELD_NUMBER = 23;
   private com.google.protobuf.BoolValue enableSpokenEmojis_;
   /**
-   *
-   *
    * 
    * The spoken emoji behavior for the call
    * If not set, uses default behavior based on model of choice
@@ -1368,7 +1179,6 @@ public com.google.protobuf.BoolValueOrBuilder getEnableSpokenPunctuationOrBuilde
    * 
* * .google.protobuf.BoolValue enable_spoken_emojis = 23; - * * @return Whether the enableSpokenEmojis field is set. */ @java.lang.Override @@ -1376,8 +1186,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
@@ -1387,18 +1195,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
@@ -1417,8 +1220,6 @@ public com.google.protobuf.BoolValueOrBuilder getEnableSpokenEmojisOrBuilder() {
   public static final int ENABLE_SPEAKER_DIARIZATION_FIELD_NUMBER = 16;
   private boolean enableSpeakerDiarization_;
   /**
-   *
-   *
    * 
    * If 'true', enables speaker detection for each recognized word in
    * the top alternative of the recognition result using a speaker_tag provided
@@ -1427,20 +1228,16 @@ public com.google.protobuf.BoolValueOrBuilder getEnableSpokenEmojisOrBuilder() {
    * 
* * bool enable_speaker_diarization = 16 [deprecated = true]; - * * @return The enableSpeakerDiarization. */ @java.lang.Override - @java.lang.Deprecated - public boolean getEnableSpeakerDiarization() { + @java.lang.Deprecated public boolean getEnableSpeakerDiarization() { return enableSpeakerDiarization_; } public static final int DIARIZATION_SPEAKER_COUNT_FIELD_NUMBER = 17; private int diarizationSpeakerCount_; /** - * - * *
    * If set, specifies the estimated number of speakers in the conversation.
    * Defaults to '2'. Ignored unless enable_speaker_diarization is set to true.
@@ -1448,20 +1245,16 @@ public boolean getEnableSpeakerDiarization() {
    * 
* * int32 diarization_speaker_count = 17 [deprecated = true]; - * * @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.
@@ -1474,7 +1267,6 @@ public int getDiarizationSpeakerCount() {
    * 
* * .google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig diarization_config = 19; - * * @return Whether the diarizationConfig field is set. */ @java.lang.Override @@ -1482,8 +1274,6 @@ public boolean hasDiarizationConfig() { return diarizationConfig_ != null; } /** - * - * *
    * Config to enable speaker diarization and set additional
    * parameters to make diarization better suited for your application.
@@ -1496,18 +1286,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.
@@ -1522,22 +1307,18 @@ public com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig getDiarization
    * .google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig diarization_config = 19;
    */
   @java.lang.Override
-  public com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfigOrBuilder
-      getDiarizationConfigOrBuilder() {
+  public com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfigOrBuilder getDiarizationConfigOrBuilder() {
     return getDiarizationConfig();
   }
 
   public static final int METADATA_FIELD_NUMBER = 9;
   private com.google.cloud.speech.v1p1beta1.RecognitionMetadata metadata_;
   /**
-   *
-   *
    * 
    * Metadata regarding this request.
    * 
* * .google.cloud.speech.v1p1beta1.RecognitionMetadata metadata = 9; - * * @return Whether the metadata field is set. */ @java.lang.Override @@ -1545,25 +1326,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.
    * 
@@ -1578,8 +1352,6 @@ public com.google.cloud.speech.v1p1beta1.RecognitionMetadataOrBuilder getMetadat public static final int MODEL_FIELD_NUMBER = 13; private volatile java.lang.Object model_; /** - * - * *
    * Which model to select for the given request. Select the model
    * best suited to your domain to get best results. If a model is not
@@ -1616,7 +1388,6 @@ public com.google.cloud.speech.v1p1beta1.RecognitionMetadataOrBuilder getMetadat
    * 
* * string model = 13; - * * @return The model. */ @java.lang.Override @@ -1625,15 +1396,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
@@ -1670,15 +1440,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 { @@ -1689,8 +1460,6 @@ public com.google.protobuf.ByteString getModelBytes() { public static final int USE_ENHANCED_FIELD_NUMBER = 14; private boolean useEnhanced_; /** - * - * *
    * Set to true to use an enhanced model for speech recognition.
    * If `use_enhanced` is set to true and the `model` field is not set, then
@@ -1702,7 +1471,6 @@ public com.google.protobuf.ByteString getModelBytes() {
    * 
* * bool use_enhanced = 14; - * * @return The useEnhanced. */ @java.lang.Override @@ -1711,7 +1479,6 @@ public boolean getUseEnhanced() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1723,10 +1490,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) { @@ -1775,8 +1541,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()); @@ -1802,58 +1567,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; @@ -1864,23 +1638,24 @@ public int getSerializedSize() { size += 2 * getAlternativeLanguageCodesList().size(); } if (diarizationConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(19, getDiarizationConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(19, getDiarizationConfig()); } if (adaptation_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(20, getAdaptation()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(20, getAdaptation()); } if (enableSpokenPunctuation_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 22, getEnableSpokenPunctuation()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(22, getEnableSpokenPunctuation()); } if (enableSpokenEmojis_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(23, getEnableSpokenEmojis()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(23, getEnableSpokenEmojis()); } if (transcriptNormalization_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 24, getTranscriptNormalization()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(24, getTranscriptNormalization()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1890,56 +1665,74 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1p1beta1.RecognitionConfig)) { return super.equals(obj); } - com.google.cloud.speech.v1p1beta1.RecognitionConfig other = - (com.google.cloud.speech.v1p1beta1.RecognitionConfig) obj; + com.google.cloud.speech.v1p1beta1.RecognitionConfig other = (com.google.cloud.speech.v1p1beta1.RecognitionConfig) obj; if (encoding_ != other.encoding_) return false; - if (getSampleRateHertz() != other.getSampleRateHertz()) return false; - if (getAudioChannelCount() != other.getAudioChannelCount()) return false; - if (getEnableSeparateRecognitionPerChannel() != other.getEnableSeparateRecognitionPerChannel()) - return false; - if (!getLanguageCode().equals(other.getLanguageCode())) return false; - if (!getAlternativeLanguageCodesList().equals(other.getAlternativeLanguageCodesList())) - return false; - if (getMaxAlternatives() != other.getMaxAlternatives()) return false; - if (getProfanityFilter() != other.getProfanityFilter()) return false; + if (getSampleRateHertz() + != other.getSampleRateHertz()) return false; + if (getAudioChannelCount() + != other.getAudioChannelCount()) return false; + if (getEnableSeparateRecognitionPerChannel() + != other.getEnableSeparateRecognitionPerChannel()) return false; + if (!getLanguageCode() + .equals(other.getLanguageCode())) return false; + if (!getAlternativeLanguageCodesList() + .equals(other.getAlternativeLanguageCodesList())) return false; + if (getMaxAlternatives() + != other.getMaxAlternatives()) return false; + if (getProfanityFilter() + != other.getProfanityFilter()) return false; if (hasAdaptation() != other.hasAdaptation()) return false; if (hasAdaptation()) { - if (!getAdaptation().equals(other.getAdaptation())) return false; + if (!getAdaptation() + .equals(other.getAdaptation())) return false; } if (hasTranscriptNormalization() != other.hasTranscriptNormalization()) return false; if (hasTranscriptNormalization()) { - if (!getTranscriptNormalization().equals(other.getTranscriptNormalization())) return false; - } - if (!getSpeechContextsList().equals(other.getSpeechContextsList())) return false; - if (getEnableWordTimeOffsets() != other.getEnableWordTimeOffsets()) return false; - if (getEnableWordConfidence() != other.getEnableWordConfidence()) return false; - if (getEnableAutomaticPunctuation() != other.getEnableAutomaticPunctuation()) return false; + if (!getTranscriptNormalization() + .equals(other.getTranscriptNormalization())) return false; + } + if (!getSpeechContextsList() + .equals(other.getSpeechContextsList())) return false; + if (getEnableWordTimeOffsets() + != other.getEnableWordTimeOffsets()) return false; + if (getEnableWordConfidence() + != other.getEnableWordConfidence()) return false; + if (getEnableAutomaticPunctuation() + != other.getEnableAutomaticPunctuation()) return false; if (hasEnableSpokenPunctuation() != other.hasEnableSpokenPunctuation()) return false; if (hasEnableSpokenPunctuation()) { - if (!getEnableSpokenPunctuation().equals(other.getEnableSpokenPunctuation())) return false; + if (!getEnableSpokenPunctuation() + .equals(other.getEnableSpokenPunctuation())) return false; } if (hasEnableSpokenEmojis() != other.hasEnableSpokenEmojis()) return false; if (hasEnableSpokenEmojis()) { - if (!getEnableSpokenEmojis().equals(other.getEnableSpokenEmojis())) return false; + if (!getEnableSpokenEmojis() + .equals(other.getEnableSpokenEmojis())) return false; } - if (getEnableSpeakerDiarization() != other.getEnableSpeakerDiarization()) return false; - if (getDiarizationSpeakerCount() != other.getDiarizationSpeakerCount()) return false; + if (getEnableSpeakerDiarization() + != other.getEnableSpeakerDiarization()) return false; + if (getDiarizationSpeakerCount() + != other.getDiarizationSpeakerCount()) return false; if (hasDiarizationConfig() != other.hasDiarizationConfig()) return false; if (hasDiarizationConfig()) { - if (!getDiarizationConfig().equals(other.getDiarizationConfig())) return false; + if (!getDiarizationConfig() + .equals(other.getDiarizationConfig())) return false; } if (hasMetadata() != other.hasMetadata()) return false; if (hasMetadata()) { - if (!getMetadata().equals(other.getMetadata())) return false; + if (!getMetadata() + .equals(other.getMetadata())) return false; } - if (!getModel().equals(other.getModel())) return false; - if (getUseEnhanced() != other.getUseEnhanced()) return false; + if (!getModel() + .equals(other.getModel())) return false; + if (getUseEnhanced() + != other.getUseEnhanced()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1958,9 +1751,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) { @@ -1970,7 +1762,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(); @@ -1984,11 +1777,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(); @@ -1998,7 +1794,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()) { @@ -2012,110 +1809,104 @@ public int hashCode() { hash = (37 * hash) + MODEL_FIELD_NUMBER; hash = (53 * hash) + getModel().hashCode(); hash = (37 * hash) + USE_ENHANCED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getUseEnhanced()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getUseEnhanced()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.speech.v1p1beta1.RecognitionConfig parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1p1beta1.RecognitionConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.RecognitionConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1p1beta1.RecognitionConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.RecognitionConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1p1beta1.RecognitionConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.speech.v1p1beta1.RecognitionConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.speech.v1p1beta1.RecognitionConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1p1beta1.RecognitionConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.speech.v1p1beta1.RecognitionConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.speech.v1p1beta1.RecognitionConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1p1beta1.RecognitionConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.RecognitionConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1p1beta1.RecognitionConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.speech.v1p1beta1.RecognitionConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Provides information to the recognizer that specifies how to process the
    * request.
@@ -2123,23 +1914,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.speech.v1p1beta1.RecognitionConfig}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1p1beta1.RecognitionConfig)
       com.google.cloud.speech.v1p1beta1.RecognitionConfigOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.speech.v1p1beta1.SpeechProto
-          .internal_static_google_cloud_speech_v1p1beta1_RecognitionConfig_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_RecognitionConfig_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v1p1beta1.SpeechProto
-          .internal_static_google_cloud_speech_v1p1beta1_RecognitionConfig_fieldAccessorTable
+      return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_RecognitionConfig_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v1p1beta1.RecognitionConfig.class,
-              com.google.cloud.speech.v1p1beta1.RecognitionConfig.Builder.class);
+              com.google.cloud.speech.v1p1beta1.RecognitionConfig.class, com.google.cloud.speech.v1p1beta1.RecognitionConfig.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v1p1beta1.RecognitionConfig.newBuilder()
@@ -2147,17 +1936,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
         getSpeechContextsFieldBuilder();
       }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -2237,9 +2026,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
@@ -2258,8 +2047,7 @@ public com.google.cloud.speech.v1p1beta1.RecognitionConfig build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v1p1beta1.RecognitionConfig buildPartial() {
-      com.google.cloud.speech.v1p1beta1.RecognitionConfig result =
-          new com.google.cloud.speech.v1p1beta1.RecognitionConfig(this);
+      com.google.cloud.speech.v1p1beta1.RecognitionConfig result = new com.google.cloud.speech.v1p1beta1.RecognitionConfig(this);
       int from_bitField0_ = bitField0_;
       result.encoding_ = encoding_;
       result.sampleRateHertz_ = sampleRateHertz_;
@@ -2327,39 +2115,38 @@ public com.google.cloud.speech.v1p1beta1.RecognitionConfig buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.speech.v1p1beta1.RecognitionConfig) {
-        return mergeFrom((com.google.cloud.speech.v1p1beta1.RecognitionConfig) other);
+        return mergeFrom((com.google.cloud.speech.v1p1beta1.RecognitionConfig)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -2367,8 +2154,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());
       }
@@ -2425,10 +2211,9 @@ public Builder mergeFrom(com.google.cloud.speech.v1p1beta1.RecognitionConfig oth
             speechContextsBuilder_ = null;
             speechContexts_ = other.speechContexts_;
             bitField0_ = (bitField0_ & ~0x00000002);
-            speechContextsBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getSpeechContextsFieldBuilder()
-                    : null;
+            speechContextsBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getSpeechContextsFieldBuilder() : null;
           } else {
             speechContextsBuilder_.addAllMessages(other.speechContexts_);
           }
@@ -2487,8 +2272,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.speech.v1p1beta1.RecognitionConfig) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.speech.v1p1beta1.RecognitionConfig) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -2497,13 +2281,10 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int bitField0_;
 
     private int encoding_ = 0;
     /**
-     *
-     *
      * 
      * Encoding of audio data sent in all `RecognitionAudio` messages.
      * This field is optional for `FLAC` and `WAV` audio files and required
@@ -2511,16 +2292,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
@@ -2528,19 +2305,16 @@ public int getEncodingValue() {
      * 
* * .google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding encoding = 1; - * * @param value The enum numeric value on the wire for encoding to set. * @return This builder for chaining. */ public Builder setEncodingValue(int value) { - + encoding_ = value; onChanged(); return this; } /** - * - * *
      * Encoding of audio data sent in all `RecognitionAudio` messages.
      * This field is optional for `FLAC` and `WAV` audio files and required
@@ -2548,21 +2322,15 @@ public Builder setEncodingValue(int value) {
      * 
* * .google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding encoding = 1; - * * @return The encoding. */ @java.lang.Override public com.google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding getEncoding() { @SuppressWarnings("deprecation") - com.google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding result = - com.google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding.valueOf(encoding_); - return result == null - ? com.google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding.UNRECOGNIZED - : result; + com.google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding result = com.google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding.valueOf(encoding_); + return result == null ? com.google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding.UNRECOGNIZED : result; } /** - * - * *
      * Encoding of audio data sent in all `RecognitionAudio` messages.
      * This field is optional for `FLAC` and `WAV` audio files and required
@@ -2570,23 +2338,19 @@ public com.google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding getEnco
      * 
* * .google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding encoding = 1; - * * @param value The encoding to set. * @return This builder for chaining. */ - public Builder setEncoding( - com.google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding value) { + public Builder setEncoding(com.google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding value) { if (value == null) { throw new NullPointerException(); } - + encoding_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Encoding of audio data sent in all `RecognitionAudio` messages.
      * This field is optional for `FLAC` and `WAV` audio files and required
@@ -2594,20 +2358,17 @@ public Builder setEncoding(
      * 
* * .google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding encoding = 1; - * * @return This builder for chaining. */ public Builder clearEncoding() { - + encoding_ = 0; onChanged(); return this; } - private int sampleRateHertz_; + private int sampleRateHertz_ ; /** - * - * *
      * Sample rate in Hertz of the audio data sent in all
      * `RecognitionAudio` messages. Valid values are: 8000-48000.
@@ -2619,7 +2380,6 @@ public Builder clearEncoding() {
      * 
* * int32 sample_rate_hertz = 2; - * * @return The sampleRateHertz. */ @java.lang.Override @@ -2627,8 +2387,6 @@ public int getSampleRateHertz() { return sampleRateHertz_; } /** - * - * *
      * Sample rate in Hertz of the audio data sent in all
      * `RecognitionAudio` messages. Valid values are: 8000-48000.
@@ -2640,19 +2398,16 @@ public int getSampleRateHertz() {
      * 
* * int32 sample_rate_hertz = 2; - * * @param value The sampleRateHertz to set. * @return This builder for chaining. */ public Builder setSampleRateHertz(int value) { - + sampleRateHertz_ = value; onChanged(); return this; } /** - * - * *
      * Sample rate in Hertz of the audio data sent in all
      * `RecognitionAudio` messages. Valid values are: 8000-48000.
@@ -2664,20 +2419,17 @@ public Builder setSampleRateHertz(int value) {
      * 
* * int32 sample_rate_hertz = 2; - * * @return This builder for chaining. */ public Builder clearSampleRateHertz() { - + sampleRateHertz_ = 0; onChanged(); return this; } - private int audioChannelCount_; + private int audioChannelCount_ ; /** - * - * *
      * The number of channels in the input audio data.
      * ONLY set this for MULTI-CHANNEL recognition.
@@ -2691,7 +2443,6 @@ public Builder clearSampleRateHertz() {
      * 
* * int32 audio_channel_count = 7; - * * @return The audioChannelCount. */ @java.lang.Override @@ -2699,8 +2450,6 @@ public int getAudioChannelCount() { return audioChannelCount_; } /** - * - * *
      * The number of channels in the input audio data.
      * ONLY set this for MULTI-CHANNEL recognition.
@@ -2714,19 +2463,16 @@ public int getAudioChannelCount() {
      * 
* * int32 audio_channel_count = 7; - * * @param value The audioChannelCount to set. * @return This builder for chaining. */ public Builder setAudioChannelCount(int value) { - + audioChannelCount_ = value; onChanged(); return this; } /** - * - * *
      * The number of channels in the input audio data.
      * ONLY set this for MULTI-CHANNEL recognition.
@@ -2740,20 +2486,17 @@ public Builder setAudioChannelCount(int value) {
      * 
* * int32 audio_channel_count = 7; - * * @return This builder for chaining. */ public Builder clearAudioChannelCount() { - + audioChannelCount_ = 0; onChanged(); return this; } - private boolean enableSeparateRecognitionPerChannel_; + private boolean enableSeparateRecognitionPerChannel_ ; /** - * - * *
      * This needs to be set to `true` explicitly and `audio_channel_count` > 1
      * to get each channel recognized separately. The recognition result will
@@ -2764,7 +2507,6 @@ public Builder clearAudioChannelCount() {
      * 
* * bool enable_separate_recognition_per_channel = 12; - * * @return The enableSeparateRecognitionPerChannel. */ @java.lang.Override @@ -2772,8 +2514,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
@@ -2784,19 +2524,16 @@ public boolean getEnableSeparateRecognitionPerChannel() {
      * 
* * bool enable_separate_recognition_per_channel = 12; - * * @param value The enableSeparateRecognitionPerChannel to set. * @return This builder for chaining. */ public Builder setEnableSeparateRecognitionPerChannel(boolean value) { - + enableSeparateRecognitionPerChannel_ = value; onChanged(); return this; } /** - * - * *
      * This needs to be set to `true` explicitly and `audio_channel_count` > 1
      * to get each channel recognized separately. The recognition result will
@@ -2807,11 +2544,10 @@ public Builder setEnableSeparateRecognitionPerChannel(boolean value) {
      * 
* * bool enable_separate_recognition_per_channel = 12; - * * @return This builder for chaining. */ public Builder clearEnableSeparateRecognitionPerChannel() { - + enableSeparateRecognitionPerChannel_ = false; onChanged(); return this; @@ -2819,8 +2555,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.
@@ -2831,13 +2565,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; @@ -2846,8 +2580,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.
@@ -2858,14 +2590,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 { @@ -2873,8 +2606,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.
@@ -2885,22 +2616,20 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() {
      * 
* * string language_code = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCode(java.lang.String value) { + public Builder setLanguageCode( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + languageCode_ = value; onChanged(); return this; } /** - * - * *
      * Required. The language of the supplied audio as a
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.
@@ -2911,18 +2640,15 @@ public Builder setLanguageCode(java.lang.String value) {
      * 
* * string language_code = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearLanguageCode() { - + languageCode_ = getDefaultInstance().getLanguageCode(); onChanged(); return this; } /** - * - * *
      * Required. The language of the supplied audio as a
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.
@@ -2933,34 +2659,29 @@ public Builder clearLanguageCode() {
      * 
* * string language_code = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { + public Builder setLanguageCodeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + languageCode_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList alternativeLanguageCodes_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList alternativeLanguageCodes_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureAlternativeLanguageCodesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - alternativeLanguageCodes_ = - new com.google.protobuf.LazyStringArrayList(alternativeLanguageCodes_); + alternativeLanguageCodes_ = new com.google.protobuf.LazyStringArrayList(alternativeLanguageCodes_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
      * A list of up to 3 additional
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags,
@@ -2977,15 +2698,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,
@@ -3002,15 +2721,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,
@@ -3027,7 +2743,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. */ @@ -3035,8 +2750,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,
@@ -3053,16 +2766,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,
@@ -3079,23 +2790,21 @@ public com.google.protobuf.ByteString getAlternativeLanguageCodesBytes(int index
      * 
* * repeated string alternative_language_codes = 18; - * * @param index The index to set the value at. * @param value The alternativeLanguageCodes to set. * @return This builder for chaining. */ - public Builder setAlternativeLanguageCodes(int index, java.lang.String value) { + public Builder setAlternativeLanguageCodes( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAlternativeLanguageCodesIsMutable(); + throw new NullPointerException(); + } + ensureAlternativeLanguageCodesIsMutable(); alternativeLanguageCodes_.set(index, value); onChanged(); return this; } /** - * - * *
      * A list of up to 3 additional
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags,
@@ -3112,22 +2821,20 @@ public Builder setAlternativeLanguageCodes(int index, java.lang.String value) {
      * 
* * repeated string alternative_language_codes = 18; - * * @param value The alternativeLanguageCodes to add. * @return This builder for chaining. */ - public Builder addAlternativeLanguageCodes(java.lang.String value) { + public Builder addAlternativeLanguageCodes( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAlternativeLanguageCodesIsMutable(); + throw new NullPointerException(); + } + ensureAlternativeLanguageCodesIsMutable(); alternativeLanguageCodes_.add(value); onChanged(); return this; } /** - * - * *
      * A list of up to 3 additional
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags,
@@ -3144,19 +2851,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,
@@ -3173,7 +2879,6 @@ public Builder addAllAlternativeLanguageCodes(java.lang.Iterable
      *
      * repeated string alternative_language_codes = 18;
-     *
      * @return This builder for chaining.
      */
     public Builder clearAlternativeLanguageCodes() {
@@ -3183,8 +2888,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,
@@ -3201,25 +2904,23 @@ public Builder clearAlternativeLanguageCodes() {
      * 
* * repeated string alternative_language_codes = 18; - * * @param value The bytes of the alternativeLanguageCodes to add. * @return This builder for chaining. */ - public Builder addAlternativeLanguageCodesBytes(com.google.protobuf.ByteString value) { + public Builder addAlternativeLanguageCodesBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureAlternativeLanguageCodesIsMutable(); alternativeLanguageCodes_.add(value); onChanged(); return this; } - private int maxAlternatives_; + private int maxAlternatives_ ; /** - * - * *
      * Maximum number of recognition hypotheses to be returned.
      * Specifically, the maximum number of `SpeechRecognitionAlternative` messages
@@ -3230,7 +2931,6 @@ public Builder addAlternativeLanguageCodesBytes(com.google.protobuf.ByteString v
      * 
* * int32 max_alternatives = 4; - * * @return The maxAlternatives. */ @java.lang.Override @@ -3238,8 +2938,6 @@ public int getMaxAlternatives() { return maxAlternatives_; } /** - * - * *
      * Maximum number of recognition hypotheses to be returned.
      * Specifically, the maximum number of `SpeechRecognitionAlternative` messages
@@ -3250,19 +2948,16 @@ public int getMaxAlternatives() {
      * 
* * int32 max_alternatives = 4; - * * @param value The maxAlternatives to set. * @return This builder for chaining. */ public Builder setMaxAlternatives(int value) { - + maxAlternatives_ = value; onChanged(); return this; } /** - * - * *
      * Maximum number of recognition hypotheses to be returned.
      * Specifically, the maximum number of `SpeechRecognitionAlternative` messages
@@ -3273,20 +2968,17 @@ public Builder setMaxAlternatives(int value) {
      * 
* * int32 max_alternatives = 4; - * * @return This builder for chaining. */ public Builder clearMaxAlternatives() { - + maxAlternatives_ = 0; onChanged(); return this; } - private boolean profanityFilter_; + private boolean profanityFilter_ ; /** - * - * *
      * If set to `true`, the server will attempt to filter out
      * profanities, replacing all but the initial character in each filtered word
@@ -3295,7 +2987,6 @@ public Builder clearMaxAlternatives() {
      * 
* * bool profanity_filter = 5; - * * @return The profanityFilter. */ @java.lang.Override @@ -3303,8 +2994,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
@@ -3313,19 +3002,16 @@ public boolean getProfanityFilter() {
      * 
* * bool profanity_filter = 5; - * * @param value The profanityFilter to set. * @return This builder for chaining. */ public Builder setProfanityFilter(boolean value) { - + profanityFilter_ = value; onChanged(); return this; } /** - * - * *
      * If set to `true`, the server will attempt to filter out
      * profanities, replacing all but the initial character in each filtered word
@@ -3334,11 +3020,10 @@ public Builder setProfanityFilter(boolean value) {
      * 
* * bool profanity_filter = 5; - * * @return This builder for chaining. */ public Builder clearProfanityFilter() { - + profanityFilter_ = false; onChanged(); return this; @@ -3346,13 +3031,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
@@ -3362,15 +3042,12 @@ public Builder clearProfanityFilter() {
      * 
* * .google.cloud.speech.v1p1beta1.SpeechAdaptation adaptation = 20; - * * @return Whether the adaptation field is set. */ public boolean hasAdaptation() { return adaptationBuilder_ != null || adaptation_ != null; } /** - * - * *
      * Speech adaptation configuration improves the accuracy of speech
      * recognition. For more information, see the [speech
@@ -3380,21 +3057,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
@@ -3419,8 +3091,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
@@ -3443,8 +3113,6 @@ public Builder setAdaptation(
       return this;
     }
     /**
-     *
-     *
      * 
      * Speech adaptation configuration improves the accuracy of speech
      * recognition. For more information, see the [speech
@@ -3459,9 +3127,7 @@ public Builder mergeAdaptation(com.google.cloud.speech.v1p1beta1.SpeechAdaptatio
       if (adaptationBuilder_ == null) {
         if (adaptation_ != null) {
           adaptation_ =
-              com.google.cloud.speech.v1p1beta1.SpeechAdaptation.newBuilder(adaptation_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.cloud.speech.v1p1beta1.SpeechAdaptation.newBuilder(adaptation_).mergeFrom(value).buildPartial();
         } else {
           adaptation_ = value;
         }
@@ -3473,8 +3139,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
@@ -3497,8 +3161,6 @@ public Builder clearAdaptation() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Speech adaptation configuration improves the accuracy of speech
      * recognition. For more information, see the [speech
@@ -3510,13 +3172,11 @@ public Builder clearAdaptation() {
      * .google.cloud.speech.v1p1beta1.SpeechAdaptation adaptation = 20;
      */
     public com.google.cloud.speech.v1p1beta1.SpeechAdaptation.Builder getAdaptationBuilder() {
-
+      
       onChanged();
       return getAdaptationFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Speech adaptation configuration improves the accuracy of speech
      * recognition. For more information, see the [speech
@@ -3531,14 +3191,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
@@ -3550,17 +3207,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_;
@@ -3568,13 +3222,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
@@ -3582,17 +3231,13 @@ public com.google.cloud.speech.v1p1beta1.SpeechAdaptationOrBuilder getAdaptation
      * and final transcripts.
      * 
* - * .google.cloud.speech.v1p1beta1.TranscriptNormalization transcript_normalization = 24; - * - * + * .google.cloud.speech.v1p1beta1.TranscriptNormalization transcript_normalization = 24; * @return Whether the transcriptNormalization field is set. */ public boolean hasTranscriptNormalization() { return transcriptNormalizationBuilder_ != null || transcriptNormalization_ != null; } /** - * - * *
      * Use transcription normalization to automatically replace parts of the
      * transcript with phrases of your choosing. For StreamingRecognize, this
@@ -3600,23 +3245,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
@@ -3624,11 +3263,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(); @@ -3641,9 +3278,7 @@ public Builder setTranscriptNormalization( return this; } - /** - * - * + /** *
      * Use transcription normalization to automatically replace parts of the
      * transcript with phrases of your choosing. For StreamingRecognize, this
@@ -3651,8 +3286,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) { @@ -3666,8 +3300,6 @@ public Builder setTranscriptNormalization( return this; } /** - * - * *
      * Use transcription normalization to automatically replace parts of the
      * transcript with phrases of your choosing. For StreamingRecognize, this
@@ -3675,18 +3307,13 @@ public Builder setTranscriptNormalization(
      * and final transcripts.
      * 
* - * .google.cloud.speech.v1p1beta1.TranscriptNormalization transcript_normalization = 24; - * + * .google.cloud.speech.v1p1beta1.TranscriptNormalization transcript_normalization = 24; */ - public Builder mergeTranscriptNormalization( - com.google.cloud.speech.v1p1beta1.TranscriptNormalization value) { + public Builder mergeTranscriptNormalization(com.google.cloud.speech.v1p1beta1.TranscriptNormalization value) { if (transcriptNormalizationBuilder_ == null) { if (transcriptNormalization_ != null) { transcriptNormalization_ = - com.google.cloud.speech.v1p1beta1.TranscriptNormalization.newBuilder( - transcriptNormalization_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.speech.v1p1beta1.TranscriptNormalization.newBuilder(transcriptNormalization_).mergeFrom(value).buildPartial(); } else { transcriptNormalization_ = value; } @@ -3698,8 +3325,6 @@ public Builder mergeTranscriptNormalization( return this; } /** - * - * *
      * Use transcription normalization to automatically replace parts of the
      * transcript with phrases of your choosing. For StreamingRecognize, this
@@ -3707,8 +3332,7 @@ public Builder mergeTranscriptNormalization(
      * and final transcripts.
      * 
* - * .google.cloud.speech.v1p1beta1.TranscriptNormalization transcript_normalization = 24; - * + * .google.cloud.speech.v1p1beta1.TranscriptNormalization transcript_normalization = 24; */ public Builder clearTranscriptNormalization() { if (transcriptNormalizationBuilder_ == null) { @@ -3722,8 +3346,6 @@ public Builder clearTranscriptNormalization() { return this; } /** - * - * *
      * Use transcription normalization to automatically replace parts of the
      * transcript with phrases of your choosing. For StreamingRecognize, this
@@ -3731,18 +3353,14 @@ public Builder clearTranscriptNormalization() {
      * and final transcripts.
      * 
* - * .google.cloud.speech.v1p1beta1.TranscriptNormalization transcript_normalization = 24; - * + * .google.cloud.speech.v1p1beta1.TranscriptNormalization transcript_normalization = 24; */ - public com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Builder - getTranscriptNormalizationBuilder() { - + public com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Builder getTranscriptNormalizationBuilder() { + onChanged(); return getTranscriptNormalizationFieldBuilder().getBuilder(); } /** - * - * *
      * Use transcription normalization to automatically replace parts of the
      * transcript with phrases of your choosing. For StreamingRecognize, this
@@ -3750,22 +3368,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
@@ -3773,47 +3386,35 @@ public Builder clearTranscriptNormalization() {
      * and final transcripts.
      * 
* - * .google.cloud.speech.v1p1beta1.TranscriptNormalization transcript_normalization = 24; - * + * .google.cloud.speech.v1p1beta1.TranscriptNormalization transcript_normalization = 24; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.TranscriptNormalization, - com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Builder, - com.google.cloud.speech.v1p1beta1.TranscriptNormalizationOrBuilder> + com.google.cloud.speech.v1p1beta1.TranscriptNormalization, com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Builder, com.google.cloud.speech.v1p1beta1.TranscriptNormalizationOrBuilder> getTranscriptNormalizationFieldBuilder() { if (transcriptNormalizationBuilder_ == null) { - transcriptNormalizationBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.TranscriptNormalization, - com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Builder, - com.google.cloud.speech.v1p1beta1.TranscriptNormalizationOrBuilder>( - getTranscriptNormalization(), getParentForChildren(), isClean()); + transcriptNormalizationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v1p1beta1.TranscriptNormalization, com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Builder, com.google.cloud.speech.v1p1beta1.TranscriptNormalizationOrBuilder>( + getTranscriptNormalization(), + getParentForChildren(), + isClean()); transcriptNormalization_ = null; } return transcriptNormalizationBuilder_; } private java.util.List speechContexts_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureSpeechContextsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - speechContexts_ = - new java.util.ArrayList( - speechContexts_); + speechContexts_ = new java.util.ArrayList(speechContexts_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.SpeechContext, - com.google.cloud.speech.v1p1beta1.SpeechContext.Builder, - com.google.cloud.speech.v1p1beta1.SpeechContextOrBuilder> - speechContextsBuilder_; + com.google.cloud.speech.v1p1beta1.SpeechContext, com.google.cloud.speech.v1p1beta1.SpeechContext.Builder, com.google.cloud.speech.v1p1beta1.SpeechContextOrBuilder> speechContextsBuilder_; /** - * - * *
      * Array of [SpeechContext][google.cloud.speech.v1p1beta1.SpeechContext].
      * A means to provide context to assist the speech recognition. For more
@@ -3832,8 +3433,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
@@ -3852,8 +3451,6 @@ public int getSpeechContextsCount() {
       }
     }
     /**
-     *
-     *
      * 
      * Array of [SpeechContext][google.cloud.speech.v1p1beta1.SpeechContext].
      * A means to provide context to assist the speech recognition. For more
@@ -3872,8 +3469,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
@@ -3899,8 +3494,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
@@ -3923,8 +3516,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
@@ -3949,8 +3540,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
@@ -3976,8 +3565,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
@@ -4000,8 +3587,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
@@ -4024,8 +3609,6 @@ public Builder addSpeechContexts(
       return this;
     }
     /**
-     *
-     *
      * 
      * Array of [SpeechContext][google.cloud.speech.v1p1beta1.SpeechContext].
      * A means to provide context to assist the speech recognition. For more
@@ -4040,7 +3623,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);
@@ -4048,8 +3632,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
@@ -4071,8 +3653,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
@@ -4094,8 +3674,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
@@ -4111,8 +3689,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
@@ -4126,14 +3702,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
@@ -4144,8 +3717,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 {
@@ -4153,8 +3726,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
@@ -4166,12 +3737,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
@@ -4184,12 +3753,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
@@ -4200,22 +3767,16 @@ public com.google.cloud.speech.v1p1beta1.SpeechContext.Builder addSpeechContexts
      *
      * repeated .google.cloud.speech.v1p1beta1.SpeechContext speech_contexts = 6;
      */
-    public java.util.List
-        getSpeechContextsBuilderList() {
+    public java.util.List 
+         getSpeechContextsBuilderList() {
       return getSpeechContextsFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.speech.v1p1beta1.SpeechContext,
-            com.google.cloud.speech.v1p1beta1.SpeechContext.Builder,
-            com.google.cloud.speech.v1p1beta1.SpeechContextOrBuilder>
+        com.google.cloud.speech.v1p1beta1.SpeechContext, com.google.cloud.speech.v1p1beta1.SpeechContext.Builder, com.google.cloud.speech.v1p1beta1.SpeechContextOrBuilder> 
         getSpeechContextsFieldBuilder() {
       if (speechContextsBuilder_ == null) {
-        speechContextsBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.cloud.speech.v1p1beta1.SpeechContext,
-                com.google.cloud.speech.v1p1beta1.SpeechContext.Builder,
-                com.google.cloud.speech.v1p1beta1.SpeechContextOrBuilder>(
+        speechContextsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.cloud.speech.v1p1beta1.SpeechContext, com.google.cloud.speech.v1p1beta1.SpeechContext.Builder, com.google.cloud.speech.v1p1beta1.SpeechContextOrBuilder>(
                 speechContexts_,
                 ((bitField0_ & 0x00000002) != 0),
                 getParentForChildren(),
@@ -4225,10 +3786,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
@@ -4237,7 +3796,6 @@ public com.google.cloud.speech.v1p1beta1.SpeechContext.Builder addSpeechContexts
      * 
* * bool enable_word_time_offsets = 8; - * * @return The enableWordTimeOffsets. */ @java.lang.Override @@ -4245,8 +3803,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
@@ -4255,19 +3811,16 @@ public boolean getEnableWordTimeOffsets() {
      * 
* * bool enable_word_time_offsets = 8; - * * @param value The enableWordTimeOffsets to set. * @return This builder for chaining. */ public Builder setEnableWordTimeOffsets(boolean value) { - + enableWordTimeOffsets_ = value; onChanged(); return this; } /** - * - * *
      * If `true`, the top result includes a list of words and
      * the start and end time offsets (timestamps) for those words. If
@@ -4276,20 +3829,17 @@ public Builder setEnableWordTimeOffsets(boolean value) {
      * 
* * bool enable_word_time_offsets = 8; - * * @return This builder for chaining. */ public Builder clearEnableWordTimeOffsets() { - + enableWordTimeOffsets_ = false; onChanged(); return this; } - private boolean enableWordConfidence_; + private boolean enableWordConfidence_ ; /** - * - * *
      * If `true`, the top result includes a list of words and the
      * confidence for those words. If `false`, no word-level confidence
@@ -4297,7 +3847,6 @@ public Builder clearEnableWordTimeOffsets() {
      * 
* * bool enable_word_confidence = 15; - * * @return The enableWordConfidence. */ @java.lang.Override @@ -4305,8 +3854,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
@@ -4314,19 +3861,16 @@ public boolean getEnableWordConfidence() {
      * 
* * bool enable_word_confidence = 15; - * * @param value The enableWordConfidence to set. * @return This builder for chaining. */ public Builder setEnableWordConfidence(boolean value) { - + enableWordConfidence_ = value; onChanged(); return this; } /** - * - * *
      * If `true`, the top result includes a list of words and the
      * confidence for those words. If `false`, no word-level confidence
@@ -4334,20 +3878,17 @@ public Builder setEnableWordConfidence(boolean value) {
      * 
* * bool enable_word_confidence = 15; - * * @return This builder for chaining. */ public Builder clearEnableWordConfidence() { - + enableWordConfidence_ = false; onChanged(); return this; } - private boolean enableAutomaticPunctuation_; + private boolean enableAutomaticPunctuation_ ; /** - * - * *
      * If 'true', adds punctuation to recognition result hypotheses.
      * This feature is only available in select languages. Setting this for
@@ -4356,7 +3897,6 @@ public Builder clearEnableWordConfidence() {
      * 
* * bool enable_automatic_punctuation = 11; - * * @return The enableAutomaticPunctuation. */ @java.lang.Override @@ -4364,8 +3904,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
@@ -4374,19 +3912,16 @@ public boolean getEnableAutomaticPunctuation() {
      * 
* * bool enable_automatic_punctuation = 11; - * * @param value The enableAutomaticPunctuation to set. * @return This builder for chaining. */ public Builder setEnableAutomaticPunctuation(boolean value) { - + enableAutomaticPunctuation_ = value; onChanged(); return this; } /** - * - * *
      * If 'true', adds punctuation to recognition result hypotheses.
      * This feature is only available in select languages. Setting this for
@@ -4395,11 +3930,10 @@ public Builder setEnableAutomaticPunctuation(boolean value) {
      * 
* * bool enable_automatic_punctuation = 11; - * * @return This builder for chaining. */ public Builder clearEnableAutomaticPunctuation() { - + enableAutomaticPunctuation_ = false; onChanged(); return this; @@ -4407,13 +3941,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
@@ -4425,15 +3954,12 @@ public Builder clearEnableAutomaticPunctuation() {
      * 
* * .google.protobuf.BoolValue enable_spoken_punctuation = 22; - * * @return Whether the enableSpokenPunctuation field is set. */ public boolean hasEnableSpokenPunctuation() { return enableSpokenPunctuationBuilder_ != null || enableSpokenPunctuation_ != null; } /** - * - * *
      * The spoken punctuation behavior for the call
      * If not set, uses default behavior based on model of choice
@@ -4445,21 +3971,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
@@ -4486,8 +4007,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
@@ -4512,8 +4031,6 @@ public Builder setEnableSpokenPunctuation(
       return this;
     }
     /**
-     *
-     *
      * 
      * The spoken punctuation behavior for the call
      * If not set, uses default behavior based on model of choice
@@ -4530,9 +4047,7 @@ public Builder mergeEnableSpokenPunctuation(com.google.protobuf.BoolValue value)
       if (enableSpokenPunctuationBuilder_ == null) {
         if (enableSpokenPunctuation_ != null) {
           enableSpokenPunctuation_ =
-              com.google.protobuf.BoolValue.newBuilder(enableSpokenPunctuation_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.protobuf.BoolValue.newBuilder(enableSpokenPunctuation_).mergeFrom(value).buildPartial();
         } else {
           enableSpokenPunctuation_ = value;
         }
@@ -4544,8 +4059,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
@@ -4570,8 +4083,6 @@ public Builder clearEnableSpokenPunctuation() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The spoken punctuation behavior for the call
      * If not set, uses default behavior based on model of choice
@@ -4585,13 +4096,11 @@ public Builder clearEnableSpokenPunctuation() {
      * .google.protobuf.BoolValue enable_spoken_punctuation = 22;
      */
     public com.google.protobuf.BoolValue.Builder getEnableSpokenPunctuationBuilder() {
-
+      
       onChanged();
       return getEnableSpokenPunctuationFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The spoken punctuation behavior for the call
      * If not set, uses default behavior based on model of choice
@@ -4608,14 +4117,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
@@ -4629,17 +4135,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_;
@@ -4647,13 +4150,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
@@ -4663,15 +4161,12 @@ public com.google.protobuf.BoolValueOrBuilder getEnableSpokenPunctuationOrBuilde
      * 
* * .google.protobuf.BoolValue enable_spoken_emojis = 23; - * * @return Whether the enableSpokenEmojis field is set. */ public boolean hasEnableSpokenEmojis() { return enableSpokenEmojisBuilder_ != null || enableSpokenEmojis_ != null; } /** - * - * *
      * The spoken emoji behavior for the call
      * If not set, uses default behavior based on model of choice
@@ -4681,21 +4176,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
@@ -4720,8 +4210,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
@@ -4732,7 +4220,8 @@ public Builder setEnableSpokenEmojis(com.google.protobuf.BoolValue value) {
      *
      * .google.protobuf.BoolValue enable_spoken_emojis = 23;
      */
-    public Builder setEnableSpokenEmojis(com.google.protobuf.BoolValue.Builder builderForValue) {
+    public Builder setEnableSpokenEmojis(
+        com.google.protobuf.BoolValue.Builder builderForValue) {
       if (enableSpokenEmojisBuilder_ == null) {
         enableSpokenEmojis_ = builderForValue.build();
         onChanged();
@@ -4743,8 +4232,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
@@ -4759,9 +4246,7 @@ public Builder mergeEnableSpokenEmojis(com.google.protobuf.BoolValue value) {
       if (enableSpokenEmojisBuilder_ == null) {
         if (enableSpokenEmojis_ != null) {
           enableSpokenEmojis_ =
-              com.google.protobuf.BoolValue.newBuilder(enableSpokenEmojis_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.protobuf.BoolValue.newBuilder(enableSpokenEmojis_).mergeFrom(value).buildPartial();
         } else {
           enableSpokenEmojis_ = value;
         }
@@ -4773,8 +4258,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
@@ -4797,8 +4280,6 @@ public Builder clearEnableSpokenEmojis() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The spoken emoji behavior for the call
      * If not set, uses default behavior based on model of choice
@@ -4810,13 +4291,11 @@ public Builder clearEnableSpokenEmojis() {
      * .google.protobuf.BoolValue enable_spoken_emojis = 23;
      */
     public com.google.protobuf.BoolValue.Builder getEnableSpokenEmojisBuilder() {
-
+      
       onChanged();
       return getEnableSpokenEmojisFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The spoken emoji behavior for the call
      * If not set, uses default behavior based on model of choice
@@ -4831,14 +4310,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
@@ -4850,26 +4326,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
@@ -4878,17 +4349,13 @@ public com.google.protobuf.BoolValueOrBuilder getEnableSpokenEmojisOrBuilder() {
      * 
* * bool enable_speaker_diarization = 16 [deprecated = true]; - * * @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
@@ -4897,20 +4364,16 @@ public boolean getEnableSpeakerDiarization() {
      * 
* * bool enable_speaker_diarization = 16 [deprecated = true]; - * * @param value The enableSpeakerDiarization to set. * @return This builder for chaining. */ - @java.lang.Deprecated - public Builder setEnableSpeakerDiarization(boolean value) { - + @java.lang.Deprecated public Builder setEnableSpeakerDiarization(boolean value) { + enableSpeakerDiarization_ = value; onChanged(); return this; } /** - * - * *
      * If 'true', enables speaker detection for each recognized word in
      * the top alternative of the recognition result using a speaker_tag provided
@@ -4919,21 +4382,17 @@ public Builder setEnableSpeakerDiarization(boolean value) {
      * 
* * bool enable_speaker_diarization = 16 [deprecated = true]; - * * @return This builder for chaining. */ - @java.lang.Deprecated - public Builder clearEnableSpeakerDiarization() { - + @java.lang.Deprecated public Builder clearEnableSpeakerDiarization() { + enableSpeakerDiarization_ = false; onChanged(); return this; } - private int diarizationSpeakerCount_; + private int diarizationSpeakerCount_ ; /** - * - * *
      * If set, specifies the estimated number of speakers in the conversation.
      * Defaults to '2'. Ignored unless enable_speaker_diarization is set to true.
@@ -4941,17 +4400,13 @@ public Builder clearEnableSpeakerDiarization() {
      * 
* * int32 diarization_speaker_count = 17 [deprecated = true]; - * * @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.
@@ -4959,20 +4414,16 @@ public int getDiarizationSpeakerCount() {
      * 
* * int32 diarization_speaker_count = 17 [deprecated = true]; - * * @param value The diarizationSpeakerCount to set. * @return This builder for chaining. */ - @java.lang.Deprecated - public Builder setDiarizationSpeakerCount(int value) { - + @java.lang.Deprecated public Builder setDiarizationSpeakerCount(int value) { + diarizationSpeakerCount_ = value; onChanged(); return this; } /** - * - * *
      * If set, specifies the estimated number of speakers in the conversation.
      * Defaults to '2'. Ignored unless enable_speaker_diarization is set to true.
@@ -4980,12 +4431,10 @@ public Builder setDiarizationSpeakerCount(int value) {
      * 
* * int32 diarization_speaker_count = 17 [deprecated = true]; - * * @return This builder for chaining. */ - @java.lang.Deprecated - public Builder clearDiarizationSpeakerCount() { - + @java.lang.Deprecated public Builder clearDiarizationSpeakerCount() { + diarizationSpeakerCount_ = 0; onChanged(); return this; @@ -4993,13 +4442,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.
@@ -5012,15 +4456,12 @@ public Builder clearDiarizationSpeakerCount() {
      * 
* * .google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig diarization_config = 19; - * * @return Whether the diarizationConfig field is set. */ public boolean hasDiarizationConfig() { return diarizationConfigBuilder_ != null || diarizationConfig_ != null; } /** - * - * *
      * Config to enable speaker diarization and set additional
      * parameters to make diarization better suited for your application.
@@ -5033,21 +4474,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.
@@ -5061,8 +4497,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();
@@ -5076,8 +4511,6 @@ public Builder setDiarizationConfig(
       return this;
     }
     /**
-     *
-     *
      * 
      * Config to enable speaker diarization and set additional
      * parameters to make diarization better suited for your application.
@@ -5103,8 +4536,6 @@ public Builder setDiarizationConfig(
       return this;
     }
     /**
-     *
-     *
      * 
      * Config to enable speaker diarization and set additional
      * parameters to make diarization better suited for your application.
@@ -5118,15 +4549,11 @@ public Builder setDiarizationConfig(
      *
      * .google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig diarization_config = 19;
      */
-    public Builder mergeDiarizationConfig(
-        com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig value) {
+    public Builder mergeDiarizationConfig(com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig value) {
       if (diarizationConfigBuilder_ == null) {
         if (diarizationConfig_ != null) {
           diarizationConfig_ =
-              com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig.newBuilder(
-                      diarizationConfig_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig.newBuilder(diarizationConfig_).mergeFrom(value).buildPartial();
         } else {
           diarizationConfig_ = value;
         }
@@ -5138,8 +4565,6 @@ public Builder mergeDiarizationConfig(
       return this;
     }
     /**
-     *
-     *
      * 
      * Config to enable speaker diarization and set additional
      * parameters to make diarization better suited for your application.
@@ -5165,8 +4590,6 @@ public Builder clearDiarizationConfig() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Config to enable speaker diarization and set additional
      * parameters to make diarization better suited for your application.
@@ -5180,15 +4603,12 @@ public Builder clearDiarizationConfig() {
      *
      * .google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig diarization_config = 19;
      */
-    public com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig.Builder
-        getDiarizationConfigBuilder() {
-
+    public com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig.Builder getDiarizationConfigBuilder() {
+      
       onChanged();
       return getDiarizationConfigFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Config to enable speaker diarization and set additional
      * parameters to make diarization better suited for your application.
@@ -5202,19 +4622,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.
@@ -5229,17 +4645,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_;
@@ -5247,47 +4660,34 @@ public Builder clearDiarizationConfig() {
 
     private com.google.cloud.speech.v1p1beta1.RecognitionMetadata metadata_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.speech.v1p1beta1.RecognitionMetadata,
-            com.google.cloud.speech.v1p1beta1.RecognitionMetadata.Builder,
-            com.google.cloud.speech.v1p1beta1.RecognitionMetadataOrBuilder>
-        metadataBuilder_;
+        com.google.cloud.speech.v1p1beta1.RecognitionMetadata, com.google.cloud.speech.v1p1beta1.RecognitionMetadata.Builder, com.google.cloud.speech.v1p1beta1.RecognitionMetadataOrBuilder> metadataBuilder_;
     /**
-     *
-     *
      * 
      * Metadata regarding this request.
      * 
* * .google.cloud.speech.v1p1beta1.RecognitionMetadata metadata = 9; - * * @return Whether the metadata field is set. */ public boolean hasMetadata() { return metadataBuilder_ != null || metadata_ != null; } /** - * - * *
      * Metadata regarding this request.
      * 
* * .google.cloud.speech.v1p1beta1.RecognitionMetadata metadata = 9; - * * @return The metadata. */ public com.google.cloud.speech.v1p1beta1.RecognitionMetadata getMetadata() { if (metadataBuilder_ == null) { - return metadata_ == null - ? com.google.cloud.speech.v1p1beta1.RecognitionMetadata.getDefaultInstance() - : metadata_; + return metadata_ == null ? com.google.cloud.speech.v1p1beta1.RecognitionMetadata.getDefaultInstance() : metadata_; } else { return metadataBuilder_.getMessage(); } } /** - * - * *
      * Metadata regarding this request.
      * 
@@ -5308,8 +4708,6 @@ public Builder setMetadata(com.google.cloud.speech.v1p1beta1.RecognitionMetadata return this; } /** - * - * *
      * Metadata regarding this request.
      * 
@@ -5328,8 +4726,6 @@ public Builder setMetadata( return this; } /** - * - * *
      * Metadata regarding this request.
      * 
@@ -5340,9 +4736,7 @@ public Builder mergeMetadata(com.google.cloud.speech.v1p1beta1.RecognitionMetada if (metadataBuilder_ == null) { if (metadata_ != null) { metadata_ = - com.google.cloud.speech.v1p1beta1.RecognitionMetadata.newBuilder(metadata_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.speech.v1p1beta1.RecognitionMetadata.newBuilder(metadata_).mergeFrom(value).buildPartial(); } else { metadata_ = value; } @@ -5354,8 +4748,6 @@ public Builder mergeMetadata(com.google.cloud.speech.v1p1beta1.RecognitionMetada return this; } /** - * - * *
      * Metadata regarding this request.
      * 
@@ -5374,8 +4766,6 @@ public Builder clearMetadata() { return this; } /** - * - * *
      * Metadata regarding this request.
      * 
@@ -5383,13 +4773,11 @@ public Builder clearMetadata() { * .google.cloud.speech.v1p1beta1.RecognitionMetadata metadata = 9; */ public com.google.cloud.speech.v1p1beta1.RecognitionMetadata.Builder getMetadataBuilder() { - + onChanged(); return getMetadataFieldBuilder().getBuilder(); } /** - * - * *
      * Metadata regarding this request.
      * 
@@ -5400,14 +4788,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.
      * 
@@ -5415,17 +4800,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_; @@ -5433,8 +4815,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
@@ -5471,13 +4851,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; @@ -5486,8 +4866,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
@@ -5524,14 +4902,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 { @@ -5539,8 +4918,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
@@ -5577,22 +4954,20 @@ public com.google.protobuf.ByteString getModelBytes() {
      * 
* * string model = 13; - * * @param value The model to set. * @return This builder for chaining. */ - public Builder setModel(java.lang.String value) { + public Builder setModel( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + model_ = value; onChanged(); return this; } /** - * - * *
      * Which model to select for the given request. Select the model
      * best suited to your domain to get best results. If a model is not
@@ -5629,18 +5004,15 @@ public Builder setModel(java.lang.String value) {
      * 
* * string model = 13; - * * @return This builder for chaining. */ public Builder clearModel() { - + model_ = getDefaultInstance().getModel(); onChanged(); return this; } /** - * - * *
      * Which model to select for the given request. Select the model
      * best suited to your domain to get best results. If a model is not
@@ -5677,25 +5049,23 @@ public Builder clearModel() {
      * 
* * string model = 13; - * * @param value The bytes for model to set. * @return This builder for chaining. */ - public Builder setModelBytes(com.google.protobuf.ByteString value) { + public Builder setModelBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + model_ = value; onChanged(); return this; } - private boolean useEnhanced_; + private boolean useEnhanced_ ; /** - * - * *
      * Set to true to use an enhanced model for speech recognition.
      * If `use_enhanced` is set to true and the `model` field is not set, then
@@ -5707,7 +5077,6 @@ public Builder setModelBytes(com.google.protobuf.ByteString value) {
      * 
* * bool use_enhanced = 14; - * * @return The useEnhanced. */ @java.lang.Override @@ -5715,8 +5084,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
@@ -5728,19 +5095,16 @@ public boolean getUseEnhanced() {
      * 
* * bool use_enhanced = 14; - * * @param value The useEnhanced to set. * @return This builder for chaining. */ public Builder setUseEnhanced(boolean value) { - + useEnhanced_ = value; onChanged(); return this; } /** - * - * *
      * Set to true to use an enhanced model for speech recognition.
      * If `use_enhanced` is set to true and the `model` field is not set, then
@@ -5752,18 +5116,17 @@ public Builder setUseEnhanced(boolean value) {
      * 
* * bool use_enhanced = 14; - * * @return This builder for chaining. */ public Builder clearUseEnhanced() { - + useEnhanced_ = false; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -5773,12 +5136,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(); } @@ -5787,16 +5150,16 @@ public static com.google.cloud.speech.v1p1beta1.RecognitionConfig getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RecognitionConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new RecognitionConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RecognitionConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RecognitionConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -5811,4 +5174,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.RecognitionConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionConfigOrBuilder.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionConfigOrBuilder.java similarity index 93% rename from proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionConfigOrBuilder.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionConfigOrBuilder.java index 2f29f3761..0e1c409d2 100644 --- a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionConfigOrBuilder.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionConfigOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech.proto package com.google.cloud.speech.v1p1beta1; -public interface RecognitionConfigOrBuilder - extends +public interface RecognitionConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1p1beta1.RecognitionConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Encoding of audio data sent in all `RecognitionAudio` messages.
    * This field is optional for `FLAC` and `WAV` audio files and required
@@ -33,13 +15,10 @@ public interface RecognitionConfigOrBuilder
    * 
* * .google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding encoding = 1; - * * @return The enum numeric value on the wire for encoding. */ int getEncodingValue(); /** - * - * *
    * Encoding of audio data sent in all `RecognitionAudio` messages.
    * This field is optional for `FLAC` and `WAV` audio files and required
@@ -47,14 +26,11 @@ public interface RecognitionConfigOrBuilder
    * 
* * .google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding encoding = 1; - * * @return The encoding. */ com.google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding getEncoding(); /** - * - * *
    * Sample rate in Hertz of the audio data sent in all
    * `RecognitionAudio` messages. Valid values are: 8000-48000.
@@ -66,14 +42,11 @@ public interface RecognitionConfigOrBuilder
    * 
* * int32 sample_rate_hertz = 2; - * * @return The sampleRateHertz. */ int getSampleRateHertz(); /** - * - * *
    * The number of channels in the input audio data.
    * ONLY set this for MULTI-CHANNEL recognition.
@@ -87,14 +60,11 @@ public interface RecognitionConfigOrBuilder
    * 
* * int32 audio_channel_count = 7; - * * @return The audioChannelCount. */ int getAudioChannelCount(); /** - * - * *
    * This needs to be set to `true` explicitly and `audio_channel_count` > 1
    * to get each channel recognized separately. The recognition result will
@@ -105,14 +75,11 @@ public interface RecognitionConfigOrBuilder
    * 
* * bool enable_separate_recognition_per_channel = 12; - * * @return The enableSeparateRecognitionPerChannel. */ boolean getEnableSeparateRecognitionPerChannel(); /** - * - * *
    * Required. The language of the supplied audio as a
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.
@@ -123,13 +90,10 @@ public interface RecognitionConfigOrBuilder
    * 
* * string language_code = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The languageCode. */ java.lang.String getLanguageCode(); /** - * - * *
    * Required. The language of the supplied audio as a
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.
@@ -140,14 +104,12 @@ public interface RecognitionConfigOrBuilder
    * 
* * string language_code = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for languageCode. */ - com.google.protobuf.ByteString getLanguageCodeBytes(); + com.google.protobuf.ByteString + getLanguageCodeBytes(); /** - * - * *
    * A list of up to 3 additional
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags,
@@ -164,13 +126,11 @@ public interface RecognitionConfigOrBuilder
    * 
* * repeated string alternative_language_codes = 18; - * * @return A list containing the alternativeLanguageCodes. */ - java.util.List getAlternativeLanguageCodesList(); + java.util.List + getAlternativeLanguageCodesList(); /** - * - * *
    * A list of up to 3 additional
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags,
@@ -187,13 +147,10 @@ public interface RecognitionConfigOrBuilder
    * 
* * repeated string alternative_language_codes = 18; - * * @return The count of alternativeLanguageCodes. */ int getAlternativeLanguageCodesCount(); /** - * - * *
    * A list of up to 3 additional
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags,
@@ -210,14 +167,11 @@ public interface RecognitionConfigOrBuilder
    * 
* * repeated string alternative_language_codes = 18; - * * @param index The index of the element to return. * @return The alternativeLanguageCodes at the given index. */ java.lang.String getAlternativeLanguageCodes(int index); /** - * - * *
    * A list of up to 3 additional
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags,
@@ -234,15 +188,13 @@ public interface RecognitionConfigOrBuilder
    * 
* * repeated string alternative_language_codes = 18; - * * @param index The index of the value to return. * @return The bytes of the alternativeLanguageCodes at the given index. */ - com.google.protobuf.ByteString getAlternativeLanguageCodesBytes(int index); + com.google.protobuf.ByteString + getAlternativeLanguageCodesBytes(int index); /** - * - * *
    * Maximum number of recognition hypotheses to be returned.
    * Specifically, the maximum number of `SpeechRecognitionAlternative` messages
@@ -253,14 +205,11 @@ public interface RecognitionConfigOrBuilder
    * 
* * int32 max_alternatives = 4; - * * @return The maxAlternatives. */ int getMaxAlternatives(); /** - * - * *
    * If set to `true`, the server will attempt to filter out
    * profanities, replacing all but the initial character in each filtered word
@@ -269,14 +218,11 @@ public interface RecognitionConfigOrBuilder
    * 
* * bool profanity_filter = 5; - * * @return The profanityFilter. */ boolean getProfanityFilter(); /** - * - * *
    * Speech adaptation configuration improves the accuracy of speech
    * recognition. For more information, see the [speech
@@ -286,13 +232,10 @@ public interface RecognitionConfigOrBuilder
    * 
* * .google.cloud.speech.v1p1beta1.SpeechAdaptation adaptation = 20; - * * @return Whether the adaptation field is set. */ boolean hasAdaptation(); /** - * - * *
    * Speech adaptation configuration improves the accuracy of speech
    * recognition. For more information, see the [speech
@@ -302,13 +245,10 @@ public interface RecognitionConfigOrBuilder
    * 
* * .google.cloud.speech.v1p1beta1.SpeechAdaptation adaptation = 20; - * * @return The adaptation. */ com.google.cloud.speech.v1p1beta1.SpeechAdaptation getAdaptation(); /** - * - * *
    * Speech adaptation configuration improves the accuracy of speech
    * recognition. For more information, see the [speech
@@ -322,8 +262,6 @@ public interface RecognitionConfigOrBuilder
   com.google.cloud.speech.v1p1beta1.SpeechAdaptationOrBuilder getAdaptationOrBuilder();
 
   /**
-   *
-   *
    * 
    * Use transcription normalization to automatically replace parts of the
    * transcript with phrases of your choosing. For StreamingRecognize, this
@@ -331,15 +269,11 @@ public interface RecognitionConfigOrBuilder
    * and final transcripts.
    * 
* - * .google.cloud.speech.v1p1beta1.TranscriptNormalization transcript_normalization = 24; - * - * + * .google.cloud.speech.v1p1beta1.TranscriptNormalization transcript_normalization = 24; * @return Whether the transcriptNormalization field is set. */ boolean hasTranscriptNormalization(); /** - * - * *
    * Use transcription normalization to automatically replace parts of the
    * transcript with phrases of your choosing. For StreamingRecognize, this
@@ -347,15 +281,11 @@ public interface RecognitionConfigOrBuilder
    * and final transcripts.
    * 
* - * .google.cloud.speech.v1p1beta1.TranscriptNormalization transcript_normalization = 24; - * - * + * .google.cloud.speech.v1p1beta1.TranscriptNormalization transcript_normalization = 24; * @return The transcriptNormalization. */ com.google.cloud.speech.v1p1beta1.TranscriptNormalization getTranscriptNormalization(); /** - * - * *
    * Use transcription normalization to automatically replace parts of the
    * transcript with phrases of your choosing. For StreamingRecognize, this
@@ -363,15 +293,11 @@ public interface RecognitionConfigOrBuilder
    * and final transcripts.
    * 
* - * .google.cloud.speech.v1p1beta1.TranscriptNormalization transcript_normalization = 24; - * + * .google.cloud.speech.v1p1beta1.TranscriptNormalization transcript_normalization = 24; */ - com.google.cloud.speech.v1p1beta1.TranscriptNormalizationOrBuilder - getTranscriptNormalizationOrBuilder(); + com.google.cloud.speech.v1p1beta1.TranscriptNormalizationOrBuilder getTranscriptNormalizationOrBuilder(); /** - * - * *
    * Array of [SpeechContext][google.cloud.speech.v1p1beta1.SpeechContext].
    * A means to provide context to assist the speech recognition. For more
@@ -382,10 +308,9 @@ public interface RecognitionConfigOrBuilder
    *
    * repeated .google.cloud.speech.v1p1beta1.SpeechContext speech_contexts = 6;
    */
-  java.util.List getSpeechContextsList();
+  java.util.List 
+      getSpeechContextsList();
   /**
-   *
-   *
    * 
    * Array of [SpeechContext][google.cloud.speech.v1p1beta1.SpeechContext].
    * A means to provide context to assist the speech recognition. For more
@@ -398,8 +323,6 @@ public interface RecognitionConfigOrBuilder
    */
   com.google.cloud.speech.v1p1beta1.SpeechContext getSpeechContexts(int index);
   /**
-   *
-   *
    * 
    * Array of [SpeechContext][google.cloud.speech.v1p1beta1.SpeechContext].
    * A means to provide context to assist the speech recognition. For more
@@ -412,8 +335,6 @@ public interface RecognitionConfigOrBuilder
    */
   int getSpeechContextsCount();
   /**
-   *
-   *
    * 
    * Array of [SpeechContext][google.cloud.speech.v1p1beta1.SpeechContext].
    * A means to provide context to assist the speech recognition. For more
@@ -424,11 +345,9 @@ public interface RecognitionConfigOrBuilder
    *
    * repeated .google.cloud.speech.v1p1beta1.SpeechContext speech_contexts = 6;
    */
-  java.util.List
+  java.util.List 
       getSpeechContextsOrBuilderList();
   /**
-   *
-   *
    * 
    * Array of [SpeechContext][google.cloud.speech.v1p1beta1.SpeechContext].
    * A means to provide context to assist the speech recognition. For more
@@ -439,11 +358,10 @@ public interface RecognitionConfigOrBuilder
    *
    * repeated .google.cloud.speech.v1p1beta1.SpeechContext speech_contexts = 6;
    */
-  com.google.cloud.speech.v1p1beta1.SpeechContextOrBuilder getSpeechContextsOrBuilder(int index);
+  com.google.cloud.speech.v1p1beta1.SpeechContextOrBuilder getSpeechContextsOrBuilder(
+      int index);
 
   /**
-   *
-   *
    * 
    * If `true`, the top result includes a list of words and
    * the start and end time offsets (timestamps) for those words. If
@@ -452,14 +370,11 @@ public interface RecognitionConfigOrBuilder
    * 
* * bool enable_word_time_offsets = 8; - * * @return The enableWordTimeOffsets. */ boolean getEnableWordTimeOffsets(); /** - * - * *
    * If `true`, the top result includes a list of words and the
    * confidence for those words. If `false`, no word-level confidence
@@ -467,14 +382,11 @@ public interface RecognitionConfigOrBuilder
    * 
* * bool enable_word_confidence = 15; - * * @return The enableWordConfidence. */ boolean getEnableWordConfidence(); /** - * - * *
    * If 'true', adds punctuation to recognition result hypotheses.
    * This feature is only available in select languages. Setting this for
@@ -483,14 +395,11 @@ public interface RecognitionConfigOrBuilder
    * 
* * bool enable_automatic_punctuation = 11; - * * @return The enableAutomaticPunctuation. */ boolean getEnableAutomaticPunctuation(); /** - * - * *
    * The spoken punctuation behavior for the call
    * If not set, uses default behavior based on model of choice
@@ -502,13 +411,10 @@ public interface RecognitionConfigOrBuilder
    * 
* * .google.protobuf.BoolValue enable_spoken_punctuation = 22; - * * @return Whether the enableSpokenPunctuation field is set. */ boolean hasEnableSpokenPunctuation(); /** - * - * *
    * The spoken punctuation behavior for the call
    * If not set, uses default behavior based on model of choice
@@ -520,13 +426,10 @@ public interface RecognitionConfigOrBuilder
    * 
* * .google.protobuf.BoolValue enable_spoken_punctuation = 22; - * * @return The enableSpokenPunctuation. */ com.google.protobuf.BoolValue getEnableSpokenPunctuation(); /** - * - * *
    * The spoken punctuation behavior for the call
    * If not set, uses default behavior based on model of choice
@@ -542,8 +445,6 @@ public interface RecognitionConfigOrBuilder
   com.google.protobuf.BoolValueOrBuilder getEnableSpokenPunctuationOrBuilder();
 
   /**
-   *
-   *
    * 
    * The spoken emoji behavior for the call
    * If not set, uses default behavior based on model of choice
@@ -553,13 +454,10 @@ public interface RecognitionConfigOrBuilder
    * 
* * .google.protobuf.BoolValue enable_spoken_emojis = 23; - * * @return Whether the enableSpokenEmojis field is set. */ boolean hasEnableSpokenEmojis(); /** - * - * *
    * The spoken emoji behavior for the call
    * If not set, uses default behavior based on model of choice
@@ -569,13 +467,10 @@ public interface RecognitionConfigOrBuilder
    * 
* * .google.protobuf.BoolValue enable_spoken_emojis = 23; - * * @return The enableSpokenEmojis. */ com.google.protobuf.BoolValue getEnableSpokenEmojis(); /** - * - * *
    * The spoken emoji behavior for the call
    * If not set, uses default behavior based on model of choice
@@ -589,8 +484,6 @@ public interface RecognitionConfigOrBuilder
   com.google.protobuf.BoolValueOrBuilder getEnableSpokenEmojisOrBuilder();
 
   /**
-   *
-   *
    * 
    * If 'true', enables speaker detection for each recognized word in
    * the top alternative of the recognition result using a speaker_tag provided
@@ -599,15 +492,11 @@ public interface RecognitionConfigOrBuilder
    * 
* * bool enable_speaker_diarization = 16 [deprecated = true]; - * * @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.
@@ -615,15 +504,11 @@ public interface RecognitionConfigOrBuilder
    * 
* * int32 diarization_speaker_count = 17 [deprecated = true]; - * * @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.
@@ -636,13 +521,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.
@@ -655,13 +537,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.
@@ -675,36 +554,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.
    * 
@@ -714,8 +584,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
@@ -752,13 +620,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
@@ -795,14 +660,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
@@ -814,7 +677,6 @@ public interface RecognitionConfigOrBuilder
    * 
* * bool use_enhanced = 14; - * * @return The useEnhanced. */ boolean getUseEnhanced(); diff --git a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionMetadata.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionMetadata.java similarity index 69% rename from proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionMetadata.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionMetadata.java index d2d18080d..efbe1ec55 100644 --- a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionMetadata.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionMetadata.java @@ -1,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; /** - * - * *
  * Description of audio data to be recognized.
  * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.RecognitionMetadata} */ -public final class RecognitionMetadata extends com.google.protobuf.GeneratedMessageV3 - implements +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; @@ -49,15 +31,16 @@ private RecognitionMetadata() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new RecognitionMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private RecognitionMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -76,102 +59,91 @@ private RecognitionMetadata( case 0: done = true; break; - case 8: - { - int rawValue = input.readEnum(); + case 8: { + int rawValue = input.readEnum(); - interactionType_ = rawValue; - break; - } - case 24: - { - industryNaicsCodeOfAudio_ = input.readUInt32(); - break; - } - case 32: - { - int rawValue = input.readEnum(); + interactionType_ = rawValue; + break; + } + case 24: { - microphoneDistance_ = rawValue; - break; - } - case 40: - { - int rawValue = input.readEnum(); + industryNaicsCodeOfAudio_ = input.readUInt32(); + break; + } + case 32: { + int rawValue = input.readEnum(); - originalMediaType_ = rawValue; - break; - } - case 48: - { - int rawValue = input.readEnum(); + microphoneDistance_ = rawValue; + break; + } + case 40: { + int rawValue = input.readEnum(); - recordingDeviceType_ = rawValue; - break; - } - case 58: - { - java.lang.String s = input.readStringRequireUtf8(); + originalMediaType_ = rawValue; + break; + } + case 48: { + int rawValue = input.readEnum(); - recordingDeviceName_ = s; - break; - } - case 66: - { - java.lang.String s = input.readStringRequireUtf8(); + recordingDeviceType_ = rawValue; + break; + } + case 58: { + java.lang.String s = input.readStringRequireUtf8(); - originalMimeType_ = s; - break; - } - case 72: - { - obfuscatedId_ = input.readInt64(); - break; - } - case 82: - { - java.lang.String s = input.readStringRequireUtf8(); + recordingDeviceName_ = s; + break; + } + case 66: { + java.lang.String s = input.readStringRequireUtf8(); - audioTopic_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + originalMimeType_ = s; + break; + } + case 72: { + + obfuscatedId_ = input.readInt64(); + break; + } + case 82: { + java.lang.String s = input.readStringRequireUtf8(); + + audioTopic_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechProto - .internal_static_google_cloud_speech_v1p1beta1_RecognitionMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_RecognitionMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechProto - .internal_static_google_cloud_speech_v1p1beta1_RecognitionMetadata_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_RecognitionMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.RecognitionMetadata.class, - com.google.cloud.speech.v1p1beta1.RecognitionMetadata.Builder.class); + com.google.cloud.speech.v1p1beta1.RecognitionMetadata.class, com.google.cloud.speech.v1p1beta1.RecognitionMetadata.Builder.class); } /** - * - * *
    * Use case categories that the audio recognition request can be described
    * by.
@@ -179,10 +151,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.
@@ -192,8 +163,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
@@ -205,8 +174,6 @@ public enum InteractionType implements com.google.protobuf.ProtocolMessageEnum {
      */
     DISCUSSION(1),
     /**
-     *
-     *
      * 
      * One or more persons lecturing or presenting to others, mostly
      * uninterrupted.
@@ -216,8 +183,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.
@@ -227,8 +192,6 @@ public enum InteractionType implements com.google.protobuf.ProtocolMessageEnum {
      */
     PHONE_CALL(3),
     /**
-     *
-     *
      * 
      * A recorded message intended for another person to listen to.
      * 
@@ -237,8 +200,6 @@ public enum InteractionType implements com.google.protobuf.ProtocolMessageEnum { */ VOICEMAIL(4), /** - * - * *
      * Professionally produced audio (eg. TV Show, Podcast).
      * 
@@ -247,8 +208,6 @@ public enum InteractionType implements com.google.protobuf.ProtocolMessageEnum { */ PROFESSIONALLY_PRODUCED(5), /** - * - * *
      * Transcribe spoken questions and queries into text.
      * 
@@ -257,8 +216,6 @@ public enum InteractionType implements com.google.protobuf.ProtocolMessageEnum { */ VOICE_SEARCH(6), /** - * - * *
      * Transcribe voice commands, such as for controlling a device.
      * 
@@ -267,8 +224,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.
@@ -281,8 +236,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.
@@ -292,8 +245,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
@@ -305,8 +256,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.
@@ -316,8 +265,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.
@@ -327,8 +274,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.
      * 
@@ -337,8 +282,6 @@ public enum InteractionType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int VOICEMAIL_VALUE = 4; /** - * - * *
      * Professionally produced audio (eg. TV Show, Podcast).
      * 
@@ -347,8 +290,6 @@ public enum InteractionType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int PROFESSIONALLY_PRODUCED_VALUE = 5; /** - * - * *
      * Transcribe spoken questions and queries into text.
      * 
@@ -357,8 +298,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.
      * 
@@ -367,8 +306,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.
@@ -378,6 +315,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(
@@ -402,57 +340,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();
@@ -460,7 +387,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;
@@ -478,18 +406,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.
      * 
@@ -498,8 +423,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
@@ -510,8 +433,6 @@ public enum MicrophoneDistance implements com.google.protobuf.ProtocolMessageEnu
      */
     NEARFIELD(1),
     /**
-     *
-     *
      * 
      * The speaker if within 3 meters of the microphone.
      * 
@@ -520,8 +441,6 @@ public enum MicrophoneDistance implements com.google.protobuf.ProtocolMessageEnu */ MIDFIELD(2), /** - * - * *
      * The speaker is more than 3 meters away from the microphone.
      * 
@@ -533,8 +452,6 @@ public enum MicrophoneDistance implements com.google.protobuf.ProtocolMessageEnu ; /** - * - * *
      * Audio type is not known.
      * 
@@ -543,8 +460,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
@@ -555,8 +470,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.
      * 
@@ -565,8 +478,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.
      * 
@@ -575,6 +486,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( @@ -599,16 +511,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; } } @@ -616,31 +523,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(); @@ -648,7 +553,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; @@ -666,18 +572,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.
      * 
@@ -686,8 +589,6 @@ public enum OriginalMediaType implements com.google.protobuf.ProtocolMessageEnum */ ORIGINAL_MEDIA_TYPE_UNSPECIFIED(0), /** - * - * *
      * The speech data is an audio recording.
      * 
@@ -696,8 +597,6 @@ public enum OriginalMediaType implements com.google.protobuf.ProtocolMessageEnum */ AUDIO(1), /** - * - * *
      * The speech data originally recorded on a video.
      * 
@@ -709,8 +608,6 @@ public enum OriginalMediaType implements com.google.protobuf.ProtocolMessageEnum ; /** - * - * *
      * Unknown original media type.
      * 
@@ -719,8 +616,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.
      * 
@@ -729,8 +624,6 @@ public enum OriginalMediaType implements com.google.protobuf.ProtocolMessageEnum */ public static final int AUDIO_VALUE = 1; /** - * - * *
      * The speech data originally recorded on a video.
      * 
@@ -739,6 +632,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( @@ -763,14 +657,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; } } @@ -778,31 +668,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(); @@ -810,7 +698,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; @@ -828,18 +717,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.
      * 
@@ -848,8 +734,6 @@ public enum RecordingDeviceType implements com.google.protobuf.ProtocolMessageEn */ RECORDING_DEVICE_TYPE_UNSPECIFIED(0), /** - * - * *
      * Speech was recorded on a smartphone.
      * 
@@ -858,8 +742,6 @@ public enum RecordingDeviceType implements com.google.protobuf.ProtocolMessageEn */ SMARTPHONE(1), /** - * - * *
      * Speech was recorded using a personal computer or tablet.
      * 
@@ -868,8 +750,6 @@ public enum RecordingDeviceType implements com.google.protobuf.ProtocolMessageEn */ PC(2), /** - * - * *
      * Speech was recorded over a phone line.
      * 
@@ -878,8 +758,6 @@ public enum RecordingDeviceType implements com.google.protobuf.ProtocolMessageEn */ PHONE_LINE(3), /** - * - * *
      * Speech was recorded in a vehicle.
      * 
@@ -888,8 +766,6 @@ public enum RecordingDeviceType implements com.google.protobuf.ProtocolMessageEn */ VEHICLE(4), /** - * - * *
      * Speech was recorded outdoors.
      * 
@@ -898,8 +774,6 @@ public enum RecordingDeviceType implements com.google.protobuf.ProtocolMessageEn */ OTHER_OUTDOOR_DEVICE(5), /** - * - * *
      * Speech was recorded indoors.
      * 
@@ -911,8 +785,6 @@ public enum RecordingDeviceType implements com.google.protobuf.ProtocolMessageEn ; /** - * - * *
      * The recording device is unknown.
      * 
@@ -921,8 +793,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.
      * 
@@ -931,8 +801,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.
      * 
@@ -941,8 +809,6 @@ public enum RecordingDeviceType implements com.google.protobuf.ProtocolMessageEn */ public static final int PC_VALUE = 2; /** - * - * *
      * Speech was recorded over a phone line.
      * 
@@ -951,8 +817,6 @@ public enum RecordingDeviceType implements com.google.protobuf.ProtocolMessageEn */ public static final int PHONE_LINE_VALUE = 3; /** - * - * *
      * Speech was recorded in a vehicle.
      * 
@@ -961,8 +825,6 @@ public enum RecordingDeviceType implements com.google.protobuf.ProtocolMessageEn */ public static final int VEHICLE_VALUE = 4; /** - * - * *
      * Speech was recorded outdoors.
      * 
@@ -971,8 +833,6 @@ public enum RecordingDeviceType implements com.google.protobuf.ProtocolMessageEn */ public static final int OTHER_OUTDOOR_DEVICE_VALUE = 5; /** - * - * *
      * Speech was recorded indoors.
      * 
@@ -981,6 +841,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( @@ -1005,22 +866,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; } } @@ -1028,31 +881,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(); @@ -1060,7 +911,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; @@ -1080,50 +932,33 @@ private RecordingDeviceType(int value) { public static final int INTERACTION_TYPE_FIELD_NUMBER = 1; private int interactionType_; /** - * - * *
    * The use case most closely describing the audio content to be recognized.
    * 
* - * .google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType interaction_type = 1; - * - * + * .google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType interaction_type = 1; * @return The enum numeric value on the wire for interactionType. */ - @java.lang.Override - public int getInteractionTypeValue() { + @java.lang.Override public int getInteractionTypeValue() { return interactionType_; } /** - * - * *
    * The use case most closely describing the audio content to be recognized.
    * 
* - * .google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType interaction_type = 1; - * - * + * .google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType interaction_type = 1; * @return The interactionType. */ - @java.lang.Override - public com.google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType - getInteractionType() { + @java.lang.Override public com.google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType getInteractionType() { @SuppressWarnings("deprecation") - com.google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType result = - com.google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType.valueOf( - interactionType_); - return result == null - ? com.google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType.UNRECOGNIZED - : result; + com.google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType result = com.google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType.valueOf(interactionType_); + return result == null ? com.google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType.UNRECOGNIZED : result; } public static final int INDUSTRY_NAICS_CODE_OF_AUDIO_FIELD_NUMBER = 3; private int industryNaicsCodeOfAudio_; /** - * - * *
    * The industry vertical to which this speech recognition request most
    * closely applies. This is most indicative of the topics contained
@@ -1132,7 +967,6 @@ public int getInteractionTypeValue() {
    * 
* * uint32 industry_naics_code_of_audio = 3; - * * @return The industryNaicsCodeOfAudio. */ @java.lang.Override @@ -1143,140 +977,87 @@ public int getIndustryNaicsCodeOfAudio() { public static final int MICROPHONE_DISTANCE_FIELD_NUMBER = 4; private int microphoneDistance_; /** - * - * *
    * The audio type that most closely describes the audio being recognized.
    * 
* - * - * .google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance microphone_distance = 4; - * - * + * .google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance microphone_distance = 4; * @return The enum numeric value on the wire for microphoneDistance. */ - @java.lang.Override - public int getMicrophoneDistanceValue() { + @java.lang.Override public int getMicrophoneDistanceValue() { return microphoneDistance_; } /** - * - * *
    * The audio type that most closely describes the audio being recognized.
    * 
* - * - * .google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance microphone_distance = 4; - * - * + * .google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance microphone_distance = 4; * @return The microphoneDistance. */ - @java.lang.Override - public com.google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance - getMicrophoneDistance() { + @java.lang.Override public com.google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance getMicrophoneDistance() { @SuppressWarnings("deprecation") - com.google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance result = - com.google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance.valueOf( - microphoneDistance_); - return result == null - ? com.google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance.UNRECOGNIZED - : result; + com.google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance result = com.google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance.valueOf(microphoneDistance_); + return result == null ? com.google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance.UNRECOGNIZED : result; } public static final int ORIGINAL_MEDIA_TYPE_FIELD_NUMBER = 5; private int originalMediaType_; /** - * - * *
    * The original media the speech was recorded on.
    * 
* - * - * .google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType original_media_type = 5; - * - * + * .google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType original_media_type = 5; * @return The enum numeric value on the wire for originalMediaType. */ - @java.lang.Override - public int getOriginalMediaTypeValue() { + @java.lang.Override public int getOriginalMediaTypeValue() { return originalMediaType_; } /** - * - * *
    * The original media the speech was recorded on.
    * 
* - * - * .google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType original_media_type = 5; - * - * + * .google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType original_media_type = 5; * @return The originalMediaType. */ - @java.lang.Override - public com.google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType - getOriginalMediaType() { + @java.lang.Override public com.google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType getOriginalMediaType() { @SuppressWarnings("deprecation") - com.google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType result = - com.google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType.valueOf( - originalMediaType_); - return result == null - ? com.google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType.UNRECOGNIZED - : result; + com.google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType result = com.google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType.valueOf(originalMediaType_); + return result == null ? com.google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType.UNRECOGNIZED : result; } public static final int RECORDING_DEVICE_TYPE_FIELD_NUMBER = 6; private int recordingDeviceType_; /** - * - * *
    * The type of device the speech was recorded with.
    * 
* - * - * .google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType recording_device_type = 6; - * - * + * .google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType recording_device_type = 6; * @return The enum numeric value on the wire for recordingDeviceType. */ - @java.lang.Override - public int getRecordingDeviceTypeValue() { + @java.lang.Override public int getRecordingDeviceTypeValue() { return recordingDeviceType_; } /** - * - * *
    * The type of device the speech was recorded with.
    * 
* - * - * .google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType recording_device_type = 6; - * - * + * .google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType recording_device_type = 6; * @return The recordingDeviceType. */ - @java.lang.Override - public com.google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType - getRecordingDeviceType() { + @java.lang.Override public com.google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType getRecordingDeviceType() { @SuppressWarnings("deprecation") - com.google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType result = - com.google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType.valueOf( - recordingDeviceType_); - return result == null - ? com.google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType.UNRECOGNIZED - : result; + com.google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType result = com.google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType.valueOf(recordingDeviceType_); + return result == null ? com.google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType.UNRECOGNIZED : result; } public static final int RECORDING_DEVICE_NAME_FIELD_NUMBER = 7; private volatile java.lang.Object recordingDeviceName_; /** - * - * *
    * The device used to make the recording.  Examples 'Nexus 5X' or
    * 'Polycom SoundStation IP 6000' or 'POTS' or 'VoIP' or
@@ -1284,7 +1065,6 @@ public int getRecordingDeviceTypeValue() {
    * 
* * string recording_device_name = 7; - * * @return The recordingDeviceName. */ @java.lang.Override @@ -1293,15 +1073,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
@@ -1309,15 +1088,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 { @@ -1328,8 +1108,6 @@ public com.google.protobuf.ByteString getRecordingDeviceNameBytes() { public static final int ORIGINAL_MIME_TYPE_FIELD_NUMBER = 8; private volatile java.lang.Object originalMimeType_; /** - * - * *
    * Mime type of the original audio file.  For example `audio/m4a`,
    * `audio/x-alaw-basic`, `audio/mp3`, `audio/3gpp`.
@@ -1338,7 +1116,6 @@ public com.google.protobuf.ByteString getRecordingDeviceNameBytes() {
    * 
* * string original_mime_type = 8; - * * @return The originalMimeType. */ @java.lang.Override @@ -1347,15 +1124,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`.
@@ -1364,15 +1140,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 { @@ -1383,35 +1160,28 @@ public com.google.protobuf.ByteString getOriginalMimeTypeBytes() { public static final int OBFUSCATED_ID_FIELD_NUMBER = 9; private long obfuscatedId_; /** - * - * *
    * Obfuscated (privacy-protected) ID of the user, to identify number of
    * unique users using the service.
    * 
* * int64 obfuscated_id = 9 [deprecated = true]; - * * @return The obfuscatedId. */ @java.lang.Override - @java.lang.Deprecated - public long getObfuscatedId() { + @java.lang.Deprecated public long getObfuscatedId() { return obfuscatedId_; } public static final int AUDIO_TOPIC_FIELD_NUMBER = 10; private volatile java.lang.Object audioTopic_; /** - * - * *
    * Description of the content. Eg. "Recordings of federal supreme court
    * hearings from 2012".
    * 
* * string audio_topic = 10; - * * @return The audioTopic. */ @java.lang.Override @@ -1420,30 +1190,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 { @@ -1452,7 +1222,6 @@ public com.google.protobuf.ByteString getAudioTopicBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1464,32 +1233,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_)) { @@ -1513,32 +1271,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_); @@ -1547,7 +1298,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_); @@ -1560,23 +1312,27 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1p1beta1.RecognitionMetadata)) { return super.equals(obj); } - com.google.cloud.speech.v1p1beta1.RecognitionMetadata other = - (com.google.cloud.speech.v1p1beta1.RecognitionMetadata) obj; + com.google.cloud.speech.v1p1beta1.RecognitionMetadata other = (com.google.cloud.speech.v1p1beta1.RecognitionMetadata) obj; if (interactionType_ != other.interactionType_) return false; - if (getIndustryNaicsCodeOfAudio() != other.getIndustryNaicsCodeOfAudio()) return false; + if (getIndustryNaicsCodeOfAudio() + != other.getIndustryNaicsCodeOfAudio()) return false; if (microphoneDistance_ != other.microphoneDistance_) return false; if (originalMediaType_ != other.originalMediaType_) return false; if (recordingDeviceType_ != other.recordingDeviceType_) return false; - if (!getRecordingDeviceName().equals(other.getRecordingDeviceName())) return false; - if (!getOriginalMimeType().equals(other.getOriginalMimeType())) return false; - if (getObfuscatedId() != other.getObfuscatedId()) return false; - if (!getAudioTopic().equals(other.getAudioTopic())) return false; + if (!getRecordingDeviceName() + .equals(other.getRecordingDeviceName())) return false; + if (!getOriginalMimeType() + .equals(other.getOriginalMimeType())) return false; + if (getObfuscatedId() + != other.getObfuscatedId()) return false; + if (!getAudioTopic() + .equals(other.getAudioTopic())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1603,7 +1359,8 @@ public int hashCode() { hash = (37 * hash) + ORIGINAL_MIME_TYPE_FIELD_NUMBER; hash = (53 * hash) + getOriginalMimeType().hashCode(); hash = (37 * hash) + OBFUSCATED_ID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getObfuscatedId()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getObfuscatedId()); hash = (37 * hash) + AUDIO_TOPIC_FIELD_NUMBER; hash = (53 * hash) + getAudioTopic().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); @@ -1612,127 +1369,117 @@ public int hashCode() { } public static com.google.cloud.speech.v1p1beta1.RecognitionMetadata parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1p1beta1.RecognitionMetadata parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.RecognitionMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1p1beta1.RecognitionMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.RecognitionMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1p1beta1.RecognitionMetadata parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.speech.v1p1beta1.RecognitionMetadata parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.speech.v1p1beta1.RecognitionMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1p1beta1.RecognitionMetadata parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.speech.v1p1beta1.RecognitionMetadata parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.speech.v1p1beta1.RecognitionMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1p1beta1.RecognitionMetadata parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.RecognitionMetadata parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1p1beta1.RecognitionMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.speech.v1p1beta1.RecognitionMetadata prototype) { + public static Builder newBuilder(com.google.cloud.speech.v1p1beta1.RecognitionMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Description of audio data to be recognized.
    * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.RecognitionMetadata} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1p1beta1.RecognitionMetadata) com.google.cloud.speech.v1p1beta1.RecognitionMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechProto - .internal_static_google_cloud_speech_v1p1beta1_RecognitionMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_RecognitionMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechProto - .internal_static_google_cloud_speech_v1p1beta1_RecognitionMetadata_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_RecognitionMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.RecognitionMetadata.class, - com.google.cloud.speech.v1p1beta1.RecognitionMetadata.Builder.class); + com.google.cloud.speech.v1p1beta1.RecognitionMetadata.class, com.google.cloud.speech.v1p1beta1.RecognitionMetadata.Builder.class); } // Construct using com.google.cloud.speech.v1p1beta1.RecognitionMetadata.newBuilder() @@ -1740,15 +1487,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -1774,9 +1522,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 @@ -1795,8 +1543,7 @@ public com.google.cloud.speech.v1p1beta1.RecognitionMetadata build() { @java.lang.Override public com.google.cloud.speech.v1p1beta1.RecognitionMetadata buildPartial() { - com.google.cloud.speech.v1p1beta1.RecognitionMetadata result = - new com.google.cloud.speech.v1p1beta1.RecognitionMetadata(this); + com.google.cloud.speech.v1p1beta1.RecognitionMetadata result = new com.google.cloud.speech.v1p1beta1.RecognitionMetadata(this); result.interactionType_ = interactionType_; result.industryNaicsCodeOfAudio_ = industryNaicsCodeOfAudio_; result.microphoneDistance_ = microphoneDistance_; @@ -1814,39 +1561,38 @@ public com.google.cloud.speech.v1p1beta1.RecognitionMetadata buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.speech.v1p1beta1.RecognitionMetadata) { - return mergeFrom((com.google.cloud.speech.v1p1beta1.RecognitionMetadata) other); + return mergeFrom((com.google.cloud.speech.v1p1beta1.RecognitionMetadata)other); } else { super.mergeFrom(other); return this; @@ -1854,8 +1600,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()); } @@ -1905,8 +1650,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.speech.v1p1beta1.RecognitionMetadata) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.speech.v1p1beta1.RecognitionMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1918,114 +1662,80 @@ public Builder mergeFrom( private int interactionType_ = 0; /** - * - * *
      * The use case most closely describing the audio content to be recognized.
      * 
* - * - * .google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType interaction_type = 1; - * - * + * .google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType interaction_type = 1; * @return The enum numeric value on the wire for interactionType. */ - @java.lang.Override - public int getInteractionTypeValue() { + @java.lang.Override public int getInteractionTypeValue() { return interactionType_; } /** - * - * *
      * The use case most closely describing the audio content to be recognized.
      * 
* - * - * .google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType interaction_type = 1; - * - * + * .google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType interaction_type = 1; * @param value The enum numeric value on the wire for interactionType to set. * @return This builder for chaining. */ public Builder setInteractionTypeValue(int value) { - + interactionType_ = value; onChanged(); return this; } /** - * - * *
      * The use case most closely describing the audio content to be recognized.
      * 
* - * - * .google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType interaction_type = 1; - * - * + * .google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType interaction_type = 1; * @return The interactionType. */ @java.lang.Override - public com.google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType - getInteractionType() { + public com.google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType getInteractionType() { @SuppressWarnings("deprecation") - com.google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType result = - com.google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType.valueOf( - interactionType_); - return result == null - ? com.google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType.UNRECOGNIZED - : result; + com.google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType result = com.google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType.valueOf(interactionType_); + return result == null ? com.google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType.UNRECOGNIZED : result; } /** - * - * *
      * The use case most closely describing the audio content to be recognized.
      * 
* - * - * .google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType interaction_type = 1; - * - * + * .google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType interaction_type = 1; * @param value The interactionType to set. * @return This builder for chaining. */ - public Builder setInteractionType( - com.google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType value) { + public Builder setInteractionType(com.google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType value) { if (value == null) { throw new NullPointerException(); } - + interactionType_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * The use case most closely describing the audio content to be recognized.
      * 
* - * - * .google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType interaction_type = 1; - * - * + * .google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType interaction_type = 1; * @return This builder for chaining. */ public Builder clearInteractionType() { - + interactionType_ = 0; onChanged(); return this; } - private int industryNaicsCodeOfAudio_; + private int industryNaicsCodeOfAudio_ ; /** - * - * *
      * The industry vertical to which this speech recognition request most
      * closely applies. This is most indicative of the topics contained
@@ -2034,7 +1744,6 @@ public Builder clearInteractionType() {
      * 
* * uint32 industry_naics_code_of_audio = 3; - * * @return The industryNaicsCodeOfAudio. */ @java.lang.Override @@ -2042,8 +1751,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
@@ -2052,19 +1759,16 @@ public int getIndustryNaicsCodeOfAudio() {
      * 
* * uint32 industry_naics_code_of_audio = 3; - * * @param value The industryNaicsCodeOfAudio to set. * @return This builder for chaining. */ public Builder setIndustryNaicsCodeOfAudio(int value) { - + industryNaicsCodeOfAudio_ = value; onChanged(); return this; } /** - * - * *
      * The industry vertical to which this speech recognition request most
      * closely applies. This is most indicative of the topics contained
@@ -2073,11 +1777,10 @@ public Builder setIndustryNaicsCodeOfAudio(int value) {
      * 
* * uint32 industry_naics_code_of_audio = 3; - * * @return This builder for chaining. */ public Builder clearIndustryNaicsCodeOfAudio() { - + industryNaicsCodeOfAudio_ = 0; onChanged(); return this; @@ -2085,105 +1788,73 @@ public Builder clearIndustryNaicsCodeOfAudio() { private int microphoneDistance_ = 0; /** - * - * *
      * The audio type that most closely describes the audio being recognized.
      * 
* - * - * .google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance microphone_distance = 4; - * - * + * .google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance microphone_distance = 4; * @return The enum numeric value on the wire for microphoneDistance. */ - @java.lang.Override - public int getMicrophoneDistanceValue() { + @java.lang.Override public int getMicrophoneDistanceValue() { return microphoneDistance_; } /** - * - * *
      * The audio type that most closely describes the audio being recognized.
      * 
* - * - * .google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance microphone_distance = 4; - * - * + * .google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance microphone_distance = 4; * @param value The enum numeric value on the wire for microphoneDistance to set. * @return This builder for chaining. */ public Builder setMicrophoneDistanceValue(int value) { - + microphoneDistance_ = value; onChanged(); return this; } /** - * - * *
      * The audio type that most closely describes the audio being recognized.
      * 
* - * - * .google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance microphone_distance = 4; - * - * + * .google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance microphone_distance = 4; * @return The microphoneDistance. */ @java.lang.Override - public com.google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance - getMicrophoneDistance() { + public com.google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance getMicrophoneDistance() { @SuppressWarnings("deprecation") - com.google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance result = - com.google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance.valueOf( - microphoneDistance_); - return result == null - ? com.google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance.UNRECOGNIZED - : result; + com.google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance result = com.google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance.valueOf(microphoneDistance_); + return result == null ? com.google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance.UNRECOGNIZED : result; } /** - * - * *
      * The audio type that most closely describes the audio being recognized.
      * 
* - * - * .google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance microphone_distance = 4; - * - * + * .google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance microphone_distance = 4; * @param value The microphoneDistance to set. * @return This builder for chaining. */ - public Builder setMicrophoneDistance( - com.google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance value) { + public Builder setMicrophoneDistance(com.google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance value) { if (value == null) { throw new NullPointerException(); } - + microphoneDistance_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * The audio type that most closely describes the audio being recognized.
      * 
* - * - * .google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance microphone_distance = 4; - * - * + * .google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance microphone_distance = 4; * @return This builder for chaining. */ public Builder clearMicrophoneDistance() { - + microphoneDistance_ = 0; onChanged(); return this; @@ -2191,105 +1862,73 @@ public Builder clearMicrophoneDistance() { private int originalMediaType_ = 0; /** - * - * *
      * The original media the speech was recorded on.
      * 
* - * - * .google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType original_media_type = 5; - * - * + * .google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType original_media_type = 5; * @return The enum numeric value on the wire for originalMediaType. */ - @java.lang.Override - public int getOriginalMediaTypeValue() { + @java.lang.Override public int getOriginalMediaTypeValue() { return originalMediaType_; } /** - * - * *
      * The original media the speech was recorded on.
      * 
* - * - * .google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType original_media_type = 5; - * - * + * .google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType original_media_type = 5; * @param value The enum numeric value on the wire for originalMediaType to set. * @return This builder for chaining. */ public Builder setOriginalMediaTypeValue(int value) { - + originalMediaType_ = value; onChanged(); return this; } /** - * - * *
      * The original media the speech was recorded on.
      * 
* - * - * .google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType original_media_type = 5; - * - * + * .google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType original_media_type = 5; * @return The originalMediaType. */ @java.lang.Override - public com.google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType - getOriginalMediaType() { + public com.google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType getOriginalMediaType() { @SuppressWarnings("deprecation") - com.google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType result = - com.google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType.valueOf( - originalMediaType_); - return result == null - ? com.google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType.UNRECOGNIZED - : result; + com.google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType result = com.google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType.valueOf(originalMediaType_); + return result == null ? com.google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType.UNRECOGNIZED : result; } /** - * - * *
      * The original media the speech was recorded on.
      * 
* - * - * .google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType original_media_type = 5; - * - * + * .google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType original_media_type = 5; * @param value The originalMediaType to set. * @return This builder for chaining. */ - public Builder setOriginalMediaType( - com.google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType value) { + public Builder setOriginalMediaType(com.google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType value) { if (value == null) { throw new NullPointerException(); } - + originalMediaType_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * The original media the speech was recorded on.
      * 
* - * - * .google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType original_media_type = 5; - * - * + * .google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType original_media_type = 5; * @return This builder for chaining. */ public Builder clearOriginalMediaType() { - + originalMediaType_ = 0; onChanged(); return this; @@ -2297,105 +1936,73 @@ public Builder clearOriginalMediaType() { private int recordingDeviceType_ = 0; /** - * - * *
      * The type of device the speech was recorded with.
      * 
* - * - * .google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType recording_device_type = 6; - * - * + * .google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType recording_device_type = 6; * @return The enum numeric value on the wire for recordingDeviceType. */ - @java.lang.Override - public int getRecordingDeviceTypeValue() { + @java.lang.Override public int getRecordingDeviceTypeValue() { return recordingDeviceType_; } /** - * - * *
      * The type of device the speech was recorded with.
      * 
* - * - * .google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType recording_device_type = 6; - * - * + * .google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType recording_device_type = 6; * @param value The enum numeric value on the wire for recordingDeviceType to set. * @return This builder for chaining. */ public Builder setRecordingDeviceTypeValue(int value) { - + recordingDeviceType_ = value; onChanged(); return this; } /** - * - * *
      * The type of device the speech was recorded with.
      * 
* - * - * .google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType recording_device_type = 6; - * - * + * .google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType recording_device_type = 6; * @return The recordingDeviceType. */ @java.lang.Override - public com.google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType - getRecordingDeviceType() { + public com.google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType getRecordingDeviceType() { @SuppressWarnings("deprecation") - com.google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType result = - com.google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType.valueOf( - recordingDeviceType_); - return result == null - ? com.google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType.UNRECOGNIZED - : result; + com.google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType result = com.google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType.valueOf(recordingDeviceType_); + return result == null ? com.google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType.UNRECOGNIZED : result; } /** - * - * *
      * The type of device the speech was recorded with.
      * 
* - * - * .google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType recording_device_type = 6; - * - * + * .google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType recording_device_type = 6; * @param value The recordingDeviceType to set. * @return This builder for chaining. */ - public Builder setRecordingDeviceType( - com.google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType value) { + public Builder setRecordingDeviceType(com.google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType value) { if (value == null) { throw new NullPointerException(); } - + recordingDeviceType_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * The type of device the speech was recorded with.
      * 
* - * - * .google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType recording_device_type = 6; - * - * + * .google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType recording_device_type = 6; * @return This builder for chaining. */ public Builder clearRecordingDeviceType() { - + recordingDeviceType_ = 0; onChanged(); return this; @@ -2403,8 +2010,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
@@ -2412,13 +2017,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; @@ -2427,8 +2032,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
@@ -2436,14 +2039,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 { @@ -2451,8 +2055,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
@@ -2460,22 +2062,20 @@ public com.google.protobuf.ByteString getRecordingDeviceNameBytes() {
      * 
* * string recording_device_name = 7; - * * @param value The recordingDeviceName to set. * @return This builder for chaining. */ - public Builder setRecordingDeviceName(java.lang.String value) { + public Builder setRecordingDeviceName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + recordingDeviceName_ = value; onChanged(); return this; } /** - * - * *
      * The device used to make the recording.  Examples 'Nexus 5X' or
      * 'Polycom SoundStation IP 6000' or 'POTS' or 'VoIP' or
@@ -2483,18 +2083,15 @@ public Builder setRecordingDeviceName(java.lang.String value) {
      * 
* * string recording_device_name = 7; - * * @return This builder for chaining. */ public Builder clearRecordingDeviceName() { - + recordingDeviceName_ = getDefaultInstance().getRecordingDeviceName(); onChanged(); return this; } /** - * - * *
      * The device used to make the recording.  Examples 'Nexus 5X' or
      * 'Polycom SoundStation IP 6000' or 'POTS' or 'VoIP' or
@@ -2502,16 +2099,16 @@ public Builder clearRecordingDeviceName() {
      * 
* * string recording_device_name = 7; - * * @param value The bytes for recordingDeviceName to set. * @return This builder for chaining. */ - public Builder setRecordingDeviceNameBytes(com.google.protobuf.ByteString value) { + public Builder setRecordingDeviceNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + recordingDeviceName_ = value; onChanged(); return this; @@ -2519,8 +2116,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`.
@@ -2529,13 +2124,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; @@ -2544,8 +2139,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`.
@@ -2554,14 +2147,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 { @@ -2569,8 +2163,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`.
@@ -2579,22 +2171,20 @@ public com.google.protobuf.ByteString getOriginalMimeTypeBytes() {
      * 
* * string original_mime_type = 8; - * * @param value The originalMimeType to set. * @return This builder for chaining. */ - public Builder setOriginalMimeType(java.lang.String value) { + public Builder setOriginalMimeType( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + originalMimeType_ = value; onChanged(); return this; } /** - * - * *
      * Mime type of the original audio file.  For example `audio/m4a`,
      * `audio/x-alaw-basic`, `audio/mp3`, `audio/3gpp`.
@@ -2603,18 +2193,15 @@ public Builder setOriginalMimeType(java.lang.String value) {
      * 
* * string original_mime_type = 8; - * * @return This builder for chaining. */ public Builder clearOriginalMimeType() { - + originalMimeType_ = getDefaultInstance().getOriginalMimeType(); onChanged(); return this; } /** - * - * *
      * Mime type of the original audio file.  For example `audio/m4a`,
      * `audio/x-alaw-basic`, `audio/mp3`, `audio/3gpp`.
@@ -2623,74 +2210,62 @@ public Builder clearOriginalMimeType() {
      * 
* * string original_mime_type = 8; - * * @param value The bytes for originalMimeType to set. * @return This builder for chaining. */ - public Builder setOriginalMimeTypeBytes(com.google.protobuf.ByteString value) { + public Builder setOriginalMimeTypeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + originalMimeType_ = value; onChanged(); return this; } - private long obfuscatedId_; + private long obfuscatedId_ ; /** - * - * *
      * Obfuscated (privacy-protected) ID of the user, to identify number of
      * unique users using the service.
      * 
* * int64 obfuscated_id = 9 [deprecated = true]; - * * @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]; - * * @param value The obfuscatedId to set. * @return This builder for chaining. */ - @java.lang.Deprecated - public Builder setObfuscatedId(long value) { - + @java.lang.Deprecated public Builder setObfuscatedId(long value) { + obfuscatedId_ = value; onChanged(); return this; } /** - * - * *
      * Obfuscated (privacy-protected) ID of the user, to identify number of
      * unique users using the service.
      * 
* * int64 obfuscated_id = 9 [deprecated = true]; - * * @return This builder for chaining. */ - @java.lang.Deprecated - public Builder clearObfuscatedId() { - + @java.lang.Deprecated public Builder clearObfuscatedId() { + obfuscatedId_ = 0L; onChanged(); return this; @@ -2698,21 +2273,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; @@ -2721,22 +2294,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 { @@ -2744,71 +2316,64 @@ public com.google.protobuf.ByteString getAudioTopicBytes() { } } /** - * - * *
      * Description of the content. Eg. "Recordings of federal supreme court
      * hearings from 2012".
      * 
* * string audio_topic = 10; - * * @param value The audioTopic to set. * @return This builder for chaining. */ - public Builder setAudioTopic(java.lang.String value) { + public Builder setAudioTopic( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + audioTopic_ = value; onChanged(); return this; } /** - * - * *
      * Description of the content. Eg. "Recordings of federal supreme court
      * hearings from 2012".
      * 
* * string audio_topic = 10; - * * @return This builder for chaining. */ public Builder clearAudioTopic() { - + audioTopic_ = getDefaultInstance().getAudioTopic(); onChanged(); return this; } /** - * - * *
      * Description of the content. Eg. "Recordings of federal supreme court
      * hearings from 2012".
      * 
* * string audio_topic = 10; - * * @param value The bytes for audioTopic to set. * @return This builder for chaining. */ - public Builder setAudioTopicBytes(com.google.protobuf.ByteString value) { + public Builder setAudioTopicBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + audioTopic_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2818,12 +2383,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(); } @@ -2832,16 +2397,16 @@ public static com.google.cloud.speech.v1p1beta1.RecognitionMetadata getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RecognitionMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new RecognitionMetadata(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RecognitionMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RecognitionMetadata(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2856,4 +2421,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.RecognitionMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionMetadataOrBuilder.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionMetadataOrBuilder.java similarity index 70% rename from proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionMetadataOrBuilder.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionMetadataOrBuilder.java index 463ce17b9..f108bbf44 100644 --- a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionMetadataOrBuilder.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionMetadataOrBuilder.java @@ -1,58 +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; -public interface RecognitionMetadataOrBuilder - extends +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
@@ -61,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
@@ -164,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
@@ -178,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`.
@@ -194,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`.
@@ -209,50 +141,41 @@ 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]; - * * @return The obfuscatedId. */ - @java.lang.Deprecated - long getObfuscatedId(); + @java.lang.Deprecated long getObfuscatedId(); /** - * - * *
    * Description of the content. Eg. "Recordings of federal supreme court
    * hearings from 2012".
    * 
* * string audio_topic = 10; - * * @return The audioTopic. */ java.lang.String getAudioTopic(); /** - * - * *
    * Description of the content. Eg. "Recordings of federal supreme court
    * hearings from 2012".
    * 
* * string audio_topic = 10; - * * @return The bytes for audioTopic. */ - com.google.protobuf.ByteString getAudioTopicBytes(); + com.google.protobuf.ByteString + getAudioTopicBytes(); } diff --git a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeRequest.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeRequest.java similarity index 61% rename from proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeRequest.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeRequest.java index 24dc5f5a2..d72b823cf 100644 --- a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeRequest.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeRequest.java @@ -1,55 +1,39 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech.proto package com.google.cloud.speech.v1p1beta1; /** - * - * *
  * The top-level message sent by the client for the `Recognize` method.
  * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.RecognizeRequest} */ -public final class RecognizeRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class RecognizeRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v1p1beta1.RecognizeRequest) RecognizeRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use RecognizeRequest.newBuilder() to construct. private RecognizeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private RecognizeRequest() {} + private RecognizeRequest() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new RecognizeRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private RecognizeRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,88 +52,73 @@ private RecognizeRequest( case 0: done = true; break; - case 10: - { - com.google.cloud.speech.v1p1beta1.RecognitionConfig.Builder subBuilder = null; - if (config_ != null) { - subBuilder = config_.toBuilder(); - } - config_ = - input.readMessage( - com.google.cloud.speech.v1p1beta1.RecognitionConfig.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(config_); - config_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.cloud.speech.v1p1beta1.RecognitionConfig.Builder subBuilder = null; + if (config_ != null) { + subBuilder = config_.toBuilder(); + } + config_ = input.readMessage(com.google.cloud.speech.v1p1beta1.RecognitionConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(config_); + config_ = subBuilder.buildPartial(); } - case 18: - { - com.google.cloud.speech.v1p1beta1.RecognitionAudio.Builder subBuilder = null; - if (audio_ != null) { - subBuilder = audio_.toBuilder(); - } - audio_ = - input.readMessage( - com.google.cloud.speech.v1p1beta1.RecognitionAudio.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(audio_); - audio_ = subBuilder.buildPartial(); - } - break; + break; + } + case 18: { + com.google.cloud.speech.v1p1beta1.RecognitionAudio.Builder subBuilder = null; + if (audio_ != null) { + subBuilder = audio_.toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + audio_ = input.readMessage(com.google.cloud.speech.v1p1beta1.RecognitionAudio.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(audio_); + audio_ = subBuilder.buildPartial(); } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechProto - .internal_static_google_cloud_speech_v1p1beta1_RecognizeRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_RecognizeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechProto - .internal_static_google_cloud_speech_v1p1beta1_RecognizeRequest_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_RecognizeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.RecognizeRequest.class, - com.google.cloud.speech.v1p1beta1.RecognizeRequest.Builder.class); + com.google.cloud.speech.v1p1beta1.RecognizeRequest.class, com.google.cloud.speech.v1p1beta1.RecognizeRequest.Builder.class); } public static final int CONFIG_FIELD_NUMBER = 1; private com.google.cloud.speech.v1p1beta1.RecognitionConfig config_; /** - * - * *
    * Required. Provides information to the recognizer that specifies how to
    * process the request.
    * 
* - * - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the config field is set. */ @java.lang.Override @@ -157,36 +126,25 @@ public boolean hasConfig() { return config_ != null; } /** - * - * *
    * Required. Provides information to the recognizer that specifies how to
    * process the request.
    * 
* - * - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The config. */ @java.lang.Override public com.google.cloud.speech.v1p1beta1.RecognitionConfig getConfig() { - return config_ == null - ? com.google.cloud.speech.v1p1beta1.RecognitionConfig.getDefaultInstance() - : config_; + return config_ == null ? com.google.cloud.speech.v1p1beta1.RecognitionConfig.getDefaultInstance() : config_; } /** - * - * *
    * Required. Provides information to the recognizer that specifies how to
    * process the request.
    * 
* - * - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.speech.v1p1beta1.RecognitionConfigOrBuilder getConfigOrBuilder() { @@ -196,16 +154,11 @@ public com.google.cloud.speech.v1p1beta1.RecognitionConfigOrBuilder getConfigOrB public static final int AUDIO_FIELD_NUMBER = 2; private com.google.cloud.speech.v1p1beta1.RecognitionAudio audio_; /** - * - * *
    * Required. The audio data to be recognized.
    * 
* - * - * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the audio field is set. */ @java.lang.Override @@ -213,34 +166,23 @@ public boolean hasAudio() { return audio_ != null; } /** - * - * *
    * Required. The audio data to be recognized.
    * 
* - * - * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The audio. */ @java.lang.Override public com.google.cloud.speech.v1p1beta1.RecognitionAudio getAudio() { - return audio_ == null - ? com.google.cloud.speech.v1p1beta1.RecognitionAudio.getDefaultInstance() - : audio_; + return audio_ == null ? com.google.cloud.speech.v1p1beta1.RecognitionAudio.getDefaultInstance() : audio_; } /** - * - * *
    * Required. The audio data to be recognized.
    * 
* - * - * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.speech.v1p1beta1.RecognitionAudioOrBuilder getAudioOrBuilder() { @@ -248,7 +190,6 @@ public com.google.cloud.speech.v1p1beta1.RecognitionAudioOrBuilder getAudioOrBui } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -260,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 (config_ != null) { output.writeMessage(1, getConfig()); } @@ -277,10 +219,12 @@ public int getSerializedSize() { size = 0; if (config_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getConfig()); } if (audio_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getAudio()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getAudio()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -290,21 +234,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1p1beta1.RecognizeRequest)) { return super.equals(obj); } - com.google.cloud.speech.v1p1beta1.RecognizeRequest other = - (com.google.cloud.speech.v1p1beta1.RecognizeRequest) obj; + com.google.cloud.speech.v1p1beta1.RecognizeRequest other = (com.google.cloud.speech.v1p1beta1.RecognizeRequest) obj; if (hasConfig() != other.hasConfig()) return false; if (hasConfig()) { - if (!getConfig().equals(other.getConfig())) return false; + if (!getConfig() + .equals(other.getConfig())) return false; } if (hasAudio() != other.hasAudio()) return false; if (hasAudio()) { - if (!getAudio().equals(other.getAudio())) return false; + if (!getAudio() + .equals(other.getAudio())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -331,126 +276,117 @@ public int hashCode() { } public static com.google.cloud.speech.v1p1beta1.RecognizeRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1p1beta1.RecognizeRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.RecognizeRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1p1beta1.RecognizeRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.RecognizeRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1p1beta1.RecognizeRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.speech.v1p1beta1.RecognizeRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.speech.v1p1beta1.RecognizeRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1p1beta1.RecognizeRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.speech.v1p1beta1.RecognizeRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.speech.v1p1beta1.RecognizeRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1p1beta1.RecognizeRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.RecognizeRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1p1beta1.RecognizeRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.speech.v1p1beta1.RecognizeRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The top-level message sent by the client for the `Recognize` method.
    * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.RecognizeRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1p1beta1.RecognizeRequest) com.google.cloud.speech.v1p1beta1.RecognizeRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechProto - .internal_static_google_cloud_speech_v1p1beta1_RecognizeRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_RecognizeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechProto - .internal_static_google_cloud_speech_v1p1beta1_RecognizeRequest_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_RecognizeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.RecognizeRequest.class, - com.google.cloud.speech.v1p1beta1.RecognizeRequest.Builder.class); + com.google.cloud.speech.v1p1beta1.RecognizeRequest.class, com.google.cloud.speech.v1p1beta1.RecognizeRequest.Builder.class); } // Construct using com.google.cloud.speech.v1p1beta1.RecognizeRequest.newBuilder() @@ -458,15 +394,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -486,9 +423,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 @@ -507,8 +444,7 @@ public com.google.cloud.speech.v1p1beta1.RecognizeRequest build() { @java.lang.Override public com.google.cloud.speech.v1p1beta1.RecognizeRequest buildPartial() { - com.google.cloud.speech.v1p1beta1.RecognizeRequest result = - new com.google.cloud.speech.v1p1beta1.RecognizeRequest(this); + com.google.cloud.speech.v1p1beta1.RecognizeRequest result = new com.google.cloud.speech.v1p1beta1.RecognizeRequest(this); if (configBuilder_ == null) { result.config_ = config_; } else { @@ -527,39 +463,38 @@ public com.google.cloud.speech.v1p1beta1.RecognizeRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.speech.v1p1beta1.RecognizeRequest) { - return mergeFrom((com.google.cloud.speech.v1p1beta1.RecognizeRequest) other); + return mergeFrom((com.google.cloud.speech.v1p1beta1.RecognizeRequest)other); } else { super.mergeFrom(other); return this; @@ -567,8 +502,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()); } @@ -594,8 +528,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.speech.v1p1beta1.RecognizeRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.speech.v1p1beta1.RecognizeRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -607,61 +540,42 @@ public Builder mergeFrom( private com.google.cloud.speech.v1p1beta1.RecognitionConfig config_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.RecognitionConfig, - com.google.cloud.speech.v1p1beta1.RecognitionConfig.Builder, - com.google.cloud.speech.v1p1beta1.RecognitionConfigOrBuilder> - configBuilder_; + com.google.cloud.speech.v1p1beta1.RecognitionConfig, com.google.cloud.speech.v1p1beta1.RecognitionConfig.Builder, com.google.cloud.speech.v1p1beta1.RecognitionConfigOrBuilder> configBuilder_; /** - * - * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the config field is set. */ public boolean hasConfig() { return configBuilder_ != null || config_ != null; } /** - * - * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The config. */ public com.google.cloud.speech.v1p1beta1.RecognitionConfig getConfig() { if (configBuilder_ == null) { - return config_ == null - ? com.google.cloud.speech.v1p1beta1.RecognitionConfig.getDefaultInstance() - : config_; + return config_ == null ? com.google.cloud.speech.v1p1beta1.RecognitionConfig.getDefaultInstance() : config_; } else { return configBuilder_.getMessage(); } } /** - * - * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setConfig(com.google.cloud.speech.v1p1beta1.RecognitionConfig value) { if (configBuilder_ == null) { @@ -677,16 +591,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) { @@ -700,24 +610,18 @@ public Builder setConfig( return this; } /** - * - * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeConfig(com.google.cloud.speech.v1p1beta1.RecognitionConfig value) { if (configBuilder_ == null) { if (config_ != null) { config_ = - com.google.cloud.speech.v1p1beta1.RecognitionConfig.newBuilder(config_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.speech.v1p1beta1.RecognitionConfig.newBuilder(config_).mergeFrom(value).buildPartial(); } else { config_ = value; } @@ -729,16 +633,12 @@ public Builder mergeConfig(com.google.cloud.speech.v1p1beta1.RecognitionConfig v return this; } /** - * - * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearConfig() { if (configBuilder_ == null) { @@ -752,67 +652,51 @@ public Builder clearConfig() { return this; } /** - * - * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.speech.v1p1beta1.RecognitionConfig.Builder getConfigBuilder() { - + onChanged(); return getConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.speech.v1p1beta1.RecognitionConfigOrBuilder getConfigOrBuilder() { if (configBuilder_ != null) { return configBuilder_.getMessageOrBuilder(); } else { - return config_ == null - ? com.google.cloud.speech.v1p1beta1.RecognitionConfig.getDefaultInstance() - : config_; + return config_ == null ? + com.google.cloud.speech.v1p1beta1.RecognitionConfig.getDefaultInstance() : config_; } } /** - * - * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.RecognitionConfig, - com.google.cloud.speech.v1p1beta1.RecognitionConfig.Builder, - com.google.cloud.speech.v1p1beta1.RecognitionConfigOrBuilder> + com.google.cloud.speech.v1p1beta1.RecognitionConfig, com.google.cloud.speech.v1p1beta1.RecognitionConfig.Builder, com.google.cloud.speech.v1p1beta1.RecognitionConfigOrBuilder> getConfigFieldBuilder() { if (configBuilder_ == null) { - configBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.RecognitionConfig, - com.google.cloud.speech.v1p1beta1.RecognitionConfig.Builder, - com.google.cloud.speech.v1p1beta1.RecognitionConfigOrBuilder>( - getConfig(), getParentForChildren(), isClean()); + configBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v1p1beta1.RecognitionConfig, com.google.cloud.speech.v1p1beta1.RecognitionConfig.Builder, com.google.cloud.speech.v1p1beta1.RecognitionConfigOrBuilder>( + getConfig(), + getParentForChildren(), + isClean()); config_ = null; } return configBuilder_; @@ -820,58 +704,39 @@ public com.google.cloud.speech.v1p1beta1.RecognitionConfigOrBuilder getConfigOrB private com.google.cloud.speech.v1p1beta1.RecognitionAudio audio_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.RecognitionAudio, - com.google.cloud.speech.v1p1beta1.RecognitionAudio.Builder, - com.google.cloud.speech.v1p1beta1.RecognitionAudioOrBuilder> - audioBuilder_; + com.google.cloud.speech.v1p1beta1.RecognitionAudio, com.google.cloud.speech.v1p1beta1.RecognitionAudio.Builder, com.google.cloud.speech.v1p1beta1.RecognitionAudioOrBuilder> audioBuilder_; /** - * - * *
      * Required. The audio data to be recognized.
      * 
* - * - * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the audio field is set. */ public boolean hasAudio() { return audioBuilder_ != null || audio_ != null; } /** - * - * *
      * Required. The audio data to be recognized.
      * 
* - * - * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The audio. */ public com.google.cloud.speech.v1p1beta1.RecognitionAudio getAudio() { if (audioBuilder_ == null) { - return audio_ == null - ? com.google.cloud.speech.v1p1beta1.RecognitionAudio.getDefaultInstance() - : audio_; + return audio_ == null ? com.google.cloud.speech.v1p1beta1.RecognitionAudio.getDefaultInstance() : audio_; } else { return audioBuilder_.getMessage(); } } /** - * - * *
      * Required. The audio data to be recognized.
      * 
* - * - * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setAudio(com.google.cloud.speech.v1p1beta1.RecognitionAudio value) { if (audioBuilder_ == null) { @@ -887,15 +752,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) { @@ -909,23 +770,17 @@ public Builder setAudio( return this; } /** - * - * *
      * Required. The audio data to be recognized.
      * 
* - * - * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeAudio(com.google.cloud.speech.v1p1beta1.RecognitionAudio value) { if (audioBuilder_ == null) { if (audio_ != null) { audio_ = - com.google.cloud.speech.v1p1beta1.RecognitionAudio.newBuilder(audio_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.speech.v1p1beta1.RecognitionAudio.newBuilder(audio_).mergeFrom(value).buildPartial(); } else { audio_ = value; } @@ -937,15 +792,11 @@ public Builder mergeAudio(com.google.cloud.speech.v1p1beta1.RecognitionAudio val return this; } /** - * - * *
      * Required. The audio data to be recognized.
      * 
* - * - * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearAudio() { if (audioBuilder_ == null) { @@ -959,71 +810,55 @@ public Builder clearAudio() { return this; } /** - * - * *
      * Required. The audio data to be recognized.
      * 
* - * - * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.speech.v1p1beta1.RecognitionAudio.Builder getAudioBuilder() { - + onChanged(); return getAudioFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The audio data to be recognized.
      * 
* - * - * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.speech.v1p1beta1.RecognitionAudioOrBuilder getAudioOrBuilder() { if (audioBuilder_ != null) { return audioBuilder_.getMessageOrBuilder(); } else { - return audio_ == null - ? com.google.cloud.speech.v1p1beta1.RecognitionAudio.getDefaultInstance() - : audio_; + return audio_ == null ? + com.google.cloud.speech.v1p1beta1.RecognitionAudio.getDefaultInstance() : audio_; } } /** - * - * *
      * Required. The audio data to be recognized.
      * 
* - * - * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.RecognitionAudio, - com.google.cloud.speech.v1p1beta1.RecognitionAudio.Builder, - com.google.cloud.speech.v1p1beta1.RecognitionAudioOrBuilder> + com.google.cloud.speech.v1p1beta1.RecognitionAudio, com.google.cloud.speech.v1p1beta1.RecognitionAudio.Builder, com.google.cloud.speech.v1p1beta1.RecognitionAudioOrBuilder> getAudioFieldBuilder() { if (audioBuilder_ == null) { - audioBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.RecognitionAudio, - com.google.cloud.speech.v1p1beta1.RecognitionAudio.Builder, - com.google.cloud.speech.v1p1beta1.RecognitionAudioOrBuilder>( - getAudio(), getParentForChildren(), isClean()); + audioBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v1p1beta1.RecognitionAudio, com.google.cloud.speech.v1p1beta1.RecognitionAudio.Builder, com.google.cloud.speech.v1p1beta1.RecognitionAudioOrBuilder>( + getAudio(), + getParentForChildren(), + isClean()); audio_ = null; } return audioBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1033,12 +868,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(); } @@ -1047,16 +882,16 @@ public static com.google.cloud.speech.v1p1beta1.RecognizeRequest getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RecognizeRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new RecognizeRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RecognizeRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RecognizeRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1071,4 +906,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.RecognizeRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeRequestOrBuilder.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeRequestOrBuilder.java new file mode 100644 index 000000000..2e594dfdd --- /dev/null +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeRequestOrBuilder.java @@ -0,0 +1,66 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/speech/v1p1beta1/cloud_speech.proto + +package com.google.cloud.speech.v1p1beta1; + +public interface RecognizeRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1p1beta1.RecognizeRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Provides information to the recognizer that specifies how to
+   * process the request.
+   * 
+ * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the config field is set. + */ + boolean hasConfig(); + /** + *
+   * Required. Provides information to the recognizer that specifies how to
+   * process the request.
+   * 
+ * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return The config. + */ + com.google.cloud.speech.v1p1beta1.RecognitionConfig getConfig(); + /** + *
+   * Required. Provides information to the recognizer that specifies how to
+   * process the request.
+   * 
+ * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.cloud.speech.v1p1beta1.RecognitionConfigOrBuilder getConfigOrBuilder(); + + /** + *
+   * Required. The audio data to be recognized.
+   * 
+ * + * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the audio field is set. + */ + boolean hasAudio(); + /** + *
+   * Required. The audio data to be recognized.
+   * 
+ * + * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The audio. + */ + com.google.cloud.speech.v1p1beta1.RecognitionAudio getAudio(); + /** + *
+   * Required. The audio data to be recognized.
+   * 
+ * + * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.cloud.speech.v1p1beta1.RecognitionAudioOrBuilder getAudioOrBuilder(); +} diff --git a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeResponse.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeResponse.java similarity index 73% rename from proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeResponse.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeResponse.java index 6da45b951..5f3c35418 100644 --- a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeResponse.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeResponse.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech.proto package com.google.cloud.speech.v1p1beta1; /** - * - * *
  * The only message returned to the client by the `Recognize` method. It
  * contains the result as zero or more sequential `SpeechRecognitionResult`
@@ -29,31 +12,31 @@
  *
  * Protobuf type {@code google.cloud.speech.v1p1beta1.RecognizeResponse}
  */
-public final class RecognizeResponse extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class RecognizeResponse extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.speech.v1p1beta1.RecognizeResponse)
     RecognizeResponseOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use RecognizeResponse.newBuilder() to construct.
   private RecognizeResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private RecognizeResponse() {
     results_ = java.util.Collections.emptyList();
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new RecognizeResponse();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private RecognizeResponse(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -73,48 +56,42 @@ private RecognizeResponse(
           case 0:
             done = true;
             break;
-          case 18:
-            {
-              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                results_ =
-                    new java.util.ArrayList<
-                        com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult>();
-                mutable_bitField0_ |= 0x00000001;
-              }
-              results_.add(
-                  input.readMessage(
-                      com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult.parser(),
-                      extensionRegistry));
-              break;
+          case 18: {
+            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+              results_ = new java.util.ArrayList();
+              mutable_bitField0_ |= 0x00000001;
             }
-          case 26:
-            {
-              com.google.protobuf.Duration.Builder subBuilder = null;
-              if (totalBilledTime_ != null) {
-                subBuilder = totalBilledTime_.toBuilder();
-              }
-              totalBilledTime_ =
-                  input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(totalBilledTime_);
-                totalBilledTime_ = subBuilder.buildPartial();
-              }
-
-              break;
+            results_.add(
+                input.readMessage(com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult.parser(), extensionRegistry));
+            break;
+          }
+          case 26: {
+            com.google.protobuf.Duration.Builder subBuilder = null;
+            if (totalBilledTime_ != null) {
+              subBuilder = totalBilledTime_.toBuilder();
+            }
+            totalBilledTime_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(totalBilledTime_);
+              totalBilledTime_ = subBuilder.buildPartial();
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         results_ = java.util.Collections.unmodifiableList(results_);
@@ -123,27 +100,22 @@ private RecognizeResponse(
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.speech.v1p1beta1.SpeechProto
-        .internal_static_google_cloud_speech_v1p1beta1_RecognizeResponse_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_RecognizeResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v1p1beta1.SpeechProto
-        .internal_static_google_cloud_speech_v1p1beta1_RecognizeResponse_fieldAccessorTable
+    return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_RecognizeResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v1p1beta1.RecognizeResponse.class,
-            com.google.cloud.speech.v1p1beta1.RecognizeResponse.Builder.class);
+            com.google.cloud.speech.v1p1beta1.RecognizeResponse.class, com.google.cloud.speech.v1p1beta1.RecognizeResponse.Builder.class);
   }
 
   public static final int RESULTS_FIELD_NUMBER = 2;
   private java.util.List results_;
   /**
-   *
-   *
    * 
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -152,13 +124,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.
@@ -167,14 +136,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.
@@ -187,8 +153,6 @@ public int getResultsCount() {
     return results_.size();
   }
   /**
-   *
-   *
    * 
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -201,8 +165,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.
@@ -219,14 +181,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 @@ -234,25 +193,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.
    * 
@@ -265,7 +217,6 @@ public com.google.protobuf.DurationOrBuilder getTotalBilledTimeOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -277,7 +228,8 @@ public final boolean isInitialized() { } @java.lang.Override - 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)); } @@ -294,10 +246,12 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < results_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, results_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, results_.get(i)); } if (totalBilledTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getTotalBilledTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getTotalBilledTime()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -307,18 +261,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1p1beta1.RecognizeResponse)) { return super.equals(obj); } - com.google.cloud.speech.v1p1beta1.RecognizeResponse other = - (com.google.cloud.speech.v1p1beta1.RecognizeResponse) obj; + com.google.cloud.speech.v1p1beta1.RecognizeResponse other = (com.google.cloud.speech.v1p1beta1.RecognizeResponse) obj; - if (!getResultsList().equals(other.getResultsList())) return false; + if (!getResultsList() + .equals(other.getResultsList())) return false; if (hasTotalBilledTime() != other.hasTotalBilledTime()) return false; if (hasTotalBilledTime()) { - if (!getTotalBilledTime().equals(other.getTotalBilledTime())) return false; + if (!getTotalBilledTime() + .equals(other.getTotalBilledTime())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -345,103 +300,96 @@ public int hashCode() { } public static com.google.cloud.speech.v1p1beta1.RecognizeResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1p1beta1.RecognizeResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.RecognizeResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1p1beta1.RecognizeResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.RecognizeResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1p1beta1.RecognizeResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.speech.v1p1beta1.RecognizeResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.speech.v1p1beta1.RecognizeResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1p1beta1.RecognizeResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.speech.v1p1beta1.RecognizeResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.speech.v1p1beta1.RecognizeResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1p1beta1.RecognizeResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.RecognizeResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1p1beta1.RecognizeResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.speech.v1p1beta1.RecognizeResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The only message returned to the client by the `Recognize` method. It
    * contains the result as zero or more sequential `SpeechRecognitionResult`
@@ -450,23 +398,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.speech.v1p1beta1.RecognizeResponse}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1p1beta1.RecognizeResponse)
       com.google.cloud.speech.v1p1beta1.RecognizeResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.speech.v1p1beta1.SpeechProto
-          .internal_static_google_cloud_speech_v1p1beta1_RecognizeResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_RecognizeResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v1p1beta1.SpeechProto
-          .internal_static_google_cloud_speech_v1p1beta1_RecognizeResponse_fieldAccessorTable
+      return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_RecognizeResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v1p1beta1.RecognizeResponse.class,
-              com.google.cloud.speech.v1p1beta1.RecognizeResponse.Builder.class);
+              com.google.cloud.speech.v1p1beta1.RecognizeResponse.class, com.google.cloud.speech.v1p1beta1.RecognizeResponse.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v1p1beta1.RecognizeResponse.newBuilder()
@@ -474,17 +420,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
         getResultsFieldBuilder();
       }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -504,9 +450,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.speech.v1p1beta1.SpeechProto
-          .internal_static_google_cloud_speech_v1p1beta1_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
@@ -525,8 +471,7 @@ public com.google.cloud.speech.v1p1beta1.RecognizeResponse build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v1p1beta1.RecognizeResponse buildPartial() {
-      com.google.cloud.speech.v1p1beta1.RecognizeResponse result =
-          new com.google.cloud.speech.v1p1beta1.RecognizeResponse(this);
+      com.google.cloud.speech.v1p1beta1.RecognizeResponse result = new com.google.cloud.speech.v1p1beta1.RecognizeResponse(this);
       int from_bitField0_ = bitField0_;
       if (resultsBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
@@ -550,39 +495,38 @@ public com.google.cloud.speech.v1p1beta1.RecognizeResponse buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.speech.v1p1beta1.RecognizeResponse) {
-        return mergeFrom((com.google.cloud.speech.v1p1beta1.RecognizeResponse) other);
+        return mergeFrom((com.google.cloud.speech.v1p1beta1.RecognizeResponse)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -590,8 +534,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()) {
@@ -610,10 +553,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_);
           }
@@ -641,8 +583,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.speech.v1p1beta1.RecognizeResponse) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.speech.v1p1beta1.RecognizeResponse) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -651,30 +592,21 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int bitField0_;
 
     private java.util.List results_ =
-        java.util.Collections.emptyList();
-
+      java.util.Collections.emptyList();
     private void ensureResultsIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
-        results_ =
-            new java.util.ArrayList(
-                results_);
+        results_ = new java.util.ArrayList(results_);
         bitField0_ |= 0x00000001;
-      }
+       }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult,
-            com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult.Builder,
-            com.google.cloud.speech.v1p1beta1.SpeechRecognitionResultOrBuilder>
-        resultsBuilder_;
+        com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult, com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult.Builder, com.google.cloud.speech.v1p1beta1.SpeechRecognitionResultOrBuilder> resultsBuilder_;
 
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -682,8 +614,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 {
@@ -691,8 +622,6 @@ private void ensureResultsIsMutable() {
       }
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -708,8 +637,6 @@ public int getResultsCount() {
       }
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -725,8 +652,6 @@ public com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult getResults(int
       }
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -749,8 +674,6 @@ public Builder setResults(
       return this;
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -759,8 +682,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());
@@ -771,8 +693,6 @@ public Builder setResults(
       return this;
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -794,8 +714,6 @@ public Builder addResults(com.google.cloud.speech.v1p1beta1.SpeechRecognitionRes
       return this;
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -818,8 +736,6 @@ public Builder addResults(
       return this;
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -839,8 +755,6 @@ public Builder addResults(
       return this;
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -849,8 +763,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());
@@ -861,8 +774,6 @@ public Builder addResults(
       return this;
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -871,11 +782,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);
@@ -883,8 +794,6 @@ public Builder addAllResults(
       return this;
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -903,8 +812,6 @@ public Builder clearResults() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -923,8 +830,6 @@ public Builder removeResults(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -937,8 +842,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.
@@ -949,14 +852,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.
@@ -964,9 +864,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 {
@@ -974,8 +873,6 @@ public com.google.cloud.speech.v1p1beta1.SpeechRecognitionResultOrBuilder getRes
       }
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -984,13 +881,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.
@@ -1000,14 +894,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.
@@ -1015,23 +905,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_;
@@ -1039,47 +926,34 @@ public com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult.Builder addResu
 
     private com.google.protobuf.Duration totalBilledTime_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Duration,
-            com.google.protobuf.Duration.Builder,
-            com.google.protobuf.DurationOrBuilder>
-        totalBilledTimeBuilder_;
+        com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> totalBilledTimeBuilder_;
     /**
-     *
-     *
      * 
      * When available, billed audio seconds for the corresponding request.
      * 
* * .google.protobuf.Duration total_billed_time = 3; - * * @return Whether the totalBilledTime field is set. */ public boolean hasTotalBilledTime() { return totalBilledTimeBuilder_ != null || totalBilledTime_ != null; } /** - * - * *
      * When available, billed audio seconds for the corresponding request.
      * 
* * .google.protobuf.Duration total_billed_time = 3; - * * @return The totalBilledTime. */ public com.google.protobuf.Duration getTotalBilledTime() { if (totalBilledTimeBuilder_ == null) { - return totalBilledTime_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : totalBilledTime_; + return totalBilledTime_ == null ? com.google.protobuf.Duration.getDefaultInstance() : totalBilledTime_; } else { return totalBilledTimeBuilder_.getMessage(); } } /** - * - * *
      * When available, billed audio seconds for the corresponding request.
      * 
@@ -1100,15 +974,14 @@ public Builder setTotalBilledTime(com.google.protobuf.Duration value) { return this; } /** - * - * *
      * When available, billed audio seconds for the corresponding request.
      * 
* * .google.protobuf.Duration total_billed_time = 3; */ - public Builder setTotalBilledTime(com.google.protobuf.Duration.Builder builderForValue) { + public Builder setTotalBilledTime( + com.google.protobuf.Duration.Builder builderForValue) { if (totalBilledTimeBuilder_ == null) { totalBilledTime_ = builderForValue.build(); onChanged(); @@ -1119,8 +992,6 @@ public Builder setTotalBilledTime(com.google.protobuf.Duration.Builder builderFo return this; } /** - * - * *
      * When available, billed audio seconds for the corresponding request.
      * 
@@ -1131,9 +1002,7 @@ public Builder mergeTotalBilledTime(com.google.protobuf.Duration value) { if (totalBilledTimeBuilder_ == null) { if (totalBilledTime_ != null) { totalBilledTime_ = - com.google.protobuf.Duration.newBuilder(totalBilledTime_) - .mergeFrom(value) - .buildPartial(); + com.google.protobuf.Duration.newBuilder(totalBilledTime_).mergeFrom(value).buildPartial(); } else { totalBilledTime_ = value; } @@ -1145,8 +1014,6 @@ public Builder mergeTotalBilledTime(com.google.protobuf.Duration value) { return this; } /** - * - * *
      * When available, billed audio seconds for the corresponding request.
      * 
@@ -1165,8 +1032,6 @@ public Builder clearTotalBilledTime() { return this; } /** - * - * *
      * When available, billed audio seconds for the corresponding request.
      * 
@@ -1174,13 +1039,11 @@ public Builder clearTotalBilledTime() { * .google.protobuf.Duration total_billed_time = 3; */ public com.google.protobuf.Duration.Builder getTotalBilledTimeBuilder() { - + onChanged(); return getTotalBilledTimeFieldBuilder().getBuilder(); } /** - * - * *
      * When available, billed audio seconds for the corresponding request.
      * 
@@ -1191,14 +1054,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.
      * 
@@ -1206,24 +1066,21 @@ public com.google.protobuf.DurationOrBuilder getTotalBilledTimeOrBuilder() { * .google.protobuf.Duration total_billed_time = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> getTotalBilledTimeFieldBuilder() { if (totalBilledTimeBuilder_ == null) { - totalBilledTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder>( - getTotalBilledTime(), getParentForChildren(), isClean()); + totalBilledTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( + getTotalBilledTime(), + getParentForChildren(), + isClean()); totalBilledTime_ = null; } return totalBilledTimeBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1233,12 +1090,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(); } @@ -1247,16 +1104,16 @@ public static com.google.cloud.speech.v1p1beta1.RecognizeResponse getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RecognizeResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new RecognizeResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RecognizeResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RecognizeResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1271,4 +1128,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.RecognizeResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeResponseOrBuilder.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeResponseOrBuilder.java similarity index 75% rename from proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeResponseOrBuilder.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeResponseOrBuilder.java index c03d3c9b7..d558c9d50 100644 --- a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeResponseOrBuilder.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeResponseOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech.proto package com.google.cloud.speech.v1p1beta1; -public interface RecognizeResponseOrBuilder - extends +public interface RecognizeResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1p1beta1.RecognizeResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -33,10 +15,9 @@ public interface RecognizeResponseOrBuilder
    *
    * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionResult results = 2;
    */
-  java.util.List getResultsList();
+  java.util.List 
+      getResultsList();
   /**
-   *
-   *
    * 
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -46,8 +27,6 @@ public interface RecognizeResponseOrBuilder
    */
   com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult getResults(int index);
   /**
-   *
-   *
    * 
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -57,8 +36,6 @@ public interface RecognizeResponseOrBuilder
    */
   int getResultsCount();
   /**
-   *
-   *
    * 
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -66,11 +43,9 @@ public interface RecognizeResponseOrBuilder
    *
    * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionResult results = 2;
    */
-  java.util.List
+  java.util.List 
       getResultsOrBuilderList();
   /**
-   *
-   *
    * 
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -78,35 +53,28 @@ public interface RecognizeResponseOrBuilder
    *
    * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionResult results = 2;
    */
-  com.google.cloud.speech.v1p1beta1.SpeechRecognitionResultOrBuilder getResultsOrBuilder(int index);
+  com.google.cloud.speech.v1p1beta1.SpeechRecognitionResultOrBuilder getResultsOrBuilder(
+      int index);
 
   /**
-   *
-   *
    * 
    * When available, billed audio seconds for the corresponding request.
    * 
* * .google.protobuf.Duration total_billed_time = 3; - * * @return Whether the totalBilledTime field is set. */ boolean hasTotalBilledTime(); /** - * - * *
    * When available, billed audio seconds for the corresponding request.
    * 
* * .google.protobuf.Duration total_billed_time = 3; - * * @return The totalBilledTime. */ com.google.protobuf.Duration getTotalBilledTime(); /** - * - * *
    * When available, billed audio seconds for the corresponding request.
    * 
diff --git a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeakerDiarizationConfig.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeakerDiarizationConfig.java similarity index 71% rename from proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeakerDiarizationConfig.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeakerDiarizationConfig.java index ce7343779..de799d2d2 100644 --- a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeakerDiarizationConfig.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeakerDiarizationConfig.java @@ -1,55 +1,39 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech.proto package com.google.cloud.speech.v1p1beta1; /** - * - * *
  * Config to enable speaker diarization.
  * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig} */ -public final class SpeakerDiarizationConfig extends com.google.protobuf.GeneratedMessageV3 - implements +public final class SpeakerDiarizationConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig) SpeakerDiarizationConfigOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use SpeakerDiarizationConfig.newBuilder() to construct. private SpeakerDiarizationConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private SpeakerDiarizationConfig() {} + private SpeakerDiarizationConfig() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new SpeakerDiarizationConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private SpeakerDiarizationConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,65 +52,61 @@ private SpeakerDiarizationConfig( case 0: done = true; break; - case 8: - { - enableSpeakerDiarization_ = input.readBool(); - break; - } - case 16: - { - minSpeakerCount_ = input.readInt32(); - break; - } - case 24: - { - maxSpeakerCount_ = input.readInt32(); - break; - } - case 40: - { - speakerTag_ = input.readInt32(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + case 8: { + + enableSpeakerDiarization_ = input.readBool(); + break; + } + case 16: { + + minSpeakerCount_ = input.readInt32(); + break; + } + case 24: { + + maxSpeakerCount_ = input.readInt32(); + break; + } + case 40: { + + speakerTag_ = input.readInt32(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechProto - .internal_static_google_cloud_speech_v1p1beta1_SpeakerDiarizationConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_SpeakerDiarizationConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechProto - .internal_static_google_cloud_speech_v1p1beta1_SpeakerDiarizationConfig_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_SpeakerDiarizationConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig.class, - com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig.Builder.class); + com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig.class, com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig.Builder.class); } public static final int ENABLE_SPEAKER_DIARIZATION_FIELD_NUMBER = 1; private boolean enableSpeakerDiarization_; /** - * - * *
    * If 'true', enables speaker detection for each recognized word in
    * the top alternative of the recognition result using a speaker_tag provided
@@ -134,7 +114,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * bool enable_speaker_diarization = 1; - * * @return The enableSpeakerDiarization. */ @java.lang.Override @@ -145,8 +124,6 @@ public boolean getEnableSpeakerDiarization() { public static final int MIN_SPEAKER_COUNT_FIELD_NUMBER = 2; private int minSpeakerCount_; /** - * - * *
    * Minimum number of speakers in the conversation. This range gives you more
    * flexibility by allowing the system to automatically determine the correct
@@ -154,7 +131,6 @@ public boolean getEnableSpeakerDiarization() {
    * 
* * int32 min_speaker_count = 2; - * * @return The minSpeakerCount. */ @java.lang.Override @@ -165,8 +141,6 @@ public int getMinSpeakerCount() { public static final int MAX_SPEAKER_COUNT_FIELD_NUMBER = 3; private int maxSpeakerCount_; /** - * - * *
    * Maximum number of speakers in the conversation. This range gives you more
    * flexibility by allowing the system to automatically determine the correct
@@ -174,7 +148,6 @@ public int getMinSpeakerCount() {
    * 
* * int32 max_speaker_count = 3; - * * @return The maxSpeakerCount. */ @java.lang.Override @@ -185,25 +158,19 @@ public int getMaxSpeakerCount() { public static final int SPEAKER_TAG_FIELD_NUMBER = 5; private int speakerTag_; /** - * - * *
    * Output only. Unused.
    * 
* - * int32 speaker_tag = 5 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * int32 speaker_tag = 5 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; * @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; @@ -215,7 +182,8 @@ public final boolean isInitialized() { } @java.lang.Override - public 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_); } @@ -238,16 +206,20 @@ public int getSerializedSize() { size = 0; if (enableSpeakerDiarization_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, enableSpeakerDiarization_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(1, enableSpeakerDiarization_); } if (minSpeakerCount_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, minSpeakerCount_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, minSpeakerCount_); } if (maxSpeakerCount_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, maxSpeakerCount_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, maxSpeakerCount_); } if (speakerTag_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, speakerTag_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(5, speakerTag_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -257,18 +229,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig)) { return super.equals(obj); } - com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig other = - (com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig) obj; + com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig other = (com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig) obj; - if (getEnableSpeakerDiarization() != other.getEnableSpeakerDiarization()) return false; - if (getMinSpeakerCount() != other.getMinSpeakerCount()) return false; - if (getMaxSpeakerCount() != other.getMaxSpeakerCount()) return false; - if (getSpeakerTag() != other.getSpeakerTag()) return false; + if (getEnableSpeakerDiarization() + != other.getEnableSpeakerDiarization()) return false; + if (getMinSpeakerCount() + != other.getMinSpeakerCount()) return false; + if (getMaxSpeakerCount() + != other.getMaxSpeakerCount()) return false; + if (getSpeakerTag() + != other.getSpeakerTag()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -281,7 +256,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; @@ -294,127 +270,117 @@ public int hashCode() { } public static com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig prototype) { + public static Builder newBuilder(com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Config to enable speaker diarization.
    * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig) com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechProto - .internal_static_google_cloud_speech_v1p1beta1_SpeakerDiarizationConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_SpeakerDiarizationConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechProto - .internal_static_google_cloud_speech_v1p1beta1_SpeakerDiarizationConfig_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_SpeakerDiarizationConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig.class, - com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig.Builder.class); + com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig.class, com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig.Builder.class); } // Construct using com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig.newBuilder() @@ -422,15 +388,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -446,9 +413,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 @@ -467,8 +434,7 @@ public com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig build() { @java.lang.Override public com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig buildPartial() { - com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig result = - new com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig(this); + com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig result = new com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig(this); result.enableSpeakerDiarization_ = enableSpeakerDiarization_; result.minSpeakerCount_ = minSpeakerCount_; result.maxSpeakerCount_ = maxSpeakerCount_; @@ -481,39 +447,38 @@ public com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig buildPartial() public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig) { - return mergeFrom((com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig) other); + return mergeFrom((com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig)other); } else { super.mergeFrom(other); return this; @@ -521,8 +486,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()); } @@ -554,8 +518,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -565,10 +528,8 @@ public Builder mergeFrom( return this; } - private boolean enableSpeakerDiarization_; + private boolean enableSpeakerDiarization_ ; /** - * - * *
      * If 'true', enables speaker detection for each recognized word in
      * the top alternative of the recognition result using a speaker_tag provided
@@ -576,7 +537,6 @@ public Builder mergeFrom(
      * 
* * bool enable_speaker_diarization = 1; - * * @return The enableSpeakerDiarization. */ @java.lang.Override @@ -584,8 +544,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
@@ -593,19 +551,16 @@ public boolean getEnableSpeakerDiarization() {
      * 
* * bool enable_speaker_diarization = 1; - * * @param value The enableSpeakerDiarization to set. * @return This builder for chaining. */ public Builder setEnableSpeakerDiarization(boolean value) { - + enableSpeakerDiarization_ = value; onChanged(); return this; } /** - * - * *
      * If 'true', enables speaker detection for each recognized word in
      * the top alternative of the recognition result using a speaker_tag provided
@@ -613,20 +568,17 @@ public Builder setEnableSpeakerDiarization(boolean value) {
      * 
* * bool enable_speaker_diarization = 1; - * * @return This builder for chaining. */ public Builder clearEnableSpeakerDiarization() { - + enableSpeakerDiarization_ = false; onChanged(); return this; } - private int minSpeakerCount_; + private int minSpeakerCount_ ; /** - * - * *
      * Minimum number of speakers in the conversation. This range gives you more
      * flexibility by allowing the system to automatically determine the correct
@@ -634,7 +586,6 @@ public Builder clearEnableSpeakerDiarization() {
      * 
* * int32 min_speaker_count = 2; - * * @return The minSpeakerCount. */ @java.lang.Override @@ -642,8 +593,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
@@ -651,19 +600,16 @@ public int getMinSpeakerCount() {
      * 
* * int32 min_speaker_count = 2; - * * @param value The minSpeakerCount to set. * @return This builder for chaining. */ public Builder setMinSpeakerCount(int value) { - + minSpeakerCount_ = value; onChanged(); return this; } /** - * - * *
      * Minimum number of speakers in the conversation. This range gives you more
      * flexibility by allowing the system to automatically determine the correct
@@ -671,20 +617,17 @@ public Builder setMinSpeakerCount(int value) {
      * 
* * int32 min_speaker_count = 2; - * * @return This builder for chaining. */ public Builder clearMinSpeakerCount() { - + minSpeakerCount_ = 0; onChanged(); return this; } - private int maxSpeakerCount_; + private int maxSpeakerCount_ ; /** - * - * *
      * Maximum number of speakers in the conversation. This range gives you more
      * flexibility by allowing the system to automatically determine the correct
@@ -692,7 +635,6 @@ public Builder clearMinSpeakerCount() {
      * 
* * int32 max_speaker_count = 3; - * * @return The maxSpeakerCount. */ @java.lang.Override @@ -700,8 +642,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
@@ -709,19 +649,16 @@ public int getMaxSpeakerCount() {
      * 
* * int32 max_speaker_count = 3; - * * @param value The maxSpeakerCount to set. * @return This builder for chaining. */ public Builder setMaxSpeakerCount(int value) { - + maxSpeakerCount_ = value; onChanged(); return this; } /** - * - * *
      * Maximum number of speakers in the conversation. This range gives you more
      * flexibility by allowing the system to automatically determine the correct
@@ -729,76 +666,60 @@ public Builder setMaxSpeakerCount(int value) {
      * 
* * int32 max_speaker_count = 3; - * * @return This builder for chaining. */ public Builder clearMaxSpeakerCount() { - + maxSpeakerCount_ = 0; onChanged(); return this; } - private int speakerTag_; + private int speakerTag_ ; /** - * - * *
      * Output only. Unused.
      * 
* - * int32 speaker_tag = 5 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * int32 speaker_tag = 5 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; * @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]; * @param value The speakerTag to set. * @return This builder for chaining. */ - @java.lang.Deprecated - public Builder setSpeakerTag(int value) { - + @java.lang.Deprecated public Builder setSpeakerTag(int value) { + speakerTag_ = value; onChanged(); return this; } /** - * - * *
      * Output only. Unused.
      * 
* - * int32 speaker_tag = 5 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * int32 speaker_tag = 5 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ - @java.lang.Deprecated - public Builder clearSpeakerTag() { - + @java.lang.Deprecated public Builder clearSpeakerTag() { + speakerTag_ = 0; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -808,12 +729,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(); } @@ -822,16 +743,16 @@ public static com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SpeakerDiarizationConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SpeakerDiarizationConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SpeakerDiarizationConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SpeakerDiarizationConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -846,4 +767,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeakerDiarizationConfigOrBuilder.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeakerDiarizationConfigOrBuilder.java similarity index 65% rename from proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeakerDiarizationConfigOrBuilder.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeakerDiarizationConfigOrBuilder.java index 3a1bf9e62..88d71a858 100644 --- a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeakerDiarizationConfigOrBuilder.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeakerDiarizationConfigOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech.proto package com.google.cloud.speech.v1p1beta1; -public interface SpeakerDiarizationConfigOrBuilder - extends +public interface SpeakerDiarizationConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * If 'true', enables speaker detection for each recognized word in
    * the top alternative of the recognition result using a speaker_tag provided
@@ -33,14 +15,11 @@ public interface SpeakerDiarizationConfigOrBuilder
    * 
* * bool enable_speaker_diarization = 1; - * * @return The enableSpeakerDiarization. */ boolean getEnableSpeakerDiarization(); /** - * - * *
    * Minimum number of speakers in the conversation. This range gives you more
    * flexibility by allowing the system to automatically determine the correct
@@ -48,14 +27,11 @@ public interface SpeakerDiarizationConfigOrBuilder
    * 
* * int32 min_speaker_count = 2; - * * @return The minSpeakerCount. */ int getMinSpeakerCount(); /** - * - * *
    * Maximum number of speakers in the conversation. This range gives you more
    * flexibility by allowing the system to automatically determine the correct
@@ -63,23 +39,17 @@ 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]; * @return The speakerTag. */ - @java.lang.Deprecated - int getSpeakerTag(); + @java.lang.Deprecated int getSpeakerTag(); } diff --git a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptation.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptation.java similarity index 79% rename from proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptation.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptation.java index 84e423e83..85462e92c 100644 --- a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptation.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptation.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/resource.proto package com.google.cloud.speech.v1p1beta1; /** - * - * *
  * Speech adaptation configuration.
  * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.SpeechAdaptation} */ -public final class SpeechAdaptation extends com.google.protobuf.GeneratedMessageV3 - implements +public final class SpeechAdaptation extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v1p1beta1.SpeechAdaptation) SpeechAdaptationOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use SpeechAdaptation.newBuilder() to construct. private SpeechAdaptation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private SpeechAdaptation() { phraseSets_ = java.util.Collections.emptyList(); phraseSetReferences_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -45,15 +27,16 @@ private SpeechAdaptation() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new SpeechAdaptation(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private SpeechAdaptation( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -73,53 +56,47 @@ private SpeechAdaptation( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - phraseSets_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - phraseSets_.add( - input.readMessage( - com.google.cloud.speech.v1p1beta1.PhraseSet.parser(), extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + phraseSets_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - phraseSetReferences_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; - } - phraseSetReferences_.add(s); - break; + phraseSets_.add( + input.readMessage(com.google.cloud.speech.v1p1beta1.PhraseSet.parser(), extensionRegistry)); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + phraseSetReferences_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; } - case 26: - { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - customClasses_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000004; - } - customClasses_.add( - input.readMessage( - com.google.cloud.speech.v1p1beta1.CustomClass.parser(), extensionRegistry)); - break; + phraseSetReferences_.add(s); + break; + } + case 26: { + if (!((mutable_bitField0_ & 0x00000004) != 0)) { + customClasses_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000004; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + customClasses_.add( + input.readMessage(com.google.cloud.speech.v1p1beta1.CustomClass.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { phraseSets_ = java.util.Collections.unmodifiableList(phraseSets_); @@ -134,27 +111,22 @@ private SpeechAdaptation( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechResourceProto - .internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechResourceProto.internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechResourceProto - .internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptation_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechResourceProto.internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.SpeechAdaptation.class, - com.google.cloud.speech.v1p1beta1.SpeechAdaptation.Builder.class); + com.google.cloud.speech.v1p1beta1.SpeechAdaptation.class, com.google.cloud.speech.v1p1beta1.SpeechAdaptation.Builder.class); } public static final int PHRASE_SETS_FIELD_NUMBER = 1; private java.util.List phraseSets_; /** - * - * *
    * A collection of phrase sets. To specify the hints inline, leave the
    * phrase set's `name` blank and fill in the rest of its fields. Any
@@ -168,8 +140,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
@@ -179,13 +149,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
@@ -199,8 +167,6 @@ public int getPhraseSetsCount() {
     return phraseSets_.size();
   }
   /**
-   *
-   *
    * 
    * A collection of phrase sets. To specify the hints inline, leave the
    * phrase set's `name` blank and fill in the rest of its fields. Any
@@ -214,8 +180,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
@@ -225,52 +189,42 @@ public com.google.cloud.speech.v1p1beta1.PhraseSet getPhraseSets(int index) {
    * repeated .google.cloud.speech.v1p1beta1.PhraseSet phrase_sets = 1;
    */
   @java.lang.Override
-  public com.google.cloud.speech.v1p1beta1.PhraseSetOrBuilder getPhraseSetsOrBuilder(int index) {
+  public com.google.cloud.speech.v1p1beta1.PhraseSetOrBuilder getPhraseSetsOrBuilder(
+      int index) {
     return phraseSets_.get(index);
   }
 
   public static final int PHRASE_SET_REFERENCES_FIELD_NUMBER = 2;
   private com.google.protobuf.LazyStringList phraseSetReferences_;
   /**
-   *
-   *
    * 
    * A collection of phrase set resource names to use.
    * 
* - * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } - * - * + * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } * @return A list containing the phraseSetReferences. */ - public com.google.protobuf.ProtocolStringList getPhraseSetReferencesList() { + public com.google.protobuf.ProtocolStringList + getPhraseSetReferencesList() { return phraseSetReferences_; } /** - * - * *
    * A collection of phrase set resource names to use.
    * 
* - * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } - * - * + * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } * @return The count of phraseSetReferences. */ public int getPhraseSetReferencesCount() { return phraseSetReferences_.size(); } /** - * - * *
    * A collection of phrase set resource names to use.
    * 
* - * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } - * - * + * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } * @param index The index of the element to return. * @return The phraseSetReferences at the given index. */ @@ -278,27 +232,22 @@ public java.lang.String getPhraseSetReferences(int index) { return phraseSetReferences_.get(index); } /** - * - * *
    * A collection of phrase set resource names to use.
    * 
* - * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } - * - * + * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } * @param index The index of the value to return. * @return The bytes of the phraseSetReferences at the given index. */ - public com.google.protobuf.ByteString getPhraseSetReferencesBytes(int index) { + public com.google.protobuf.ByteString + getPhraseSetReferencesBytes(int index) { return phraseSetReferences_.getByteString(index); } public static final int CUSTOM_CLASSES_FIELD_NUMBER = 3; private java.util.List customClasses_; /** - * - * *
    * A collection of custom classes. To specify the classes inline, leave the
    * class' `name` blank and fill in the rest of its fields, giving it a unique
@@ -313,8 +262,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
@@ -325,13 +272,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
@@ -346,8 +291,6 @@ public int getCustomClassesCount() {
     return customClasses_.size();
   }
   /**
-   *
-   *
    * 
    * A collection of custom classes. To specify the classes inline, leave the
    * class' `name` blank and fill in the rest of its fields, giving it a unique
@@ -362,8 +305,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
@@ -380,7 +321,6 @@ public com.google.cloud.speech.v1p1beta1.CustomClassOrBuilder getCustomClassesOr
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -392,7 +332,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  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));
     }
@@ -412,7 +353,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;
@@ -423,7 +365,8 @@ public int getSerializedSize() {
       size += 1 * getPhraseSetReferencesList().size();
     }
     for (int i = 0; i < customClasses_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, customClasses_.get(i));
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(3, customClasses_.get(i));
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -433,17 +376,19 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.speech.v1p1beta1.SpeechAdaptation)) {
       return super.equals(obj);
     }
-    com.google.cloud.speech.v1p1beta1.SpeechAdaptation other =
-        (com.google.cloud.speech.v1p1beta1.SpeechAdaptation) obj;
+    com.google.cloud.speech.v1p1beta1.SpeechAdaptation other = (com.google.cloud.speech.v1p1beta1.SpeechAdaptation) obj;
 
-    if (!getPhraseSetsList().equals(other.getPhraseSetsList())) return false;
-    if (!getPhraseSetReferencesList().equals(other.getPhraseSetReferencesList())) return false;
-    if (!getCustomClassesList().equals(other.getCustomClassesList())) return false;
+    if (!getPhraseSetsList()
+        .equals(other.getPhraseSetsList())) return false;
+    if (!getPhraseSetReferencesList()
+        .equals(other.getPhraseSetReferencesList())) return false;
+    if (!getCustomClassesList()
+        .equals(other.getCustomClassesList())) return false;
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
   }
@@ -473,126 +418,117 @@ public int hashCode() {
   }
 
   public static com.google.cloud.speech.v1p1beta1.SpeechAdaptation parseFrom(
-      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.speech.v1p1beta1.SpeechAdaptation parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.speech.v1p1beta1.SpeechAdaptation parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.speech.v1p1beta1.SpeechAdaptation parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.speech.v1p1beta1.SpeechAdaptation parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.speech.v1p1beta1.SpeechAdaptation parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.speech.v1p1beta1.SpeechAdaptation parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.speech.v1p1beta1.SpeechAdaptation parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.speech.v1p1beta1.SpeechAdaptation parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
-
-  public static com.google.cloud.speech.v1p1beta1.SpeechAdaptation parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.speech.v1p1beta1.SpeechAdaptation parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.speech.v1p1beta1.SpeechAdaptation parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.speech.v1p1beta1.SpeechAdaptation parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.speech.v1p1beta1.SpeechAdaptation parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
   public static Builder newBuilder(com.google.cloud.speech.v1p1beta1.SpeechAdaptation prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * Speech adaptation configuration.
    * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.SpeechAdaptation} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1p1beta1.SpeechAdaptation) com.google.cloud.speech.v1p1beta1.SpeechAdaptationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechResourceProto - .internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechResourceProto.internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechResourceProto - .internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptation_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechResourceProto.internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.SpeechAdaptation.class, - com.google.cloud.speech.v1p1beta1.SpeechAdaptation.Builder.class); + com.google.cloud.speech.v1p1beta1.SpeechAdaptation.class, com.google.cloud.speech.v1p1beta1.SpeechAdaptation.Builder.class); } // Construct using com.google.cloud.speech.v1p1beta1.SpeechAdaptation.newBuilder() @@ -600,18 +536,18 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getPhraseSetsFieldBuilder(); getCustomClassesFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -633,9 +569,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 @@ -654,8 +590,7 @@ public com.google.cloud.speech.v1p1beta1.SpeechAdaptation build() { @java.lang.Override public com.google.cloud.speech.v1p1beta1.SpeechAdaptation buildPartial() { - com.google.cloud.speech.v1p1beta1.SpeechAdaptation result = - new com.google.cloud.speech.v1p1beta1.SpeechAdaptation(this); + com.google.cloud.speech.v1p1beta1.SpeechAdaptation result = new com.google.cloud.speech.v1p1beta1.SpeechAdaptation(this); int from_bitField0_ = bitField0_; if (phraseSetsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -688,39 +623,38 @@ public com.google.cloud.speech.v1p1beta1.SpeechAdaptation buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.speech.v1p1beta1.SpeechAdaptation) { - return mergeFrom((com.google.cloud.speech.v1p1beta1.SpeechAdaptation) other); + return mergeFrom((com.google.cloud.speech.v1p1beta1.SpeechAdaptation)other); } else { super.mergeFrom(other); return this; @@ -728,8 +662,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()) { @@ -748,10 +681,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_); } @@ -785,10 +717,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_); } @@ -813,8 +744,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.speech.v1p1beta1.SpeechAdaptation) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.speech.v1p1beta1.SpeechAdaptation) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -823,29 +753,21 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.util.List phraseSets_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensurePhraseSetsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - phraseSets_ = - new java.util.ArrayList(phraseSets_); + phraseSets_ = new java.util.ArrayList(phraseSets_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.PhraseSet, - com.google.cloud.speech.v1p1beta1.PhraseSet.Builder, - com.google.cloud.speech.v1p1beta1.PhraseSetOrBuilder> - phraseSetsBuilder_; + com.google.cloud.speech.v1p1beta1.PhraseSet, com.google.cloud.speech.v1p1beta1.PhraseSet.Builder, com.google.cloud.speech.v1p1beta1.PhraseSetOrBuilder> phraseSetsBuilder_; /** - * - * *
      * A collection of phrase sets. To specify the hints inline, leave the
      * phrase set's `name` blank and fill in the rest of its fields. Any
@@ -862,8 +784,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
@@ -880,8 +800,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
@@ -898,8 +816,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
@@ -908,7 +824,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();
@@ -922,8 +839,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
@@ -944,8 +859,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
@@ -968,8 +881,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
@@ -978,7 +889,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();
@@ -992,8 +904,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
@@ -1014,8 +924,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
@@ -1036,8 +944,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
@@ -1050,7 +956,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);
@@ -1058,8 +965,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
@@ -1079,8 +984,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
@@ -1100,8 +1003,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
@@ -1110,12 +1011,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
@@ -1124,16 +1024,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
@@ -1142,8 +1040,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 {
@@ -1151,8 +1049,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
@@ -1162,12 +1058,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
@@ -1176,13 +1070,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
@@ -1191,77 +1084,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. */ @@ -1269,95 +1146,80 @@ public java.lang.String getPhraseSetReferences(int index) { return phraseSetReferences_.get(index); } /** - * - * *
      * A collection of phrase set resource names to use.
      * 
* - * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } - * - * + * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } * @param index The index of the value to return. * @return The bytes of the phraseSetReferences at the given index. */ - public com.google.protobuf.ByteString getPhraseSetReferencesBytes(int index) { + public com.google.protobuf.ByteString + getPhraseSetReferencesBytes(int index) { return phraseSetReferences_.getByteString(index); } /** - * - * *
      * A collection of phrase set resource names to use.
      * 
* - * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } - * - * + * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } * @param index The index to set the value at. * @param value The phraseSetReferences to set. * @return This builder for chaining. */ - public Builder setPhraseSetReferences(int index, java.lang.String value) { + public Builder setPhraseSetReferences( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensurePhraseSetReferencesIsMutable(); + throw new NullPointerException(); + } + ensurePhraseSetReferencesIsMutable(); phraseSetReferences_.set(index, value); onChanged(); return this; } /** - * - * *
      * A collection of phrase set resource names to use.
      * 
* - * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } - * - * + * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } * @param value The phraseSetReferences to add. * @return This builder for chaining. */ - public Builder addPhraseSetReferences(java.lang.String value) { + public Builder addPhraseSetReferences( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensurePhraseSetReferencesIsMutable(); + throw new NullPointerException(); + } + ensurePhraseSetReferencesIsMutable(); phraseSetReferences_.add(value); onChanged(); return this; } /** - * - * *
      * A collection of phrase set resource names to use.
      * 
* - * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } - * - * + * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } * @param values The phraseSetReferences to add. * @return This builder for chaining. */ - public Builder addAllPhraseSetReferences(java.lang.Iterable values) { + public Builder addAllPhraseSetReferences( + java.lang.Iterable values) { ensurePhraseSetReferencesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, phraseSetReferences_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, phraseSetReferences_); onChanged(); return this; } /** - * - * *
      * A collection of phrase set resource names to use.
      * 
* - * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } - * - * + * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearPhraseSetReferences() { @@ -1367,23 +1229,20 @@ public Builder clearPhraseSetReferences() { return this; } /** - * - * *
      * A collection of phrase set resource names to use.
      * 
* - * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } - * - * + * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } * @param value The bytes of the phraseSetReferences to add. * @return This builder for chaining. */ - public Builder addPhraseSetReferencesBytes(com.google.protobuf.ByteString value) { + public Builder addPhraseSetReferencesBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensurePhraseSetReferencesIsMutable(); phraseSetReferences_.add(value); onChanged(); @@ -1391,25 +1250,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
@@ -1427,8 +1279,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
@@ -1446,8 +1296,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
@@ -1465,8 +1313,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
@@ -1491,8 +1337,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
@@ -1514,8 +1358,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
@@ -1539,8 +1381,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
@@ -1565,8 +1405,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
@@ -1588,8 +1426,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
@@ -1611,8 +1447,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
@@ -1626,7 +1460,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);
@@ -1634,8 +1469,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
@@ -1656,8 +1489,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
@@ -1678,8 +1509,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
@@ -1694,8 +1523,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
@@ -1708,14 +1535,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
@@ -1725,8 +1549,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 {
@@ -1734,8 +1558,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
@@ -1746,12 +1568,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
@@ -1763,12 +1583,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
@@ -1778,22 +1596,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(),
@@ -1802,9 +1614,9 @@ public com.google.cloud.speech.v1p1beta1.CustomClass.Builder addCustomClassesBui
       }
       return customClassesBuilder_;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1814,12 +1626,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();
   }
@@ -1828,16 +1640,16 @@ public static com.google.cloud.speech.v1p1beta1.SpeechAdaptation getDefaultInsta
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public SpeechAdaptation parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          return new SpeechAdaptation(input, extensionRegistry);
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public SpeechAdaptation parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      return new SpeechAdaptation(input, extensionRegistry);
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1852,4 +1664,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.speech.v1p1beta1.SpeechAdaptation getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptationOrBuilder.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptationOrBuilder.java
similarity index 80%
rename from proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptationOrBuilder.java
rename to owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptationOrBuilder.java
index b808e4167..64b0f0cb1 100644
--- a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptationOrBuilder.java
+++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptationOrBuilder.java
@@ -1,31 +1,13 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/speech/v1p1beta1/resource.proto
 
 package com.google.cloud.speech.v1p1beta1;
 
-public interface SpeechAdaptationOrBuilder
-    extends
+public interface SpeechAdaptationOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1p1beta1.SpeechAdaptation)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * A collection of phrase sets. To specify the hints inline, leave the
    * phrase set's `name` blank and fill in the rest of its fields. Any
@@ -34,10 +16,9 @@ public interface SpeechAdaptationOrBuilder
    *
    * repeated .google.cloud.speech.v1p1beta1.PhraseSet phrase_sets = 1;
    */
-  java.util.List getPhraseSetsList();
+  java.util.List 
+      getPhraseSetsList();
   /**
-   *
-   *
    * 
    * A collection of phrase sets. To specify the hints inline, leave the
    * phrase set's `name` blank and fill in the rest of its fields. Any
@@ -48,8 +29,6 @@ public interface SpeechAdaptationOrBuilder
    */
   com.google.cloud.speech.v1p1beta1.PhraseSet getPhraseSets(int index);
   /**
-   *
-   *
    * 
    * A collection of phrase sets. To specify the hints inline, leave the
    * phrase set's `name` blank and fill in the rest of its fields. Any
@@ -60,8 +39,6 @@ public interface SpeechAdaptationOrBuilder
    */
   int getPhraseSetsCount();
   /**
-   *
-   *
    * 
    * A collection of phrase sets. To specify the hints inline, leave the
    * phrase set's `name` blank and fill in the rest of its fields. Any
@@ -70,11 +47,9 @@ public interface SpeechAdaptationOrBuilder
    *
    * repeated .google.cloud.speech.v1p1beta1.PhraseSet phrase_sets = 1;
    */
-  java.util.List
+  java.util.List 
       getPhraseSetsOrBuilderList();
   /**
-   *
-   *
    * 
    * A collection of phrase sets. To specify the hints inline, leave the
    * phrase set's `name` blank and fill in the rest of its fields. Any
@@ -83,66 +58,51 @@ public interface SpeechAdaptationOrBuilder
    *
    * repeated .google.cloud.speech.v1p1beta1.PhraseSet phrase_sets = 1;
    */
-  com.google.cloud.speech.v1p1beta1.PhraseSetOrBuilder getPhraseSetsOrBuilder(int index);
+  com.google.cloud.speech.v1p1beta1.PhraseSetOrBuilder getPhraseSetsOrBuilder(
+      int index);
 
   /**
-   *
-   *
    * 
    * A collection of phrase set resource names to use.
    * 
* - * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } - * - * + * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } * @return A list containing the phraseSetReferences. */ - java.util.List getPhraseSetReferencesList(); + java.util.List + getPhraseSetReferencesList(); /** - * - * *
    * A collection of phrase set resource names to use.
    * 
* - * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } - * - * + * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } * @return The count of phraseSetReferences. */ int getPhraseSetReferencesCount(); /** - * - * *
    * A collection of phrase set resource names to use.
    * 
* - * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } - * - * + * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } * @param index The index of the element to return. * @return The phraseSetReferences at the given index. */ java.lang.String getPhraseSetReferences(int index); /** - * - * *
    * A collection of phrase set resource names to use.
    * 
* - * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } - * - * + * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } * @param index The index of the value to return. * @return The bytes of the phraseSetReferences at the given index. */ - com.google.protobuf.ByteString getPhraseSetReferencesBytes(int index); + com.google.protobuf.ByteString + getPhraseSetReferencesBytes(int index); /** - * - * *
    * A collection of custom classes. To specify the classes inline, leave the
    * class' `name` blank and fill in the rest of its fields, giving it a unique
@@ -152,10 +112,9 @@ public interface SpeechAdaptationOrBuilder
    *
    * repeated .google.cloud.speech.v1p1beta1.CustomClass custom_classes = 3;
    */
-  java.util.List getCustomClassesList();
+  java.util.List 
+      getCustomClassesList();
   /**
-   *
-   *
    * 
    * A collection of custom classes. To specify the classes inline, leave the
    * class' `name` blank and fill in the rest of its fields, giving it a unique
@@ -167,8 +126,6 @@ public interface SpeechAdaptationOrBuilder
    */
   com.google.cloud.speech.v1p1beta1.CustomClass getCustomClasses(int index);
   /**
-   *
-   *
    * 
    * A collection of custom classes. To specify the classes inline, leave the
    * class' `name` blank and fill in the rest of its fields, giving it a unique
@@ -180,8 +137,6 @@ public interface SpeechAdaptationOrBuilder
    */
   int getCustomClassesCount();
   /**
-   *
-   *
    * 
    * A collection of custom classes. To specify the classes inline, leave the
    * class' `name` blank and fill in the rest of its fields, giving it a unique
@@ -191,11 +146,9 @@ public interface SpeechAdaptationOrBuilder
    *
    * repeated .google.cloud.speech.v1p1beta1.CustomClass custom_classes = 3;
    */
-  java.util.List
+  java.util.List 
       getCustomClassesOrBuilderList();
   /**
-   *
-   *
    * 
    * A collection of custom classes. To specify the classes inline, leave the
    * class' `name` blank and fill in the rest of its fields, giving it a unique
@@ -205,5 +158,6 @@ public interface SpeechAdaptationOrBuilder
    *
    * repeated .google.cloud.speech.v1p1beta1.CustomClass custom_classes = 3;
    */
-  com.google.cloud.speech.v1p1beta1.CustomClassOrBuilder getCustomClassesOrBuilder(int index);
+  com.google.cloud.speech.v1p1beta1.CustomClassOrBuilder getCustomClassesOrBuilder(
+      int index);
 }
diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptationProto.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptationProto.java
new file mode 100644
index 000000000..0322b2c20
--- /dev/null
+++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptationProto.java
@@ -0,0 +1,292 @@
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: google/cloud/speech/v1p1beta1/cloud_speech_adaptation.proto
+
+package com.google.cloud.speech.v1p1beta1;
+
+public final class SpeechAdaptationProto {
+  private SpeechAdaptationProto() {}
+  public static void registerAllExtensions(
+      com.google.protobuf.ExtensionRegistryLite registry) {
+  }
+
+  public static void registerAllExtensions(
+      com.google.protobuf.ExtensionRegistry registry) {
+    registerAllExtensions(
+        (com.google.protobuf.ExtensionRegistryLite) registry);
+  }
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_speech_v1p1beta1_CreatePhraseSetRequest_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_speech_v1p1beta1_CreatePhraseSetRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_speech_v1p1beta1_UpdatePhraseSetRequest_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_speech_v1p1beta1_UpdatePhraseSetRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_speech_v1p1beta1_GetPhraseSetRequest_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_speech_v1p1beta1_GetPhraseSetRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_speech_v1p1beta1_ListPhraseSetRequest_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_speech_v1p1beta1_ListPhraseSetRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_speech_v1p1beta1_ListPhraseSetResponse_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_speech_v1p1beta1_ListPhraseSetResponse_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_speech_v1p1beta1_DeletePhraseSetRequest_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_speech_v1p1beta1_DeletePhraseSetRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_speech_v1p1beta1_CreateCustomClassRequest_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_speech_v1p1beta1_CreateCustomClassRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_speech_v1p1beta1_UpdateCustomClassRequest_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_speech_v1p1beta1_UpdateCustomClassRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_speech_v1p1beta1_GetCustomClassRequest_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_speech_v1p1beta1_GetCustomClassRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_speech_v1p1beta1_ListCustomClassesRequest_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_speech_v1p1beta1_ListCustomClassesRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_speech_v1p1beta1_ListCustomClassesResponse_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_speech_v1p1beta1_ListCustomClassesResponse_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_speech_v1p1beta1_DeleteCustomClassRequest_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_speech_v1p1beta1_DeleteCustomClassRequest_fieldAccessorTable;
+
+  public static com.google.protobuf.Descriptors.FileDescriptor
+      getDescriptor() {
+    return descriptor;
+  }
+  private static  com.google.protobuf.Descriptors.FileDescriptor
+      descriptor;
+  static {
+    java.lang.String[] descriptorData = {
+      "\n;google/cloud/speech/v1p1beta1/cloud_sp" +
+      "eech_adaptation.proto\022\035google.cloud.spee" +
+      "ch.v1p1beta1\032\034google/api/annotations.pro" +
+      "to\032\027google/api/client.proto\032\037google/api/" +
+      "field_behavior.proto\032\031google/api/resourc" +
+      "e.proto\032,google/cloud/speech/v1p1beta1/r" +
+      "esource.proto\032\033google/protobuf/empty.pro" +
+      "to\032 google/protobuf/field_mask.proto\"\260\001\n" +
+      "\026CreatePhraseSetRequest\0227\n\006parent\030\001 \001(\tB" +
+      "\'\340A\002\372A!\022\037speech.googleapis.com/PhraseSet" +
+      "\022\032\n\rphrase_set_id\030\002 \001(\tB\003\340A\002\022A\n\nphrase_s" +
+      "et\030\003 \001(\0132(.google.cloud.speech.v1p1beta1" +
+      ".PhraseSetB\003\340A\002\"\214\001\n\026UpdatePhraseSetReque" +
+      "st\022A\n\nphrase_set\030\001 \001(\0132(.google.cloud.sp" +
+      "eech.v1p1beta1.PhraseSetB\003\340A\002\022/\n\013update_" +
+      "mask\030\002 \001(\0132\032.google.protobuf.FieldMask\"L" +
+      "\n\023GetPhraseSetRequest\0225\n\004name\030\001 \001(\tB\'\340A\002" +
+      "\372A!\n\037speech.googleapis.com/PhraseSet\"v\n\024" +
+      "ListPhraseSetRequest\0227\n\006parent\030\001 \001(\tB\'\340A" +
+      "\002\372A!\022\037speech.googleapis.com/PhraseSet\022\021\n" +
+      "\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"o\n\025" +
+      "ListPhraseSetResponse\022=\n\013phrase_sets\030\001 \003" +
+      "(\0132(.google.cloud.speech.v1p1beta1.Phras" +
+      "eSet\022\027\n\017next_page_token\030\002 \001(\t\"O\n\026DeleteP" +
+      "hraseSetRequest\0225\n\004name\030\001 \001(\tB\'\340A\002\372A!\n\037s" +
+      "peech.googleapis.com/PhraseSet\"\272\001\n\030Creat" +
+      "eCustomClassRequest\0229\n\006parent\030\001 \001(\tB)\340A\002" +
+      "\372A#\022!speech.googleapis.com/CustomClass\022\034" +
+      "\n\017custom_class_id\030\002 \001(\tB\003\340A\002\022E\n\014custom_c" +
+      "lass\030\003 \001(\0132*.google.cloud.speech.v1p1bet" +
+      "a1.CustomClassB\003\340A\002\"\222\001\n\030UpdateCustomClas" +
+      "sRequest\022E\n\014custom_class\030\001 \001(\0132*.google." +
+      "cloud.speech.v1p1beta1.CustomClassB\003\340A\002\022" +
+      "/\n\013update_mask\030\002 \001(\0132\032.google.protobuf.F" +
+      "ieldMask\"P\n\025GetCustomClassRequest\0227\n\004nam" +
+      "e\030\001 \001(\tB)\340A\002\372A#\n!speech.googleapis.com/C" +
+      "ustomClass\"|\n\030ListCustomClassesRequest\0229" +
+      "\n\006parent\030\001 \001(\tB)\340A\002\372A#\022!speech.googleapi" +
+      "s.com/CustomClass\022\021\n\tpage_size\030\002 \001(\005\022\022\n\n" +
+      "page_token\030\003 \001(\t\"x\n\031ListCustomClassesRes" +
+      "ponse\022B\n\016custom_classes\030\001 \003(\0132*.google.c" +
+      "loud.speech.v1p1beta1.CustomClass\022\027\n\017nex" +
+      "t_page_token\030\002 \001(\t\"S\n\030DeleteCustomClassR" +
+      "equest\0227\n\004name\030\001 \001(\tB)\340A\002\372A#\n!speech.goo" +
+      "gleapis.com/CustomClass2\322\020\n\nAdaptation\022\326" +
+      "\001\n\017CreatePhraseSet\0225.google.cloud.speech" +
+      ".v1p1beta1.CreatePhraseSetRequest\032(.goog" +
+      "le.cloud.speech.v1p1beta1.PhraseSet\"b\202\323\344" +
+      "\223\002:\"5/v1p1beta1/{parent=projects/*/locat" +
+      "ions/*}/phraseSets:\001*\332A\037parent,phrase_se" +
+      "t,phrase_set_id\022\262\001\n\014GetPhraseSet\0222.googl" +
+      "e.cloud.speech.v1p1beta1.GetPhraseSetReq" +
+      "uest\032(.google.cloud.speech.v1p1beta1.Phr" +
+      "aseSet\"D\202\323\344\223\0027\0225/v1p1beta1/{name=project" +
+      "s/*/locations/*/phraseSets/*}\332A\004name\022\302\001\n" +
+      "\rListPhraseSet\0223.google.cloud.speech.v1p" +
+      "1beta1.ListPhraseSetRequest\0324.google.clo" +
+      "ud.speech.v1p1beta1.ListPhraseSetRespons" +
+      "e\"F\202\323\344\223\0027\0225/v1p1beta1/{parent=projects/*" +
+      "/locations/*}/phraseSets\332A\006parent\022\341\001\n\017Up" +
+      "datePhraseSet\0225.google.cloud.speech.v1p1" +
+      "beta1.UpdatePhraseSetRequest\032(.google.cl" +
+      "oud.speech.v1p1beta1.PhraseSet\"m\202\323\344\223\002N2@" +
+      "/v1p1beta1/{phrase_set.name=projects/*/l" +
+      "ocations/*/phraseSets/*}:\nphrase_set\332A\026p" +
+      "hrase_set,update_mask\022\246\001\n\017DeletePhraseSe" +
+      "t\0225.google.cloud.speech.v1p1beta1.Delete" +
+      "PhraseSetRequest\032\026.google.protobuf.Empty" +
+      "\"D\202\323\344\223\0027*5/v1p1beta1/{name=projects/*/lo" +
+      "cations/*/phraseSets/*}\332A\004name\022\343\001\n\021Creat" +
+      "eCustomClass\0227.google.cloud.speech.v1p1b" +
+      "eta1.CreateCustomClassRequest\032*.google.c" +
+      "loud.speech.v1p1beta1.CustomClass\"i\202\323\344\223\002" +
+      "=\"8/v1p1beta1/{parent=projects/*/locatio" +
+      "ns/*}/customClasses:\001*\332A#parent,custom_c" +
+      "lass,custom_class_id\022\273\001\n\016GetCustomClass\022" +
+      "4.google.cloud.speech.v1p1beta1.GetCusto" +
+      "mClassRequest\032*.google.cloud.speech.v1p1" +
+      "beta1.CustomClass\"G\202\323\344\223\002:\0228/v1p1beta1/{n" +
+      "ame=projects/*/locations/*/customClasses" +
+      "/*}\332A\004name\022\321\001\n\021ListCustomClasses\0227.googl" +
+      "e.cloud.speech.v1p1beta1.ListCustomClass" +
+      "esRequest\0328.google.cloud.speech.v1p1beta" +
+      "1.ListCustomClassesResponse\"I\202\323\344\223\002:\0228/v1" +
+      "p1beta1/{parent=projects/*/locations/*}/" +
+      "customClasses\332A\006parent\022\360\001\n\021UpdateCustomC" +
+      "lass\0227.google.cloud.speech.v1p1beta1.Upd" +
+      "ateCustomClassRequest\032*.google.cloud.spe" +
+      "ech.v1p1beta1.CustomClass\"v\202\323\344\223\002U2E/v1p1" +
+      "beta1/{custom_class.name=projects/*/loca" +
+      "tions/*/customClasses/*}:\014custom_class\332A" +
+      "\030custom_class,update_mask\022\255\001\n\021DeleteCust" +
+      "omClass\0227.google.cloud.speech.v1p1beta1." +
+      "DeleteCustomClassRequest\032\026.google.protob" +
+      "uf.Empty\"G\202\323\344\223\002:*8/v1p1beta1/{name=proje" +
+      "cts/*/locations/*/customClasses/*}\332A\004nam" +
+      "e\032I\312A\025speech.googleapis.com\322A.https://ww" +
+      "w.googleapis.com/auth/cloud-platformB\212\001\n" +
+      "!com.google.cloud.speech.v1p1beta1B\025Spee" +
+      "chAdaptationProtoP\001ZCgoogle.golang.org/g" +
+      "enproto/googleapis/cloud/speech/v1p1beta" +
+      "1;speech\370\001\001\242\002\003GCSb\006proto3"
+    };
+    descriptor = com.google.protobuf.Descriptors.FileDescriptor
+      .internalBuildGeneratedFileFrom(descriptorData,
+        new com.google.protobuf.Descriptors.FileDescriptor[] {
+          com.google.api.AnnotationsProto.getDescriptor(),
+          com.google.api.ClientProto.getDescriptor(),
+          com.google.api.FieldBehaviorProto.getDescriptor(),
+          com.google.api.ResourceProto.getDescriptor(),
+          com.google.cloud.speech.v1p1beta1.SpeechResourceProto.getDescriptor(),
+          com.google.protobuf.EmptyProto.getDescriptor(),
+          com.google.protobuf.FieldMaskProto.getDescriptor(),
+        });
+    internal_static_google_cloud_speech_v1p1beta1_CreatePhraseSetRequest_descriptor =
+      getDescriptor().getMessageTypes().get(0);
+    internal_static_google_cloud_speech_v1p1beta1_CreatePhraseSetRequest_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_speech_v1p1beta1_CreatePhraseSetRequest_descriptor,
+        new java.lang.String[] { "Parent", "PhraseSetId", "PhraseSet", });
+    internal_static_google_cloud_speech_v1p1beta1_UpdatePhraseSetRequest_descriptor =
+      getDescriptor().getMessageTypes().get(1);
+    internal_static_google_cloud_speech_v1p1beta1_UpdatePhraseSetRequest_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_speech_v1p1beta1_UpdatePhraseSetRequest_descriptor,
+        new java.lang.String[] { "PhraseSet", "UpdateMask", });
+    internal_static_google_cloud_speech_v1p1beta1_GetPhraseSetRequest_descriptor =
+      getDescriptor().getMessageTypes().get(2);
+    internal_static_google_cloud_speech_v1p1beta1_GetPhraseSetRequest_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_speech_v1p1beta1_GetPhraseSetRequest_descriptor,
+        new java.lang.String[] { "Name", });
+    internal_static_google_cloud_speech_v1p1beta1_ListPhraseSetRequest_descriptor =
+      getDescriptor().getMessageTypes().get(3);
+    internal_static_google_cloud_speech_v1p1beta1_ListPhraseSetRequest_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_speech_v1p1beta1_ListPhraseSetRequest_descriptor,
+        new java.lang.String[] { "Parent", "PageSize", "PageToken", });
+    internal_static_google_cloud_speech_v1p1beta1_ListPhraseSetResponse_descriptor =
+      getDescriptor().getMessageTypes().get(4);
+    internal_static_google_cloud_speech_v1p1beta1_ListPhraseSetResponse_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_speech_v1p1beta1_ListPhraseSetResponse_descriptor,
+        new java.lang.String[] { "PhraseSets", "NextPageToken", });
+    internal_static_google_cloud_speech_v1p1beta1_DeletePhraseSetRequest_descriptor =
+      getDescriptor().getMessageTypes().get(5);
+    internal_static_google_cloud_speech_v1p1beta1_DeletePhraseSetRequest_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_speech_v1p1beta1_DeletePhraseSetRequest_descriptor,
+        new java.lang.String[] { "Name", });
+    internal_static_google_cloud_speech_v1p1beta1_CreateCustomClassRequest_descriptor =
+      getDescriptor().getMessageTypes().get(6);
+    internal_static_google_cloud_speech_v1p1beta1_CreateCustomClassRequest_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_speech_v1p1beta1_CreateCustomClassRequest_descriptor,
+        new java.lang.String[] { "Parent", "CustomClassId", "CustomClass", });
+    internal_static_google_cloud_speech_v1p1beta1_UpdateCustomClassRequest_descriptor =
+      getDescriptor().getMessageTypes().get(7);
+    internal_static_google_cloud_speech_v1p1beta1_UpdateCustomClassRequest_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_speech_v1p1beta1_UpdateCustomClassRequest_descriptor,
+        new java.lang.String[] { "CustomClass", "UpdateMask", });
+    internal_static_google_cloud_speech_v1p1beta1_GetCustomClassRequest_descriptor =
+      getDescriptor().getMessageTypes().get(8);
+    internal_static_google_cloud_speech_v1p1beta1_GetCustomClassRequest_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_speech_v1p1beta1_GetCustomClassRequest_descriptor,
+        new java.lang.String[] { "Name", });
+    internal_static_google_cloud_speech_v1p1beta1_ListCustomClassesRequest_descriptor =
+      getDescriptor().getMessageTypes().get(9);
+    internal_static_google_cloud_speech_v1p1beta1_ListCustomClassesRequest_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_speech_v1p1beta1_ListCustomClassesRequest_descriptor,
+        new java.lang.String[] { "Parent", "PageSize", "PageToken", });
+    internal_static_google_cloud_speech_v1p1beta1_ListCustomClassesResponse_descriptor =
+      getDescriptor().getMessageTypes().get(10);
+    internal_static_google_cloud_speech_v1p1beta1_ListCustomClassesResponse_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_speech_v1p1beta1_ListCustomClassesResponse_descriptor,
+        new java.lang.String[] { "CustomClasses", "NextPageToken", });
+    internal_static_google_cloud_speech_v1p1beta1_DeleteCustomClassRequest_descriptor =
+      getDescriptor().getMessageTypes().get(11);
+    internal_static_google_cloud_speech_v1p1beta1_DeleteCustomClassRequest_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_speech_v1p1beta1_DeleteCustomClassRequest_descriptor,
+        new java.lang.String[] { "Name", });
+    com.google.protobuf.ExtensionRegistry registry =
+        com.google.protobuf.ExtensionRegistry.newInstance();
+    registry.add(com.google.api.ClientProto.defaultHost);
+    registry.add(com.google.api.FieldBehaviorProto.fieldBehavior);
+    registry.add(com.google.api.AnnotationsProto.http);
+    registry.add(com.google.api.ClientProto.methodSignature);
+    registry.add(com.google.api.ClientProto.oauthScopes);
+    registry.add(com.google.api.ResourceProto.resourceReference);
+    com.google.protobuf.Descriptors.FileDescriptor
+        .internalUpdateFileDescriptor(descriptor, registry);
+    com.google.api.AnnotationsProto.getDescriptor();
+    com.google.api.ClientProto.getDescriptor();
+    com.google.api.FieldBehaviorProto.getDescriptor();
+    com.google.api.ResourceProto.getDescriptor();
+    com.google.cloud.speech.v1p1beta1.SpeechResourceProto.getDescriptor();
+    com.google.protobuf.EmptyProto.getDescriptor();
+    com.google.protobuf.FieldMaskProto.getDescriptor();
+  }
+
+  // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechContext.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechContext.java
similarity index 80%
rename from proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechContext.java
rename to owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechContext.java
index c420a3366..1ffccd1f7 100644
--- a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechContext.java
+++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechContext.java
@@ -1,26 +1,9 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/speech/v1p1beta1/cloud_speech.proto
 
 package com.google.cloud.speech.v1p1beta1;
 
 /**
- *
- *
  * 
  * Provides "hints" to the speech recognizer to favor specific words and phrases
  * in the results.
@@ -28,31 +11,31 @@
  *
  * Protobuf type {@code google.cloud.speech.v1p1beta1.SpeechContext}
  */
-public final class SpeechContext extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class SpeechContext extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.speech.v1p1beta1.SpeechContext)
     SpeechContextOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use SpeechContext.newBuilder() to construct.
   private SpeechContext(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private SpeechContext() {
     phrases_ = com.google.protobuf.LazyStringArrayList.EMPTY;
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new SpeechContext();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private SpeechContext(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -72,34 +55,34 @@ private SpeechContext(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
-              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                phrases_ = new com.google.protobuf.LazyStringArrayList();
-                mutable_bitField0_ |= 0x00000001;
-              }
-              phrases_.add(s);
-              break;
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
+            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+              phrases_ = new com.google.protobuf.LazyStringArrayList();
+              mutable_bitField0_ |= 0x00000001;
             }
-          case 37:
-            {
-              boost_ = input.readFloat();
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            phrases_.add(s);
+            break;
+          }
+          case 37: {
+
+            boost_ = input.readFloat();
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         phrases_ = phrases_.getUnmodifiableView();
@@ -108,27 +91,22 @@ private SpeechContext(
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.speech.v1p1beta1.SpeechProto
-        .internal_static_google_cloud_speech_v1p1beta1_SpeechContext_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_SpeechContext_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v1p1beta1.SpeechProto
-        .internal_static_google_cloud_speech_v1p1beta1_SpeechContext_fieldAccessorTable
+    return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_SpeechContext_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v1p1beta1.SpeechContext.class,
-            com.google.cloud.speech.v1p1beta1.SpeechContext.Builder.class);
+            com.google.cloud.speech.v1p1beta1.SpeechContext.class, com.google.cloud.speech.v1p1beta1.SpeechContext.Builder.class);
   }
 
   public static final int PHRASES_FIELD_NUMBER = 1;
   private com.google.protobuf.LazyStringList phrases_;
   /**
-   *
-   *
    * 
    * A list of strings containing words and phrases "hints" so that
    * the speech recognition is more likely to recognize them. This can be used
@@ -144,15 +122,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
@@ -168,15 +144,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
@@ -192,7 +165,6 @@ public int getPhrasesCount() {
    * 
* * repeated string phrases = 1; - * * @param index The index of the element to return. * @return The phrases at the given index. */ @@ -200,8 +172,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
@@ -217,19 +187,17 @@ public java.lang.String getPhrases(int index) {
    * 
* * repeated string phrases = 1; - * * @param index The index of the value to return. * @return The bytes of the phrases at the given index. */ - public com.google.protobuf.ByteString getPhrasesBytes(int index) { + public com.google.protobuf.ByteString + getPhrasesBytes(int index) { return phrases_.getByteString(index); } public static final int BOOST_FIELD_NUMBER = 4; private float boost_; /** - * - * *
    * Hint Boost. Positive value will increase the probability that a specific
    * phrase will be recognized over other similar sounding phrases. The higher
@@ -242,7 +210,6 @@ public com.google.protobuf.ByteString getPhrasesBytes(int index) {
    * 
* * float boost = 4; - * * @return The boost. */ @java.lang.Override @@ -251,7 +218,6 @@ public float getBoost() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -263,7 +229,8 @@ public final boolean isInitialized() { } @java.lang.Override - 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)); } @@ -288,7 +255,8 @@ public int getSerializedSize() { size += 1 * getPhrasesList().size(); } if (boost_ != 0F) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(4, boost_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(4, boost_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -298,17 +266,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1p1beta1.SpeechContext)) { return super.equals(obj); } - com.google.cloud.speech.v1p1beta1.SpeechContext other = - (com.google.cloud.speech.v1p1beta1.SpeechContext) obj; + com.google.cloud.speech.v1p1beta1.SpeechContext other = (com.google.cloud.speech.v1p1beta1.SpeechContext) obj; - if (!getPhrasesList().equals(other.getPhrasesList())) return false; + if (!getPhrasesList() + .equals(other.getPhrasesList())) return false; if (java.lang.Float.floatToIntBits(getBoost()) - != java.lang.Float.floatToIntBits(other.getBoost())) return false; + != java.lang.Float.floatToIntBits( + other.getBoost())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -325,110 +294,104 @@ public int hashCode() { hash = (53 * hash) + getPhrasesList().hashCode(); } hash = (37 * hash) + BOOST_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getBoost()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getBoost()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.speech.v1p1beta1.SpeechContext parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.speech.v1p1beta1.SpeechContext parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1p1beta1.SpeechContext parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.SpeechContext parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1p1beta1.SpeechContext parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.SpeechContext parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1p1beta1.SpeechContext parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.SpeechContext parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1p1beta1.SpeechContext parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.speech.v1p1beta1.SpeechContext parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.speech.v1p1beta1.SpeechContext parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1p1beta1.SpeechContext parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.SpeechContext parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1p1beta1.SpeechContext parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.speech.v1p1beta1.SpeechContext prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Provides "hints" to the speech recognizer to favor specific words and phrases
    * in the results.
@@ -436,23 +399,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.speech.v1p1beta1.SpeechContext}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1p1beta1.SpeechContext)
       com.google.cloud.speech.v1p1beta1.SpeechContextOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.speech.v1p1beta1.SpeechProto
-          .internal_static_google_cloud_speech_v1p1beta1_SpeechContext_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_SpeechContext_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v1p1beta1.SpeechProto
-          .internal_static_google_cloud_speech_v1p1beta1_SpeechContext_fieldAccessorTable
+      return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_SpeechContext_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v1p1beta1.SpeechContext.class,
-              com.google.cloud.speech.v1p1beta1.SpeechContext.Builder.class);
+              com.google.cloud.speech.v1p1beta1.SpeechContext.class, com.google.cloud.speech.v1p1beta1.SpeechContext.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v1p1beta1.SpeechContext.newBuilder()
@@ -460,15 +421,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -480,9 +442,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
@@ -501,8 +463,7 @@ public com.google.cloud.speech.v1p1beta1.SpeechContext build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v1p1beta1.SpeechContext buildPartial() {
-      com.google.cloud.speech.v1p1beta1.SpeechContext result =
-          new com.google.cloud.speech.v1p1beta1.SpeechContext(this);
+      com.google.cloud.speech.v1p1beta1.SpeechContext result = new com.google.cloud.speech.v1p1beta1.SpeechContext(this);
       int from_bitField0_ = bitField0_;
       if (((bitField0_ & 0x00000001) != 0)) {
         phrases_ = phrases_.getUnmodifiableView();
@@ -518,39 +479,38 @@ public com.google.cloud.speech.v1p1beta1.SpeechContext buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.speech.v1p1beta1.SpeechContext) {
-        return mergeFrom((com.google.cloud.speech.v1p1beta1.SpeechContext) other);
+        return mergeFrom((com.google.cloud.speech.v1p1beta1.SpeechContext)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -558,8 +518,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_;
@@ -601,21 +560,16 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int bitField0_;
 
-    private com.google.protobuf.LazyStringList phrases_ =
-        com.google.protobuf.LazyStringArrayList.EMPTY;
-
+    private com.google.protobuf.LazyStringList phrases_ = com.google.protobuf.LazyStringArrayList.EMPTY;
     private void ensurePhrasesIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
         phrases_ = new com.google.protobuf.LazyStringArrayList(phrases_);
         bitField0_ |= 0x00000001;
-      }
+       }
     }
     /**
-     *
-     *
      * 
      * A list of strings containing words and phrases "hints" so that
      * the speech recognition is more likely to recognize them. This can be used
@@ -631,15 +585,13 @@ private void ensurePhrasesIsMutable() {
      * 
* * repeated string phrases = 1; - * * @return A list containing the phrases. */ - public com.google.protobuf.ProtocolStringList getPhrasesList() { + public com.google.protobuf.ProtocolStringList + getPhrasesList() { return phrases_.getUnmodifiableView(); } /** - * - * *
      * A list of strings containing words and phrases "hints" so that
      * the speech recognition is more likely to recognize them. This can be used
@@ -655,15 +607,12 @@ public com.google.protobuf.ProtocolStringList getPhrasesList() {
      * 
* * repeated string phrases = 1; - * * @return The count of phrases. */ public int getPhrasesCount() { return phrases_.size(); } /** - * - * *
      * A list of strings containing words and phrases "hints" so that
      * the speech recognition is more likely to recognize them. This can be used
@@ -679,7 +628,6 @@ public int getPhrasesCount() {
      * 
* * repeated string phrases = 1; - * * @param index The index of the element to return. * @return The phrases at the given index. */ @@ -687,8 +635,6 @@ public java.lang.String getPhrases(int index) { return phrases_.get(index); } /** - * - * *
      * A list of strings containing words and phrases "hints" so that
      * the speech recognition is more likely to recognize them. This can be used
@@ -704,16 +650,14 @@ public java.lang.String getPhrases(int index) {
      * 
* * repeated string phrases = 1; - * * @param index The index of the value to return. * @return The bytes of the phrases at the given index. */ - public com.google.protobuf.ByteString getPhrasesBytes(int index) { + public com.google.protobuf.ByteString + getPhrasesBytes(int index) { return phrases_.getByteString(index); } /** - * - * *
      * A list of strings containing words and phrases "hints" so that
      * the speech recognition is more likely to recognize them. This can be used
@@ -729,23 +673,21 @@ public com.google.protobuf.ByteString getPhrasesBytes(int index) {
      * 
* * repeated string phrases = 1; - * * @param index The index to set the value at. * @param value The phrases to set. * @return This builder for chaining. */ - public Builder setPhrases(int index, java.lang.String value) { + public Builder setPhrases( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensurePhrasesIsMutable(); + throw new NullPointerException(); + } + ensurePhrasesIsMutable(); phrases_.set(index, value); onChanged(); return this; } /** - * - * *
      * A list of strings containing words and phrases "hints" so that
      * the speech recognition is more likely to recognize them. This can be used
@@ -761,22 +703,20 @@ public Builder setPhrases(int index, java.lang.String value) {
      * 
* * repeated string phrases = 1; - * * @param value The phrases to add. * @return This builder for chaining. */ - public Builder addPhrases(java.lang.String value) { + public Builder addPhrases( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensurePhrasesIsMutable(); + throw new NullPointerException(); + } + ensurePhrasesIsMutable(); phrases_.add(value); onChanged(); return this; } /** - * - * *
      * A list of strings containing words and phrases "hints" so that
      * the speech recognition is more likely to recognize them. This can be used
@@ -792,19 +732,18 @@ public Builder addPhrases(java.lang.String value) {
      * 
* * repeated string phrases = 1; - * * @param values The phrases to add. * @return This builder for chaining. */ - public Builder addAllPhrases(java.lang.Iterable values) { + public Builder addAllPhrases( + java.lang.Iterable values) { ensurePhrasesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, phrases_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, phrases_); onChanged(); return this; } /** - * - * *
      * A list of strings containing words and phrases "hints" so that
      * the speech recognition is more likely to recognize them. This can be used
@@ -820,7 +759,6 @@ public Builder addAllPhrases(java.lang.Iterable values) {
      * 
* * repeated string phrases = 1; - * * @return This builder for chaining. */ public Builder clearPhrases() { @@ -830,8 +768,6 @@ public Builder clearPhrases() { return this; } /** - * - * *
      * A list of strings containing words and phrases "hints" so that
      * the speech recognition is more likely to recognize them. This can be used
@@ -847,25 +783,23 @@ public Builder clearPhrases() {
      * 
* * repeated string phrases = 1; - * * @param value The bytes of the phrases to add. * @return This builder for chaining. */ - public Builder addPhrasesBytes(com.google.protobuf.ByteString value) { + public Builder addPhrasesBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensurePhrasesIsMutable(); phrases_.add(value); onChanged(); return this; } - private float boost_; + private float boost_ ; /** - * - * *
      * Hint Boost. Positive value will increase the probability that a specific
      * phrase will be recognized over other similar sounding phrases. The higher
@@ -878,7 +812,6 @@ public Builder addPhrasesBytes(com.google.protobuf.ByteString value) {
      * 
* * float boost = 4; - * * @return The boost. */ @java.lang.Override @@ -886,8 +819,6 @@ public float getBoost() { return boost_; } /** - * - * *
      * Hint Boost. Positive value will increase the probability that a specific
      * phrase will be recognized over other similar sounding phrases. The higher
@@ -900,19 +831,16 @@ public float getBoost() {
      * 
* * float boost = 4; - * * @param value The boost to set. * @return This builder for chaining. */ public Builder setBoost(float value) { - + boost_ = value; onChanged(); return this; } /** - * - * *
      * Hint Boost. Positive value will increase the probability that a specific
      * phrase will be recognized over other similar sounding phrases. The higher
@@ -925,18 +853,17 @@ public Builder setBoost(float value) {
      * 
* * float boost = 4; - * * @return This builder for chaining. */ public Builder clearBoost() { - + boost_ = 0F; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -946,12 +873,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(); } @@ -960,16 +887,16 @@ public static com.google.cloud.speech.v1p1beta1.SpeechContext getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SpeechContext parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SpeechContext(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SpeechContext parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SpeechContext(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -984,4 +911,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.SpeechContext getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechContextOrBuilder.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechContextOrBuilder.java similarity index 85% rename from proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechContextOrBuilder.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechContextOrBuilder.java index 9c1e1ba58..1daae97d3 100644 --- a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechContextOrBuilder.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechContextOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech.proto package com.google.cloud.speech.v1p1beta1; -public interface SpeechContextOrBuilder - extends +public interface SpeechContextOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1p1beta1.SpeechContext) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * A list of strings containing words and phrases "hints" so that
    * the speech recognition is more likely to recognize them. This can be used
@@ -41,13 +23,11 @@ public interface SpeechContextOrBuilder
    * 
* * repeated string phrases = 1; - * * @return A list containing the phrases. */ - java.util.List getPhrasesList(); + java.util.List + getPhrasesList(); /** - * - * *
    * A list of strings containing words and phrases "hints" so that
    * the speech recognition is more likely to recognize them. This can be used
@@ -63,13 +43,10 @@ public interface SpeechContextOrBuilder
    * 
* * repeated string phrases = 1; - * * @return The count of phrases. */ int getPhrasesCount(); /** - * - * *
    * A list of strings containing words and phrases "hints" so that
    * the speech recognition is more likely to recognize them. This can be used
@@ -85,14 +62,11 @@ public interface SpeechContextOrBuilder
    * 
* * repeated string phrases = 1; - * * @param index The index of the element to return. * @return The phrases at the given index. */ java.lang.String getPhrases(int index); /** - * - * *
    * A list of strings containing words and phrases "hints" so that
    * the speech recognition is more likely to recognize them. This can be used
@@ -108,15 +82,13 @@ public interface SpeechContextOrBuilder
    * 
* * repeated string phrases = 1; - * * @param index The index of the value to return. * @return The bytes of the phrases at the given index. */ - com.google.protobuf.ByteString getPhrasesBytes(int index); + com.google.protobuf.ByteString + getPhrasesBytes(int index); /** - * - * *
    * Hint Boost. Positive value will increase the probability that a specific
    * phrase will be recognized over other similar sounding phrases. The higher
@@ -129,7 +101,6 @@ public interface SpeechContextOrBuilder
    * 
* * float boost = 4; - * * @return The boost. */ float getBoost(); diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechProto.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechProto.java new file mode 100644 index 000000000..fa6b61566 --- /dev/null +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechProto.java @@ -0,0 +1,422 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/speech/v1p1beta1/cloud_speech.proto + +package com.google.cloud.speech.v1p1beta1; + +public final class SpeechProto { + private SpeechProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1p1beta1_RecognizeRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1p1beta1_RecognizeRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1p1beta1_TranscriptOutputConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1p1beta1_TranscriptOutputConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1p1beta1_StreamingRecognizeRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1p1beta1_StreamingRecognizeRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1p1beta1_StreamingRecognitionConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1p1beta1_StreamingRecognitionConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1p1beta1_RecognitionConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1p1beta1_RecognitionConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1p1beta1_SpeakerDiarizationConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1p1beta1_SpeakerDiarizationConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1p1beta1_RecognitionMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1p1beta1_RecognitionMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1p1beta1_SpeechContext_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1p1beta1_SpeechContext_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1p1beta1_RecognitionAudio_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1p1beta1_RecognitionAudio_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1p1beta1_RecognizeResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1p1beta1_RecognizeResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1p1beta1_StreamingRecognizeResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1p1beta1_StreamingRecognizeResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1p1beta1_StreamingRecognitionResult_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1p1beta1_StreamingRecognitionResult_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1p1beta1_SpeechRecognitionResult_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1p1beta1_SpeechRecognitionResult_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1p1beta1_SpeechRecognitionAlternative_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1p1beta1_SpeechRecognitionAlternative_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1p1beta1_WordInfo_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1p1beta1_WordInfo_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n0google/cloud/speech/v1p1beta1/cloud_sp" + + "eech.proto\022\035google.cloud.speech.v1p1beta" + + "1\032\034google/api/annotations.proto\032\027google/" + + "api/client.proto\032\037google/api/field_behav" + + "ior.proto\032,google/cloud/speech/v1p1beta1" + + "/resource.proto\032#google/longrunning/oper" + + "ations.proto\032\031google/protobuf/any.proto\032" + + "\036google/protobuf/duration.proto\032\037google/" + + "protobuf/timestamp.proto\032\036google/protobu" + + "f/wrappers.proto\032\027google/rpc/status.prot" + + "o\"\236\001\n\020RecognizeRequest\022E\n\006config\030\001 \001(\01320" + + ".google.cloud.speech.v1p1beta1.Recogniti" + + "onConfigB\003\340A\002\022C\n\005audio\030\002 \001(\0132/.google.cl" + + "oud.speech.v1p1beta1.RecognitionAudioB\003\340" + + "A\002\"\374\001\n\033LongRunningRecognizeRequest\022E\n\006co" + + "nfig\030\001 \001(\01320.google.cloud.speech.v1p1bet" + + "a1.RecognitionConfigB\003\340A\002\022C\n\005audio\030\002 \001(\013" + + "2/.google.cloud.speech.v1p1beta1.Recogni" + + "tionAudioB\003\340A\002\022Q\n\routput_config\030\004 \001(\01325." + + "google.cloud.speech.v1p1beta1.Transcript" + + "OutputConfigB\003\340A\001\":\n\026TranscriptOutputCon" + + "fig\022\021\n\007gcs_uri\030\001 \001(\tH\000B\r\n\013output_type\"\240\001" + + "\n\031StreamingRecognizeRequest\022U\n\020streaming" + + "_config\030\001 \001(\01329.google.cloud.speech.v1p1" + + "beta1.StreamingRecognitionConfigH\000\022\027\n\rau" + + "dio_content\030\002 \001(\014H\000B\023\n\021streaming_request" + + "\"\226\001\n\032StreamingRecognitionConfig\022E\n\006confi" + + "g\030\001 \001(\01320.google.cloud.speech.v1p1beta1." + + "RecognitionConfigB\003\340A\002\022\030\n\020single_utteran" + + "ce\030\002 \001(\010\022\027\n\017interim_results\030\003 \001(\010\"\276\t\n\021Re" + + "cognitionConfig\022P\n\010encoding\030\001 \001(\0162>.goog" + + "le.cloud.speech.v1p1beta1.RecognitionCon" + + "fig.AudioEncoding\022\031\n\021sample_rate_hertz\030\002" + + " \001(\005\022\033\n\023audio_channel_count\030\007 \001(\005\022/\n\'ena" + + "ble_separate_recognition_per_channel\030\014 \001" + + "(\010\022\032\n\rlanguage_code\030\003 \001(\tB\003\340A\002\022\"\n\032altern" + + "ative_language_codes\030\022 \003(\t\022\030\n\020max_altern" + + "atives\030\004 \001(\005\022\030\n\020profanity_filter\030\005 \001(\010\022C" + + "\n\nadaptation\030\024 \001(\0132/.google.cloud.speech" + + ".v1p1beta1.SpeechAdaptation\022X\n\030transcrip" + + "t_normalization\030\030 \001(\01326.google.cloud.spe" + + "ech.v1p1beta1.TranscriptNormalization\022E\n" + + "\017speech_contexts\030\006 \003(\0132,.google.cloud.sp" + + "eech.v1p1beta1.SpeechContext\022 \n\030enable_w" + + "ord_time_offsets\030\010 \001(\010\022\036\n\026enable_word_co" + + "nfidence\030\017 \001(\010\022$\n\034enable_automatic_punct" + + "uation\030\013 \001(\010\022=\n\031enable_spoken_punctuatio" + + "n\030\026 \001(\0132\032.google.protobuf.BoolValue\0228\n\024e" + + "nable_spoken_emojis\030\027 \001(\0132\032.google.proto" + + "buf.BoolValue\022&\n\032enable_speaker_diarizat" + + "ion\030\020 \001(\010B\002\030\001\022%\n\031diarization_speaker_cou" + + "nt\030\021 \001(\005B\002\030\001\022S\n\022diarization_config\030\023 \001(\013" + + "27.google.cloud.speech.v1p1beta1.Speaker" + + "DiarizationConfig\022D\n\010metadata\030\t \001(\01322.go" + + "ogle.cloud.speech.v1p1beta1.RecognitionM" + + "etadata\022\r\n\005model\030\r \001(\t\022\024\n\014use_enhanced\030\016" + + " \001(\010\"\243\001\n\rAudioEncoding\022\030\n\024ENCODING_UNSPE" + + "CIFIED\020\000\022\014\n\010LINEAR16\020\001\022\010\n\004FLAC\020\002\022\t\n\005MULA" + + "W\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\tW" + + "EBM_OPUS\020\t\"\220\001\n\030SpeakerDiarizationConfig\022" + + "\"\n\032enable_speaker_diarization\030\001 \001(\010\022\031\n\021m" + + "in_speaker_count\030\002 \001(\005\022\031\n\021max_speaker_co" + + "unt\030\003 \001(\005\022\032\n\013speaker_tag\030\005 \001(\005B\005\030\001\340A\003\"\327\010" + + "\n\023RecognitionMetadata\022\\\n\020interaction_typ" + + "e\030\001 \001(\0162B.google.cloud.speech.v1p1beta1." + + "RecognitionMetadata.InteractionType\022$\n\034i" + + "ndustry_naics_code_of_audio\030\003 \001(\r\022b\n\023mic" + + "rophone_distance\030\004 \001(\0162E.google.cloud.sp" + + "eech.v1p1beta1.RecognitionMetadata.Micro" + + "phoneDistance\022a\n\023original_media_type\030\005 \001" + + "(\0162D.google.cloud.speech.v1p1beta1.Recog" + + "nitionMetadata.OriginalMediaType\022e\n\025reco" + + "rding_device_type\030\006 \001(\0162F.google.cloud.s" + + "peech.v1p1beta1.RecognitionMetadata.Reco" + + "rdingDeviceType\022\035\n\025recording_device_name" + + "\030\007 \001(\t\022\032\n\022original_mime_type\030\010 \001(\t\022\031\n\rob" + + "fuscated_id\030\t \001(\003B\002\030\001\022\023\n\013audio_topic\030\n \001" + + "(\t\"\305\001\n\017InteractionType\022 \n\034INTERACTION_TY" + + "PE_UNSPECIFIED\020\000\022\016\n\nDISCUSSION\020\001\022\020\n\014PRES" + + "ENTATION\020\002\022\016\n\nPHONE_CALL\020\003\022\r\n\tVOICEMAIL\020" + + "\004\022\033\n\027PROFESSIONALLY_PRODUCED\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_D" + + "ISTANCE_UNSPECIFIED\020\000\022\r\n\tNEARFIELD\020\001\022\014\n\010" + + "MIDFIELD\020\002\022\014\n\010FARFIELD\020\003\"N\n\021OriginalMedi" + + "aType\022#\n\037ORIGINAL_MEDIA_TYPE_UNSPECIFIED" + + "\020\000\022\t\n\005AUDIO\020\001\022\t\n\005VIDEO\020\002\"\244\001\n\023RecordingDe" + + "viceType\022%\n!RECORDING_DEVICE_TYPE_UNSPEC" + + "IFIED\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_DE" + + "VICE\020\005\022\027\n\023OTHER_INDOOR_DEVICE\020\006\"/\n\rSpeec" + + "hContext\022\017\n\007phrases\030\001 \003(\t\022\r\n\005boost\030\004 \001(\002" + + "\"D\n\020RecognitionAudio\022\021\n\007content\030\001 \001(\014H\000\022" + + "\r\n\003uri\030\002 \001(\tH\000B\016\n\014audio_source\"\222\001\n\021Recog" + + "nizeResponse\022G\n\007results\030\002 \003(\01326.google.c" + + "loud.speech.v1p1beta1.SpeechRecognitionR" + + "esult\0224\n\021total_billed_time\030\003 \001(\0132\031.googl" + + "e.protobuf.Duration\"\225\002\n\034LongRunningRecog" + + "nizeResponse\022G\n\007results\030\002 \003(\01326.google.c" + + "loud.speech.v1p1beta1.SpeechRecognitionR" + + "esult\0224\n\021total_billed_time\030\003 \001(\0132\031.googl" + + "e.protobuf.Duration\022L\n\routput_config\030\006 \001" + + "(\01325.google.cloud.speech.v1p1beta1.Trans" + + "criptOutputConfig\022(\n\014output_error\030\007 \001(\0132" + + "\022.google.rpc.Status\"\203\002\n\034LongRunningRecog" + + "nizeMetadata\022\030\n\020progress_percent\030\001 \001(\005\022." + + "\n\nstart_time\030\002 \001(\0132\032.google.protobuf.Tim" + + "estamp\0224\n\020last_update_time\030\003 \001(\0132\032.googl" + + "e.protobuf.Timestamp\022\020\n\003uri\030\004 \001(\tB\003\340A\003\022Q" + + "\n\routput_config\030\005 \001(\01325.google.cloud.spe" + + "ech.v1p1beta1.TranscriptOutputConfigB\003\340A" + + "\003\"\365\002\n\032StreamingRecognizeResponse\022!\n\005erro" + + "r\030\001 \001(\0132\022.google.rpc.Status\022J\n\007results\030\002" + + " \003(\01329.google.cloud.speech.v1p1beta1.Str" + + "eamingRecognitionResult\022d\n\021speech_event_" + + "type\030\004 \001(\0162I.google.cloud.speech.v1p1bet" + + "a1.StreamingRecognizeResponse.SpeechEven" + + "tType\0224\n\021total_billed_time\030\005 \001(\0132\031.googl" + + "e.protobuf.Duration\"L\n\017SpeechEventType\022\034" + + "\n\030SPEECH_EVENT_UNSPECIFIED\020\000\022\033\n\027END_OF_S" + + "INGLE_UTTERANCE\020\001\"\371\001\n\032StreamingRecogniti" + + "onResult\022Q\n\014alternatives\030\001 \003(\0132;.google." + + "cloud.speech.v1p1beta1.SpeechRecognition" + + "Alternative\022\020\n\010is_final\030\002 \001(\010\022\021\n\tstabili" + + "ty\030\003 \001(\002\0222\n\017result_end_time\030\004 \001(\0132\031.goog" + + "le.protobuf.Duration\022\023\n\013channel_tag\030\005 \001(" + + "\005\022\032\n\rlanguage_code\030\006 \001(\tB\003\340A\003\"\321\001\n\027Speech" + + "RecognitionResult\022Q\n\014alternatives\030\001 \003(\0132" + + ";.google.cloud.speech.v1p1beta1.SpeechRe" + + "cognitionAlternative\022\023\n\013channel_tag\030\002 \001(" + + "\005\0222\n\017result_end_time\030\004 \001(\0132\031.google.prot" + + "obuf.Duration\022\032\n\rlanguage_code\030\005 \001(\tB\003\340A" + + "\003\"~\n\034SpeechRecognitionAlternative\022\022\n\ntra" + + "nscript\030\001 \001(\t\022\022\n\nconfidence\030\002 \001(\002\0226\n\005wor" + + "ds\030\003 \003(\0132\'.google.cloud.speech.v1p1beta1" + + ".WordInfo\"\242\001\n\010WordInfo\022-\n\nstart_time\030\001 \001" + + "(\0132\031.google.protobuf.Duration\022+\n\010end_tim" + + "e\030\002 \001(\0132\031.google.protobuf.Duration\022\014\n\004wo" + + "rd\030\003 \001(\t\022\022\n\nconfidence\030\004 \001(\002\022\030\n\013speaker_" + + "tag\030\005 \001(\005B\003\340A\0032\202\005\n\006Speech\022\245\001\n\tRecognize\022" + + "/.google.cloud.speech.v1p1beta1.Recogniz" + + "eRequest\0320.google.cloud.speech.v1p1beta1" + + ".RecognizeResponse\"5\202\323\344\223\002 \"\033/v1p1beta1/s" + + "peech:recognize:\001*\332A\014config,audio\022\362\001\n\024Lo" + + "ngRunningRecognize\022:.google.cloud.speech" + + ".v1p1beta1.LongRunningRecognizeRequest\032\035" + + ".google.longrunning.Operation\"\177\202\323\344\223\002+\"&/" + + "v1p1beta1/speech:longrunningrecognize:\001*" + + "\332A\014config,audio\312A<\n\034LongRunningRecognize" + + "Response\022\034LongRunningRecognizeMetadata\022\217" + + "\001\n\022StreamingRecognize\0228.google.cloud.spe" + + "ech.v1p1beta1.StreamingRecognizeRequest\032" + + "9.google.cloud.speech.v1p1beta1.Streamin" + + "gRecognizeResponse\"\000(\0010\001\032I\312A\025speech.goog" + + "leapis.com\322A.https://www.googleapis.com/" + + "auth/cloud-platformB\200\001\n!com.google.cloud" + + ".speech.v1p1beta1B\013SpeechProtoP\001ZCgoogle" + + ".golang.org/genproto/googleapis/cloud/sp" + + "eech/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.AnyProto.getDescriptor(), + com.google.protobuf.DurationProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.protobuf.WrappersProto.getDescriptor(), + com.google.rpc.StatusProto.getDescriptor(), + }); + internal_static_google_cloud_speech_v1p1beta1_RecognizeRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_speech_v1p1beta1_RecognizeRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_speech_v1p1beta1_RecognizeRequest_descriptor, + new java.lang.String[] { "Config", "Audio", }); + internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeRequest_descriptor, + new java.lang.String[] { "Config", "Audio", "OutputConfig", }); + internal_static_google_cloud_speech_v1p1beta1_TranscriptOutputConfig_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_speech_v1p1beta1_TranscriptOutputConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_speech_v1p1beta1_TranscriptOutputConfig_descriptor, + new java.lang.String[] { "GcsUri", "OutputType", }); + internal_static_google_cloud_speech_v1p1beta1_StreamingRecognizeRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_speech_v1p1beta1_StreamingRecognizeRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_speech_v1p1beta1_StreamingRecognizeRequest_descriptor, + new java.lang.String[] { "StreamingConfig", "AudioContent", "StreamingRequest", }); + internal_static_google_cloud_speech_v1p1beta1_StreamingRecognitionConfig_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_speech_v1p1beta1_StreamingRecognitionConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_speech_v1p1beta1_StreamingRecognitionConfig_descriptor, + new java.lang.String[] { "Config", "SingleUtterance", "InterimResults", }); + internal_static_google_cloud_speech_v1p1beta1_RecognitionConfig_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_speech_v1p1beta1_RecognitionConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_speech_v1p1beta1_RecognitionConfig_descriptor, + new java.lang.String[] { "Encoding", "SampleRateHertz", "AudioChannelCount", "EnableSeparateRecognitionPerChannel", "LanguageCode", "AlternativeLanguageCodes", "MaxAlternatives", "ProfanityFilter", "Adaptation", "TranscriptNormalization", "SpeechContexts", "EnableWordTimeOffsets", "EnableWordConfidence", "EnableAutomaticPunctuation", "EnableSpokenPunctuation", "EnableSpokenEmojis", "EnableSpeakerDiarization", "DiarizationSpeakerCount", "DiarizationConfig", "Metadata", "Model", "UseEnhanced", }); + internal_static_google_cloud_speech_v1p1beta1_SpeakerDiarizationConfig_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_speech_v1p1beta1_SpeakerDiarizationConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_speech_v1p1beta1_SpeakerDiarizationConfig_descriptor, + new java.lang.String[] { "EnableSpeakerDiarization", "MinSpeakerCount", "MaxSpeakerCount", "SpeakerTag", }); + internal_static_google_cloud_speech_v1p1beta1_RecognitionMetadata_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_speech_v1p1beta1_RecognitionMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_speech_v1p1beta1_RecognitionMetadata_descriptor, + new java.lang.String[] { "InteractionType", "IndustryNaicsCodeOfAudio", "MicrophoneDistance", "OriginalMediaType", "RecordingDeviceType", "RecordingDeviceName", "OriginalMimeType", "ObfuscatedId", "AudioTopic", }); + internal_static_google_cloud_speech_v1p1beta1_SpeechContext_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_speech_v1p1beta1_SpeechContext_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_speech_v1p1beta1_SpeechContext_descriptor, + new java.lang.String[] { "Phrases", "Boost", }); + internal_static_google_cloud_speech_v1p1beta1_RecognitionAudio_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_speech_v1p1beta1_RecognitionAudio_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_speech_v1p1beta1_RecognitionAudio_descriptor, + new java.lang.String[] { "Content", "Uri", "AudioSource", }); + internal_static_google_cloud_speech_v1p1beta1_RecognizeResponse_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_speech_v1p1beta1_RecognizeResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_speech_v1p1beta1_RecognizeResponse_descriptor, + new java.lang.String[] { "Results", "TotalBilledTime", }); + internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeResponse_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeResponse_descriptor, + new java.lang.String[] { "Results", "TotalBilledTime", "OutputConfig", "OutputError", }); + internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeMetadata_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeMetadata_descriptor, + new java.lang.String[] { "ProgressPercent", "StartTime", "LastUpdateTime", "Uri", "OutputConfig", }); + internal_static_google_cloud_speech_v1p1beta1_StreamingRecognizeResponse_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_cloud_speech_v1p1beta1_StreamingRecognizeResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_speech_v1p1beta1_StreamingRecognizeResponse_descriptor, + new java.lang.String[] { "Error", "Results", "SpeechEventType", "TotalBilledTime", }); + internal_static_google_cloud_speech_v1p1beta1_StreamingRecognitionResult_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_cloud_speech_v1p1beta1_StreamingRecognitionResult_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_speech_v1p1beta1_StreamingRecognitionResult_descriptor, + new java.lang.String[] { "Alternatives", "IsFinal", "Stability", "ResultEndTime", "ChannelTag", "LanguageCode", }); + internal_static_google_cloud_speech_v1p1beta1_SpeechRecognitionResult_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_google_cloud_speech_v1p1beta1_SpeechRecognitionResult_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_speech_v1p1beta1_SpeechRecognitionResult_descriptor, + new java.lang.String[] { "Alternatives", "ChannelTag", "ResultEndTime", "LanguageCode", }); + internal_static_google_cloud_speech_v1p1beta1_SpeechRecognitionAlternative_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_google_cloud_speech_v1p1beta1_SpeechRecognitionAlternative_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_speech_v1p1beta1_SpeechRecognitionAlternative_descriptor, + new java.lang.String[] { "Transcript", "Confidence", "Words", }); + internal_static_google_cloud_speech_v1p1beta1_WordInfo_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_google_cloud_speech_v1p1beta1_WordInfo_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_speech_v1p1beta1_WordInfo_descriptor, + new java.lang.String[] { "StartTime", "EndTime", "Word", "Confidence", "SpeakerTag", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.longrunning.OperationsProto.operationInfo); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.cloud.speech.v1p1beta1.SpeechResourceProto.getDescriptor(); + com.google.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.AnyProto.getDescriptor(); + com.google.protobuf.DurationProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.protobuf.WrappersProto.getDescriptor(); + com.google.rpc.StatusProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionAlternative.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionAlternative.java similarity index 75% rename from proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionAlternative.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionAlternative.java index 526199d20..28e43be4c 100644 --- a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionAlternative.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionAlternative.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech.proto package com.google.cloud.speech.v1p1beta1; /** - * - * *
  * Alternative hypotheses (a.k.a. n-best list).
  * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative} */ -public final class SpeechRecognitionAlternative extends com.google.protobuf.GeneratedMessageV3 - implements +public final class SpeechRecognitionAlternative extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative) SpeechRecognitionAlternativeOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use SpeechRecognitionAlternative.newBuilder() to construct. private SpeechRecognitionAlternative(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private SpeechRecognitionAlternative() { transcript_ = ""; words_ = java.util.Collections.emptyList(); @@ -44,15 +26,16 @@ private SpeechRecognitionAlternative() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new SpeechRecognitionAlternative(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private SpeechRecognitionAlternative( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,42 +55,40 @@ private SpeechRecognitionAlternative( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - transcript_ = s; - break; - } - case 21: - { - confidence_ = input.readFloat(); - break; - } - case 26: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - words_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - words_.add( - input.readMessage( - com.google.cloud.speech.v1p1beta1.WordInfo.parser(), extensionRegistry)); - break; + transcript_ = s; + break; + } + case 21: { + + confidence_ = input.readFloat(); + break; + } + case 26: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + words_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + words_.add( + input.readMessage(com.google.cloud.speech.v1p1beta1.WordInfo.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { words_ = java.util.Collections.unmodifiableList(words_); @@ -116,33 +97,27 @@ private SpeechRecognitionAlternative( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechProto - .internal_static_google_cloud_speech_v1p1beta1_SpeechRecognitionAlternative_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_SpeechRecognitionAlternative_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechProto - .internal_static_google_cloud_speech_v1p1beta1_SpeechRecognitionAlternative_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_SpeechRecognitionAlternative_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.class, - com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.Builder.class); + com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.class, com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.Builder.class); } public static final int TRANSCRIPT_FIELD_NUMBER = 1; private volatile java.lang.Object transcript_; /** - * - * *
    * Transcript text representing the words that the user spoke.
    * 
* * string transcript = 1; - * * @return The transcript. */ @java.lang.Override @@ -151,29 +126,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 { @@ -184,8 +159,6 @@ public com.google.protobuf.ByteString getTranscriptBytes() { public static final int CONFIDENCE_FIELD_NUMBER = 2; private float confidence_; /** - * - * *
    * The confidence estimate between 0.0 and 1.0. A higher number
    * indicates an estimated greater likelihood that the recognized words are
@@ -197,7 +170,6 @@ public com.google.protobuf.ByteString getTranscriptBytes() {
    * 
* * float confidence = 2; - * * @return The confidence. */ @java.lang.Override @@ -208,8 +180,6 @@ public float getConfidence() { public static final int WORDS_FIELD_NUMBER = 3; private java.util.List words_; /** - * - * *
    * A list of word-specific information for each recognized word.
    * Note: When `enable_speaker_diarization` is true, you will see all the words
@@ -223,8 +193,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
@@ -234,13 +202,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
@@ -254,8 +220,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
@@ -269,8 +233,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
@@ -280,12 +242,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;
@@ -297,7 +259,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public 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_);
     }
@@ -320,10 +283,12 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, transcript_);
     }
     if (confidence_ != 0F) {
-      size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, confidence_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeFloatSize(2, confidence_);
     }
     for (int i = 0; i < words_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, words_.get(i));
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(3, words_.get(i));
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -333,18 +298,20 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative)) {
       return super.equals(obj);
     }
-    com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative other =
-        (com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative) obj;
+    com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative other = (com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative) obj;
 
-    if (!getTranscript().equals(other.getTranscript())) return false;
+    if (!getTranscript()
+        .equals(other.getTranscript())) return false;
     if (java.lang.Float.floatToIntBits(getConfidence())
-        != java.lang.Float.floatToIntBits(other.getConfidence())) return false;
-    if (!getWordsList().equals(other.getWordsList())) return false;
+        != java.lang.Float.floatToIntBits(
+            other.getConfidence())) return false;
+    if (!getWordsList()
+        .equals(other.getWordsList())) return false;
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
   }
@@ -359,7 +326,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();
@@ -370,127 +338,117 @@ public int hashCode() {
   }
 
   public static com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative parseFrom(
-      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative parseFrom(
-      byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+  public static com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative parseFrom(byte[] data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
-
-  public static com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
-  public static Builder newBuilder(
-      com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative prototype) {
+  public static Builder newBuilder(com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * Alternative hypotheses (a.k.a. n-best list).
    * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative) com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternativeOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechProto - .internal_static_google_cloud_speech_v1p1beta1_SpeechRecognitionAlternative_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_SpeechRecognitionAlternative_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechProto - .internal_static_google_cloud_speech_v1p1beta1_SpeechRecognitionAlternative_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_SpeechRecognitionAlternative_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.class, - com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.Builder.class); + com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.class, com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.Builder.class); } // Construct using com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.newBuilder() @@ -498,17 +456,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getWordsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -526,14 +484,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(); } @@ -548,8 +505,7 @@ public com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative build() { @java.lang.Override public com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative buildPartial() { - com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative result = - new com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative(this); + com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative result = new com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative(this); int from_bitField0_ = bitField0_; result.transcript_ = transcript_; result.confidence_ = confidence_; @@ -570,39 +526,38 @@ public com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative buildParti public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative) { - return mergeFrom((com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative) other); + return mergeFrom((com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative)other); } else { super.mergeFrom(other); return this; @@ -610,9 +565,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative other) { - if (other - == com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.getDefaultInstance()) - return this; + if (other == com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.getDefaultInstance()) return this; if (!other.getTranscript().isEmpty()) { transcript_ = other.transcript_; onChanged(); @@ -638,10 +591,9 @@ public Builder mergeFrom(com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlte wordsBuilder_ = null; words_ = other.words_; bitField0_ = (bitField0_ & ~0x00000001); - wordsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getWordsFieldBuilder() - : null; + wordsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getWordsFieldBuilder() : null; } else { wordsBuilder_.addAllMessages(other.words_); } @@ -666,9 +618,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -677,25 +627,22 @@ public Builder mergeFrom( } 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; @@ -704,21 +651,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 { @@ -726,70 +672,61 @@ 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) { + public Builder setTranscript( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + transcript_ = value; onChanged(); return this; } /** - * - * *
      * Transcript text representing the words that the user spoke.
      * 
* * string transcript = 1; - * * @return This builder for chaining. */ public Builder clearTranscript() { - + transcript_ = getDefaultInstance().getTranscript(); onChanged(); return this; } /** - * - * *
      * Transcript text representing the words that the user spoke.
      * 
* * string transcript = 1; - * * @param value The bytes for transcript to set. * @return This builder for chaining. */ - public Builder setTranscriptBytes(com.google.protobuf.ByteString value) { + public Builder setTranscriptBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + transcript_ = value; onChanged(); return this; } - private float confidence_; + private float confidence_ ; /** - * - * *
      * The confidence estimate between 0.0 and 1.0. A higher number
      * indicates an estimated greater likelihood that the recognized words are
@@ -801,7 +738,6 @@ public Builder setTranscriptBytes(com.google.protobuf.ByteString value) {
      * 
* * float confidence = 2; - * * @return The confidence. */ @java.lang.Override @@ -809,8 +745,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
@@ -822,19 +756,16 @@ public float getConfidence() {
      * 
* * float confidence = 2; - * * @param value The confidence to set. * @return This builder for chaining. */ public Builder setConfidence(float value) { - + confidence_ = value; onChanged(); return this; } /** - * - * *
      * The confidence estimate between 0.0 and 1.0. A higher number
      * indicates an estimated greater likelihood that the recognized words are
@@ -846,35 +777,28 @@ public Builder setConfidence(float value) {
      * 
* * float confidence = 2; - * * @return This builder for chaining. */ public Builder clearConfidence() { - + confidence_ = 0F; onChanged(); return this; } private java.util.List words_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureWordsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { words_ = new java.util.ArrayList(words_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.WordInfo, - com.google.cloud.speech.v1p1beta1.WordInfo.Builder, - com.google.cloud.speech.v1p1beta1.WordInfoOrBuilder> - wordsBuilder_; + com.google.cloud.speech.v1p1beta1.WordInfo, com.google.cloud.speech.v1p1beta1.WordInfo.Builder, com.google.cloud.speech.v1p1beta1.WordInfoOrBuilder> wordsBuilder_; /** - * - * *
      * A list of word-specific information for each recognized word.
      * Note: When `enable_speaker_diarization` is true, you will see all the words
@@ -891,8 +815,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
@@ -909,8 +831,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
@@ -927,8 +847,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
@@ -937,7 +855,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();
@@ -951,8 +870,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
@@ -973,8 +890,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
@@ -997,8 +912,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
@@ -1007,7 +920,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();
@@ -1021,8 +935,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
@@ -1031,7 +943,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());
@@ -1042,8 +955,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
@@ -1064,8 +975,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
@@ -1078,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);
@@ -1086,8 +996,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
@@ -1107,8 +1015,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
@@ -1128,8 +1034,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
@@ -1138,12 +1042,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
@@ -1152,16 +1055,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
@@ -1170,8 +1071,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 {
@@ -1179,8 +1080,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
@@ -1190,12 +1089,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
@@ -1204,13 +1101,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
@@ -1219,30 +1115,27 @@ public com.google.cloud.speech.v1p1beta1.WordInfo.Builder addWordsBuilder(int in
      *
      * repeated .google.cloud.speech.v1p1beta1.WordInfo words = 3;
      */
-    public java.util.List
-        getWordsBuilderList() {
+    public java.util.List 
+         getWordsBuilderList() {
       return getWordsFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.speech.v1p1beta1.WordInfo,
-            com.google.cloud.speech.v1p1beta1.WordInfo.Builder,
-            com.google.cloud.speech.v1p1beta1.WordInfoOrBuilder>
+        com.google.cloud.speech.v1p1beta1.WordInfo, com.google.cloud.speech.v1p1beta1.WordInfo.Builder, com.google.cloud.speech.v1p1beta1.WordInfoOrBuilder> 
         getWordsFieldBuilder() {
       if (wordsBuilder_ == null) {
-        wordsBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.cloud.speech.v1p1beta1.WordInfo,
-                com.google.cloud.speech.v1p1beta1.WordInfo.Builder,
-                com.google.cloud.speech.v1p1beta1.WordInfoOrBuilder>(
-                words_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
+        wordsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.cloud.speech.v1p1beta1.WordInfo, com.google.cloud.speech.v1p1beta1.WordInfo.Builder, com.google.cloud.speech.v1p1beta1.WordInfoOrBuilder>(
+                words_,
+                ((bitField0_ & 0x00000001) != 0),
+                getParentForChildren(),
+                isClean());
         words_ = null;
       }
       return wordsBuilder_;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1252,32 +1145,30 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative)
-  private static final com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative
-      DEFAULT_INSTANCE;
-
+  private static final com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative DEFAULT_INSTANCE;
   static {
     DEFAULT_INSTANCE = new com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative();
   }
 
-  public static com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative
-      getDefaultInstance() {
+  public static com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public SpeechRecognitionAlternative parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          return new SpeechRecognitionAlternative(input, extensionRegistry);
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public SpeechRecognitionAlternative parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      return new SpeechRecognitionAlternative(input, extensionRegistry);
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1289,8 +1180,9 @@ public com.google.protobuf.Parser getParserForType
   }
 
   @java.lang.Override
-  public com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative
-      getDefaultInstanceForType() {
+  public com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionAlternativeOrBuilder.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionAlternativeOrBuilder.java
similarity index 76%
rename from proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionAlternativeOrBuilder.java
rename to owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionAlternativeOrBuilder.java
index c2ff84253..771996674 100644
--- a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionAlternativeOrBuilder.java
+++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionAlternativeOrBuilder.java
@@ -1,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/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.
    * 
* * 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
@@ -62,14 +39,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
@@ -78,10 +52,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
@@ -92,8 +65,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
@@ -104,8 +75,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
@@ -114,11 +83,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
@@ -127,5 +94,6 @@ public interface SpeechRecognitionAlternativeOrBuilder
    *
    * repeated .google.cloud.speech.v1p1beta1.WordInfo words = 3;
    */
-  com.google.cloud.speech.v1p1beta1.WordInfoOrBuilder getWordsOrBuilder(int index);
+  com.google.cloud.speech.v1p1beta1.WordInfoOrBuilder getWordsOrBuilder(
+      int index);
 }
diff --git a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionResult.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionResult.java
similarity index 73%
rename from proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionResult.java
rename to owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionResult.java
index 50eda7566..55d3a6e69 100644
--- a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionResult.java
+++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionResult.java
@@ -1,42 +1,24 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/speech/v1p1beta1/cloud_speech.proto
 
 package com.google.cloud.speech.v1p1beta1;
 
 /**
- *
- *
  * 
  * A speech recognition result corresponding to a portion of the audio.
  * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.SpeechRecognitionResult} */ -public final class SpeechRecognitionResult extends com.google.protobuf.GeneratedMessageV3 - implements +public final class SpeechRecognitionResult extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v1p1beta1.SpeechRecognitionResult) SpeechRecognitionResultOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use SpeechRecognitionResult.newBuilder() to construct. private SpeechRecognitionResult(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private SpeechRecognitionResult() { alternatives_ = java.util.Collections.emptyList(); languageCode_ = ""; @@ -44,15 +26,16 @@ private SpeechRecognitionResult() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new SpeechRecognitionResult(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private SpeechRecognitionResult( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,60 +55,53 @@ private SpeechRecognitionResult( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - alternatives_ = - new java.util.ArrayList< - com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative>(); - mutable_bitField0_ |= 0x00000001; - } - alternatives_.add( - input.readMessage( - com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.parser(), - extensionRegistry)); - break; - } - case 16: - { - channelTag_ = input.readInt32(); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + alternatives_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 34: - { - com.google.protobuf.Duration.Builder subBuilder = null; - if (resultEndTime_ != null) { - subBuilder = resultEndTime_.toBuilder(); - } - resultEndTime_ = - input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(resultEndTime_); - resultEndTime_ = subBuilder.buildPartial(); - } + alternatives_.add( + input.readMessage(com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.parser(), extensionRegistry)); + break; + } + case 16: { - break; + channelTag_ = input.readInt32(); + break; + } + case 34: { + com.google.protobuf.Duration.Builder subBuilder = null; + if (resultEndTime_ != null) { + subBuilder = resultEndTime_.toBuilder(); } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); - - languageCode_ = s; - break; + resultEndTime_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(resultEndTime_); + resultEndTime_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + languageCode_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { alternatives_ = java.util.Collections.unmodifiableList(alternatives_); @@ -134,28 +110,22 @@ private SpeechRecognitionResult( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechProto - .internal_static_google_cloud_speech_v1p1beta1_SpeechRecognitionResult_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_SpeechRecognitionResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechProto - .internal_static_google_cloud_speech_v1p1beta1_SpeechRecognitionResult_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_SpeechRecognitionResult_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult.class, - com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult.Builder.class); + com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult.class, com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult.Builder.class); } public static final int ALTERNATIVES_FIELD_NUMBER = 1; - private java.util.List - alternatives_; + private java.util.List alternatives_; /** - * - * *
    * May contain one or more recognition hypotheses (up to the
    * maximum specified in `max_alternatives`).
@@ -163,17 +133,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`).
@@ -181,18 +147,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`).
@@ -200,16 +162,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`).
@@ -217,16 +176,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`).
@@ -234,20 +190,17 @@ public com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative getAlterna
    * alternative being the most probable, as ranked by the recognizer.
    * 
* - * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; - * + * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; */ @java.lang.Override - public com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternativeOrBuilder - getAlternativesOrBuilder(int index) { + public com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternativeOrBuilder getAlternativesOrBuilder( + int index) { return alternatives_.get(index); } public static final int CHANNEL_TAG_FIELD_NUMBER = 2; private int channelTag_; /** - * - * *
    * For multi-channel audio, this is the channel number corresponding to the
    * recognized result for the audio from that channel.
@@ -255,7 +208,6 @@ public com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative getAlterna
    * 
* * int32 channel_tag = 2; - * * @return The channelTag. */ @java.lang.Override @@ -266,15 +218,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 @@ -282,26 +231,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.
@@ -317,8 +259,6 @@ public com.google.protobuf.DurationOrBuilder getResultEndTimeOrBuilder() {
   public static final int LANGUAGE_CODE_FIELD_NUMBER = 5;
   private volatile java.lang.Object languageCode_;
   /**
-   *
-   *
    * 
    * Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag
    * of the language in this result. This language code was detected to have
@@ -326,7 +266,6 @@ public com.google.protobuf.DurationOrBuilder getResultEndTimeOrBuilder() {
    * 
* * string language_code = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The languageCode. */ @java.lang.Override @@ -335,15 +274,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
@@ -351,15 +289,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 { @@ -368,7 +307,6 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -380,7 +318,8 @@ public final boolean isInitialized() { } @java.lang.Override - 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)); } @@ -403,13 +342,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_); @@ -422,21 +364,24 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult)) { return super.equals(obj); } - com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult other = - (com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult) obj; + com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult other = (com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult) obj; - if (!getAlternativesList().equals(other.getAlternativesList())) return false; - if (getChannelTag() != other.getChannelTag()) return false; + if (!getAlternativesList() + .equals(other.getAlternativesList())) return false; + if (getChannelTag() + != other.getChannelTag()) return false; if (hasResultEndTime() != other.hasResultEndTime()) return false; if (hasResultEndTime()) { - if (!getResultEndTime().equals(other.getResultEndTime())) return false; + if (!getResultEndTime() + .equals(other.getResultEndTime())) return false; } - if (!getLanguageCode().equals(other.getLanguageCode())) return false; + if (!getLanguageCode() + .equals(other.getLanguageCode())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -466,127 +411,117 @@ public int hashCode() { } public static com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult prototype) { + public static Builder newBuilder(com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * A speech recognition result corresponding to a portion of the audio.
    * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.SpeechRecognitionResult} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1p1beta1.SpeechRecognitionResult) com.google.cloud.speech.v1p1beta1.SpeechRecognitionResultOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechProto - .internal_static_google_cloud_speech_v1p1beta1_SpeechRecognitionResult_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_SpeechRecognitionResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechProto - .internal_static_google_cloud_speech_v1p1beta1_SpeechRecognitionResult_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_SpeechRecognitionResult_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult.class, - com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult.Builder.class); + com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult.class, com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult.Builder.class); } // Construct using com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult.newBuilder() @@ -594,17 +529,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getAlternativesFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -628,9 +563,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 @@ -649,8 +584,7 @@ public com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult build() { @java.lang.Override public com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult buildPartial() { - com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult result = - new com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult(this); + com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult result = new com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult(this); int from_bitField0_ = bitField0_; if (alternativesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -676,39 +610,38 @@ public com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult buildPartial() public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult) { - return mergeFrom((com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult) other); + return mergeFrom((com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult)other); } else { super.mergeFrom(other); return this; @@ -716,8 +649,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()) { @@ -736,10 +668,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_); } @@ -774,8 +705,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -784,30 +714,21 @@ public Builder mergeFrom( } return this; } - private int bitField0_; - private java.util.List - alternatives_ = java.util.Collections.emptyList(); - + private java.util.List alternatives_ = + java.util.Collections.emptyList(); private void ensureAlternativesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - alternatives_ = - new java.util.ArrayList( - alternatives_); + alternatives_ = new java.util.ArrayList(alternatives_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative, - com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.Builder, - com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternativeOrBuilder> - alternativesBuilder_; + com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative, com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.Builder, com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternativeOrBuilder> alternativesBuilder_; /** - * - * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -815,11 +736,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 { @@ -827,8 +746,6 @@ private void ensureAlternativesIsMutable() { } } /** - * - * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -836,8 +753,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) { @@ -847,8 +763,6 @@ public int getAlternativesCount() { } } /** - * - * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -856,11 +770,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 { @@ -868,8 +780,6 @@ public com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative getAlterna } } /** - * - * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -877,8 +787,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) { @@ -895,8 +804,6 @@ public Builder setAlternatives( return this; } /** - * - * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -904,12 +811,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()); @@ -920,8 +825,6 @@ public Builder setAlternatives( return this; } /** - * - * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -929,11 +832,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(); @@ -947,8 +848,6 @@ public Builder addAlternatives( return this; } /** - * - * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -956,8 +855,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) { @@ -974,8 +872,6 @@ public Builder addAlternatives( return this; } /** - * - * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -983,8 +879,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) { @@ -998,8 +893,6 @@ public Builder addAlternatives( return this; } /** - * - * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -1007,12 +900,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()); @@ -1023,8 +914,6 @@ public Builder addAlternatives( return this; } /** - * - * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -1032,15 +921,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); @@ -1048,8 +936,6 @@ public Builder addAllAlternatives( return this; } /** - * - * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -1057,8 +943,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) { @@ -1071,8 +956,6 @@ public Builder clearAlternatives() { return this; } /** - * - * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -1080,8 +963,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) { @@ -1094,8 +976,6 @@ public Builder removeAlternatives(int index) { return this; } /** - * - * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -1103,16 +983,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`).
@@ -1120,20 +997,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`).
@@ -1141,12 +1014,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 { @@ -1154,8 +1025,6 @@ public Builder removeAlternatives(int index) { } } /** - * - * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -1163,18 +1032,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`).
@@ -1182,19 +1046,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`).
@@ -1202,35 +1061,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.
@@ -1238,7 +1091,6 @@ public Builder removeAlternatives(int index) {
      * 
* * int32 channel_tag = 2; - * * @return The channelTag. */ @java.lang.Override @@ -1246,8 +1098,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.
@@ -1255,19 +1105,16 @@ public int getChannelTag() {
      * 
* * int32 channel_tag = 2; - * * @param value The channelTag to set. * @return This builder for chaining. */ public Builder setChannelTag(int value) { - + channelTag_ = value; onChanged(); return this; } /** - * - * *
      * For multi-channel audio, this is the channel number corresponding to the
      * recognized result for the audio from that channel.
@@ -1275,11 +1122,10 @@ public Builder setChannelTag(int value) {
      * 
* * int32 channel_tag = 2; - * * @return This builder for chaining. */ public Builder clearChannelTag() { - + channelTag_ = 0; onChanged(); return this; @@ -1287,49 +1133,36 @@ public Builder clearChannelTag() { private com.google.protobuf.Duration resultEndTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - resultEndTimeBuilder_; + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> resultEndTimeBuilder_; /** - * - * *
      * Time offset of the end of this result relative to the
      * beginning of the audio.
      * 
* * .google.protobuf.Duration result_end_time = 4; - * * @return Whether the resultEndTime field is set. */ public boolean hasResultEndTime() { return resultEndTimeBuilder_ != null || resultEndTime_ != null; } /** - * - * *
      * Time offset of the end of this result relative to the
      * beginning of the audio.
      * 
* * .google.protobuf.Duration result_end_time = 4; - * * @return The resultEndTime. */ public com.google.protobuf.Duration getResultEndTime() { if (resultEndTimeBuilder_ == null) { - return resultEndTime_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : resultEndTime_; + return resultEndTime_ == null ? com.google.protobuf.Duration.getDefaultInstance() : resultEndTime_; } else { return resultEndTimeBuilder_.getMessage(); } } /** - * - * *
      * Time offset of the end of this result relative to the
      * beginning of the audio.
@@ -1351,8 +1184,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.
@@ -1360,7 +1191,8 @@ public Builder setResultEndTime(com.google.protobuf.Duration value) {
      *
      * .google.protobuf.Duration result_end_time = 4;
      */
-    public Builder setResultEndTime(com.google.protobuf.Duration.Builder builderForValue) {
+    public Builder setResultEndTime(
+        com.google.protobuf.Duration.Builder builderForValue) {
       if (resultEndTimeBuilder_ == null) {
         resultEndTime_ = builderForValue.build();
         onChanged();
@@ -1371,8 +1203,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.
@@ -1384,9 +1214,7 @@ public Builder mergeResultEndTime(com.google.protobuf.Duration value) {
       if (resultEndTimeBuilder_ == null) {
         if (resultEndTime_ != null) {
           resultEndTime_ =
-              com.google.protobuf.Duration.newBuilder(resultEndTime_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.protobuf.Duration.newBuilder(resultEndTime_).mergeFrom(value).buildPartial();
         } else {
           resultEndTime_ = value;
         }
@@ -1398,8 +1226,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.
@@ -1419,8 +1245,6 @@ public Builder clearResultEndTime() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Time offset of the end of this result relative to the
      * beginning of the audio.
@@ -1429,13 +1253,11 @@ public Builder clearResultEndTime() {
      * .google.protobuf.Duration result_end_time = 4;
      */
     public com.google.protobuf.Duration.Builder getResultEndTimeBuilder() {
-
+      
       onChanged();
       return getResultEndTimeFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Time offset of the end of this result relative to the
      * beginning of the audio.
@@ -1447,14 +1269,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.
@@ -1463,17 +1282,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_;
@@ -1481,8 +1297,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
@@ -1490,13 +1304,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; @@ -1505,8 +1319,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
@@ -1514,14 +1326,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 { @@ -1529,8 +1342,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
@@ -1538,22 +1349,20 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() {
      * 
* * string language_code = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCode(java.lang.String value) { + public Builder setLanguageCode( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + languageCode_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag
      * of the language in this result. This language code was detected to have
@@ -1561,18 +1370,15 @@ public Builder setLanguageCode(java.lang.String value) {
      * 
* * string language_code = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearLanguageCode() { - + languageCode_ = getDefaultInstance().getLanguageCode(); onChanged(); return this; } /** - * - * *
      * Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag
      * of the language in this result. This language code was detected to have
@@ -1580,23 +1386,23 @@ public Builder clearLanguageCode() {
      * 
* * string language_code = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { + public Builder setLanguageCodeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + languageCode_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1606,12 +1412,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(); } @@ -1620,16 +1426,16 @@ public static com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SpeechRecognitionResult parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SpeechRecognitionResult(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SpeechRecognitionResult parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SpeechRecognitionResult(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1644,4 +1450,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionResultOrBuilder.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionResultOrBuilder.java similarity index 79% rename from proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionResultOrBuilder.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionResultOrBuilder.java index b836a20e7..55e3c978e 100644 --- a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionResultOrBuilder.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionResultOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech.proto package com.google.cloud.speech.v1p1beta1; -public interface SpeechRecognitionResultOrBuilder - extends +public interface SpeechRecognitionResultOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1p1beta1.SpeechRecognitionResult) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * May contain one or more recognition hypotheses (up to the
    * maximum specified in `max_alternatives`).
@@ -33,14 +15,11 @@ public interface SpeechRecognitionResultOrBuilder
    * alternative being the most probable, as ranked by the recognizer.
    * 
* - * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; - * + * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; */ - java.util.List + java.util.List getAlternativesList(); /** - * - * *
    * May contain one or more recognition hypotheses (up to the
    * maximum specified in `max_alternatives`).
@@ -48,13 +27,10 @@ public interface SpeechRecognitionResultOrBuilder
    * alternative being the most probable, as ranked by the recognizer.
    * 
* - * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; - * + * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; */ com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative getAlternatives(int index); /** - * - * *
    * May contain one or more recognition hypotheses (up to the
    * maximum specified in `max_alternatives`).
@@ -62,13 +38,10 @@ public interface SpeechRecognitionResultOrBuilder
    * alternative being the most probable, as ranked by the recognizer.
    * 
* - * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; - * + * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; */ int getAlternativesCount(); /** - * - * *
    * May contain one or more recognition hypotheses (up to the
    * maximum specified in `max_alternatives`).
@@ -76,14 +49,11 @@ public interface SpeechRecognitionResultOrBuilder
    * alternative being the most probable, as ranked by the recognizer.
    * 
* - * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; - * + * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; */ - java.util.List + java.util.List getAlternativesOrBuilderList(); /** - * - * *
    * May contain one or more recognition hypotheses (up to the
    * maximum specified in `max_alternatives`).
@@ -91,15 +61,12 @@ public interface SpeechRecognitionResultOrBuilder
    * alternative being the most probable, as ranked by the recognizer.
    * 
* - * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; - * + * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; */ com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternativeOrBuilder getAlternativesOrBuilder( int index); /** - * - * *
    * For multi-channel audio, this is the channel number corresponding to the
    * recognized result for the audio from that channel.
@@ -107,40 +74,31 @@ com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternativeOrBuilder getAlter
    * 
* * int32 channel_tag = 2; - * * @return The channelTag. */ int getChannelTag(); /** - * - * *
    * Time offset of the end of this result relative to the
    * beginning of the audio.
    * 
* * .google.protobuf.Duration result_end_time = 4; - * * @return Whether the resultEndTime field is set. */ boolean hasResultEndTime(); /** - * - * *
    * Time offset of the end of this result relative to the
    * beginning of the audio.
    * 
* * .google.protobuf.Duration result_end_time = 4; - * * @return The resultEndTime. */ com.google.protobuf.Duration getResultEndTime(); /** - * - * *
    * Time offset of the end of this result relative to the
    * beginning of the audio.
@@ -151,8 +109,6 @@ com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternativeOrBuilder getAlter
   com.google.protobuf.DurationOrBuilder getResultEndTimeOrBuilder();
 
   /**
-   *
-   *
    * 
    * Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag
    * of the language in this result. This language code was detected to have
@@ -160,13 +116,10 @@ com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternativeOrBuilder getAlter
    * 
* * string language_code = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The languageCode. */ java.lang.String getLanguageCode(); /** - * - * *
    * Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag
    * of the language in this result. This language code was detected to have
@@ -174,8 +127,8 @@ com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternativeOrBuilder getAlter
    * 
* * string language_code = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for languageCode. */ - com.google.protobuf.ByteString getLanguageCodeBytes(); + com.google.protobuf.ByteString + getLanguageCodeBytes(); } diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechResourceProto.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechResourceProto.java new file mode 100644 index 000000000..b835955e1 --- /dev/null +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechResourceProto.java @@ -0,0 +1,154 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/speech/v1p1beta1/resource.proto + +package com.google.cloud.speech.v1p1beta1; + +public final class SpeechResourceProto { + private SpeechResourceProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1p1beta1_CustomClass_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1p1beta1_CustomClass_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1p1beta1_CustomClass_ClassItem_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1p1beta1_CustomClass_ClassItem_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1p1beta1_PhraseSet_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1p1beta1_PhraseSet_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1p1beta1_PhraseSet_Phrase_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1p1beta1_PhraseSet_Phrase_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptation_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1p1beta1_TranscriptNormalization_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1p1beta1_TranscriptNormalization_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1p1beta1_TranscriptNormalization_Entry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1p1beta1_TranscriptNormalization_Entry_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n,google/cloud/speech/v1p1beta1/resource" + + ".proto\022\035google.cloud.speech.v1p1beta1\032\031g" + + "oogle/api/resource.proto\032\037google/protobu" + + "f/timestamp.proto\032\034google/api/annotation" + + "s.proto\"\203\002\n\013CustomClass\022\014\n\004name\030\001 \001(\t\022\027\n" + + "\017custom_class_id\030\002 \001(\t\022C\n\005items\030\003 \003(\01324." + + "google.cloud.speech.v1p1beta1.CustomClas" + + "s.ClassItem\032\032\n\tClassItem\022\r\n\005value\030\001 \001(\t:" + + "l\352Ai\n!speech.googleapis.com/CustomClass\022" + + "Dprojects/{project}/locations/{location}" + + "/customClasses/{custom_class}\"\371\001\n\tPhrase" + + "Set\022\014\n\004name\030\001 \001(\t\022@\n\007phrases\030\002 \003(\0132/.goo" + + "gle.cloud.speech.v1p1beta1.PhraseSet.Phr" + + "ase\022\r\n\005boost\030\004 \001(\002\032&\n\006Phrase\022\r\n\005value\030\001 " + + "\001(\t\022\r\n\005boost\030\002 \001(\002:e\352Ab\n\037speech.googleap" + + "is.com/PhraseSet\022?projects/{project}/loc" + + "ations/{location}/phraseSets/{phrase_set" + + "}\"\332\001\n\020SpeechAdaptation\022=\n\013phrase_sets\030\001 " + + "\003(\0132(.google.cloud.speech.v1p1beta1.Phra" + + "seSet\022C\n\025phrase_set_references\030\002 \003(\tB$\372A" + + "!\n\037speech.googleapis.com/PhraseSet\022B\n\016cu" + + "stom_classes\030\003 \003(\0132*.google.cloud.speech" + + ".v1p1beta1.CustomClass\"\252\001\n\027TranscriptNor" + + "malization\022M\n\007entries\030\001 \003(\0132<.google.clo" + + "ud.speech.v1p1beta1.TranscriptNormalizat" + + "ion.Entry\032@\n\005Entry\022\016\n\006search\030\001 \001(\t\022\017\n\007re" + + "place\030\002 \001(\t\022\026\n\016case_sensitive\030\003 \001(\010B\210\001\n!" + + "com.google.cloud.speech.v1p1beta1B\023Speec" + + "hResourceProtoP\001ZCgoogle.golang.org/genp" + + "roto/googleapis/cloud/speech/v1p1beta1;s" + + "peech\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(), + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.api.AnnotationsProto.getDescriptor(), + }); + internal_static_google_cloud_speech_v1p1beta1_CustomClass_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_speech_v1p1beta1_CustomClass_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_speech_v1p1beta1_CustomClass_descriptor, + new java.lang.String[] { "Name", "CustomClassId", "Items", }); + internal_static_google_cloud_speech_v1p1beta1_CustomClass_ClassItem_descriptor = + internal_static_google_cloud_speech_v1p1beta1_CustomClass_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_speech_v1p1beta1_CustomClass_ClassItem_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_speech_v1p1beta1_CustomClass_ClassItem_descriptor, + new java.lang.String[] { "Value", }); + internal_static_google_cloud_speech_v1p1beta1_PhraseSet_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_speech_v1p1beta1_PhraseSet_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_speech_v1p1beta1_PhraseSet_descriptor, + new java.lang.String[] { "Name", "Phrases", "Boost", }); + internal_static_google_cloud_speech_v1p1beta1_PhraseSet_Phrase_descriptor = + internal_static_google_cloud_speech_v1p1beta1_PhraseSet_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_speech_v1p1beta1_PhraseSet_Phrase_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_speech_v1p1beta1_PhraseSet_Phrase_descriptor, + new java.lang.String[] { "Value", "Boost", }); + internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptation_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptation_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptation_descriptor, + new java.lang.String[] { "PhraseSets", "PhraseSetReferences", "CustomClasses", }); + internal_static_google_cloud_speech_v1p1beta1_TranscriptNormalization_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_speech_v1p1beta1_TranscriptNormalization_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_speech_v1p1beta1_TranscriptNormalization_descriptor, + new java.lang.String[] { "Entries", }); + internal_static_google_cloud_speech_v1p1beta1_TranscriptNormalization_Entry_descriptor = + internal_static_google_cloud_speech_v1p1beta1_TranscriptNormalization_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_speech_v1p1beta1_TranscriptNormalization_Entry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_speech_v1p1beta1_TranscriptNormalization_Entry_descriptor, + new java.lang.String[] { "Search", "Replace", "CaseSensitive", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.ResourceProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.api.AnnotationsProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionConfig.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionConfig.java similarity index 70% rename from proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionConfig.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionConfig.java index 2665d0f08..20d47c94d 100644 --- a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionConfig.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionConfig.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech.proto package com.google.cloud.speech.v1p1beta1; /** - * - * *
  * Provides information to the recognizer that specifies how to process the
  * request.
@@ -28,29 +11,30 @@
  *
  * Protobuf type {@code google.cloud.speech.v1p1beta1.StreamingRecognitionConfig}
  */
-public final class StreamingRecognitionConfig extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class StreamingRecognitionConfig extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.speech.v1p1beta1.StreamingRecognitionConfig)
     StreamingRecognitionConfigOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use StreamingRecognitionConfig.newBuilder() to construct.
   private StreamingRecognitionConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
-  private StreamingRecognitionConfig() {}
+  private StreamingRecognitionConfig() {
+  }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new StreamingRecognitionConfig();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private StreamingRecognitionConfig(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -69,81 +53,70 @@ private StreamingRecognitionConfig(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              com.google.cloud.speech.v1p1beta1.RecognitionConfig.Builder subBuilder = null;
-              if (config_ != null) {
-                subBuilder = config_.toBuilder();
-              }
-              config_ =
-                  input.readMessage(
-                      com.google.cloud.speech.v1p1beta1.RecognitionConfig.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(config_);
-                config_ = subBuilder.buildPartial();
-              }
-
-              break;
+          case 10: {
+            com.google.cloud.speech.v1p1beta1.RecognitionConfig.Builder subBuilder = null;
+            if (config_ != null) {
+              subBuilder = config_.toBuilder();
             }
-          case 16:
-            {
-              singleUtterance_ = input.readBool();
-              break;
+            config_ = input.readMessage(com.google.cloud.speech.v1p1beta1.RecognitionConfig.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(config_);
+              config_ = subBuilder.buildPartial();
             }
-          case 24:
-            {
-              interimResults_ = input.readBool();
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+
+            break;
+          }
+          case 16: {
+
+            singleUtterance_ = input.readBool();
+            break;
+          }
+          case 24: {
+
+            interimResults_ = input.readBool();
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.speech.v1p1beta1.SpeechProto
-        .internal_static_google_cloud_speech_v1p1beta1_StreamingRecognitionConfig_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_StreamingRecognitionConfig_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v1p1beta1.SpeechProto
-        .internal_static_google_cloud_speech_v1p1beta1_StreamingRecognitionConfig_fieldAccessorTable
+    return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_StreamingRecognitionConfig_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig.class,
-            com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig.Builder.class);
+            com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig.class, com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig.Builder.class);
   }
 
   public static final int CONFIG_FIELD_NUMBER = 1;
   private com.google.cloud.speech.v1p1beta1.RecognitionConfig config_;
   /**
-   *
-   *
    * 
    * Required. Provides information to the recognizer that specifies how to
    * process the request.
    * 
* - * - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the config field is set. */ @java.lang.Override @@ -151,36 +124,25 @@ public boolean hasConfig() { return config_ != null; } /** - * - * *
    * Required. Provides information to the recognizer that specifies how to
    * process the request.
    * 
* - * - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The config. */ @java.lang.Override public com.google.cloud.speech.v1p1beta1.RecognitionConfig getConfig() { - return config_ == null - ? com.google.cloud.speech.v1p1beta1.RecognitionConfig.getDefaultInstance() - : config_; + return config_ == null ? com.google.cloud.speech.v1p1beta1.RecognitionConfig.getDefaultInstance() : config_; } /** - * - * *
    * Required. Provides information to the recognizer that specifies how to
    * process the request.
    * 
* - * - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.speech.v1p1beta1.RecognitionConfigOrBuilder getConfigOrBuilder() { @@ -190,8 +152,6 @@ public com.google.cloud.speech.v1p1beta1.RecognitionConfigOrBuilder getConfigOrB public static final int SINGLE_UTTERANCE_FIELD_NUMBER = 2; private boolean singleUtterance_; /** - * - * *
    * If `false` or omitted, the recognizer will perform continuous
    * recognition (continuing to wait for and process audio even if the user
@@ -214,7 +174,6 @@ public com.google.cloud.speech.v1p1beta1.RecognitionConfigOrBuilder getConfigOrB
    * 
* * bool single_utterance = 2; - * * @return The singleUtterance. */ @java.lang.Override @@ -225,8 +184,6 @@ public boolean getSingleUtterance() { public static final int INTERIM_RESULTS_FIELD_NUMBER = 3; private boolean interimResults_; /** - * - * *
    * If `true`, interim results (tentative hypotheses) may be
    * returned as they become available (these interim results are indicated with
@@ -235,7 +192,6 @@ public boolean getSingleUtterance() {
    * 
* * bool interim_results = 3; - * * @return The interimResults. */ @java.lang.Override @@ -244,7 +200,6 @@ public boolean getInterimResults() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -256,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 (config_ != null) { output.writeMessage(1, getConfig()); } @@ -276,13 +232,16 @@ public int getSerializedSize() { size = 0; if (config_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getConfig()); } if (singleUtterance_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, singleUtterance_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, singleUtterance_); } if (interimResults_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, interimResults_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, interimResults_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -292,20 +251,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig)) { return super.equals(obj); } - com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig other = - (com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig) obj; + com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig other = (com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig) obj; if (hasConfig() != other.hasConfig()) return false; if (hasConfig()) { - if (!getConfig().equals(other.getConfig())) return false; + if (!getConfig() + .equals(other.getConfig())) return false; } - if (getSingleUtterance() != other.getSingleUtterance()) return false; - if (getInterimResults() != other.getInterimResults()) return false; + if (getSingleUtterance() + != other.getSingleUtterance()) return false; + if (getInterimResults() + != other.getInterimResults()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -322,113 +283,107 @@ public int hashCode() { hash = (53 * hash) + getConfig().hashCode(); } hash = (37 * hash) + SINGLE_UTTERANCE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSingleUtterance()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getSingleUtterance()); hash = (37 * hash) + INTERIM_RESULTS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getInterimResults()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getInterimResults()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig prototype) { + public static Builder newBuilder(com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Provides information to the recognizer that specifies how to process the
    * request.
@@ -436,23 +391,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.speech.v1p1beta1.StreamingRecognitionConfig}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1p1beta1.StreamingRecognitionConfig)
       com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfigOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.speech.v1p1beta1.SpeechProto
-          .internal_static_google_cloud_speech_v1p1beta1_StreamingRecognitionConfig_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_StreamingRecognitionConfig_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v1p1beta1.SpeechProto
-          .internal_static_google_cloud_speech_v1p1beta1_StreamingRecognitionConfig_fieldAccessorTable
+      return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_StreamingRecognitionConfig_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig.class,
-              com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig.Builder.class);
+              com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig.class, com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig.newBuilder()
@@ -460,15 +413,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -486,14 +440,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();
     }
 
@@ -508,8 +461,7 @@ public com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig buildPartial() {
-      com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig result =
-          new com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig(this);
+      com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig result = new com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig(this);
       if (configBuilder_ == null) {
         result.config_ = config_;
       } else {
@@ -525,39 +477,38 @@ public com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig buildPartial
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig) {
-        return mergeFrom((com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig) other);
+        return mergeFrom((com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -565,9 +516,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());
       }
@@ -596,8 +545,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -609,61 +557,42 @@ public Builder mergeFrom(
 
     private com.google.cloud.speech.v1p1beta1.RecognitionConfig config_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.speech.v1p1beta1.RecognitionConfig,
-            com.google.cloud.speech.v1p1beta1.RecognitionConfig.Builder,
-            com.google.cloud.speech.v1p1beta1.RecognitionConfigOrBuilder>
-        configBuilder_;
+        com.google.cloud.speech.v1p1beta1.RecognitionConfig, com.google.cloud.speech.v1p1beta1.RecognitionConfig.Builder, com.google.cloud.speech.v1p1beta1.RecognitionConfigOrBuilder> configBuilder_;
     /**
-     *
-     *
      * 
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the config field is set. */ public boolean hasConfig() { return configBuilder_ != null || config_ != null; } /** - * - * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The config. */ public com.google.cloud.speech.v1p1beta1.RecognitionConfig getConfig() { if (configBuilder_ == null) { - return config_ == null - ? com.google.cloud.speech.v1p1beta1.RecognitionConfig.getDefaultInstance() - : config_; + return config_ == null ? com.google.cloud.speech.v1p1beta1.RecognitionConfig.getDefaultInstance() : config_; } else { return configBuilder_.getMessage(); } } /** - * - * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setConfig(com.google.cloud.speech.v1p1beta1.RecognitionConfig value) { if (configBuilder_ == null) { @@ -679,16 +608,12 @@ public Builder setConfig(com.google.cloud.speech.v1p1beta1.RecognitionConfig val return this; } /** - * - * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setConfig( com.google.cloud.speech.v1p1beta1.RecognitionConfig.Builder builderForValue) { @@ -702,24 +627,18 @@ public Builder setConfig( return this; } /** - * - * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeConfig(com.google.cloud.speech.v1p1beta1.RecognitionConfig value) { if (configBuilder_ == null) { if (config_ != null) { config_ = - com.google.cloud.speech.v1p1beta1.RecognitionConfig.newBuilder(config_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.speech.v1p1beta1.RecognitionConfig.newBuilder(config_).mergeFrom(value).buildPartial(); } else { config_ = value; } @@ -731,16 +650,12 @@ public Builder mergeConfig(com.google.cloud.speech.v1p1beta1.RecognitionConfig v return this; } /** - * - * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearConfig() { if (configBuilder_ == null) { @@ -754,76 +669,58 @@ public Builder clearConfig() { return this; } /** - * - * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.speech.v1p1beta1.RecognitionConfig.Builder getConfigBuilder() { - + onChanged(); return getConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.speech.v1p1beta1.RecognitionConfigOrBuilder getConfigOrBuilder() { if (configBuilder_ != null) { return configBuilder_.getMessageOrBuilder(); } else { - return config_ == null - ? com.google.cloud.speech.v1p1beta1.RecognitionConfig.getDefaultInstance() - : config_; + return config_ == null ? + com.google.cloud.speech.v1p1beta1.RecognitionConfig.getDefaultInstance() : config_; } } /** - * - * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.RecognitionConfig, - com.google.cloud.speech.v1p1beta1.RecognitionConfig.Builder, - com.google.cloud.speech.v1p1beta1.RecognitionConfigOrBuilder> + com.google.cloud.speech.v1p1beta1.RecognitionConfig, com.google.cloud.speech.v1p1beta1.RecognitionConfig.Builder, com.google.cloud.speech.v1p1beta1.RecognitionConfigOrBuilder> getConfigFieldBuilder() { if (configBuilder_ == null) { - configBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.RecognitionConfig, - com.google.cloud.speech.v1p1beta1.RecognitionConfig.Builder, - com.google.cloud.speech.v1p1beta1.RecognitionConfigOrBuilder>( - getConfig(), getParentForChildren(), isClean()); + configBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v1p1beta1.RecognitionConfig, com.google.cloud.speech.v1p1beta1.RecognitionConfig.Builder, com.google.cloud.speech.v1p1beta1.RecognitionConfigOrBuilder>( + getConfig(), + getParentForChildren(), + isClean()); config_ = null; } return configBuilder_; } - private boolean singleUtterance_; + private boolean singleUtterance_ ; /** - * - * *
      * If `false` or omitted, the recognizer will perform continuous
      * recognition (continuing to wait for and process audio even if the user
@@ -846,7 +743,6 @@ public com.google.cloud.speech.v1p1beta1.RecognitionConfigOrBuilder getConfigOrB
      * 
* * bool single_utterance = 2; - * * @return The singleUtterance. */ @java.lang.Override @@ -854,8 +750,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
@@ -878,19 +772,16 @@ public boolean getSingleUtterance() {
      * 
* * bool single_utterance = 2; - * * @param value The singleUtterance to set. * @return This builder for chaining. */ public Builder setSingleUtterance(boolean value) { - + singleUtterance_ = value; onChanged(); return this; } /** - * - * *
      * If `false` or omitted, the recognizer will perform continuous
      * recognition (continuing to wait for and process audio even if the user
@@ -913,20 +804,17 @@ public Builder setSingleUtterance(boolean value) {
      * 
* * bool single_utterance = 2; - * * @return This builder for chaining. */ public Builder clearSingleUtterance() { - + singleUtterance_ = false; onChanged(); return this; } - private boolean interimResults_; + private boolean interimResults_ ; /** - * - * *
      * If `true`, interim results (tentative hypotheses) may be
      * returned as they become available (these interim results are indicated with
@@ -935,7 +823,6 @@ public Builder clearSingleUtterance() {
      * 
* * bool interim_results = 3; - * * @return The interimResults. */ @java.lang.Override @@ -943,8 +830,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
@@ -953,19 +838,16 @@ public boolean getInterimResults() {
      * 
* * bool interim_results = 3; - * * @param value The interimResults to set. * @return This builder for chaining. */ public Builder setInterimResults(boolean value) { - + interimResults_ = value; onChanged(); return this; } /** - * - * *
      * If `true`, interim results (tentative hypotheses) may be
      * returned as they become available (these interim results are indicated with
@@ -974,18 +856,17 @@ public Builder setInterimResults(boolean value) {
      * 
* * bool interim_results = 3; - * * @return This builder for chaining. */ public Builder clearInterimResults() { - + interimResults_ = false; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -995,13 +876,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(); } @@ -1010,16 +890,16 @@ public static com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig getDe return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StreamingRecognitionConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new StreamingRecognitionConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StreamingRecognitionConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new StreamingRecognitionConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1034,4 +914,6 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionConfigOrBuilder.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionConfigOrBuilder.java similarity index 70% rename from proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionConfigOrBuilder.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionConfigOrBuilder.java index 40aa63db7..73a8d60b1 100644 --- a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionConfigOrBuilder.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionConfigOrBuilder.java @@ -1,75 +1,43 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech.proto package com.google.cloud.speech.v1p1beta1; -public interface StreamingRecognitionConfigOrBuilder - extends +public interface StreamingRecognitionConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1p1beta1.StreamingRecognitionConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Provides information to the recognizer that specifies how to
    * process the request.
    * 
* - * - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the config field is set. */ boolean hasConfig(); /** - * - * *
    * Required. Provides information to the recognizer that specifies how to
    * process the request.
    * 
* - * - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The config. */ com.google.cloud.speech.v1p1beta1.RecognitionConfig getConfig(); /** - * - * *
    * Required. Provides information to the recognizer that specifies how to
    * process the request.
    * 
* - * - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.speech.v1p1beta1.RecognitionConfigOrBuilder getConfigOrBuilder(); /** - * - * *
    * If `false` or omitted, the recognizer will perform continuous
    * recognition (continuing to wait for and process audio even if the user
@@ -92,14 +60,11 @@ public interface StreamingRecognitionConfigOrBuilder
    * 
* * bool single_utterance = 2; - * * @return The singleUtterance. */ boolean getSingleUtterance(); /** - * - * *
    * If `true`, interim results (tentative hypotheses) may be
    * returned as they become available (these interim results are indicated with
@@ -108,7 +73,6 @@ public interface StreamingRecognitionConfigOrBuilder
    * 
* * bool interim_results = 3; - * * @return The interimResults. */ boolean getInterimResults(); diff --git a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionResult.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionResult.java similarity index 75% rename from proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionResult.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionResult.java index 3fe0804d6..d66a3bae5 100644 --- a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionResult.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionResult.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech.proto package com.google.cloud.speech.v1p1beta1; /** - * - * *
  * A streaming speech recognition result corresponding to a portion of the audio
  * that is currently being processed.
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.cloud.speech.v1p1beta1.StreamingRecognitionResult}
  */
-public final class StreamingRecognitionResult extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class StreamingRecognitionResult extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.speech.v1p1beta1.StreamingRecognitionResult)
     StreamingRecognitionResultOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use StreamingRecognitionResult.newBuilder() to construct.
   private StreamingRecognitionResult(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private StreamingRecognitionResult() {
     alternatives_ = java.util.Collections.emptyList();
     languageCode_ = "";
@@ -45,15 +27,16 @@ private StreamingRecognitionResult() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new StreamingRecognitionResult();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private StreamingRecognitionResult(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -73,70 +56,63 @@ private StreamingRecognitionResult(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                alternatives_ =
-                    new java.util.ArrayList<
-                        com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative>();
-                mutable_bitField0_ |= 0x00000001;
-              }
-              alternatives_.add(
-                  input.readMessage(
-                      com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.parser(),
-                      extensionRegistry));
-              break;
+          case 10: {
+            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+              alternatives_ = new java.util.ArrayList();
+              mutable_bitField0_ |= 0x00000001;
             }
-          case 16:
-            {
-              isFinal_ = input.readBool();
-              break;
-            }
-          case 29:
-            {
-              stability_ = input.readFloat();
-              break;
-            }
-          case 34:
-            {
-              com.google.protobuf.Duration.Builder subBuilder = null;
-              if (resultEndTime_ != null) {
-                subBuilder = resultEndTime_.toBuilder();
-              }
-              resultEndTime_ =
-                  input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(resultEndTime_);
-                resultEndTime_ = subBuilder.buildPartial();
-              }
-
-              break;
+            alternatives_.add(
+                input.readMessage(com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.parser(), extensionRegistry));
+            break;
+          }
+          case 16: {
+
+            isFinal_ = input.readBool();
+            break;
+          }
+          case 29: {
+
+            stability_ = input.readFloat();
+            break;
+          }
+          case 34: {
+            com.google.protobuf.Duration.Builder subBuilder = null;
+            if (resultEndTime_ != null) {
+              subBuilder = resultEndTime_.toBuilder();
             }
-          case 40:
-            {
-              channelTag_ = input.readInt32();
-              break;
+            resultEndTime_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(resultEndTime_);
+              resultEndTime_ = subBuilder.buildPartial();
             }
-          case 50:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
 
-              languageCode_ = s;
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            break;
+          }
+          case 40: {
+
+            channelTag_ = input.readInt32();
+            break;
+          }
+          case 50: {
+            java.lang.String s = input.readStringRequireUtf8();
+
+            languageCode_ = s;
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         alternatives_ = java.util.Collections.unmodifiableList(alternatives_);
@@ -145,28 +121,22 @@ private StreamingRecognitionResult(
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.speech.v1p1beta1.SpeechProto
-        .internal_static_google_cloud_speech_v1p1beta1_StreamingRecognitionResult_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_StreamingRecognitionResult_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v1p1beta1.SpeechProto
-        .internal_static_google_cloud_speech_v1p1beta1_StreamingRecognitionResult_fieldAccessorTable
+    return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_StreamingRecognitionResult_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult.class,
-            com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult.Builder.class);
+            com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult.class, com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult.Builder.class);
   }
 
   public static final int ALTERNATIVES_FIELD_NUMBER = 1;
-  private java.util.List
-      alternatives_;
+  private java.util.List alternatives_;
   /**
-   *
-   *
    * 
    * May contain one or more recognition hypotheses (up to the
    * maximum specified in `max_alternatives`).
@@ -174,17 +144,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`).
@@ -192,18 +158,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`).
@@ -211,16 +173,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`).
@@ -228,16 +187,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`).
@@ -245,20 +201,17 @@ public com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative getAlterna
    * alternative being the most probable, as ranked by the recognizer.
    * 
* - * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; - * + * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; */ @java.lang.Override - public com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternativeOrBuilder - getAlternativesOrBuilder(int index) { + public com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternativeOrBuilder getAlternativesOrBuilder( + int index) { return alternatives_.get(index); } public static final int IS_FINAL_FIELD_NUMBER = 2; private boolean isFinal_; /** - * - * *
    * If `false`, this `StreamingRecognitionResult` represents an
    * interim result that may change. If `true`, this is the final time the
@@ -268,7 +221,6 @@ public com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative getAlterna
    * 
* * bool is_final = 2; - * * @return The isFinal. */ @java.lang.Override @@ -279,8 +231,6 @@ public boolean getIsFinal() { public static final int STABILITY_FIELD_NUMBER = 3; private float stability_; /** - * - * *
    * An estimate of the likelihood that the recognizer will not
    * change its guess about this interim result. Values range from 0.0
@@ -290,7 +240,6 @@ public boolean getIsFinal() {
    * 
* * float stability = 3; - * * @return The stability. */ @java.lang.Override @@ -301,15 +250,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 @@ -317,26 +263,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.
@@ -352,8 +291,6 @@ public com.google.protobuf.DurationOrBuilder getResultEndTimeOrBuilder() {
   public static final int CHANNEL_TAG_FIELD_NUMBER = 5;
   private int channelTag_;
   /**
-   *
-   *
    * 
    * For multi-channel audio, this is the channel number corresponding to the
    * recognized result for the audio from that channel.
@@ -361,7 +298,6 @@ public com.google.protobuf.DurationOrBuilder getResultEndTimeOrBuilder() {
    * 
* * int32 channel_tag = 5; - * * @return The channelTag. */ @java.lang.Override @@ -372,8 +308,6 @@ public int getChannelTag() { public static final int LANGUAGE_CODE_FIELD_NUMBER = 6; private volatile java.lang.Object languageCode_; /** - * - * *
    * Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag
    * of the language in this result. This language code was detected to have
@@ -381,7 +315,6 @@ public int getChannelTag() {
    * 
* * string language_code = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The languageCode. */ @java.lang.Override @@ -390,15 +323,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
@@ -406,15 +338,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 { @@ -423,7 +356,6 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -435,7 +367,8 @@ public final boolean isInitialized() { } @java.lang.Override - 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)); } @@ -464,19 +397,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 (stability_ != 0F) { - 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_); @@ -489,24 +427,29 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult)) { return super.equals(obj); } - com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult other = - (com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult) obj; + com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult other = (com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult) obj; - if (!getAlternativesList().equals(other.getAlternativesList())) return false; - if (getIsFinal() != other.getIsFinal()) return false; + if (!getAlternativesList() + .equals(other.getAlternativesList())) return false; + if (getIsFinal() + != other.getIsFinal()) return false; if (java.lang.Float.floatToIntBits(getStability()) - != java.lang.Float.floatToIntBits(other.getStability())) return false; + != java.lang.Float.floatToIntBits( + other.getStability())) return false; if (hasResultEndTime() != other.hasResultEndTime()) return false; if (hasResultEndTime()) { - if (!getResultEndTime().equals(other.getResultEndTime())) return false; + if (!getResultEndTime() + .equals(other.getResultEndTime())) return false; } - if (getChannelTag() != other.getChannelTag()) return false; - if (!getLanguageCode().equals(other.getLanguageCode())) return false; + if (getChannelTag() + != other.getChannelTag()) return false; + if (!getLanguageCode() + .equals(other.getLanguageCode())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -523,9 +466,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(); @@ -540,104 +485,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.
@@ -645,23 +582,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.speech.v1p1beta1.StreamingRecognitionResult}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1p1beta1.StreamingRecognitionResult)
       com.google.cloud.speech.v1p1beta1.StreamingRecognitionResultOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.speech.v1p1beta1.SpeechProto
-          .internal_static_google_cloud_speech_v1p1beta1_StreamingRecognitionResult_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_StreamingRecognitionResult_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v1p1beta1.SpeechProto
-          .internal_static_google_cloud_speech_v1p1beta1_StreamingRecognitionResult_fieldAccessorTable
+      return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_StreamingRecognitionResult_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult.class,
-              com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult.Builder.class);
+              com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult.class, com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult.newBuilder()
@@ -669,17 +604,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
         getAlternativesFieldBuilder();
       }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -707,14 +642,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();
     }
 
@@ -729,8 +663,7 @@ public com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult buildPartial() {
-      com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult result =
-          new com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult(this);
+      com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult result = new com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult(this);
       int from_bitField0_ = bitField0_;
       if (alternativesBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
@@ -758,39 +691,38 @@ public com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult buildPartial
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult) {
-        return mergeFrom((com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult) other);
+        return mergeFrom((com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -798,9 +730,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()) {
@@ -819,10 +749,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_);
           }
@@ -863,8 +792,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -873,30 +801,21 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int bitField0_;
 
-    private java.util.List
-        alternatives_ = java.util.Collections.emptyList();
-
+    private java.util.List alternatives_ =
+      java.util.Collections.emptyList();
     private void ensureAlternativesIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
-        alternatives_ =
-            new java.util.ArrayList(
-                alternatives_);
+        alternatives_ = new java.util.ArrayList(alternatives_);
         bitField0_ |= 0x00000001;
-      }
+       }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative,
-            com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.Builder,
-            com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternativeOrBuilder>
-        alternativesBuilder_;
+        com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative, com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.Builder, com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternativeOrBuilder> alternativesBuilder_;
 
     /**
-     *
-     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -904,11 +823,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 { @@ -916,8 +833,6 @@ private void ensureAlternativesIsMutable() { } } /** - * - * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -925,8 +840,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) { @@ -936,8 +850,6 @@ public int getAlternativesCount() { } } /** - * - * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -945,11 +857,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 { @@ -957,8 +867,6 @@ public com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative getAlterna } } /** - * - * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -966,8 +874,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) { @@ -984,8 +891,6 @@ public Builder setAlternatives( return this; } /** - * - * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -993,12 +898,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()); @@ -1009,8 +912,6 @@ public Builder setAlternatives( return this; } /** - * - * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -1018,11 +919,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(); @@ -1036,8 +935,6 @@ public Builder addAlternatives( return this; } /** - * - * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -1045,8 +942,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) { @@ -1063,8 +959,6 @@ public Builder addAlternatives( return this; } /** - * - * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -1072,8 +966,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) { @@ -1087,8 +980,6 @@ public Builder addAlternatives( return this; } /** - * - * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -1096,12 +987,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()); @@ -1112,8 +1001,6 @@ public Builder addAlternatives( return this; } /** - * - * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -1121,15 +1008,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); @@ -1137,8 +1023,6 @@ public Builder addAllAlternatives( return this; } /** - * - * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -1146,8 +1030,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) { @@ -1160,8 +1043,6 @@ public Builder clearAlternatives() { return this; } /** - * - * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -1169,8 +1050,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) { @@ -1183,8 +1063,6 @@ public Builder removeAlternatives(int index) { return this; } /** - * - * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -1192,16 +1070,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`).
@@ -1209,20 +1084,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`).
@@ -1230,12 +1101,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 { @@ -1243,8 +1112,6 @@ public Builder removeAlternatives(int index) { } } /** - * - * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -1252,18 +1119,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`).
@@ -1271,19 +1133,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`).
@@ -1291,35 +1148,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
@@ -1329,7 +1180,6 @@ public Builder removeAlternatives(int index) {
      * 
* * bool is_final = 2; - * * @return The isFinal. */ @java.lang.Override @@ -1337,8 +1187,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
@@ -1348,19 +1196,16 @@ public boolean getIsFinal() {
      * 
* * bool is_final = 2; - * * @param value The isFinal to set. * @return This builder for chaining. */ public Builder setIsFinal(boolean value) { - + isFinal_ = value; onChanged(); return this; } /** - * - * *
      * If `false`, this `StreamingRecognitionResult` represents an
      * interim result that may change. If `true`, this is the final time the
@@ -1370,20 +1215,17 @@ public Builder setIsFinal(boolean value) {
      * 
* * bool is_final = 2; - * * @return This builder for chaining. */ public Builder clearIsFinal() { - + isFinal_ = false; onChanged(); return this; } - private float stability_; + private float stability_ ; /** - * - * *
      * An estimate of the likelihood that the recognizer will not
      * change its guess about this interim result. Values range from 0.0
@@ -1393,7 +1235,6 @@ public Builder clearIsFinal() {
      * 
* * float stability = 3; - * * @return The stability. */ @java.lang.Override @@ -1401,8 +1242,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
@@ -1412,19 +1251,16 @@ public float getStability() {
      * 
* * float stability = 3; - * * @param value The stability to set. * @return This builder for chaining. */ public Builder setStability(float value) { - + stability_ = value; onChanged(); return this; } /** - * - * *
      * An estimate of the likelihood that the recognizer will not
      * change its guess about this interim result. Values range from 0.0
@@ -1434,11 +1270,10 @@ public Builder setStability(float value) {
      * 
* * float stability = 3; - * * @return This builder for chaining. */ public Builder clearStability() { - + stability_ = 0F; onChanged(); return this; @@ -1446,49 +1281,36 @@ public Builder clearStability() { private com.google.protobuf.Duration resultEndTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - resultEndTimeBuilder_; + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> resultEndTimeBuilder_; /** - * - * *
      * Time offset of the end of this result relative to the
      * beginning of the audio.
      * 
* * .google.protobuf.Duration result_end_time = 4; - * * @return Whether the resultEndTime field is set. */ public boolean hasResultEndTime() { return resultEndTimeBuilder_ != null || resultEndTime_ != null; } /** - * - * *
      * Time offset of the end of this result relative to the
      * beginning of the audio.
      * 
* * .google.protobuf.Duration result_end_time = 4; - * * @return The resultEndTime. */ public com.google.protobuf.Duration getResultEndTime() { if (resultEndTimeBuilder_ == null) { - return resultEndTime_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : resultEndTime_; + return resultEndTime_ == null ? com.google.protobuf.Duration.getDefaultInstance() : resultEndTime_; } else { return resultEndTimeBuilder_.getMessage(); } } /** - * - * *
      * Time offset of the end of this result relative to the
      * beginning of the audio.
@@ -1510,8 +1332,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.
@@ -1519,7 +1339,8 @@ public Builder setResultEndTime(com.google.protobuf.Duration value) {
      *
      * .google.protobuf.Duration result_end_time = 4;
      */
-    public Builder setResultEndTime(com.google.protobuf.Duration.Builder builderForValue) {
+    public Builder setResultEndTime(
+        com.google.protobuf.Duration.Builder builderForValue) {
       if (resultEndTimeBuilder_ == null) {
         resultEndTime_ = builderForValue.build();
         onChanged();
@@ -1530,8 +1351,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.
@@ -1543,9 +1362,7 @@ public Builder mergeResultEndTime(com.google.protobuf.Duration value) {
       if (resultEndTimeBuilder_ == null) {
         if (resultEndTime_ != null) {
           resultEndTime_ =
-              com.google.protobuf.Duration.newBuilder(resultEndTime_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.protobuf.Duration.newBuilder(resultEndTime_).mergeFrom(value).buildPartial();
         } else {
           resultEndTime_ = value;
         }
@@ -1557,8 +1374,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.
@@ -1578,8 +1393,6 @@ public Builder clearResultEndTime() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Time offset of the end of this result relative to the
      * beginning of the audio.
@@ -1588,13 +1401,11 @@ public Builder clearResultEndTime() {
      * .google.protobuf.Duration result_end_time = 4;
      */
     public com.google.protobuf.Duration.Builder getResultEndTimeBuilder() {
-
+      
       onChanged();
       return getResultEndTimeFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Time offset of the end of this result relative to the
      * beginning of the audio.
@@ -1606,14 +1417,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.
@@ -1622,26 +1430,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.
@@ -1649,7 +1452,6 @@ public com.google.protobuf.DurationOrBuilder getResultEndTimeOrBuilder() {
      * 
* * int32 channel_tag = 5; - * * @return The channelTag. */ @java.lang.Override @@ -1657,8 +1459,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.
@@ -1666,19 +1466,16 @@ public int getChannelTag() {
      * 
* * int32 channel_tag = 5; - * * @param value The channelTag to set. * @return This builder for chaining. */ public Builder setChannelTag(int value) { - + channelTag_ = value; onChanged(); return this; } /** - * - * *
      * For multi-channel audio, this is the channel number corresponding to the
      * recognized result for the audio from that channel.
@@ -1686,11 +1483,10 @@ public Builder setChannelTag(int value) {
      * 
* * int32 channel_tag = 5; - * * @return This builder for chaining. */ public Builder clearChannelTag() { - + channelTag_ = 0; onChanged(); return this; @@ -1698,8 +1494,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
@@ -1707,13 +1501,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; @@ -1722,8 +1516,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
@@ -1731,14 +1523,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 { @@ -1746,8 +1539,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
@@ -1755,22 +1546,20 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() {
      * 
* * string language_code = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCode(java.lang.String value) { + public Builder setLanguageCode( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + languageCode_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag
      * of the language in this result. This language code was detected to have
@@ -1778,18 +1567,15 @@ public Builder setLanguageCode(java.lang.String value) {
      * 
* * string language_code = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearLanguageCode() { - + languageCode_ = getDefaultInstance().getLanguageCode(); onChanged(); return this; } /** - * - * *
      * Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag
      * of the language in this result. This language code was detected to have
@@ -1797,23 +1583,23 @@ public Builder clearLanguageCode() {
      * 
* * string language_code = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { + public Builder setLanguageCodeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + languageCode_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1823,13 +1609,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(); } @@ -1838,16 +1623,16 @@ public static com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult getDe return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StreamingRecognitionResult parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new StreamingRecognitionResult(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StreamingRecognitionResult parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new StreamingRecognitionResult(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1862,4 +1647,6 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionResultOrBuilder.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionResultOrBuilder.java similarity index 82% rename from proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionResultOrBuilder.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionResultOrBuilder.java index 8a2935d37..3d6da9c0a 100644 --- a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionResultOrBuilder.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionResultOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech.proto package com.google.cloud.speech.v1p1beta1; -public interface StreamingRecognitionResultOrBuilder - extends +public interface StreamingRecognitionResultOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1p1beta1.StreamingRecognitionResult) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * May contain one or more recognition hypotheses (up to the
    * maximum specified in `max_alternatives`).
@@ -33,14 +15,11 @@ public interface StreamingRecognitionResultOrBuilder
    * alternative being the most probable, as ranked by the recognizer.
    * 
* - * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; - * + * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; */ - java.util.List + java.util.List getAlternativesList(); /** - * - * *
    * May contain one or more recognition hypotheses (up to the
    * maximum specified in `max_alternatives`).
@@ -48,13 +27,10 @@ public interface StreamingRecognitionResultOrBuilder
    * alternative being the most probable, as ranked by the recognizer.
    * 
* - * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; - * + * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; */ com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative getAlternatives(int index); /** - * - * *
    * May contain one or more recognition hypotheses (up to the
    * maximum specified in `max_alternatives`).
@@ -62,13 +38,10 @@ public interface StreamingRecognitionResultOrBuilder
    * alternative being the most probable, as ranked by the recognizer.
    * 
* - * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; - * + * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; */ int getAlternativesCount(); /** - * - * *
    * May contain one or more recognition hypotheses (up to the
    * maximum specified in `max_alternatives`).
@@ -76,14 +49,11 @@ public interface StreamingRecognitionResultOrBuilder
    * alternative being the most probable, as ranked by the recognizer.
    * 
* - * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; - * + * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; */ - java.util.List + java.util.List getAlternativesOrBuilderList(); /** - * - * *
    * May contain one or more recognition hypotheses (up to the
    * maximum specified in `max_alternatives`).
@@ -91,15 +61,12 @@ public interface StreamingRecognitionResultOrBuilder
    * alternative being the most probable, as ranked by the recognizer.
    * 
* - * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; - * + * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; */ com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternativeOrBuilder getAlternativesOrBuilder( int index); /** - * - * *
    * If `false`, this `StreamingRecognitionResult` represents an
    * interim result that may change. If `true`, this is the final time the
@@ -109,14 +76,11 @@ com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternativeOrBuilder getAlter
    * 
* * bool is_final = 2; - * * @return The isFinal. */ boolean getIsFinal(); /** - * - * *
    * An estimate of the likelihood that the recognizer will not
    * change its guess about this interim result. Values range from 0.0
@@ -126,40 +90,31 @@ com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternativeOrBuilder getAlter
    * 
* * float stability = 3; - * * @return The stability. */ float getStability(); /** - * - * *
    * Time offset of the end of this result relative to the
    * beginning of the audio.
    * 
* * .google.protobuf.Duration result_end_time = 4; - * * @return Whether the resultEndTime field is set. */ boolean hasResultEndTime(); /** - * - * *
    * Time offset of the end of this result relative to the
    * beginning of the audio.
    * 
* * .google.protobuf.Duration result_end_time = 4; - * * @return The resultEndTime. */ com.google.protobuf.Duration getResultEndTime(); /** - * - * *
    * Time offset of the end of this result relative to the
    * beginning of the audio.
@@ -170,8 +125,6 @@ com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternativeOrBuilder getAlter
   com.google.protobuf.DurationOrBuilder getResultEndTimeOrBuilder();
 
   /**
-   *
-   *
    * 
    * For multi-channel audio, this is the channel number corresponding to the
    * recognized result for the audio from that channel.
@@ -179,14 +132,11 @@ com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternativeOrBuilder getAlter
    * 
* * int32 channel_tag = 5; - * * @return The channelTag. */ int getChannelTag(); /** - * - * *
    * Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag
    * of the language in this result. This language code was detected to have
@@ -194,13 +144,10 @@ com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternativeOrBuilder getAlter
    * 
* * string language_code = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The languageCode. */ java.lang.String getLanguageCode(); /** - * - * *
    * Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag
    * of the language in this result. This language code was detected to have
@@ -208,8 +155,8 @@ com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternativeOrBuilder getAlter
    * 
* * string language_code = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for languageCode. */ - com.google.protobuf.ByteString getLanguageCodeBytes(); + com.google.protobuf.ByteString + getLanguageCodeBytes(); } diff --git a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeRequest.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeRequest.java similarity index 72% rename from proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeRequest.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeRequest.java index e9f014285..977d7d916 100644 --- a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeRequest.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeRequest.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech.proto package com.google.cloud.speech.v1p1beta1; /** - * - * *
  * The top-level message sent by the client for the `StreamingRecognize` method.
  * Multiple `StreamingRecognizeRequest` messages are sent. The first message
@@ -31,29 +14,30 @@
  *
  * Protobuf type {@code google.cloud.speech.v1p1beta1.StreamingRecognizeRequest}
  */
-public final class StreamingRecognizeRequest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class StreamingRecognizeRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.speech.v1p1beta1.StreamingRecognizeRequest)
     StreamingRecognizeRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use StreamingRecognizeRequest.newBuilder() to construct.
   private StreamingRecognizeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
-  private StreamingRecognizeRequest() {}
+  private StreamingRecognizeRequest() {
+  }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new StreamingRecognizeRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private StreamingRecognizeRequest(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -72,81 +56,66 @@ private StreamingRecognizeRequest(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig.Builder subBuilder =
-                  null;
-              if (streamingRequestCase_ == 1) {
-                subBuilder =
-                    ((com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig)
-                            streamingRequest_)
-                        .toBuilder();
-              }
-              streamingRequest_ =
-                  input.readMessage(
-                      com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(
-                    (com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig)
-                        streamingRequest_);
-                streamingRequest_ = subBuilder.buildPartial();
-              }
-              streamingRequestCase_ = 1;
-              break;
+          case 10: {
+            com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig.Builder subBuilder = null;
+            if (streamingRequestCase_ == 1) {
+              subBuilder = ((com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig) streamingRequest_).toBuilder();
             }
-          case 18:
-            {
-              streamingRequestCase_ = 2;
-              streamingRequest_ = input.readBytes();
-              break;
+            streamingRequest_ =
+                input.readMessage(com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom((com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig) streamingRequest_);
+              streamingRequest_ = subBuilder.buildPartial();
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            streamingRequestCase_ = 1;
+            break;
+          }
+          case 18: {
+            streamingRequestCase_ = 2;
+            streamingRequest_ = input.readBytes();
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.speech.v1p1beta1.SpeechProto
-        .internal_static_google_cloud_speech_v1p1beta1_StreamingRecognizeRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_StreamingRecognizeRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v1p1beta1.SpeechProto
-        .internal_static_google_cloud_speech_v1p1beta1_StreamingRecognizeRequest_fieldAccessorTable
+    return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_StreamingRecognizeRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest.class,
-            com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest.Builder.class);
+            com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest.class, com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest.Builder.class);
   }
 
   private int streamingRequestCase_ = 0;
   private java.lang.Object streamingRequest_;
-
   public enum StreamingRequestCase
-      implements
-          com.google.protobuf.Internal.EnumLite,
+      implements com.google.protobuf.Internal.EnumLite,
           com.google.protobuf.AbstractMessage.InternalOneOfEnum {
     STREAMING_CONFIG(1),
     AUDIO_CONTENT(2),
     STREAMINGREQUEST_NOT_SET(0);
     private final int value;
-
     private StreamingRequestCase(int value) {
       this.value = value;
     }
@@ -162,30 +131,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
@@ -193,7 +157,6 @@ public StreamingRequestCase getStreamingRequestCase() {
    * 
* * .google.cloud.speech.v1p1beta1.StreamingRecognitionConfig streaming_config = 1; - * * @return Whether the streamingConfig field is set. */ @java.lang.Override @@ -201,8 +164,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
@@ -210,19 +171,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
@@ -232,18 +190,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
@@ -256,7 +211,6 @@ public com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig getStreaming
    * 
* * bytes audio_content = 2; - * * @return Whether the audioContent field is set. */ @java.lang.Override @@ -264,8 +218,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
@@ -278,7 +230,6 @@ public boolean hasAudioContent() {
    * 
* * bytes audio_content = 2; - * * @return The audioContent. */ @java.lang.Override @@ -290,7 +241,6 @@ public com.google.protobuf.ByteString getAudioContent() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -302,13 +252,14 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (streamingRequestCase_ == 1) { - output.writeMessage( - 1, (com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig) streamingRequest_); + output.writeMessage(1, (com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig) streamingRequest_); } if (streamingRequestCase_ == 2) { - output.writeBytes(2, (com.google.protobuf.ByteString) streamingRequest_); + output.writeBytes( + 2, (com.google.protobuf.ByteString) streamingRequest_); } unknownFields.writeTo(output); } @@ -320,14 +271,13 @@ public int getSerializedSize() { size = 0; if (streamingRequestCase_ == 1) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 1, (com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig) streamingRequest_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, (com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig) streamingRequest_); } if (streamingRequestCase_ == 2) { - size += - com.google.protobuf.CodedOutputStream.computeBytesSize( - 2, (com.google.protobuf.ByteString) streamingRequest_); + size += com.google.protobuf.CodedOutputStream + .computeBytesSize( + 2, (com.google.protobuf.ByteString) streamingRequest_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -337,21 +287,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: @@ -385,104 +336,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
@@ -493,23 +436,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.speech.v1p1beta1.StreamingRecognizeRequest}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1p1beta1.StreamingRecognizeRequest)
       com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.speech.v1p1beta1.SpeechProto
-          .internal_static_google_cloud_speech_v1p1beta1_StreamingRecognizeRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_StreamingRecognizeRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v1p1beta1.SpeechProto
-          .internal_static_google_cloud_speech_v1p1beta1_StreamingRecognizeRequest_fieldAccessorTable
+      return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_StreamingRecognizeRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest.class,
-              com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest.Builder.class);
+              com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest.class, com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest.newBuilder()
@@ -517,15 +458,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -535,9 +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_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
@@ -556,8 +498,7 @@ public com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest buildPartial() {
-      com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest result =
-          new com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest(this);
+      com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest result = new com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest(this);
       if (streamingRequestCase_ == 1) {
         if (streamingConfigBuilder_ == null) {
           result.streamingRequest_ = streamingRequest_;
@@ -577,39 +518,38 @@ public com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest buildPartial(
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest) {
-        return mergeFrom((com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest) other);
+        return mergeFrom((com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -617,23 +557,19 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest other) {
-      if (other == com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest.getDefaultInstance()) return this;
       switch (other.getStreamingRequestCase()) {
-        case STREAMING_CONFIG:
-          {
-            mergeStreamingConfig(other.getStreamingConfig());
-            break;
-          }
-        case AUDIO_CONTENT:
-          {
-            setAudioContent(other.getAudioContent());
-            break;
-          }
-        case STREAMINGREQUEST_NOT_SET:
-          {
-            break;
-          }
+        case STREAMING_CONFIG: {
+          mergeStreamingConfig(other.getStreamingConfig());
+          break;
+        }
+        case AUDIO_CONTENT: {
+          setAudioContent(other.getAudioContent());
+          break;
+        }
+        case STREAMINGREQUEST_NOT_SET: {
+          break;
+        }
       }
       this.mergeUnknownFields(other.unknownFields);
       onChanged();
@@ -654,8 +590,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -664,12 +599,12 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int streamingRequestCase_ = 0;
     private java.lang.Object streamingRequest_;
-
-    public StreamingRequestCase getStreamingRequestCase() {
-      return StreamingRequestCase.forNumber(streamingRequestCase_);
+    public StreamingRequestCase
+        getStreamingRequestCase() {
+      return StreamingRequestCase.forNumber(
+          streamingRequestCase_);
     }
 
     public Builder clearStreamingRequest() {
@@ -679,14 +614,10 @@ public Builder clearStreamingRequest() {
       return this;
     }
 
+
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig,
-            com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig.Builder,
-            com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfigOrBuilder>
-        streamingConfigBuilder_;
+        com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig, com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig.Builder, com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfigOrBuilder> streamingConfigBuilder_;
     /**
-     *
-     *
      * 
      * Provides information to the recognizer that specifies how to process the
      * request. The first `StreamingRecognizeRequest` message must contain a
@@ -694,7 +625,6 @@ public Builder clearStreamingRequest() {
      * 
* * .google.cloud.speech.v1p1beta1.StreamingRecognitionConfig streaming_config = 1; - * * @return Whether the streamingConfig field is set. */ @java.lang.Override @@ -702,8 +632,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
@@ -711,7 +639,6 @@ public boolean hasStreamingConfig() {
      * 
* * .google.cloud.speech.v1p1beta1.StreamingRecognitionConfig streaming_config = 1; - * * @return The streamingConfig. */ @java.lang.Override @@ -729,8 +656,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
@@ -739,8 +664,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();
@@ -754,8 +678,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
@@ -776,8 +698,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
@@ -786,19 +706,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;
         }
@@ -813,8 +726,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
@@ -840,8 +751,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
@@ -850,13 +759,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
@@ -866,8 +772,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 {
@@ -878,8 +783,6 @@ public Builder clearStreamingConfig() {
       }
     }
     /**
-     *
-     *
      * 
      * Provides information to the recognizer that specifies how to process the
      * request. The first `StreamingRecognizeRequest` message must contain a
@@ -889,34 +792,25 @@ public Builder clearStreamingConfig() {
      * .google.cloud.speech.v1p1beta1.StreamingRecognitionConfig streaming_config = 1;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig,
-            com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig.Builder,
-            com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfigOrBuilder>
+        com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig, com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig.Builder, com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfigOrBuilder> 
         getStreamingConfigFieldBuilder() {
       if (streamingConfigBuilder_ == null) {
         if (!(streamingRequestCase_ == 1)) {
-          streamingRequest_ =
-              com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig.getDefaultInstance();
+          streamingRequest_ = com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig.getDefaultInstance();
         }
-        streamingConfigBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig,
-                com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig.Builder,
-                com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfigOrBuilder>(
+        streamingConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig, com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig.Builder, com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfigOrBuilder>(
                 (com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig) streamingRequest_,
                 getParentForChildren(),
                 isClean());
         streamingRequest_ = null;
       }
       streamingRequestCase_ = 1;
-      onChanged();
-      ;
+      onChanged();;
       return streamingConfigBuilder_;
     }
 
     /**
-     *
-     *
      * 
      * The audio data to be recognized. Sequential chunks of audio data are sent
      * in sequential `StreamingRecognizeRequest` messages. The first
@@ -929,15 +823,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
@@ -950,7 +841,6 @@ public boolean hasAudioContent() {
      * 
* * bytes audio_content = 2; - * * @return The audioContent. */ public com.google.protobuf.ByteString getAudioContent() { @@ -960,8 +850,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
@@ -974,22 +862,19 @@ public com.google.protobuf.ByteString getAudioContent() {
      * 
* * bytes audio_content = 2; - * * @param value The audioContent to set. * @return This builder for chaining. */ public Builder setAudioContent(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - streamingRequestCase_ = 2; + throw new NullPointerException(); + } + streamingRequestCase_ = 2; streamingRequest_ = value; onChanged(); return this; } /** - * - * *
      * The audio data to be recognized. Sequential chunks of audio data are sent
      * in sequential `StreamingRecognizeRequest` messages. The first
@@ -1002,7 +887,6 @@ public Builder setAudioContent(com.google.protobuf.ByteString value) {
      * 
* * bytes audio_content = 2; - * * @return This builder for chaining. */ public Builder clearAudioContent() { @@ -1013,9 +897,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); } @@ -1025,12 +909,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(); } @@ -1039,16 +923,16 @@ public static com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StreamingRecognizeRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new StreamingRecognizeRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StreamingRecognizeRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new StreamingRecognizeRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1063,4 +947,6 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeRequestOrBuilder.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeRequestOrBuilder.java similarity index 78% rename from proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeRequestOrBuilder.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeRequestOrBuilder.java index f6b61734f..e77bf66cf 100644 --- a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeRequestOrBuilder.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeRequestOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech.proto package com.google.cloud.speech.v1p1beta1; -public interface StreamingRecognizeRequestOrBuilder - extends +public interface StreamingRecognizeRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1p1beta1.StreamingRecognizeRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Provides information to the recognizer that specifies how to process the
    * request. The first `StreamingRecognizeRequest` message must contain a
@@ -33,13 +15,10 @@ public interface StreamingRecognizeRequestOrBuilder
    * 
* * .google.cloud.speech.v1p1beta1.StreamingRecognitionConfig streaming_config = 1; - * * @return Whether the streamingConfig field is set. */ boolean hasStreamingConfig(); /** - * - * *
    * Provides information to the recognizer that specifies how to process the
    * request. The first `StreamingRecognizeRequest` message must contain a
@@ -47,13 +26,10 @@ public interface StreamingRecognizeRequestOrBuilder
    * 
* * .google.cloud.speech.v1p1beta1.StreamingRecognitionConfig streaming_config = 1; - * * @return The streamingConfig. */ com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig getStreamingConfig(); /** - * - * *
    * Provides information to the recognizer that specifies how to process the
    * request. The first `StreamingRecognizeRequest` message must contain a
@@ -62,12 +38,9 @@ public interface StreamingRecognizeRequestOrBuilder
    *
    * .google.cloud.speech.v1p1beta1.StreamingRecognitionConfig streaming_config = 1;
    */
-  com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfigOrBuilder
-      getStreamingConfigOrBuilder();
+  com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfigOrBuilder getStreamingConfigOrBuilder();
 
   /**
-   *
-   *
    * 
    * The audio data to be recognized. Sequential chunks of audio data are sent
    * in sequential `StreamingRecognizeRequest` messages. The first
@@ -80,13 +53,10 @@ public interface StreamingRecognizeRequestOrBuilder
    * 
* * bytes audio_content = 2; - * * @return Whether the audioContent field is set. */ boolean hasAudioContent(); /** - * - * *
    * The audio data to be recognized. Sequential chunks of audio data are sent
    * in sequential `StreamingRecognizeRequest` messages. The first
@@ -99,11 +69,9 @@ public interface StreamingRecognizeRequestOrBuilder
    * 
* * bytes audio_content = 2; - * * @return The audioContent. */ com.google.protobuf.ByteString getAudioContent(); - public com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest.StreamingRequestCase - getStreamingRequestCase(); + public com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest.StreamingRequestCase getStreamingRequestCase(); } diff --git a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeResponse.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeResponse.java similarity index 75% rename from proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeResponse.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeResponse.java index 8ad4ceba0..f978fe4f6 100644 --- a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeResponse.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeResponse.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech.proto package com.google.cloud.speech.v1p1beta1; /** - * - * *
  * `StreamingRecognizeResponse` is the only message returned to the client by
  * `StreamingRecognize`. A series of zero or more `StreamingRecognizeResponse`
@@ -62,16 +45,15 @@
  *
  * Protobuf type {@code google.cloud.speech.v1p1beta1.StreamingRecognizeResponse}
  */
-public final class StreamingRecognizeResponse extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class StreamingRecognizeResponse extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.speech.v1p1beta1.StreamingRecognizeResponse)
     StreamingRecognizeResponseOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use StreamingRecognizeResponse.newBuilder() to construct.
   private StreamingRecognizeResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private StreamingRecognizeResponse() {
     results_ = java.util.Collections.emptyList();
     speechEventType_ = 0;
@@ -79,15 +61,16 @@ private StreamingRecognizeResponse() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new StreamingRecognizeResponse();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private StreamingRecognizeResponse(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -107,69 +90,61 @@ private StreamingRecognizeResponse(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              com.google.rpc.Status.Builder subBuilder = null;
-              if (error_ != null) {
-                subBuilder = error_.toBuilder();
-              }
-              error_ = input.readMessage(com.google.rpc.Status.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(error_);
-                error_ = subBuilder.buildPartial();
-              }
-
-              break;
+          case 10: {
+            com.google.rpc.Status.Builder subBuilder = null;
+            if (error_ != null) {
+              subBuilder = error_.toBuilder();
             }
-          case 18:
-            {
-              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                results_ =
-                    new java.util.ArrayList<
-                        com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult>();
-                mutable_bitField0_ |= 0x00000001;
-              }
-              results_.add(
-                  input.readMessage(
-                      com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult.parser(),
-                      extensionRegistry));
-              break;
+            error_ = input.readMessage(com.google.rpc.Status.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(error_);
+              error_ = subBuilder.buildPartial();
             }
-          case 32:
-            {
-              int rawValue = input.readEnum();
 
-              speechEventType_ = rawValue;
-              break;
+            break;
+          }
+          case 18: {
+            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+              results_ = new java.util.ArrayList();
+              mutable_bitField0_ |= 0x00000001;
             }
-          case 42:
-            {
-              com.google.protobuf.Duration.Builder subBuilder = null;
-              if (totalBilledTime_ != null) {
-                subBuilder = totalBilledTime_.toBuilder();
-              }
-              totalBilledTime_ =
-                  input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(totalBilledTime_);
-                totalBilledTime_ = subBuilder.buildPartial();
-              }
-
-              break;
+            results_.add(
+                input.readMessage(com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult.parser(), extensionRegistry));
+            break;
+          }
+          case 32: {
+            int rawValue = input.readEnum();
+
+            speechEventType_ = rawValue;
+            break;
+          }
+          case 42: {
+            com.google.protobuf.Duration.Builder subBuilder = null;
+            if (totalBilledTime_ != null) {
+              subBuilder = totalBilledTime_.toBuilder();
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            totalBilledTime_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(totalBilledTime_);
+              totalBilledTime_ = subBuilder.buildPartial();
             }
+
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
+            }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         results_ = java.util.Collections.unmodifiableList(results_);
@@ -178,35 +153,29 @@ private StreamingRecognizeResponse(
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.speech.v1p1beta1.SpeechProto
-        .internal_static_google_cloud_speech_v1p1beta1_StreamingRecognizeResponse_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_StreamingRecognizeResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v1p1beta1.SpeechProto
-        .internal_static_google_cloud_speech_v1p1beta1_StreamingRecognizeResponse_fieldAccessorTable
+    return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_StreamingRecognizeResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.class,
-            com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.Builder.class);
+            com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.class, com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.Builder.class);
   }
 
   /**
-   *
-   *
    * 
    * Indicates the type of speech event.
    * 
* * Protobuf enum {@code google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType} */ - public enum SpeechEventType implements com.google.protobuf.ProtocolMessageEnum { + public enum SpeechEventType + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * No speech event specified.
      * 
@@ -215,8 +184,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
@@ -234,8 +201,6 @@ public enum SpeechEventType implements com.google.protobuf.ProtocolMessageEnum {
     ;
 
     /**
-     *
-     *
      * 
      * No speech event specified.
      * 
@@ -244,8 +209,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
@@ -260,6 +223,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(
@@ -284,43 +248,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();
@@ -328,7 +288,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;
@@ -348,15 +309,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 @@ -364,15 +322,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 @@ -380,8 +335,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.
@@ -397,8 +350,6 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() {
   public static final int RESULTS_FIELD_NUMBER = 2;
   private java.util.List results_;
   /**
-   *
-   *
    * 
    * This repeated list contains zero or more results that
    * correspond to consecutive portions of the audio currently being processed.
@@ -409,13 +360,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.
@@ -426,14 +374,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.
@@ -448,8 +393,6 @@ public int getResultsCount() {
     return results_.size();
   }
   /**
-   *
-   *
    * 
    * This repeated list contains zero or more results that
    * correspond to consecutive portions of the audio currently being processed.
@@ -464,8 +407,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.
@@ -484,59 +425,39 @@ public com.google.cloud.speech.v1p1beta1.StreamingRecognitionResultOrBuilder get
   public static final int SPEECH_EVENT_TYPE_FIELD_NUMBER = 4;
   private int speechEventType_;
   /**
-   *
-   *
    * 
    * Indicates the type of speech event.
    * 
* - * - * .google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType speech_event_type = 4; - * - * + * .google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType speech_event_type = 4; * @return The enum numeric value on the wire for speechEventType. */ - @java.lang.Override - public int getSpeechEventTypeValue() { + @java.lang.Override public int getSpeechEventTypeValue() { return speechEventType_; } /** - * - * *
    * Indicates the type of speech event.
    * 
* - * - * .google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType speech_event_type = 4; - * - * + * .google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType speech_event_type = 4; * @return The speechEventType. */ - @java.lang.Override - public com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType - getSpeechEventType() { + @java.lang.Override public com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType getSpeechEventType() { @SuppressWarnings("deprecation") - com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType result = - com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType.valueOf( - speechEventType_); - return result == null - ? com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType.UNRECOGNIZED - : result; + com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType result = com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType.valueOf(speechEventType_); + return result == null ? com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType.UNRECOGNIZED : result; } public static final int TOTAL_BILLED_TIME_FIELD_NUMBER = 5; private com.google.protobuf.Duration totalBilledTime_; /** - * - * *
    * When available, billed audio seconds for the stream.
    * Set only if this is the last response in the stream.
    * 
* * .google.protobuf.Duration total_billed_time = 5; - * * @return Whether the totalBilledTime field is set. */ @java.lang.Override @@ -544,26 +465,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.
@@ -577,7 +491,6 @@ public com.google.protobuf.DurationOrBuilder getTotalBilledTimeOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -589,17 +502,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) {
@@ -615,19 +526,20 @@ public int getSerializedSize() {
 
     size = 0;
     if (error_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getError());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(1, getError());
     }
     for (int i = 0; i < results_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, results_.get(i));
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(2, results_.get(i));
     }
-    if (speechEventType_
-        != com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType
-            .SPEECH_EVENT_UNSPECIFIED
-            .getNumber()) {
-      size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, speechEventType_);
+    if (speechEventType_ != com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType.SPEECH_EVENT_UNSPECIFIED.getNumber()) {
+      size += com.google.protobuf.CodedOutputStream
+        .computeEnumSize(4, speechEventType_);
     }
     if (totalBilledTime_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getTotalBilledTime());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(5, getTotalBilledTime());
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -637,23 +549,25 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse)) {
       return super.equals(obj);
     }
-    com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse other =
-        (com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse) obj;
+    com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse other = (com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse) obj;
 
     if (hasError() != other.hasError()) return false;
     if (hasError()) {
-      if (!getError().equals(other.getError())) return false;
+      if (!getError()
+          .equals(other.getError())) return false;
     }
-    if (!getResultsList().equals(other.getResultsList())) return false;
+    if (!getResultsList()
+        .equals(other.getResultsList())) return false;
     if (speechEventType_ != other.speechEventType_) return false;
     if (hasTotalBilledTime() != other.hasTotalBilledTime()) return false;
     if (hasTotalBilledTime()) {
-      if (!getTotalBilledTime().equals(other.getTotalBilledTime())) return false;
+      if (!getTotalBilledTime()
+          .equals(other.getTotalBilledTime())) return false;
     }
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
@@ -686,104 +600,96 @@ public int hashCode() {
   }
 
   public static com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse parseFrom(
-      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
-
-  public static com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
-  public static Builder newBuilder(
-      com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse prototype) {
+  public static Builder newBuilder(com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * `StreamingRecognizeResponse` is the only message returned to the client by
    * `StreamingRecognize`. A series of zero or more `StreamingRecognizeResponse`
@@ -825,23 +731,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.speech.v1p1beta1.StreamingRecognizeResponse}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1p1beta1.StreamingRecognizeResponse)
       com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.speech.v1p1beta1.SpeechProto
-          .internal_static_google_cloud_speech_v1p1beta1_StreamingRecognizeResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_StreamingRecognizeResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v1p1beta1.SpeechProto
-          .internal_static_google_cloud_speech_v1p1beta1_StreamingRecognizeResponse_fieldAccessorTable
+      return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_StreamingRecognizeResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.class,
-              com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.Builder.class);
+              com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.class, com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.newBuilder()
@@ -849,17 +753,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
         getResultsFieldBuilder();
       }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -887,14 +791,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();
     }
 
@@ -909,8 +812,7 @@ public com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse buildPartial() {
-      com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse result =
-          new com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse(this);
+      com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse result = new com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse(this);
       int from_bitField0_ = bitField0_;
       if (errorBuilder_ == null) {
         result.error_ = error_;
@@ -940,39 +842,38 @@ public com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse buildPartial
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse) {
-        return mergeFrom((com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse) other);
+        return mergeFrom((com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -980,9 +881,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());
       }
@@ -1004,10 +903,9 @@ public Builder mergeFrom(com.google.cloud.speech.v1p1beta1.StreamingRecognizeRes
             resultsBuilder_ = null;
             results_ = other.results_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            resultsBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getResultsFieldBuilder()
-                    : null;
+            resultsBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getResultsFieldBuilder() : null;
           } else {
             resultsBuilder_.addAllMessages(other.results_);
           }
@@ -1038,8 +936,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -1048,38 +945,30 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int bitField0_;
 
     private com.google.rpc.Status error_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>
-        errorBuilder_;
+        com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> errorBuilder_;
     /**
-     *
-     *
      * 
      * If set, returns a [google.rpc.Status][google.rpc.Status] message that
      * specifies the error for the operation.
      * 
* * .google.rpc.Status error = 1; - * * @return Whether the error field is set. */ public boolean hasError() { return errorBuilder_ != null || error_ != null; } /** - * - * *
      * If set, returns a [google.rpc.Status][google.rpc.Status] message that
      * specifies the error for the operation.
      * 
* * .google.rpc.Status error = 1; - * * @return The error. */ public com.google.rpc.Status getError() { @@ -1090,8 +979,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.
@@ -1113,8 +1000,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.
@@ -1122,7 +1007,8 @@ public Builder setError(com.google.rpc.Status value) {
      *
      * .google.rpc.Status error = 1;
      */
-    public Builder setError(com.google.rpc.Status.Builder builderForValue) {
+    public Builder setError(
+        com.google.rpc.Status.Builder builderForValue) {
       if (errorBuilder_ == null) {
         error_ = builderForValue.build();
         onChanged();
@@ -1133,8 +1019,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.
@@ -1145,7 +1029,8 @@ public Builder setError(com.google.rpc.Status.Builder builderForValue) {
     public Builder mergeError(com.google.rpc.Status value) {
       if (errorBuilder_ == null) {
         if (error_ != null) {
-          error_ = com.google.rpc.Status.newBuilder(error_).mergeFrom(value).buildPartial();
+          error_ =
+            com.google.rpc.Status.newBuilder(error_).mergeFrom(value).buildPartial();
         } else {
           error_ = value;
         }
@@ -1157,8 +1042,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.
@@ -1178,8 +1061,6 @@ public Builder clearError() {
       return this;
     }
     /**
-     *
-     *
      * 
      * If set, returns a [google.rpc.Status][google.rpc.Status] message that
      * specifies the error for the operation.
@@ -1188,13 +1069,11 @@ public Builder clearError() {
      * .google.rpc.Status error = 1;
      */
     public com.google.rpc.Status.Builder getErrorBuilder() {
-
+      
       onChanged();
       return getErrorFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * If set, returns a [google.rpc.Status][google.rpc.Status] message that
      * specifies the error for the operation.
@@ -1206,12 +1085,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.
@@ -1220,40 +1098,32 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() {
      * .google.rpc.Status error = 1;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>
+        com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> 
         getErrorFieldBuilder() {
       if (errorBuilder_ == null) {
-        errorBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.rpc.Status,
-                com.google.rpc.Status.Builder,
-                com.google.rpc.StatusOrBuilder>(getError(), getParentForChildren(), isClean());
+        errorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>(
+                getError(),
+                getParentForChildren(),
+                isClean());
         error_ = null;
       }
       return errorBuilder_;
     }
 
     private java.util.List results_ =
-        java.util.Collections.emptyList();
-
+      java.util.Collections.emptyList();
     private void ensureResultsIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
-        results_ =
-            new java.util.ArrayList(
-                results_);
+        results_ = new java.util.ArrayList(results_);
         bitField0_ |= 0x00000001;
-      }
+       }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult,
-            com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult.Builder,
-            com.google.cloud.speech.v1p1beta1.StreamingRecognitionResultOrBuilder>
-        resultsBuilder_;
+        com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult, com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult.Builder, com.google.cloud.speech.v1p1beta1.StreamingRecognitionResultOrBuilder> resultsBuilder_;
 
     /**
-     *
-     *
      * 
      * This repeated list contains zero or more results that
      * correspond to consecutive portions of the audio currently being processed.
@@ -1263,8 +1133,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 {
@@ -1272,8 +1141,6 @@ private void ensureResultsIsMutable() {
       }
     }
     /**
-     *
-     *
      * 
      * This repeated list contains zero or more results that
      * correspond to consecutive portions of the audio currently being processed.
@@ -1291,8 +1158,6 @@ public int getResultsCount() {
       }
     }
     /**
-     *
-     *
      * 
      * This repeated list contains zero or more results that
      * correspond to consecutive portions of the audio currently being processed.
@@ -1310,8 +1175,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.
@@ -1336,8 +1199,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.
@@ -1348,8 +1209,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());
@@ -1360,8 +1220,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.
@@ -1385,8 +1243,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.
@@ -1411,8 +1267,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.
@@ -1434,8 +1288,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.
@@ -1446,8 +1298,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());
@@ -1458,8 +1309,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.
@@ -1470,11 +1319,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);
@@ -1482,8 +1331,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.
@@ -1504,8 +1351,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.
@@ -1526,8 +1371,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.
@@ -1542,8 +1385,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.
@@ -1553,17 +1394,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.
@@ -1573,9 +1411,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 {
@@ -1583,8 +1420,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.
@@ -1594,15 +1429,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.
@@ -1614,14 +1445,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.
@@ -1631,23 +1458,20 @@ public com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult.Builder addR
      *
      * repeated .google.cloud.speech.v1p1beta1.StreamingRecognitionResult results = 2;
      */
-    public java.util.List
-        getResultsBuilderList() {
+    public java.util.List 
+         getResultsBuilderList() {
       return getResultsFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult,
-            com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult.Builder,
-            com.google.cloud.speech.v1p1beta1.StreamingRecognitionResultOrBuilder>
+        com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult, com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult.Builder, com.google.cloud.speech.v1p1beta1.StreamingRecognitionResultOrBuilder> 
         getResultsFieldBuilder() {
       if (resultsBuilder_ == null) {
-        resultsBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult,
-                com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult.Builder,
-                com.google.cloud.speech.v1p1beta1.StreamingRecognitionResultOrBuilder>(
-                results_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
+        resultsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult, com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult.Builder, com.google.cloud.speech.v1p1beta1.StreamingRecognitionResultOrBuilder>(
+                results_,
+                ((bitField0_ & 0x00000001) != 0),
+                getParentForChildren(),
+                isClean());
         results_ = null;
       }
       return resultsBuilder_;
@@ -1655,106 +1479,73 @@ public com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult.Builder addR
 
     private int speechEventType_ = 0;
     /**
-     *
-     *
      * 
      * Indicates the type of speech event.
      * 
* - * - * .google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType speech_event_type = 4; - * - * + * .google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType speech_event_type = 4; * @return The enum numeric value on the wire for speechEventType. */ - @java.lang.Override - public int getSpeechEventTypeValue() { + @java.lang.Override public int getSpeechEventTypeValue() { return speechEventType_; } /** - * - * *
      * Indicates the type of speech event.
      * 
* - * - * .google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType speech_event_type = 4; - * - * + * .google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType speech_event_type = 4; * @param value The enum numeric value on the wire for speechEventType to set. * @return This builder for chaining. */ public Builder setSpeechEventTypeValue(int value) { - + speechEventType_ = value; onChanged(); return this; } /** - * - * *
      * Indicates the type of speech event.
      * 
* - * - * .google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType speech_event_type = 4; - * - * + * .google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType speech_event_type = 4; * @return The speechEventType. */ @java.lang.Override - public com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType - getSpeechEventType() { + public com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType getSpeechEventType() { @SuppressWarnings("deprecation") - com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType result = - com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType.valueOf( - speechEventType_); - return result == null - ? com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType - .UNRECOGNIZED - : result; + com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType result = com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType.valueOf(speechEventType_); + return result == null ? com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType.UNRECOGNIZED : result; } /** - * - * *
      * Indicates the type of speech event.
      * 
* - * - * .google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType speech_event_type = 4; - * - * + * .google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType speech_event_type = 4; * @param value The speechEventType to set. * @return This builder for chaining. */ - public Builder setSpeechEventType( - com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType value) { + public Builder setSpeechEventType(com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType value) { if (value == null) { throw new NullPointerException(); } - + speechEventType_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Indicates the type of speech event.
      * 
* - * - * .google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType speech_event_type = 4; - * - * + * .google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType speech_event_type = 4; * @return This builder for chaining. */ public Builder clearSpeechEventType() { - + speechEventType_ = 0; onChanged(); return this; @@ -1762,49 +1553,36 @@ public Builder clearSpeechEventType() { private com.google.protobuf.Duration totalBilledTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - totalBilledTimeBuilder_; + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> totalBilledTimeBuilder_; /** - * - * *
      * When available, billed audio seconds for the stream.
      * Set only if this is the last response in the stream.
      * 
* * .google.protobuf.Duration total_billed_time = 5; - * * @return Whether the totalBilledTime field is set. */ public boolean hasTotalBilledTime() { return totalBilledTimeBuilder_ != null || totalBilledTime_ != null; } /** - * - * *
      * When available, billed audio seconds for the stream.
      * Set only if this is the last response in the stream.
      * 
* * .google.protobuf.Duration total_billed_time = 5; - * * @return The totalBilledTime. */ public com.google.protobuf.Duration getTotalBilledTime() { if (totalBilledTimeBuilder_ == null) { - return totalBilledTime_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : totalBilledTime_; + return totalBilledTime_ == null ? com.google.protobuf.Duration.getDefaultInstance() : totalBilledTime_; } else { return totalBilledTimeBuilder_.getMessage(); } } /** - * - * *
      * When available, billed audio seconds for the stream.
      * Set only if this is the last response in the stream.
@@ -1826,8 +1604,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.
@@ -1835,7 +1611,8 @@ public Builder setTotalBilledTime(com.google.protobuf.Duration value) {
      *
      * .google.protobuf.Duration total_billed_time = 5;
      */
-    public Builder setTotalBilledTime(com.google.protobuf.Duration.Builder builderForValue) {
+    public Builder setTotalBilledTime(
+        com.google.protobuf.Duration.Builder builderForValue) {
       if (totalBilledTimeBuilder_ == null) {
         totalBilledTime_ = builderForValue.build();
         onChanged();
@@ -1846,8 +1623,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.
@@ -1859,9 +1634,7 @@ public Builder mergeTotalBilledTime(com.google.protobuf.Duration value) {
       if (totalBilledTimeBuilder_ == null) {
         if (totalBilledTime_ != null) {
           totalBilledTime_ =
-              com.google.protobuf.Duration.newBuilder(totalBilledTime_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.protobuf.Duration.newBuilder(totalBilledTime_).mergeFrom(value).buildPartial();
         } else {
           totalBilledTime_ = value;
         }
@@ -1873,8 +1646,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.
@@ -1894,8 +1665,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.
@@ -1904,13 +1673,11 @@ public Builder clearTotalBilledTime() {
      * .google.protobuf.Duration total_billed_time = 5;
      */
     public com.google.protobuf.Duration.Builder getTotalBilledTimeBuilder() {
-
+      
       onChanged();
       return getTotalBilledTimeFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * When available, billed audio seconds for the stream.
      * Set only if this is the last response in the stream.
@@ -1922,14 +1689,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.
@@ -1938,24 +1702,21 @@ public com.google.protobuf.DurationOrBuilder getTotalBilledTimeOrBuilder() {
      * .google.protobuf.Duration total_billed_time = 5;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Duration,
-            com.google.protobuf.Duration.Builder,
-            com.google.protobuf.DurationOrBuilder>
+        com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> 
         getTotalBilledTimeFieldBuilder() {
       if (totalBilledTimeBuilder_ == null) {
-        totalBilledTimeBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.Duration,
-                com.google.protobuf.Duration.Builder,
-                com.google.protobuf.DurationOrBuilder>(
-                getTotalBilledTime(), getParentForChildren(), isClean());
+        totalBilledTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
+                getTotalBilledTime(),
+                getParentForChildren(),
+                isClean());
         totalBilledTime_ = null;
       }
       return totalBilledTimeBuilder_;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1965,13 +1726,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();
   }
@@ -1980,16 +1740,16 @@ public static com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse getDe
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public StreamingRecognizeResponse parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          return new StreamingRecognizeResponse(input, extensionRegistry);
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public StreamingRecognizeResponse parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      return new StreamingRecognizeResponse(input, extensionRegistry);
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -2004,4 +1764,6 @@ public com.google.protobuf.Parser getParserForType()
   public com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeResponseOrBuilder.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeResponseOrBuilder.java
similarity index 81%
rename from proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeResponseOrBuilder.java
rename to owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeResponseOrBuilder.java
index d58bc6551..f8b30e427 100644
--- a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeResponseOrBuilder.java
+++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeResponseOrBuilder.java
@@ -1,57 +1,33 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/speech/v1p1beta1/cloud_speech.proto
 
 package com.google.cloud.speech.v1p1beta1;
 
-public interface StreamingRecognizeResponseOrBuilder
-    extends
+public interface StreamingRecognizeResponseOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1p1beta1.StreamingRecognizeResponse)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * If set, returns a [google.rpc.Status][google.rpc.Status] message that
    * specifies the error for the operation.
    * 
* * .google.rpc.Status error = 1; - * * @return Whether the error field is set. */ boolean hasError(); /** - * - * *
    * If set, returns a [google.rpc.Status][google.rpc.Status] message that
    * specifies the error for the operation.
    * 
* * .google.rpc.Status error = 1; - * * @return The error. */ com.google.rpc.Status getError(); /** - * - * *
    * If set, returns a [google.rpc.Status][google.rpc.Status] message that
    * specifies the error for the operation.
@@ -62,8 +38,6 @@ public interface StreamingRecognizeResponseOrBuilder
   com.google.rpc.StatusOrBuilder getErrorOrBuilder();
 
   /**
-   *
-   *
    * 
    * This repeated list contains zero or more results that
    * correspond to consecutive portions of the audio currently being processed.
@@ -73,10 +47,9 @@ public interface StreamingRecognizeResponseOrBuilder
    *
    * repeated .google.cloud.speech.v1p1beta1.StreamingRecognitionResult results = 2;
    */
-  java.util.List getResultsList();
+  java.util.List 
+      getResultsList();
   /**
-   *
-   *
    * 
    * This repeated list contains zero or more results that
    * correspond to consecutive portions of the audio currently being processed.
@@ -88,8 +61,6 @@ public interface StreamingRecognizeResponseOrBuilder
    */
   com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult getResults(int index);
   /**
-   *
-   *
    * 
    * This repeated list contains zero or more results that
    * correspond to consecutive portions of the audio currently being processed.
@@ -101,8 +72,6 @@ public interface StreamingRecognizeResponseOrBuilder
    */
   int getResultsCount();
   /**
-   *
-   *
    * 
    * This repeated list contains zero or more results that
    * correspond to consecutive portions of the audio currently being processed.
@@ -112,11 +81,9 @@ public interface StreamingRecognizeResponseOrBuilder
    *
    * repeated .google.cloud.speech.v1p1beta1.StreamingRecognitionResult results = 2;
    */
-  java.util.List
+  java.util.List 
       getResultsOrBuilderList();
   /**
-   *
-   *
    * 
    * This repeated list contains zero or more results that
    * correspond to consecutive portions of the audio currently being processed.
@@ -130,63 +97,45 @@ com.google.cloud.speech.v1p1beta1.StreamingRecognitionResultOrBuilder getResults
       int index);
 
   /**
-   *
-   *
    * 
    * Indicates the type of speech event.
    * 
* - * - * .google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType speech_event_type = 4; - * - * + * .google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType speech_event_type = 4; * @return The enum numeric value on the wire for speechEventType. */ int getSpeechEventTypeValue(); /** - * - * *
    * Indicates the type of speech event.
    * 
* - * - * .google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType speech_event_type = 4; - * - * + * .google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType speech_event_type = 4; * @return The speechEventType. */ com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType getSpeechEventType(); /** - * - * *
    * When available, billed audio seconds for the stream.
    * Set only if this is the last response in the stream.
    * 
* * .google.protobuf.Duration total_billed_time = 5; - * * @return Whether the totalBilledTime field is set. */ boolean hasTotalBilledTime(); /** - * - * *
    * When available, billed audio seconds for the stream.
    * Set only if this is the last response in the stream.
    * 
* * .google.protobuf.Duration total_billed_time = 5; - * * @return The totalBilledTime. */ com.google.protobuf.Duration getTotalBilledTime(); /** - * - * *
    * When available, billed audio seconds for the stream.
    * Set only if this is the last response in the stream.
diff --git a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptNormalization.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptNormalization.java
similarity index 73%
rename from proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptNormalization.java
rename to owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptNormalization.java
index 3eb99c278..b50006be7 100644
--- a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptNormalization.java
+++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptNormalization.java
@@ -1,26 +1,9 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/speech/v1p1beta1/resource.proto
 
 package com.google.cloud.speech.v1p1beta1;
 
 /**
- *
- *
  * 
  * Transcription normalization configuration. Use transcription normalization
  * to automatically replace parts of the transcript with phrases of your
@@ -30,31 +13,31 @@
  *
  * Protobuf type {@code google.cloud.speech.v1p1beta1.TranscriptNormalization}
  */
-public final class TranscriptNormalization extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class TranscriptNormalization extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.speech.v1p1beta1.TranscriptNormalization)
     TranscriptNormalizationOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use TranscriptNormalization.newBuilder() to construct.
   private TranscriptNormalization(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private TranscriptNormalization() {
     entries_ = java.util.Collections.emptyList();
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new TranscriptNormalization();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private TranscriptNormalization(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -74,33 +57,29 @@ private TranscriptNormalization(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                entries_ =
-                    new java.util.ArrayList<
-                        com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry>();
-                mutable_bitField0_ |= 0x00000001;
-              }
-              entries_.add(
-                  input.readMessage(
-                      com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry.parser(),
-                      extensionRegistry));
-              break;
+          case 10: {
+            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+              entries_ = new java.util.ArrayList();
+              mutable_bitField0_ |= 0x00000001;
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            entries_.add(
+                input.readMessage(com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry.parser(), extensionRegistry));
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         entries_ = java.util.Collections.unmodifiableList(entries_);
@@ -109,109 +88,89 @@ private TranscriptNormalization(
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.speech.v1p1beta1.SpeechResourceProto
-        .internal_static_google_cloud_speech_v1p1beta1_TranscriptNormalization_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.speech.v1p1beta1.SpeechResourceProto.internal_static_google_cloud_speech_v1p1beta1_TranscriptNormalization_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v1p1beta1.SpeechResourceProto
-        .internal_static_google_cloud_speech_v1p1beta1_TranscriptNormalization_fieldAccessorTable
+    return com.google.cloud.speech.v1p1beta1.SpeechResourceProto.internal_static_google_cloud_speech_v1p1beta1_TranscriptNormalization_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v1p1beta1.TranscriptNormalization.class,
-            com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Builder.class);
+            com.google.cloud.speech.v1p1beta1.TranscriptNormalization.class, com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Builder.class);
   }
 
-  public interface EntryOrBuilder
-      extends
+  public interface EntryOrBuilder extends
       // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry)
       com.google.protobuf.MessageOrBuilder {
 
     /**
-     *
-     *
      * 
      * What to replace. Max length is 100 characters.
      * 
* * string search = 1; - * * @return The search. */ java.lang.String getSearch(); /** - * - * *
      * What to replace. Max length is 100 characters.
      * 
* * string search = 1; - * * @return The bytes for search. */ - com.google.protobuf.ByteString getSearchBytes(); + com.google.protobuf.ByteString + getSearchBytes(); /** - * - * *
      * What to replace with. Max length is 100 characters.
      * 
* * string replace = 2; - * * @return The replace. */ java.lang.String getReplace(); /** - * - * *
      * What to replace with. Max length is 100 characters.
      * 
* * string replace = 2; - * * @return The bytes for replace. */ - com.google.protobuf.ByteString getReplaceBytes(); + com.google.protobuf.ByteString + getReplaceBytes(); /** - * - * *
      * Whether the search is case sensitive.
      * 
* * bool case_sensitive = 3; - * * @return The caseSensitive. */ boolean getCaseSensitive(); } /** - * - * *
    * A single replacement configuration.
    * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry} */ - public static final class Entry extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class Entry extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry) EntryOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Entry.newBuilder() to construct. private Entry(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Entry() { search_ = ""; replace_ = ""; @@ -219,15 +178,16 @@ private Entry() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Entry(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private Entry( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -246,70 +206,63 @@ private Entry( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - search_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + search_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - replace_ = s; - break; - } - case 24: - { - caseSensitive_ = input.readBool(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + replace_ = s; + break; + } + case 24: { + + caseSensitive_ = input.readBool(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechResourceProto - .internal_static_google_cloud_speech_v1p1beta1_TranscriptNormalization_Entry_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechResourceProto.internal_static_google_cloud_speech_v1p1beta1_TranscriptNormalization_Entry_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechResourceProto - .internal_static_google_cloud_speech_v1p1beta1_TranscriptNormalization_Entry_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechResourceProto.internal_static_google_cloud_speech_v1p1beta1_TranscriptNormalization_Entry_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry.class, - com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry.Builder.class); + com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry.class, com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry.Builder.class); } public static final int SEARCH_FIELD_NUMBER = 1; private volatile java.lang.Object search_; /** - * - * *
      * What to replace. Max length is 100 characters.
      * 
* * string search = 1; - * * @return The search. */ @java.lang.Override @@ -318,29 +271,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 { @@ -351,14 +304,11 @@ public com.google.protobuf.ByteString getSearchBytes() { public static final int REPLACE_FIELD_NUMBER = 2; private volatile java.lang.Object replace_; /** - * - * *
      * What to replace with. Max length is 100 characters.
      * 
* * string replace = 2; - * * @return The replace. */ @java.lang.Override @@ -367,29 +317,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 { @@ -400,14 +350,11 @@ public com.google.protobuf.ByteString getReplaceBytes() { public static final int CASE_SENSITIVE_FIELD_NUMBER = 3; private boolean caseSensitive_; /** - * - * *
      * Whether the search is case sensitive.
      * 
* * bool case_sensitive = 3; - * * @return The caseSensitive. */ @java.lang.Override @@ -416,7 +363,6 @@ public boolean getCaseSensitive() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -428,7 +374,8 @@ public final boolean isInitialized() { } @java.lang.Override - public 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_); } @@ -454,7 +401,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, replace_); } if (caseSensitive_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, caseSensitive_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, caseSensitive_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -464,17 +412,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry)) { return super.equals(obj); } - com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry other = - (com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry) obj; + com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry other = (com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry) obj; - if (!getSearch().equals(other.getSearch())) return false; - if (!getReplace().equals(other.getReplace())) return false; - if (getCaseSensitive() != other.getCaseSensitive()) return false; + if (!getSearch() + .equals(other.getSearch())) return false; + if (!getReplace() + .equals(other.getReplace())) return false; + if (getCaseSensitive() + != other.getCaseSensitive()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -491,102 +441,95 @@ public int hashCode() { hash = (37 * hash) + REPLACE_FIELD_NUMBER; hash = (53 * hash) + getReplace().hashCode(); hash = (37 * hash) + CASE_SENSITIVE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getCaseSensitive()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getCaseSensitive()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry prototype) { + public static Builder newBuilder(com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -596,49 +539,44 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * A single replacement configuration.
      * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry) com.google.cloud.speech.v1p1beta1.TranscriptNormalization.EntryOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechResourceProto - .internal_static_google_cloud_speech_v1p1beta1_TranscriptNormalization_Entry_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechResourceProto.internal_static_google_cloud_speech_v1p1beta1_TranscriptNormalization_Entry_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechResourceProto - .internal_static_google_cloud_speech_v1p1beta1_TranscriptNormalization_Entry_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechResourceProto.internal_static_google_cloud_speech_v1p1beta1_TranscriptNormalization_Entry_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry.class, - com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry.Builder.class); + com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry.class, com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry.Builder.class); } - // Construct using - // com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry.newBuilder() + // Construct using com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -652,14 +590,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(); } @@ -674,8 +611,7 @@ public com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry build() { @java.lang.Override public com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry buildPartial() { - com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry result = - new com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry(this); + com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry result = new com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry(this); result.search_ = search_; result.replace_ = replace_; result.caseSensitive_ = caseSensitive_; @@ -687,52 +623,46 @@ public com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry buildPart public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry) { - return mergeFrom((com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry) other); + return mergeFrom((com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry other) { - if (other - == com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry other) { + if (other == com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry.getDefaultInstance()) return this; if (!other.getSearch().isEmpty()) { search_ = other.search_; onChanged(); @@ -763,9 +693,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -777,20 +705,18 @@ public Builder mergeFrom( private java.lang.Object search_ = ""; /** - * - * *
        * What to replace. Max length is 100 characters.
        * 
* * string search = 1; - * * @return The search. */ public java.lang.String getSearch() { java.lang.Object ref = search_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); search_ = s; return s; @@ -799,21 +725,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 { @@ -821,61 +746,54 @@ public com.google.protobuf.ByteString getSearchBytes() { } } /** - * - * *
        * What to replace. Max length is 100 characters.
        * 
* * string search = 1; - * * @param value The search to set. * @return This builder for chaining. */ - public Builder setSearch(java.lang.String value) { + public Builder setSearch( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + search_ = value; onChanged(); return this; } /** - * - * *
        * What to replace. Max length is 100 characters.
        * 
* * string search = 1; - * * @return This builder for chaining. */ public Builder clearSearch() { - + search_ = getDefaultInstance().getSearch(); onChanged(); return this; } /** - * - * *
        * What to replace. Max length is 100 characters.
        * 
* * string search = 1; - * * @param value The bytes for search to set. * @return This builder for chaining. */ - public Builder setSearchBytes(com.google.protobuf.ByteString value) { + public Builder setSearchBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + search_ = value; onChanged(); return this; @@ -883,20 +801,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; @@ -905,21 +821,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 { @@ -927,76 +842,66 @@ public com.google.protobuf.ByteString getReplaceBytes() { } } /** - * - * *
        * What to replace with. Max length is 100 characters.
        * 
* * string replace = 2; - * * @param value The replace to set. * @return This builder for chaining. */ - public Builder setReplace(java.lang.String value) { + public Builder setReplace( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + replace_ = value; onChanged(); return this; } /** - * - * *
        * What to replace with. Max length is 100 characters.
        * 
* * string replace = 2; - * * @return This builder for chaining. */ public Builder clearReplace() { - + replace_ = getDefaultInstance().getReplace(); onChanged(); return this; } /** - * - * *
        * What to replace with. Max length is 100 characters.
        * 
* * string replace = 2; - * * @param value The bytes for replace to set. * @return This builder for chaining. */ - public Builder setReplaceBytes(com.google.protobuf.ByteString value) { + public Builder setReplaceBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + replace_ = value; onChanged(); return this; } - private boolean caseSensitive_; + private boolean caseSensitive_ ; /** - * - * *
        * Whether the search is case sensitive.
        * 
* * bool case_sensitive = 3; - * * @return The caseSensitive. */ @java.lang.Override @@ -1004,41 +909,34 @@ public boolean getCaseSensitive() { return caseSensitive_; } /** - * - * *
        * Whether the search is case sensitive.
        * 
* * bool case_sensitive = 3; - * * @param value The caseSensitive to set. * @return This builder for chaining. */ public Builder setCaseSensitive(boolean value) { - + caseSensitive_ = value; onChanged(); return this; } /** - * - * *
        * Whether the search is case sensitive.
        * 
* * bool case_sensitive = 3; - * * @return This builder for chaining. */ public Builder clearCaseSensitive() { - + caseSensitive_ = false; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1051,32 +949,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry) - private static final com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry - DEFAULT_INSTANCE; - + private static final com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry(); } - public static com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry - getDefaultInstance() { + public static com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Entry parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Entry(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Entry parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Entry(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1088,17 +984,15 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry - getDefaultInstanceForType() { + public com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int ENTRIES_FIELD_NUMBER = 1; private java.util.List entries_; /** - * - * *
    * A list of replacement entries. We will perform replacement with one entry
    * at a time. For example, the second entry in ["cat" => "dog", "mountain cat"
@@ -1109,13 +1003,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"
@@ -1126,14 +1017,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"
@@ -1148,8 +1036,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"
@@ -1164,8 +1050,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"
@@ -1176,13 +1060,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;
@@ -1194,7 +1077,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  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));
     }
@@ -1208,7 +1092,8 @@ public int getSerializedSize() {
 
     size = 0;
     for (int i = 0; i < entries_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, entries_.get(i));
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(1, entries_.get(i));
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -1218,15 +1103,15 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.speech.v1p1beta1.TranscriptNormalization)) {
       return super.equals(obj);
     }
-    com.google.cloud.speech.v1p1beta1.TranscriptNormalization other =
-        (com.google.cloud.speech.v1p1beta1.TranscriptNormalization) obj;
+    com.google.cloud.speech.v1p1beta1.TranscriptNormalization other = (com.google.cloud.speech.v1p1beta1.TranscriptNormalization) obj;
 
-    if (!getEntriesList().equals(other.getEntriesList())) return false;
+    if (!getEntriesList()
+        .equals(other.getEntriesList())) return false;
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
   }
@@ -1248,104 +1133,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
@@ -1355,23 +1232,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.speech.v1p1beta1.TranscriptNormalization}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1p1beta1.TranscriptNormalization)
       com.google.cloud.speech.v1p1beta1.TranscriptNormalizationOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.speech.v1p1beta1.SpeechResourceProto
-          .internal_static_google_cloud_speech_v1p1beta1_TranscriptNormalization_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.speech.v1p1beta1.SpeechResourceProto.internal_static_google_cloud_speech_v1p1beta1_TranscriptNormalization_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v1p1beta1.SpeechResourceProto
-          .internal_static_google_cloud_speech_v1p1beta1_TranscriptNormalization_fieldAccessorTable
+      return com.google.cloud.speech.v1p1beta1.SpeechResourceProto.internal_static_google_cloud_speech_v1p1beta1_TranscriptNormalization_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v1p1beta1.TranscriptNormalization.class,
-              com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Builder.class);
+              com.google.cloud.speech.v1p1beta1.TranscriptNormalization.class, com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v1p1beta1.TranscriptNormalization.newBuilder()
@@ -1379,17 +1254,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
         getEntriesFieldBuilder();
       }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1403,9 +1278,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
@@ -1424,8 +1299,7 @@ public com.google.cloud.speech.v1p1beta1.TranscriptNormalization build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v1p1beta1.TranscriptNormalization buildPartial() {
-      com.google.cloud.speech.v1p1beta1.TranscriptNormalization result =
-          new com.google.cloud.speech.v1p1beta1.TranscriptNormalization(this);
+      com.google.cloud.speech.v1p1beta1.TranscriptNormalization result = new com.google.cloud.speech.v1p1beta1.TranscriptNormalization(this);
       int from_bitField0_ = bitField0_;
       if (entriesBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
@@ -1444,39 +1318,38 @@ public com.google.cloud.speech.v1p1beta1.TranscriptNormalization buildPartial()
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.speech.v1p1beta1.TranscriptNormalization) {
-        return mergeFrom((com.google.cloud.speech.v1p1beta1.TranscriptNormalization) other);
+        return mergeFrom((com.google.cloud.speech.v1p1beta1.TranscriptNormalization)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1484,8 +1357,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()) {
@@ -1504,10 +1376,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_);
           }
@@ -1532,8 +1403,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.speech.v1p1beta1.TranscriptNormalization) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.speech.v1p1beta1.TranscriptNormalization) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -1542,30 +1412,21 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int bitField0_;
 
-    private java.util.List
-        entries_ = java.util.Collections.emptyList();
-
+    private java.util.List entries_ =
+      java.util.Collections.emptyList();
     private void ensureEntriesIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
-        entries_ =
-            new java.util.ArrayList<
-                com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry>(entries_);
+        entries_ = new java.util.ArrayList(entries_);
         bitField0_ |= 0x00000001;
-      }
+       }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry,
-            com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry.Builder,
-            com.google.cloud.speech.v1p1beta1.TranscriptNormalization.EntryOrBuilder>
-        entriesBuilder_;
+        com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry, com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry.Builder, com.google.cloud.speech.v1p1beta1.TranscriptNormalization.EntryOrBuilder> entriesBuilder_;
 
     /**
-     *
-     *
      * 
      * A list of replacement entries. We will perform replacement with one entry
      * at a time. For example, the second entry in ["cat" => "dog", "mountain cat"
@@ -1573,11 +1434,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 { @@ -1585,8 +1444,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"
@@ -1594,8 +1451,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) { @@ -1605,8 +1461,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"
@@ -1614,8 +1468,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) { @@ -1625,8 +1478,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"
@@ -1634,8 +1485,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) { @@ -1652,8 +1502,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"
@@ -1661,12 +1509,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()); @@ -1677,8 +1523,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"
@@ -1686,11 +1530,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(); @@ -1704,8 +1546,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"
@@ -1713,8 +1553,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) { @@ -1731,8 +1570,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"
@@ -1740,8 +1577,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) { @@ -1755,8 +1591,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"
@@ -1764,12 +1598,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()); @@ -1780,8 +1612,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"
@@ -1789,16 +1619,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); @@ -1806,8 +1634,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"
@@ -1815,8 +1641,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) { @@ -1829,8 +1654,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"
@@ -1838,8 +1661,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) { @@ -1852,8 +1674,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"
@@ -1861,16 +1681,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"
@@ -1878,20 +1695,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"
@@ -1899,12 +1712,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 { @@ -1912,8 +1723,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"
@@ -1921,18 +1730,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"
@@ -1940,19 +1744,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"
@@ -1960,33 +1759,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); } @@ -1996,12 +1791,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(); } @@ -2010,16 +1805,16 @@ public static com.google.cloud.speech.v1p1beta1.TranscriptNormalization getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TranscriptNormalization parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TranscriptNormalization(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TranscriptNormalization parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TranscriptNormalization(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2034,4 +1829,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.TranscriptNormalization getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptNormalizationOrBuilder.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptNormalizationOrBuilder.java similarity index 78% rename from proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptNormalizationOrBuilder.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptNormalizationOrBuilder.java index 11549b4c3..fa51b40b7 100644 --- a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptNormalizationOrBuilder.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptNormalizationOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/resource.proto package com.google.cloud.speech.v1p1beta1; -public interface TranscriptNormalizationOrBuilder - extends +public interface TranscriptNormalizationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1p1beta1.TranscriptNormalization) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * A list of replacement entries. We will perform replacement with one entry
    * at a time. For example, the second entry in ["cat" => "dog", "mountain cat"
@@ -35,10 +17,9 @@ public interface TranscriptNormalizationOrBuilder
    *
    * repeated .google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry entries = 1;
    */
-  java.util.List getEntriesList();
+  java.util.List 
+      getEntriesList();
   /**
-   *
-   *
    * 
    * A list of replacement entries. We will perform replacement with one entry
    * at a time. For example, the second entry in ["cat" => "dog", "mountain cat"
@@ -50,8 +31,6 @@ public interface TranscriptNormalizationOrBuilder
    */
   com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry getEntries(int index);
   /**
-   *
-   *
    * 
    * A list of replacement entries. We will perform replacement with one entry
    * at a time. For example, the second entry in ["cat" => "dog", "mountain cat"
@@ -63,8 +42,6 @@ public interface TranscriptNormalizationOrBuilder
    */
   int getEntriesCount();
   /**
-   *
-   *
    * 
    * A list of replacement entries. We will perform replacement with one entry
    * at a time. For example, the second entry in ["cat" => "dog", "mountain cat"
@@ -74,11 +51,9 @@ public interface TranscriptNormalizationOrBuilder
    *
    * repeated .google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry entries = 1;
    */
-  java.util.List
+  java.util.List 
       getEntriesOrBuilderList();
   /**
-   *
-   *
    * 
    * A list of replacement entries. We will perform replacement with one entry
    * at a time. For example, the second entry in ["cat" => "dog", "mountain cat"
diff --git a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptOutputConfig.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptOutputConfig.java
similarity index 70%
rename from proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptOutputConfig.java
rename to owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptOutputConfig.java
index 1fc12e9f4..21deb461b 100644
--- a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptOutputConfig.java
+++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptOutputConfig.java
@@ -1,55 +1,39 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/speech/v1p1beta1/cloud_speech.proto
 
 package com.google.cloud.speech.v1p1beta1;
 
 /**
- *
- *
  * 
  * Specifies an optional destination for the recognition results.
  * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.TranscriptOutputConfig} */ -public final class TranscriptOutputConfig extends com.google.protobuf.GeneratedMessageV3 - implements +public final class TranscriptOutputConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v1p1beta1.TranscriptOutputConfig) TranscriptOutputConfigOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use TranscriptOutputConfig.newBuilder() to construct. private TranscriptOutputConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private TranscriptOutputConfig() {} + private TranscriptOutputConfig() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new TranscriptOutputConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private TranscriptOutputConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,58 +52,52 @@ private TranscriptOutputConfig( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - outputTypeCase_ = 1; - outputType_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + outputTypeCase_ = 1; + outputType_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechProto - .internal_static_google_cloud_speech_v1p1beta1_TranscriptOutputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_TranscriptOutputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechProto - .internal_static_google_cloud_speech_v1p1beta1_TranscriptOutputConfig_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_TranscriptOutputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.class, - com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.Builder.class); + com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.class, com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.Builder.class); } private int outputTypeCase_ = 0; private java.lang.Object outputType_; - public enum OutputTypeCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { GCS_URI(1), OUTPUTTYPE_NOT_SET(0); private final int value; - private OutputTypeCase(int value) { this.value = value; } @@ -135,28 +113,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
@@ -164,15 +138,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
@@ -180,7 +151,6 @@ public boolean hasGcsUri() {
    * 
* * string gcs_uri = 1; - * * @return The gcsUri. */ public java.lang.String getGcsUri() { @@ -191,7 +161,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; @@ -200,8 +171,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
@@ -209,17 +178,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; } @@ -230,7 +200,6 @@ public com.google.protobuf.ByteString getGcsUriBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -242,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 (outputTypeCase_ == 1) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, outputType_); } @@ -266,18 +236,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: @@ -307,127 +277,117 @@ public int hashCode() { } public static com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig prototype) { + public static Builder newBuilder(com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Specifies an optional destination for the recognition results.
    * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.TranscriptOutputConfig} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1p1beta1.TranscriptOutputConfig) com.google.cloud.speech.v1p1beta1.TranscriptOutputConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechProto - .internal_static_google_cloud_speech_v1p1beta1_TranscriptOutputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_TranscriptOutputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechProto - .internal_static_google_cloud_speech_v1p1beta1_TranscriptOutputConfig_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_TranscriptOutputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.class, - com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.Builder.class); + com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.class, com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.Builder.class); } // Construct using com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.newBuilder() @@ -435,15 +395,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -453,9 +414,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 @@ -474,8 +435,7 @@ public com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig build() { @java.lang.Override public com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig buildPartial() { - com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig result = - new com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig(this); + com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig result = new com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig(this); if (outputTypeCase_ == 1) { result.outputType_ = outputType_; } @@ -488,39 +448,38 @@ public com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig) { - return mergeFrom((com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig) other); + return mergeFrom((com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig)other); } else { super.mergeFrom(other); return this; @@ -528,20 +487,17 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig other) { - if (other == com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.getDefaultInstance()) - return this; + if (other == com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.getDefaultInstance()) return this; switch (other.getOutputTypeCase()) { - case GCS_URI: - { - outputTypeCase_ = 1; - outputType_ = other.outputType_; - onChanged(); - break; - } - case OUTPUTTYPE_NOT_SET: - { - break; - } + case GCS_URI: { + outputTypeCase_ = 1; + outputType_ = other.outputType_; + onChanged(); + break; + } + case OUTPUTTYPE_NOT_SET: { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -562,8 +518,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -572,12 +527,12 @@ public Builder mergeFrom( } return this; } - private int outputTypeCase_ = 0; private java.lang.Object outputType_; - - public OutputTypeCase getOutputTypeCase() { - return OutputTypeCase.forNumber(outputTypeCase_); + public OutputTypeCase + getOutputTypeCase() { + return OutputTypeCase.forNumber( + outputTypeCase_); } public Builder clearOutputType() { @@ -587,9 +542,8 @@ public Builder clearOutputType() { return this; } + /** - * - * *
      * Specifies a Cloud Storage URI for the recognition results. Must be
      * specified in the format: `gs://bucket_name/object_name`, and the bucket
@@ -597,7 +551,6 @@ public Builder clearOutputType() {
      * 
* * string gcs_uri = 1; - * * @return Whether the gcsUri field is set. */ @java.lang.Override @@ -605,8 +558,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
@@ -614,7 +565,6 @@ public boolean hasGcsUri() {
      * 
* * string gcs_uri = 1; - * * @return The gcsUri. */ @java.lang.Override @@ -624,7 +574,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; @@ -635,8 +586,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
@@ -644,18 +593,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; } @@ -665,8 +615,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
@@ -674,22 +622,20 @@ public com.google.protobuf.ByteString getGcsUriBytes() {
      * 
* * string gcs_uri = 1; - * * @param value The gcsUri to set. * @return This builder for chaining. */ - public Builder setGcsUri(java.lang.String value) { + public Builder setGcsUri( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - outputTypeCase_ = 1; + throw new NullPointerException(); + } + outputTypeCase_ = 1; outputType_ = value; onChanged(); return this; } /** - * - * *
      * Specifies a Cloud Storage URI for the recognition results. Must be
      * specified in the format: `gs://bucket_name/object_name`, and the bucket
@@ -697,7 +643,6 @@ public Builder setGcsUri(java.lang.String value) {
      * 
* * string gcs_uri = 1; - * * @return This builder for chaining. */ public Builder clearGcsUri() { @@ -709,8 +654,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
@@ -718,23 +661,23 @@ public Builder clearGcsUri() {
      * 
* * string gcs_uri = 1; - * * @param value The bytes for gcsUri to set. * @return This builder for chaining. */ - public Builder setGcsUriBytes(com.google.protobuf.ByteString value) { + public Builder setGcsUriBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); outputTypeCase_ = 1; outputType_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -744,12 +687,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(); } @@ -758,16 +701,16 @@ public static com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TranscriptOutputConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TranscriptOutputConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TranscriptOutputConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TranscriptOutputConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -782,4 +725,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptOutputConfigOrBuilder.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptOutputConfigOrBuilder.java similarity index 61% rename from proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptOutputConfigOrBuilder.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptOutputConfigOrBuilder.java index 102d1f01e..3733fac7b 100644 --- a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptOutputConfigOrBuilder.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptOutputConfigOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech.proto package com.google.cloud.speech.v1p1beta1; -public interface TranscriptOutputConfigOrBuilder - extends +public interface TranscriptOutputConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1p1beta1.TranscriptOutputConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Specifies a Cloud Storage URI for the recognition results. Must be
    * specified in the format: `gs://bucket_name/object_name`, and the bucket
@@ -33,13 +15,10 @@ public interface TranscriptOutputConfigOrBuilder
    * 
* * string gcs_uri = 1; - * * @return Whether the gcsUri field is set. */ boolean hasGcsUri(); /** - * - * *
    * Specifies a Cloud Storage URI for the recognition results. Must be
    * specified in the format: `gs://bucket_name/object_name`, and the bucket
@@ -47,13 +26,10 @@ public interface TranscriptOutputConfigOrBuilder
    * 
* * string gcs_uri = 1; - * * @return The gcsUri. */ java.lang.String getGcsUri(); /** - * - * *
    * Specifies a Cloud Storage URI for the recognition results. Must be
    * specified in the format: `gs://bucket_name/object_name`, and the bucket
@@ -61,11 +37,10 @@ public interface TranscriptOutputConfigOrBuilder
    * 
* * string gcs_uri = 1; - * * @return The bytes for gcsUri. */ - com.google.protobuf.ByteString getGcsUriBytes(); + com.google.protobuf.ByteString + getGcsUriBytes(); - public com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.OutputTypeCase - getOutputTypeCase(); + public com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.OutputTypeCase getOutputTypeCase(); } diff --git a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdateCustomClassRequest.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdateCustomClassRequest.java similarity index 67% rename from proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdateCustomClassRequest.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdateCustomClassRequest.java index a2ddd097c..526bfc112 100644 --- a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdateCustomClassRequest.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdateCustomClassRequest.java @@ -1,55 +1,39 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech_adaptation.proto package com.google.cloud.speech.v1p1beta1; /** - * - * *
  * Message sent by the client for the `UpdateCustomClass` method.
  * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.UpdateCustomClassRequest} */ -public final class UpdateCustomClassRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class UpdateCustomClassRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v1p1beta1.UpdateCustomClassRequest) UpdateCustomClassRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use UpdateCustomClassRequest.newBuilder() to construct. private UpdateCustomClassRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private UpdateCustomClassRequest() {} + private UpdateCustomClassRequest() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UpdateCustomClassRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private UpdateCustomClassRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,76 +52,67 @@ private UpdateCustomClassRequest( case 0: done = true; break; - case 10: - { - com.google.cloud.speech.v1p1beta1.CustomClass.Builder subBuilder = null; - if (customClass_ != null) { - subBuilder = customClass_.toBuilder(); - } - customClass_ = - input.readMessage( - com.google.cloud.speech.v1p1beta1.CustomClass.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(customClass_); - customClass_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.cloud.speech.v1p1beta1.CustomClass.Builder subBuilder = null; + if (customClass_ != null) { + subBuilder = customClass_.toBuilder(); + } + customClass_ = input.readMessage(com.google.cloud.speech.v1p1beta1.CustomClass.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(customClass_); + customClass_ = subBuilder.buildPartial(); } - case 18: - { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (updateMask_ != null) { - subBuilder = updateMask_.toBuilder(); - } - updateMask_ = - input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateMask_); - updateMask_ = subBuilder.buildPartial(); - } - break; + break; + } + case 18: { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto - .internal_static_google_cloud_speech_v1p1beta1_UpdateCustomClassRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_UpdateCustomClassRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto - .internal_static_google_cloud_speech_v1p1beta1_UpdateCustomClassRequest_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_UpdateCustomClassRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest.class, - com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest.Builder.class); + com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest.class, com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest.Builder.class); } public static final int CUSTOM_CLASS_FIELD_NUMBER = 1; private com.google.cloud.speech.v1p1beta1.CustomClass customClass_; /** - * - * *
    * Required. The custom class to update.
    * The custom class's `name` field is used to identify the custom class to be
@@ -146,14 +121,11 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 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.
    * 
* - * - * .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 @@ -161,8 +133,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
@@ -171,25 +141,18 @@ public boolean hasCustomClass() {
    * 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.
    * 
* - * - * .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
@@ -198,13 +161,11 @@ public com.google.cloud.speech.v1p1beta1.CustomClass getCustomClass() {
    * 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.
    * 
* - * - * .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() { @@ -214,14 +175,11 @@ public com.google.cloud.speech.v1p1beta1.CustomClassOrBuilder getCustomClassOrBu public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** - * - * *
    * The list of fields to be updated.
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -229,14 +187,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 @@ -244,8 +199,6 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * *
    * The list of fields to be updated.
    * 
@@ -258,7 +211,6 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -270,7 +222,8 @@ public final boolean isInitialized() { } @java.lang.Override - public 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()); } @@ -287,10 +240,12 @@ public int getSerializedSize() { size = 0; if (customClass_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCustomClass()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getCustomClass()); } if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getUpdateMask()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -300,21 +255,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest)) { return super.equals(obj); } - com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest other = - (com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest) obj; + com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest other = (com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest) obj; if (hasCustomClass() != other.hasCustomClass()) return false; if (hasCustomClass()) { - if (!getCustomClass().equals(other.getCustomClass())) return false; + if (!getCustomClass() + .equals(other.getCustomClass())) return false; } if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask().equals(other.getUpdateMask())) return false; + if (!getUpdateMask() + .equals(other.getUpdateMask())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -341,127 +297,117 @@ public int hashCode() { } public static com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest prototype) { + public static Builder newBuilder(com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Message sent by the client for the `UpdateCustomClass` method.
    * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.UpdateCustomClassRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1p1beta1.UpdateCustomClassRequest) com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto - .internal_static_google_cloud_speech_v1p1beta1_UpdateCustomClassRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_UpdateCustomClassRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto - .internal_static_google_cloud_speech_v1p1beta1_UpdateCustomClassRequest_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_UpdateCustomClassRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest.class, - com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest.Builder.class); + com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest.class, com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest.Builder.class); } // Construct using com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest.newBuilder() @@ -469,15 +415,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -497,9 +444,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 @@ -518,8 +465,7 @@ public com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest build() { @java.lang.Override public com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest buildPartial() { - com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest result = - new com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest(this); + com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest result = new com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest(this); if (customClassBuilder_ == null) { result.customClass_ = customClass_; } else { @@ -538,39 +484,38 @@ public com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest buildPartial() public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest) { - return mergeFrom((com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest) other); + return mergeFrom((com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest)other); } else { super.mergeFrom(other); return this; @@ -578,8 +523,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()); } @@ -605,8 +549,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -618,13 +561,8 @@ public Builder mergeFrom( private com.google.cloud.speech.v1p1beta1.CustomClass customClass_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.CustomClass, - com.google.cloud.speech.v1p1beta1.CustomClass.Builder, - com.google.cloud.speech.v1p1beta1.CustomClassOrBuilder> - customClassBuilder_; + com.google.cloud.speech.v1p1beta1.CustomClass, com.google.cloud.speech.v1p1beta1.CustomClass.Builder, com.google.cloud.speech.v1p1beta1.CustomClassOrBuilder> customClassBuilder_; /** - * - * *
      * Required. The custom class to update.
      * The custom class's `name` field is used to identify the custom class to be
@@ -633,22 +571,17 @@ public Builder mergeFrom(
      * 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.
      * 
* - * - * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the customClass field is set. */ public boolean hasCustomClass() { return customClassBuilder_ != null || customClass_ != null; } /** - * - * *
      * Required. The custom class to update.
      * The custom class's `name` field is used to identify the custom class to be
@@ -657,28 +590,21 @@ public boolean hasCustomClass() {
      * 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.
      * 
* - * - * .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
@@ -687,13 +613,11 @@ public com.google.cloud.speech.v1p1beta1.CustomClass getCustomClass() {
      * 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.
      * 
* - * - * .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) { @@ -709,8 +633,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
@@ -719,13 +641,11 @@ public Builder setCustomClass(com.google.cloud.speech.v1p1beta1.CustomClass valu
      * 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.
      * 
* - * - * .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) { @@ -739,8 +659,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
@@ -749,21 +667,17 @@ public Builder setCustomClass(
      * 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.
      * 
* - * - * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeCustomClass(com.google.cloud.speech.v1p1beta1.CustomClass value) { if (customClassBuilder_ == null) { if (customClass_ != null) { customClass_ = - com.google.cloud.speech.v1p1beta1.CustomClass.newBuilder(customClass_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.speech.v1p1beta1.CustomClass.newBuilder(customClass_).mergeFrom(value).buildPartial(); } else { customClass_ = value; } @@ -775,8 +689,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
@@ -785,13 +697,11 @@ public Builder mergeCustomClass(com.google.cloud.speech.v1p1beta1.CustomClass va
      * 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.
      * 
* - * - * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearCustomClass() { if (customClassBuilder_ == null) { @@ -805,8 +715,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
@@ -815,22 +723,18 @@ public Builder clearCustomClass() {
      * 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.
      * 
* - * - * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.speech.v1p1beta1.CustomClass.Builder getCustomClassBuilder() { - + onChanged(); return getCustomClassFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The custom class to update.
      * The custom class's `name` field is used to identify the custom class to be
@@ -839,26 +743,21 @@ public com.google.cloud.speech.v1p1beta1.CustomClass.Builder getCustomClassBuild
      * 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.
      * 
* - * - * .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
@@ -867,26 +766,21 @@ public com.google.cloud.speech.v1p1beta1.CustomClassOrBuilder getCustomClassOrBu
      * 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.
      * 
* - * - * .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_; @@ -894,47 +788,34 @@ public com.google.cloud.speech.v1p1beta1.CustomClassOrBuilder getCustomClassOrBu private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - updateMaskBuilder_; + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; /** - * - * *
      * The list of fields to be updated.
      * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** - * - * *
      * The list of fields to be updated.
      * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** - * - * *
      * The list of fields to be updated.
      * 
@@ -955,15 +836,14 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * The list of fields to be updated.
      * 
* * .google.protobuf.FieldMask update_mask = 2; */ - public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + public Builder setUpdateMask( + com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); onChanged(); @@ -974,8 +854,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal return this; } /** - * - * *
      * The list of fields to be updated.
      * 
@@ -986,7 +864,7 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { if (updateMask_ != null) { updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); } else { updateMask_ = value; } @@ -998,8 +876,6 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * The list of fields to be updated.
      * 
@@ -1018,8 +894,6 @@ public Builder clearUpdateMask() { return this; } /** - * - * *
      * The list of fields to be updated.
      * 
@@ -1027,13 +901,11 @@ public Builder clearUpdateMask() { * .google.protobuf.FieldMask update_mask = 2; */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - + onChanged(); return getUpdateMaskFieldBuilder().getBuilder(); } /** - * - * *
      * The list of fields to be updated.
      * 
@@ -1044,14 +916,11 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { if (updateMaskBuilder_ != null) { return updateMaskBuilder_.getMessageOrBuilder(); } else { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? + com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } } /** - * - * *
      * The list of fields to be updated.
      * 
@@ -1059,24 +928,21 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { * .google.protobuf.FieldMask update_mask = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> getUpdateMaskFieldBuilder() { if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), getParentForChildren(), isClean()); + updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), + getParentForChildren(), + isClean()); updateMask_ = null; } return updateMaskBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1086,12 +952,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(); } @@ -1100,16 +966,16 @@ public static com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateCustomClassRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UpdateCustomClassRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateCustomClassRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpdateCustomClassRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1124,4 +990,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdateCustomClassRequestOrBuilder.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdateCustomClassRequestOrBuilder.java similarity index 64% rename from proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdateCustomClassRequestOrBuilder.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdateCustomClassRequestOrBuilder.java index 1792176d9..5ffdf4623 100644 --- a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdateCustomClassRequestOrBuilder.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdateCustomClassRequestOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech_adaptation.proto package com.google.cloud.speech.v1p1beta1; -public interface UpdateCustomClassRequestOrBuilder - extends +public interface UpdateCustomClassRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1p1beta1.UpdateCustomClassRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The custom class to update.
    * The custom class's `name` field is used to identify the custom class to be
@@ -34,20 +16,15 @@ public interface UpdateCustomClassRequestOrBuilder
    * 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.
    * 
* - * - * .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
@@ -56,20 +33,15 @@ public interface UpdateCustomClassRequestOrBuilder
    * 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.
    * 
* - * - * .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
@@ -78,43 +50,33 @@ public interface UpdateCustomClassRequestOrBuilder
    * 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.
    * 
* - * - * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.speech.v1p1beta1.CustomClassOrBuilder getCustomClassOrBuilder(); /** - * - * *
    * The list of fields to be updated.
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** - * - * *
    * The list of fields to be updated.
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** - * - * *
    * The list of fields to be updated.
    * 
diff --git a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdatePhraseSetRequest.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdatePhraseSetRequest.java similarity index 67% rename from proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdatePhraseSetRequest.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdatePhraseSetRequest.java index 1b6fb853b..f7e0c565c 100644 --- a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdatePhraseSetRequest.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdatePhraseSetRequest.java @@ -1,55 +1,39 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech_adaptation.proto package com.google.cloud.speech.v1p1beta1; /** - * - * *
  * Message sent by the client for the `UpdatePhraseSet` method.
  * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest} */ -public final class UpdatePhraseSetRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class UpdatePhraseSetRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest) UpdatePhraseSetRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use UpdatePhraseSetRequest.newBuilder() to construct. private UpdatePhraseSetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private UpdatePhraseSetRequest() {} + private UpdatePhraseSetRequest() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UpdatePhraseSetRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private UpdatePhraseSetRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,76 +52,67 @@ private UpdatePhraseSetRequest( case 0: done = true; break; - case 10: - { - com.google.cloud.speech.v1p1beta1.PhraseSet.Builder subBuilder = null; - if (phraseSet_ != null) { - subBuilder = phraseSet_.toBuilder(); - } - phraseSet_ = - input.readMessage( - com.google.cloud.speech.v1p1beta1.PhraseSet.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(phraseSet_); - phraseSet_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.cloud.speech.v1p1beta1.PhraseSet.Builder subBuilder = null; + if (phraseSet_ != null) { + subBuilder = phraseSet_.toBuilder(); + } + phraseSet_ = input.readMessage(com.google.cloud.speech.v1p1beta1.PhraseSet.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(phraseSet_); + phraseSet_ = subBuilder.buildPartial(); } - case 18: - { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (updateMask_ != null) { - subBuilder = updateMask_.toBuilder(); - } - updateMask_ = - input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateMask_); - updateMask_ = subBuilder.buildPartial(); - } - break; + break; + } + case 18: { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto - .internal_static_google_cloud_speech_v1p1beta1_UpdatePhraseSetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_UpdatePhraseSetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto - .internal_static_google_cloud_speech_v1p1beta1_UpdatePhraseSetRequest_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_UpdatePhraseSetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest.class, - com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest.Builder.class); + com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest.class, com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest.Builder.class); } public static final int PHRASE_SET_FIELD_NUMBER = 1; private com.google.cloud.speech.v1p1beta1.PhraseSet phraseSet_; /** - * - * *
    * Required. The phrase set to update.
    * The phrase set's `name` field is used to identify the set to be
@@ -146,14 +121,11 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 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.
    * 
* - * - * .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 @@ -161,8 +133,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
@@ -171,25 +141,18 @@ public boolean hasPhraseSet() {
    * 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.
    * 
* - * - * .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
@@ -198,13 +161,11 @@ public com.google.cloud.speech.v1p1beta1.PhraseSet getPhraseSet() {
    * 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.
    * 
* - * - * .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() { @@ -214,14 +175,11 @@ public com.google.cloud.speech.v1p1beta1.PhraseSetOrBuilder getPhraseSetOrBuilde public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** - * - * *
    * The list of fields to be updated.
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -229,14 +187,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 @@ -244,8 +199,6 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * *
    * The list of fields to be updated.
    * 
@@ -258,7 +211,6 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -270,7 +222,8 @@ public final boolean isInitialized() { } @java.lang.Override - public 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()); } @@ -287,10 +240,12 @@ public int getSerializedSize() { size = 0; if (phraseSet_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getPhraseSet()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getPhraseSet()); } if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getUpdateMask()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -300,21 +255,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest)) { return super.equals(obj); } - com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest other = - (com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest) obj; + com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest other = (com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest) obj; if (hasPhraseSet() != other.hasPhraseSet()) return false; if (hasPhraseSet()) { - if (!getPhraseSet().equals(other.getPhraseSet())) return false; + if (!getPhraseSet() + .equals(other.getPhraseSet())) return false; } if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask().equals(other.getUpdateMask())) return false; + if (!getUpdateMask() + .equals(other.getUpdateMask())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -341,127 +297,117 @@ public int hashCode() { } public static com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest prototype) { + public static Builder newBuilder(com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Message sent by the client for the `UpdatePhraseSet` method.
    * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest) com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto - .internal_static_google_cloud_speech_v1p1beta1_UpdatePhraseSetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_UpdatePhraseSetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto - .internal_static_google_cloud_speech_v1p1beta1_UpdatePhraseSetRequest_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_UpdatePhraseSetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest.class, - com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest.Builder.class); + com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest.class, com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest.Builder.class); } // Construct using com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest.newBuilder() @@ -469,15 +415,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -497,9 +444,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 @@ -518,8 +465,7 @@ public com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest build() { @java.lang.Override public com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest buildPartial() { - com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest result = - new com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest(this); + com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest result = new com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest(this); if (phraseSetBuilder_ == null) { result.phraseSet_ = phraseSet_; } else { @@ -538,39 +484,38 @@ public com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest) { - return mergeFrom((com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest) other); + return mergeFrom((com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest)other); } else { super.mergeFrom(other); return this; @@ -578,8 +523,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()); } @@ -605,8 +549,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -618,13 +561,8 @@ public Builder mergeFrom( private com.google.cloud.speech.v1p1beta1.PhraseSet phraseSet_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.PhraseSet, - com.google.cloud.speech.v1p1beta1.PhraseSet.Builder, - com.google.cloud.speech.v1p1beta1.PhraseSetOrBuilder> - phraseSetBuilder_; + com.google.cloud.speech.v1p1beta1.PhraseSet, com.google.cloud.speech.v1p1beta1.PhraseSet.Builder, com.google.cloud.speech.v1p1beta1.PhraseSetOrBuilder> phraseSetBuilder_; /** - * - * *
      * Required. The phrase set to update.
      * The phrase set's `name` field is used to identify the set to be
@@ -633,22 +571,17 @@ public Builder mergeFrom(
      * 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.
      * 
* - * - * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the phraseSet field is set. */ public boolean hasPhraseSet() { return phraseSetBuilder_ != null || phraseSet_ != null; } /** - * - * *
      * Required. The phrase set to update.
      * The phrase set's `name` field is used to identify the set to be
@@ -657,28 +590,21 @@ public boolean hasPhraseSet() {
      * 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.
      * 
* - * - * .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
@@ -687,13 +613,11 @@ public com.google.cloud.speech.v1p1beta1.PhraseSet getPhraseSet() {
      * 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.
      * 
* - * - * .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) { @@ -709,8 +633,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
@@ -719,13 +641,11 @@ public Builder setPhraseSet(com.google.cloud.speech.v1p1beta1.PhraseSet value) {
      * 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.
      * 
* - * - * .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) { @@ -739,8 +659,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
@@ -749,21 +667,17 @@ public Builder setPhraseSet(
      * 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.
      * 
* - * - * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergePhraseSet(com.google.cloud.speech.v1p1beta1.PhraseSet value) { if (phraseSetBuilder_ == null) { if (phraseSet_ != null) { phraseSet_ = - com.google.cloud.speech.v1p1beta1.PhraseSet.newBuilder(phraseSet_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.speech.v1p1beta1.PhraseSet.newBuilder(phraseSet_).mergeFrom(value).buildPartial(); } else { phraseSet_ = value; } @@ -775,8 +689,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
@@ -785,13 +697,11 @@ public Builder mergePhraseSet(com.google.cloud.speech.v1p1beta1.PhraseSet value)
      * 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.
      * 
* - * - * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearPhraseSet() { if (phraseSetBuilder_ == null) { @@ -805,8 +715,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
@@ -815,22 +723,18 @@ public Builder clearPhraseSet() {
      * 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.
      * 
* - * - * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.speech.v1p1beta1.PhraseSet.Builder getPhraseSetBuilder() { - + onChanged(); return getPhraseSetFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The phrase set to update.
      * The phrase set's `name` field is used to identify the set to be
@@ -839,26 +743,21 @@ public com.google.cloud.speech.v1p1beta1.PhraseSet.Builder getPhraseSetBuilder()
      * 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.
      * 
* - * - * .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
@@ -867,26 +766,21 @@ public com.google.cloud.speech.v1p1beta1.PhraseSetOrBuilder getPhraseSetOrBuilde
      * 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.
      * 
* - * - * .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_; @@ -894,47 +788,34 @@ public com.google.cloud.speech.v1p1beta1.PhraseSetOrBuilder getPhraseSetOrBuilde private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - updateMaskBuilder_; + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; /** - * - * *
      * The list of fields to be updated.
      * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** - * - * *
      * The list of fields to be updated.
      * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** - * - * *
      * The list of fields to be updated.
      * 
@@ -955,15 +836,14 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * The list of fields to be updated.
      * 
* * .google.protobuf.FieldMask update_mask = 2; */ - public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + public Builder setUpdateMask( + com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); onChanged(); @@ -974,8 +854,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal return this; } /** - * - * *
      * The list of fields to be updated.
      * 
@@ -986,7 +864,7 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { if (updateMask_ != null) { updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); } else { updateMask_ = value; } @@ -998,8 +876,6 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * The list of fields to be updated.
      * 
@@ -1018,8 +894,6 @@ public Builder clearUpdateMask() { return this; } /** - * - * *
      * The list of fields to be updated.
      * 
@@ -1027,13 +901,11 @@ public Builder clearUpdateMask() { * .google.protobuf.FieldMask update_mask = 2; */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - + onChanged(); return getUpdateMaskFieldBuilder().getBuilder(); } /** - * - * *
      * The list of fields to be updated.
      * 
@@ -1044,14 +916,11 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { if (updateMaskBuilder_ != null) { return updateMaskBuilder_.getMessageOrBuilder(); } else { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? + com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } } /** - * - * *
      * The list of fields to be updated.
      * 
@@ -1059,24 +928,21 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { * .google.protobuf.FieldMask update_mask = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> getUpdateMaskFieldBuilder() { if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), getParentForChildren(), isClean()); + updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), + getParentForChildren(), + isClean()); updateMask_ = null; } return updateMaskBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1086,12 +952,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(); } @@ -1100,16 +966,16 @@ public static com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdatePhraseSetRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UpdatePhraseSetRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdatePhraseSetRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpdatePhraseSetRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1124,4 +990,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdatePhraseSetRequestOrBuilder.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdatePhraseSetRequestOrBuilder.java similarity index 64% rename from proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdatePhraseSetRequestOrBuilder.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdatePhraseSetRequestOrBuilder.java index 8fa366627..ae3c2a999 100644 --- a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdatePhraseSetRequestOrBuilder.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdatePhraseSetRequestOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech_adaptation.proto package com.google.cloud.speech.v1p1beta1; -public interface UpdatePhraseSetRequestOrBuilder - extends +public interface UpdatePhraseSetRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The phrase set to update.
    * The phrase set's `name` field is used to identify the set to be
@@ -34,20 +16,15 @@ public interface UpdatePhraseSetRequestOrBuilder
    * 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.
    * 
* - * - * .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
@@ -56,20 +33,15 @@ public interface UpdatePhraseSetRequestOrBuilder
    * 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.
    * 
* - * - * .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
@@ -78,43 +50,33 @@ public interface UpdatePhraseSetRequestOrBuilder
    * 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.
    * 
* - * - * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.speech.v1p1beta1.PhraseSetOrBuilder getPhraseSetOrBuilder(); /** - * - * *
    * The list of fields to be updated.
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** - * - * *
    * The list of fields to be updated.
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** - * - * *
    * The list of fields to be updated.
    * 
diff --git a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/WordInfo.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/WordInfo.java similarity index 77% rename from proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/WordInfo.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/WordInfo.java index 92938a44c..f1431e288 100644 --- a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/WordInfo.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/WordInfo.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech.proto package com.google.cloud.speech.v1p1beta1; /** - * - * *
  * Word-specific information for recognized words.
  * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.WordInfo} */ -public final class WordInfo extends com.google.protobuf.GeneratedMessageV3 - implements +public final class WordInfo extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v1p1beta1.WordInfo) WordInfoOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use WordInfo.newBuilder() to construct. private WordInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private WordInfo() { word_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new WordInfo(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private WordInfo( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,92 +53,83 @@ private WordInfo( case 0: done = true; break; - case 10: - { - com.google.protobuf.Duration.Builder subBuilder = null; - if (startTime_ != null) { - subBuilder = startTime_.toBuilder(); - } - startTime_ = - input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(startTime_); - startTime_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.protobuf.Duration.Builder subBuilder = null; + if (startTime_ != null) { + subBuilder = startTime_.toBuilder(); } - case 18: - { - com.google.protobuf.Duration.Builder subBuilder = null; - if (endTime_ != null) { - subBuilder = endTime_.toBuilder(); - } - endTime_ = - input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(endTime_); - endTime_ = subBuilder.buildPartial(); - } - - break; + startTime_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(startTime_); + startTime_ = subBuilder.buildPartial(); } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - word_ = s; - break; - } - case 37: - { - confidence_ = input.readFloat(); - break; + break; + } + case 18: { + com.google.protobuf.Duration.Builder subBuilder = null; + if (endTime_ != null) { + subBuilder = endTime_.toBuilder(); } - case 40: - { - speakerTag_ = input.readInt32(); - break; + endTime_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(endTime_); + endTime_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + word_ = s; + break; + } + case 37: { + + confidence_ = input.readFloat(); + break; + } + case 40: { + + speakerTag_ = input.readInt32(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechProto - .internal_static_google_cloud_speech_v1p1beta1_WordInfo_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_WordInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechProto - .internal_static_google_cloud_speech_v1p1beta1_WordInfo_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_WordInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.WordInfo.class, - com.google.cloud.speech.v1p1beta1.WordInfo.Builder.class); + com.google.cloud.speech.v1p1beta1.WordInfo.class, com.google.cloud.speech.v1p1beta1.WordInfo.Builder.class); } public static final int START_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Duration startTime_; /** - * - * *
    * Time offset relative to the beginning of the audio,
    * and corresponding to the start of the spoken word.
@@ -166,7 +140,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 @@ -174,8 +147,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.
@@ -186,7 +157,6 @@ public boolean hasStartTime() {
    * 
* * .google.protobuf.Duration start_time = 1; - * * @return The startTime. */ @java.lang.Override @@ -194,8 +164,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.
@@ -215,8 +183,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.
@@ -227,7 +193,6 @@ public com.google.protobuf.DurationOrBuilder getStartTimeOrBuilder() {
    * 
* * .google.protobuf.Duration end_time = 2; - * * @return Whether the endTime field is set. */ @java.lang.Override @@ -235,8 +200,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.
@@ -247,7 +210,6 @@ public boolean hasEndTime() {
    * 
* * .google.protobuf.Duration end_time = 2; - * * @return The endTime. */ @java.lang.Override @@ -255,8 +217,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.
@@ -276,14 +236,11 @@ public com.google.protobuf.DurationOrBuilder getEndTimeOrBuilder() {
   public static final int WORD_FIELD_NUMBER = 3;
   private volatile java.lang.Object word_;
   /**
-   *
-   *
    * 
    * The word corresponding to this set of information.
    * 
* * string word = 3; - * * @return The word. */ @java.lang.Override @@ -292,29 +249,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 { @@ -325,8 +282,6 @@ public com.google.protobuf.ByteString getWordBytes() { public static final int CONFIDENCE_FIELD_NUMBER = 4; private float confidence_; /** - * - * *
    * The confidence estimate between 0.0 and 1.0. A higher number
    * indicates an estimated greater likelihood that the recognized words are
@@ -338,7 +293,6 @@ public com.google.protobuf.ByteString getWordBytes() {
    * 
* * float confidence = 4; - * * @return The confidence. */ @java.lang.Override @@ -349,8 +303,6 @@ public float getConfidence() { public static final int SPEAKER_TAG_FIELD_NUMBER = 5; private int speakerTag_; /** - * - * *
    * Output only. A distinct integer value is assigned for every speaker within
    * the audio. This field specifies which one of those speakers was detected to
@@ -360,7 +312,6 @@ public float getConfidence() {
    * 
* * int32 speaker_tag = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The speakerTag. */ @java.lang.Override @@ -369,7 +320,6 @@ public int getSpeakerTag() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -381,7 +331,8 @@ public final boolean isInitialized() { } @java.lang.Override - public 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()); } @@ -407,19 +358,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 (confidence_ != 0F) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(4, confidence_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(4, confidence_); } if (speakerTag_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, speakerTag_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(5, speakerTag_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -429,26 +384,30 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1p1beta1.WordInfo)) { return super.equals(obj); } - com.google.cloud.speech.v1p1beta1.WordInfo other = - (com.google.cloud.speech.v1p1beta1.WordInfo) obj; + com.google.cloud.speech.v1p1beta1.WordInfo other = (com.google.cloud.speech.v1p1beta1.WordInfo) obj; if (hasStartTime() != other.hasStartTime()) return false; if (hasStartTime()) { - if (!getStartTime().equals(other.getStartTime())) return false; + if (!getStartTime() + .equals(other.getStartTime())) return false; } if (hasEndTime() != other.hasEndTime()) return false; if (hasEndTime()) { - if (!getEndTime().equals(other.getEndTime())) return false; + if (!getEndTime() + .equals(other.getEndTime())) return false; } - if (!getWord().equals(other.getWord())) return false; + if (!getWord() + .equals(other.getWord())) return false; if (java.lang.Float.floatToIntBits(getConfidence()) - != java.lang.Float.floatToIntBits(other.getConfidence())) return false; - if (getSpeakerTag() != other.getSpeakerTag()) return false; + != java.lang.Float.floatToIntBits( + other.getConfidence())) return false; + if (getSpeakerTag() + != other.getSpeakerTag()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -471,7 +430,8 @@ public int hashCode() { hash = (37 * hash) + WORD_FIELD_NUMBER; hash = (53 * hash) + getWord().hashCode(); hash = (37 * hash) + CONFIDENCE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getConfidence()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getConfidence()); hash = (37 * hash) + SPEAKER_TAG_FIELD_NUMBER; hash = (53 * hash) + getSpeakerTag(); hash = (29 * hash) + unknownFields.hashCode(); @@ -479,127 +439,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.speech.v1p1beta1.WordInfo parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.speech.v1p1beta1.WordInfo parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1p1beta1.WordInfo parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.WordInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1p1beta1.WordInfo parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.WordInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1p1beta1.WordInfo parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.WordInfo parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1p1beta1.WordInfo parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.speech.v1p1beta1.WordInfo parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.speech.v1p1beta1.WordInfo parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1p1beta1.WordInfo parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.WordInfo parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1p1beta1.WordInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.speech.v1p1beta1.WordInfo prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Word-specific information for recognized words.
    * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.WordInfo} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1p1beta1.WordInfo) com.google.cloud.speech.v1p1beta1.WordInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechProto - .internal_static_google_cloud_speech_v1p1beta1_WordInfo_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_WordInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechProto - .internal_static_google_cloud_speech_v1p1beta1_WordInfo_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_WordInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.WordInfo.class, - com.google.cloud.speech.v1p1beta1.WordInfo.Builder.class); + com.google.cloud.speech.v1p1beta1.WordInfo.class, com.google.cloud.speech.v1p1beta1.WordInfo.Builder.class); } // Construct using com.google.cloud.speech.v1p1beta1.WordInfo.newBuilder() @@ -607,15 +558,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -641,9 +593,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 @@ -662,8 +614,7 @@ public com.google.cloud.speech.v1p1beta1.WordInfo build() { @java.lang.Override public com.google.cloud.speech.v1p1beta1.WordInfo buildPartial() { - com.google.cloud.speech.v1p1beta1.WordInfo result = - new com.google.cloud.speech.v1p1beta1.WordInfo(this); + com.google.cloud.speech.v1p1beta1.WordInfo result = new com.google.cloud.speech.v1p1beta1.WordInfo(this); if (startTimeBuilder_ == null) { result.startTime_ = startTime_; } else { @@ -685,39 +636,38 @@ public com.google.cloud.speech.v1p1beta1.WordInfo buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.speech.v1p1beta1.WordInfo) { - return mergeFrom((com.google.cloud.speech.v1p1beta1.WordInfo) other); + return mergeFrom((com.google.cloud.speech.v1p1beta1.WordInfo)other); } else { super.mergeFrom(other); return this; @@ -773,13 +723,8 @@ public Builder mergeFrom( private com.google.protobuf.Duration startTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - startTimeBuilder_; + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> startTimeBuilder_; /** - * - * *
      * Time offset relative to the beginning of the audio,
      * and corresponding to the start of the spoken word.
@@ -790,15 +735,12 @@ public Builder mergeFrom(
      * 
* * .google.protobuf.Duration start_time = 1; - * * @return Whether the startTime field is set. */ public boolean hasStartTime() { return startTimeBuilder_ != null || startTime_ != null; } /** - * - * *
      * Time offset relative to the beginning of the audio,
      * and corresponding to the start of the spoken word.
@@ -809,7 +751,6 @@ public boolean hasStartTime() {
      * 
* * .google.protobuf.Duration start_time = 1; - * * @return The startTime. */ public com.google.protobuf.Duration getStartTime() { @@ -820,8 +761,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.
@@ -847,8 +786,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.
@@ -860,7 +797,8 @@ public Builder setStartTime(com.google.protobuf.Duration value) {
      *
      * .google.protobuf.Duration start_time = 1;
      */
-    public Builder setStartTime(com.google.protobuf.Duration.Builder builderForValue) {
+    public Builder setStartTime(
+        com.google.protobuf.Duration.Builder builderForValue) {
       if (startTimeBuilder_ == null) {
         startTime_ = builderForValue.build();
         onChanged();
@@ -871,8 +809,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.
@@ -888,7 +824,7 @@ public Builder mergeStartTime(com.google.protobuf.Duration value) {
       if (startTimeBuilder_ == null) {
         if (startTime_ != null) {
           startTime_ =
-              com.google.protobuf.Duration.newBuilder(startTime_).mergeFrom(value).buildPartial();
+            com.google.protobuf.Duration.newBuilder(startTime_).mergeFrom(value).buildPartial();
         } else {
           startTime_ = value;
         }
@@ -900,8 +836,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.
@@ -925,8 +859,6 @@ public Builder clearStartTime() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Time offset relative to the beginning of the audio,
      * and corresponding to the start of the spoken word.
@@ -939,13 +871,11 @@ public Builder clearStartTime() {
      * .google.protobuf.Duration start_time = 1;
      */
     public com.google.protobuf.Duration.Builder getStartTimeBuilder() {
-
+      
       onChanged();
       return getStartTimeFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Time offset relative to the beginning of the audio,
      * and corresponding to the start of the spoken word.
@@ -961,12 +891,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.
@@ -979,17 +908,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_;
@@ -997,13 +923,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.
@@ -1014,15 +935,12 @@ public com.google.protobuf.DurationOrBuilder getStartTimeOrBuilder() {
      * 
* * .google.protobuf.Duration end_time = 2; - * * @return Whether the endTime field is set. */ public boolean hasEndTime() { return endTimeBuilder_ != null || endTime_ != null; } /** - * - * *
      * Time offset relative to the beginning of the audio,
      * and corresponding to the end of the spoken word.
@@ -1033,7 +951,6 @@ public boolean hasEndTime() {
      * 
* * .google.protobuf.Duration end_time = 2; - * * @return The endTime. */ public com.google.protobuf.Duration getEndTime() { @@ -1044,8 +961,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.
@@ -1071,8 +986,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.
@@ -1084,7 +997,8 @@ public Builder setEndTime(com.google.protobuf.Duration value) {
      *
      * .google.protobuf.Duration end_time = 2;
      */
-    public Builder setEndTime(com.google.protobuf.Duration.Builder builderForValue) {
+    public Builder setEndTime(
+        com.google.protobuf.Duration.Builder builderForValue) {
       if (endTimeBuilder_ == null) {
         endTime_ = builderForValue.build();
         onChanged();
@@ -1095,8 +1009,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.
@@ -1112,7 +1024,7 @@ public Builder mergeEndTime(com.google.protobuf.Duration value) {
       if (endTimeBuilder_ == null) {
         if (endTime_ != null) {
           endTime_ =
-              com.google.protobuf.Duration.newBuilder(endTime_).mergeFrom(value).buildPartial();
+            com.google.protobuf.Duration.newBuilder(endTime_).mergeFrom(value).buildPartial();
         } else {
           endTime_ = value;
         }
@@ -1124,8 +1036,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.
@@ -1149,8 +1059,6 @@ public Builder clearEndTime() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Time offset relative to the beginning of the audio,
      * and corresponding to the end of the spoken word.
@@ -1163,13 +1071,11 @@ public Builder clearEndTime() {
      * .google.protobuf.Duration end_time = 2;
      */
     public com.google.protobuf.Duration.Builder getEndTimeBuilder() {
-
+      
       onChanged();
       return getEndTimeFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Time offset relative to the beginning of the audio,
      * and corresponding to the end of the spoken word.
@@ -1185,12 +1091,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.
@@ -1203,17 +1108,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_;
@@ -1221,20 +1123,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; @@ -1243,21 +1143,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 { @@ -1265,70 +1164,61 @@ public com.google.protobuf.ByteString getWordBytes() { } } /** - * - * *
      * The word corresponding to this set of information.
      * 
* * string word = 3; - * * @param value The word to set. * @return This builder for chaining. */ - public Builder setWord(java.lang.String value) { + public Builder setWord( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + word_ = value; onChanged(); return this; } /** - * - * *
      * The word corresponding to this set of information.
      * 
* * string word = 3; - * * @return This builder for chaining. */ public Builder clearWord() { - + word_ = getDefaultInstance().getWord(); onChanged(); return this; } /** - * - * *
      * The word corresponding to this set of information.
      * 
* * string word = 3; - * * @param value The bytes for word to set. * @return This builder for chaining. */ - public Builder setWordBytes(com.google.protobuf.ByteString value) { + public Builder setWordBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + word_ = value; onChanged(); return this; } - private float confidence_; + private float confidence_ ; /** - * - * *
      * The confidence estimate between 0.0 and 1.0. A higher number
      * indicates an estimated greater likelihood that the recognized words are
@@ -1340,7 +1230,6 @@ public Builder setWordBytes(com.google.protobuf.ByteString value) {
      * 
* * float confidence = 4; - * * @return The confidence. */ @java.lang.Override @@ -1348,8 +1237,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
@@ -1361,19 +1248,16 @@ public float getConfidence() {
      * 
* * float confidence = 4; - * * @param value The confidence to set. * @return This builder for chaining. */ public Builder setConfidence(float value) { - + confidence_ = value; onChanged(); return this; } /** - * - * *
      * The confidence estimate between 0.0 and 1.0. A higher number
      * indicates an estimated greater likelihood that the recognized words are
@@ -1385,20 +1269,17 @@ public Builder setConfidence(float value) {
      * 
* * float confidence = 4; - * * @return This builder for chaining. */ public Builder clearConfidence() { - + confidence_ = 0F; onChanged(); return this; } - private int speakerTag_; + private int speakerTag_ ; /** - * - * *
      * Output only. A distinct integer value is assigned for every speaker within
      * the audio. This field specifies which one of those speakers was detected to
@@ -1408,7 +1289,6 @@ public Builder clearConfidence() {
      * 
* * int32 speaker_tag = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The speakerTag. */ @java.lang.Override @@ -1416,8 +1296,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
@@ -1427,19 +1305,16 @@ public int getSpeakerTag() {
      * 
* * int32 speaker_tag = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The speakerTag to set. * @return This builder for chaining. */ public Builder setSpeakerTag(int value) { - + speakerTag_ = value; onChanged(); return this; } /** - * - * *
      * Output only. A distinct integer value is assigned for every speaker within
      * the audio. This field specifies which one of those speakers was detected to
@@ -1449,18 +1324,17 @@ public Builder setSpeakerTag(int value) {
      * 
* * int32 speaker_tag = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearSpeakerTag() { - + speakerTag_ = 0; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1470,12 +1344,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(); } @@ -1484,16 +1358,16 @@ public static com.google.cloud.speech.v1p1beta1.WordInfo getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WordInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new WordInfo(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WordInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WordInfo(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1508,4 +1382,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.WordInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/WordInfoOrBuilder.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/WordInfoOrBuilder.java similarity index 84% rename from proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/WordInfoOrBuilder.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/WordInfoOrBuilder.java index 0bdb11ab4..b811f0f30 100644 --- a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/WordInfoOrBuilder.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/WordInfoOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech.proto package com.google.cloud.speech.v1p1beta1; -public interface WordInfoOrBuilder - extends +public interface WordInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1p1beta1.WordInfo) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Time offset relative to the beginning of the audio,
    * and corresponding to the start of the spoken word.
@@ -36,13 +18,10 @@ public interface WordInfoOrBuilder
    * 
* * .google.protobuf.Duration start_time = 1; - * * @return Whether the startTime field is set. */ boolean hasStartTime(); /** - * - * *
    * Time offset relative to the beginning of the audio,
    * and corresponding to the start of the spoken word.
@@ -53,13 +32,10 @@ public interface WordInfoOrBuilder
    * 
* * .google.protobuf.Duration start_time = 1; - * * @return The startTime. */ com.google.protobuf.Duration getStartTime(); /** - * - * *
    * Time offset relative to the beginning of the audio,
    * and corresponding to the start of the spoken word.
@@ -74,8 +50,6 @@ public interface WordInfoOrBuilder
   com.google.protobuf.DurationOrBuilder getStartTimeOrBuilder();
 
   /**
-   *
-   *
    * 
    * Time offset relative to the beginning of the audio,
    * and corresponding to the end of the spoken word.
@@ -86,13 +60,10 @@ public interface WordInfoOrBuilder
    * 
* * .google.protobuf.Duration end_time = 2; - * * @return Whether the endTime field is set. */ boolean hasEndTime(); /** - * - * *
    * Time offset relative to the beginning of the audio,
    * and corresponding to the end of the spoken word.
@@ -103,13 +74,10 @@ public interface WordInfoOrBuilder
    * 
* * .google.protobuf.Duration end_time = 2; - * * @return The endTime. */ com.google.protobuf.Duration getEndTime(); /** - * - * *
    * Time offset relative to the beginning of the audio,
    * and corresponding to the end of the spoken word.
@@ -124,33 +92,26 @@ public interface WordInfoOrBuilder
   com.google.protobuf.DurationOrBuilder getEndTimeOrBuilder();
 
   /**
-   *
-   *
    * 
    * The word corresponding to this set of information.
    * 
* * string word = 3; - * * @return The word. */ java.lang.String getWord(); /** - * - * *
    * The word corresponding to this set of information.
    * 
* * string word = 3; - * * @return The bytes for word. */ - com.google.protobuf.ByteString getWordBytes(); + com.google.protobuf.ByteString + getWordBytes(); /** - * - * *
    * The confidence estimate between 0.0 and 1.0. A higher number
    * indicates an estimated greater likelihood that the recognized words are
@@ -162,14 +123,11 @@ public interface WordInfoOrBuilder
    * 
* * float confidence = 4; - * * @return The confidence. */ float getConfidence(); /** - * - * *
    * Output only. A distinct integer value is assigned for every speaker within
    * the audio. This field specifies which one of those speakers was detected to
@@ -179,7 +137,6 @@ public interface WordInfoOrBuilder
    * 
* * int32 speaker_tag = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The speakerTag. */ int getSpeakerTag(); diff --git a/proto-google-cloud-speech-v1p1beta1/src/main/proto/google/cloud/speech/v1p1beta1/cloud_speech.proto b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/proto/google/cloud/speech/v1p1beta1/cloud_speech.proto similarity index 100% rename from proto-google-cloud-speech-v1p1beta1/src/main/proto/google/cloud/speech/v1p1beta1/cloud_speech.proto rename to owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/proto/google/cloud/speech/v1p1beta1/cloud_speech.proto diff --git a/proto-google-cloud-speech-v1p1beta1/src/main/proto/google/cloud/speech/v1p1beta1/cloud_speech_adaptation.proto b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/proto/google/cloud/speech/v1p1beta1/cloud_speech_adaptation.proto similarity index 89% rename from proto-google-cloud-speech-v1p1beta1/src/main/proto/google/cloud/speech/v1p1beta1/cloud_speech_adaptation.proto rename to owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/proto/google/cloud/speech/v1p1beta1/cloud_speech_adaptation.proto index de8ecdac9..7b29f05ee 100644 --- a/proto-google-cloud-speech-v1p1beta1/src/main/proto/google/cloud/speech/v1p1beta1/cloud_speech_adaptation.proto +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/proto/google/cloud/speech/v1p1beta1/cloud_speech_adaptation.proto @@ -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,15 +129,16 @@ 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` // // 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. string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -164,8 +169,8 @@ message UpdatePhraseSetRequest { // 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. PhraseSet phrase_set = 1 [(google.api.field_behavior) = REQUIRED]; // The list of fields to be updated. @@ -181,8 +186,8 @@ message GetPhraseSetRequest { // 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. string name = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -200,8 +205,8 @@ message ListPhraseSetRequest { // 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. string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -248,15 +253,16 @@ 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` // // 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. string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -287,8 +293,8 @@ message UpdateCustomClassRequest { // 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. CustomClass custom_class = 1 [(google.api.field_behavior) = REQUIRED]; // The list of fields to be updated. @@ -317,8 +323,8 @@ message ListCustomClassesRequest { // 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. string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -359,8 +365,8 @@ message DeleteCustomClassRequest { // 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. string name = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { diff --git a/proto-google-cloud-speech-v1p1beta1/src/main/proto/google/cloud/speech/v1p1beta1/resource.proto b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/proto/google/cloud/speech/v1p1beta1/resource.proto similarity index 100% rename from proto-google-cloud-speech-v1p1beta1/src/main/proto/google/cloud/speech/v1p1beta1/resource.proto rename to owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/proto/google/cloud/speech/v1p1beta1/resource.proto diff --git a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeRequestOrBuilder.java b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeRequestOrBuilder.java deleted file mode 100644 index df0bfe2ab..000000000 --- a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeRequestOrBuilder.java +++ /dev/null @@ -1,110 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/speech/v1/cloud_speech.proto - -package com.google.cloud.speech.v1; - -public interface RecognizeRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1.RecognizeRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Provides information to the recognizer that specifies how to
-   * process the request.
-   * 
- * - * - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the config field is set. - */ - boolean hasConfig(); - /** - * - * - *
-   * Required. Provides information to the recognizer that specifies how to
-   * process the request.
-   * 
- * - * - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The config. - */ - com.google.cloud.speech.v1.RecognitionConfig getConfig(); - /** - * - * - *
-   * Required. Provides information to the recognizer that specifies how to
-   * process the request.
-   * 
- * - * - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.speech.v1.RecognitionConfigOrBuilder getConfigOrBuilder(); - - /** - * - * - *
-   * Required. The audio data to be recognized.
-   * 
- * - * - * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the audio field is set. - */ - boolean hasAudio(); - /** - * - * - *
-   * Required. The audio data to be recognized.
-   * 
- * - * - * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The audio. - */ - com.google.cloud.speech.v1.RecognitionAudio getAudio(); - /** - * - * - *
-   * Required. The audio data to be recognized.
-   * 
- * - * - * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.speech.v1.RecognitionAudioOrBuilder getAudioOrBuilder(); -} diff --git a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechProto.java b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechProto.java deleted file mode 100644 index 3fa71d021..000000000 --- a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechProto.java +++ /dev/null @@ -1,463 +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 final class SpeechProto { - private SpeechProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1_RecognizeRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1_RecognizeRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1_LongRunningRecognizeRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1_LongRunningRecognizeRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1_TranscriptOutputConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1_TranscriptOutputConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1_StreamingRecognizeRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1_StreamingRecognizeRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1_StreamingRecognitionConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1_StreamingRecognitionConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1_RecognitionConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1_RecognitionConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1_SpeakerDiarizationConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1_SpeakerDiarizationConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1_RecognitionMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1_RecognitionMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1_SpeechContext_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1_SpeechContext_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1_RecognitionAudio_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1_RecognitionAudio_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1_RecognizeResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1_RecognizeResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1_LongRunningRecognizeResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1_LongRunningRecognizeResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1_LongRunningRecognizeMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1_LongRunningRecognizeMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1_StreamingRecognizeResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1_StreamingRecognizeResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1_StreamingRecognitionResult_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1_StreamingRecognitionResult_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1_SpeechRecognitionResult_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1_SpeechRecognitionResult_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1_SpeechRecognitionAlternative_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1_SpeechRecognitionAlternative_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1_WordInfo_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1_WordInfo_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n)google/cloud/speech/v1/cloud_speech.pr" - + "oto\022\026google.cloud.speech.v1\032\034google/api/" - + "annotations.proto\032\027google/api/client.pro" - + "to\032\037google/api/field_behavior.proto\032%goo" - + "gle/cloud/speech/v1/resource.proto\032#goog" - + "le/longrunning/operations.proto\032\036google/" - + "protobuf/duration.proto\032\037google/protobuf" - + "/timestamp.proto\032\036google/protobuf/wrappe" - + "rs.proto\032\027google/rpc/status.proto\"\220\001\n\020Re" - + "cognizeRequest\022>\n\006config\030\001 \001(\0132).google." - + "cloud.speech.v1.RecognitionConfigB\003\340A\002\022<" - + "\n\005audio\030\002 \001(\0132(.google.cloud.speech.v1.R" - + "ecognitionAudioB\003\340A\002\"\347\001\n\033LongRunningReco" - + "gnizeRequest\022>\n\006config\030\001 \001(\0132).google.cl" - + "oud.speech.v1.RecognitionConfigB\003\340A\002\022<\n\005" - + "audio\030\002 \001(\0132(.google.cloud.speech.v1.Rec" - + "ognitionAudioB\003\340A\002\022J\n\routput_config\030\004 \001(" - + "\0132..google.cloud.speech.v1.TranscriptOut" - + "putConfigB\003\340A\001\":\n\026TranscriptOutputConfig" - + "\022\021\n\007gcs_uri\030\001 \001(\tH\000B\r\n\013output_type\"\231\001\n\031S" - + "treamingRecognizeRequest\022N\n\020streaming_co" - + "nfig\030\001 \001(\01322.google.cloud.speech.v1.Stre" - + "amingRecognitionConfigH\000\022\027\n\raudio_conten" - + "t\030\002 \001(\014H\000B\023\n\021streaming_request\"\217\001\n\032Strea" - + "mingRecognitionConfig\022>\n\006config\030\001 \001(\0132)." - + "google.cloud.speech.v1.RecognitionConfig" - + "B\003\340A\002\022\030\n\020single_utterance\030\002 \001(\010\022\027\n\017inter" - + "im_results\030\003 \001(\010\"\351\007\n\021RecognitionConfig\022I" - + "\n\010encoding\030\001 \001(\01627.google.cloud.speech.v" - + "1.RecognitionConfig.AudioEncoding\022\031\n\021sam" - + "ple_rate_hertz\030\002 \001(\005\022\033\n\023audio_channel_co" - + "unt\030\007 \001(\005\022/\n\'enable_separate_recognition" - + "_per_channel\030\014 \001(\010\022\032\n\rlanguage_code\030\003 \001(" - + "\tB\003\340A\002\022\"\n\032alternative_language_codes\030\022 \003" - + "(\t\022\030\n\020max_alternatives\030\004 \001(\005\022\030\n\020profanit" - + "y_filter\030\005 \001(\010\022<\n\nadaptation\030\024 \001(\0132(.goo" - + "gle.cloud.speech.v1.SpeechAdaptation\022>\n\017" - + "speech_contexts\030\006 \003(\0132%.google.cloud.spe" - + "ech.v1.SpeechContext\022 \n\030enable_word_time" - + "_offsets\030\010 \001(\010\022\036\n\026enable_word_confidence" - + "\030\017 \001(\010\022$\n\034enable_automatic_punctuation\030\013" - + " \001(\010\022=\n\031enable_spoken_punctuation\030\026 \001(\0132" - + "\032.google.protobuf.BoolValue\0228\n\024enable_sp" - + "oken_emojis\030\027 \001(\0132\032.google.protobuf.Bool" - + "Value\022L\n\022diarization_config\030\023 \001(\01320.goog" - + "le.cloud.speech.v1.SpeakerDiarizationCon" - + "fig\022=\n\010metadata\030\t \001(\0132+.google.cloud.spe" - + "ech.v1.RecognitionMetadata\022\r\n\005model\030\r \001(" - + "\t\022\024\n\014use_enhanced\030\016 \001(\010\"\232\001\n\rAudioEncodin" - + "g\022\030\n\024ENCODING_UNSPECIFIED\020\000\022\014\n\010LINEAR16\020" - + "\001\022\010\n\004FLAC\020\002\022\t\n\005MULAW\020\003\022\007\n\003AMR\020\004\022\n\n\006AMR_W" - + "B\020\005\022\014\n\010OGG_OPUS\020\006\022\032\n\026SPEEX_WITH_HEADER_B" - + "YTE\020\007\022\r\n\tWEBM_OPUS\020\t\"\220\001\n\030SpeakerDiarizat" - + "ionConfig\022\"\n\032enable_speaker_diarization\030" - + "\001 \001(\010\022\031\n\021min_speaker_count\030\002 \001(\005\022\031\n\021max_" - + "speaker_count\030\003 \001(\005\022\032\n\013speaker_tag\030\005 \001(\005" - + "B\005\030\001\340A\003\"\240\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\"/\n\rSpeechCont" - + "ext\022\017\n\007phrases\030\001 \003(\t\022\r\n\005boost\030\004 \001(\002\"D\n\020R" - + "ecognitionAudio\022\021\n\007content\030\001 \001(\014H\000\022\r\n\003ur" - + "i\030\002 \001(\tH\000B\016\n\014audio_source\"\213\001\n\021RecognizeR" - + "esponse\022@\n\007results\030\002 \003(\0132/.google.cloud." - + "speech.v1.SpeechRecognitionResult\0224\n\021tot" - + "al_billed_time\030\003 \001(\0132\031.google.protobuf.D" - + "uration\"\207\002\n\034LongRunningRecognizeResponse" - + "\022@\n\007results\030\002 \003(\0132/.google.cloud.speech." - + "v1.SpeechRecognitionResult\0224\n\021total_bill" - + "ed_time\030\003 \001(\0132\031.google.protobuf.Duration" - + "\022E\n\routput_config\030\006 \001(\0132..google.cloud.s" - + "peech.v1.TranscriptOutputConfig\022(\n\014outpu" - + "t_error\030\007 \001(\0132\022.google.rpc.Status\"\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\"\347\002\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\"L\n\017SpeechEventType\022\034\n\030S" - + "PEECH_EVENT_UNSPECIFIED\020\000\022\033\n\027END_OF_SING" - + "LE_UTTERANCE\020\001\"\362\001\n\032StreamingRecognitionR" - + "esult\022J\n\014alternatives\030\001 \003(\01324.google.clo" - + "ud.speech.v1.SpeechRecognitionAlternativ" - + "e\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.protobu" - + "f.Duration\022\023\n\013channel_tag\030\005 \001(\005\022\032\n\rlangu" - + "age_code\030\006 \001(\tB\003\340A\003\"\312\001\n\027SpeechRecognitio" - + "nResult\022J\n\014alternatives\030\001 \003(\01324.google.c" - + "loud.speech.v1.SpeechRecognitionAlternat" - + "ive\022\023\n\013channel_tag\030\002 \001(\005\0222\n\017result_end_t" - + "ime\030\004 \001(\0132\031.google.protobuf.Duration\022\032\n\r" - + "language_code\030\005 \001(\tB\003\340A\003\"w\n\034SpeechRecogn" - + "itionAlternative\022\022\n\ntranscript\030\001 \001(\t\022\022\n\n" - + "confidence\030\002 \001(\002\022/\n\005words\030\003 \003(\0132 .google" - + ".cloud.speech.v1.WordInfo\"\242\001\n\010WordInfo\022-" - + "\n\nstart_time\030\001 \001(\0132\031.google.protobuf.Dur" - + "ation\022+\n\010end_time\030\002 \001(\0132\031.google.protobu" - + "f.Duration\022\014\n\004word\030\003 \001(\t\022\022\n\nconfidence\030\004" - + " \001(\002\022\030\n\013speaker_tag\030\005 \001(\005B\003\340A\0032\321\004\n\006Speec" - + "h\022\220\001\n\tRecognize\022(.google.cloud.speech.v1" - + ".RecognizeRequest\032).google.cloud.speech." - + "v1.RecognizeResponse\".\202\323\344\223\002\031\"\024/v1/speech" - + ":recognize:\001*\332A\014config,audio\022\344\001\n\024LongRun" - + "ningRecognize\0223.google.cloud.speech.v1.L" - + "ongRunningRecognizeRequest\032\035.google.long" - + "running.Operation\"x\202\323\344\223\002$\"\037/v1/speech:lo" - + "ngrunningrecognize:\001*\332A\014config,audio\312A<\n" - + "\034LongRunningRecognizeResponse\022\034LongRunni" - + "ngRecognizeMetadata\022\201\001\n\022StreamingRecogni" - + "ze\0221.google.cloud.speech.v1.StreamingRec" - + "ognizeRequest\0322.google.cloud.speech.v1.S" - + "treamingRecognizeResponse\"\000(\0010\001\032I\312A\025spee" - + "ch.googleapis.com\322A.https://www.googleap" - + "is.com/auth/cloud-platformBr\n\032com.google" - + ".cloud.speech.v1B\013SpeechProtoP\001Z - * Required. The name of the phrase set to delete. Format: - * `projects/{project}/locations/{location}/phraseSets/{phrase_set}` - *
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The name of the phrase set to delete. Format:
-   * `projects/{project}/locations/{location}/phraseSets/{phrase_set}`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetCustomClassRequestOrBuilder.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetCustomClassRequestOrBuilder.java deleted file mode 100644 index 05350941a..000000000 --- a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetCustomClassRequestOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/speech/v1p1beta1/cloud_speech_adaptation.proto - -package com.google.cloud.speech.v1p1beta1; - -public interface GetCustomClassRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1p1beta1.GetCustomClassRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The name of the custom class to retrieve. Format:
-   * `projects/{project}/locations/{location}/customClasses/{custom_class}`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The name of the custom class to retrieve. Format:
-   * `projects/{project}/locations/{location}/customClasses/{custom_class}`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetPhraseSetRequestOrBuilder.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetPhraseSetRequestOrBuilder.java deleted file mode 100644 index b5ff46839..000000000 --- a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetPhraseSetRequestOrBuilder.java +++ /dev/null @@ -1,66 +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 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}`
-   * 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.
-   * 
- * - * - * 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}`
-   * 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.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeRequestOrBuilder.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeRequestOrBuilder.java deleted file mode 100644 index 2f3e881fd..000000000 --- a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeRequestOrBuilder.java +++ /dev/null @@ -1,110 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/speech/v1p1beta1/cloud_speech.proto - -package com.google.cloud.speech.v1p1beta1; - -public interface RecognizeRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1p1beta1.RecognizeRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Provides information to the recognizer that specifies how to
-   * process the request.
-   * 
- * - * - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the config field is set. - */ - boolean hasConfig(); - /** - * - * - *
-   * Required. Provides information to the recognizer that specifies how to
-   * process the request.
-   * 
- * - * - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The config. - */ - com.google.cloud.speech.v1p1beta1.RecognitionConfig getConfig(); - /** - * - * - *
-   * Required. Provides information to the recognizer that specifies how to
-   * process the request.
-   * 
- * - * - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.speech.v1p1beta1.RecognitionConfigOrBuilder getConfigOrBuilder(); - - /** - * - * - *
-   * Required. The audio data to be recognized.
-   * 
- * - * - * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the audio field is set. - */ - boolean hasAudio(); - /** - * - * - *
-   * Required. The audio data to be recognized.
-   * 
- * - * - * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The audio. - */ - com.google.cloud.speech.v1p1beta1.RecognitionAudio getAudio(); - /** - * - * - *
-   * Required. The audio data to be recognized.
-   * 
- * - * - * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.speech.v1p1beta1.RecognitionAudioOrBuilder getAudioOrBuilder(); -} diff --git a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptationProto.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptationProto.java deleted file mode 100644 index 2d3104cbb..000000000 --- a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptationProto.java +++ /dev/null @@ -1,318 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/speech/v1p1beta1/cloud_speech_adaptation.proto - -package com.google.cloud.speech.v1p1beta1; - -public final class SpeechAdaptationProto { - private SpeechAdaptationProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1p1beta1_CreatePhraseSetRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1p1beta1_CreatePhraseSetRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1p1beta1_UpdatePhraseSetRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1p1beta1_UpdatePhraseSetRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1p1beta1_GetPhraseSetRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1p1beta1_GetPhraseSetRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1p1beta1_ListPhraseSetRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1p1beta1_ListPhraseSetRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1p1beta1_ListPhraseSetResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1p1beta1_ListPhraseSetResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1p1beta1_DeletePhraseSetRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1p1beta1_DeletePhraseSetRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1p1beta1_CreateCustomClassRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1p1beta1_CreateCustomClassRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1p1beta1_UpdateCustomClassRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1p1beta1_UpdateCustomClassRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1p1beta1_GetCustomClassRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1p1beta1_GetCustomClassRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1p1beta1_ListCustomClassesRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1p1beta1_ListCustomClassesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1p1beta1_ListCustomClassesResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1p1beta1_ListCustomClassesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1p1beta1_DeleteCustomClassRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1p1beta1_DeleteCustomClassRequest_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n;google/cloud/speech/v1p1beta1/cloud_sp" - + "eech_adaptation.proto\022\035google.cloud.spee" - + "ch.v1p1beta1\032\034google/api/annotations.pro" - + "to\032\027google/api/client.proto\032\037google/api/" - + "field_behavior.proto\032\031google/api/resourc" - + "e.proto\032,google/cloud/speech/v1p1beta1/r" - + "esource.proto\032\033google/protobuf/empty.pro" - + "to\032 google/protobuf/field_mask.proto\"\260\001\n" - + "\026CreatePhraseSetRequest\0227\n\006parent\030\001 \001(\tB" - + "\'\340A\002\372A!\022\037speech.googleapis.com/PhraseSet" - + "\022\032\n\rphrase_set_id\030\002 \001(\tB\003\340A\002\022A\n\nphrase_s" - + "et\030\003 \001(\0132(.google.cloud.speech.v1p1beta1" - + ".PhraseSetB\003\340A\002\"\214\001\n\026UpdatePhraseSetReque" - + "st\022A\n\nphrase_set\030\001 \001(\0132(.google.cloud.sp" - + "eech.v1p1beta1.PhraseSetB\003\340A\002\022/\n\013update_" - + "mask\030\002 \001(\0132\032.google.protobuf.FieldMask\"L" - + "\n\023GetPhraseSetRequest\0225\n\004name\030\001 \001(\tB\'\340A\002" - + "\372A!\n\037speech.googleapis.com/PhraseSet\"v\n\024" - + "ListPhraseSetRequest\0227\n\006parent\030\001 \001(\tB\'\340A" - + "\002\372A!\022\037speech.googleapis.com/PhraseSet\022\021\n" - + "\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"o\n\025" - + "ListPhraseSetResponse\022=\n\013phrase_sets\030\001 \003" - + "(\0132(.google.cloud.speech.v1p1beta1.Phras" - + "eSet\022\027\n\017next_page_token\030\002 \001(\t\"O\n\026DeleteP" - + "hraseSetRequest\0225\n\004name\030\001 \001(\tB\'\340A\002\372A!\n\037s" - + "peech.googleapis.com/PhraseSet\"\272\001\n\030Creat" - + "eCustomClassRequest\0229\n\006parent\030\001 \001(\tB)\340A\002" - + "\372A#\022!speech.googleapis.com/CustomClass\022\034" - + "\n\017custom_class_id\030\002 \001(\tB\003\340A\002\022E\n\014custom_c" - + "lass\030\003 \001(\0132*.google.cloud.speech.v1p1bet" - + "a1.CustomClassB\003\340A\002\"\222\001\n\030UpdateCustomClas" - + "sRequest\022E\n\014custom_class\030\001 \001(\0132*.google." - + "cloud.speech.v1p1beta1.CustomClassB\003\340A\002\022" - + "/\n\013update_mask\030\002 \001(\0132\032.google.protobuf.F" - + "ieldMask\"P\n\025GetCustomClassRequest\0227\n\004nam" - + "e\030\001 \001(\tB)\340A\002\372A#\n!speech.googleapis.com/C" - + "ustomClass\"|\n\030ListCustomClassesRequest\0229" - + "\n\006parent\030\001 \001(\tB)\340A\002\372A#\022!speech.googleapi" - + "s.com/CustomClass\022\021\n\tpage_size\030\002 \001(\005\022\022\n\n" - + "page_token\030\003 \001(\t\"x\n\031ListCustomClassesRes" - + "ponse\022B\n\016custom_classes\030\001 \003(\0132*.google.c" - + "loud.speech.v1p1beta1.CustomClass\022\027\n\017nex" - + "t_page_token\030\002 \001(\t\"S\n\030DeleteCustomClassR" - + "equest\0227\n\004name\030\001 \001(\tB)\340A\002\372A#\n!speech.goo" - + "gleapis.com/CustomClass2\322\020\n\nAdaptation\022\326" - + "\001\n\017CreatePhraseSet\0225.google.cloud.speech" - + ".v1p1beta1.CreatePhraseSetRequest\032(.goog" - + "le.cloud.speech.v1p1beta1.PhraseSet\"b\202\323\344" - + "\223\002:\"5/v1p1beta1/{parent=projects/*/locat" - + "ions/*}/phraseSets:\001*\332A\037parent,phrase_se" - + "t,phrase_set_id\022\262\001\n\014GetPhraseSet\0222.googl" - + "e.cloud.speech.v1p1beta1.GetPhraseSetReq" - + "uest\032(.google.cloud.speech.v1p1beta1.Phr" - + "aseSet\"D\202\323\344\223\0027\0225/v1p1beta1/{name=project" - + "s/*/locations/*/phraseSets/*}\332A\004name\022\302\001\n" - + "\rListPhraseSet\0223.google.cloud.speech.v1p" - + "1beta1.ListPhraseSetRequest\0324.google.clo" - + "ud.speech.v1p1beta1.ListPhraseSetRespons" - + "e\"F\202\323\344\223\0027\0225/v1p1beta1/{parent=projects/*" - + "/locations/*}/phraseSets\332A\006parent\022\341\001\n\017Up" - + "datePhraseSet\0225.google.cloud.speech.v1p1" - + "beta1.UpdatePhraseSetRequest\032(.google.cl" - + "oud.speech.v1p1beta1.PhraseSet\"m\202\323\344\223\002N2@" - + "/v1p1beta1/{phrase_set.name=projects/*/l" - + "ocations/*/phraseSets/*}:\nphrase_set\332A\026p" - + "hrase_set,update_mask\022\246\001\n\017DeletePhraseSe" - + "t\0225.google.cloud.speech.v1p1beta1.Delete" - + "PhraseSetRequest\032\026.google.protobuf.Empty" - + "\"D\202\323\344\223\0027*5/v1p1beta1/{name=projects/*/lo" - + "cations/*/phraseSets/*}\332A\004name\022\343\001\n\021Creat" - + "eCustomClass\0227.google.cloud.speech.v1p1b" - + "eta1.CreateCustomClassRequest\032*.google.c" - + "loud.speech.v1p1beta1.CustomClass\"i\202\323\344\223\002" - + "=\"8/v1p1beta1/{parent=projects/*/locatio" - + "ns/*}/customClasses:\001*\332A#parent,custom_c" - + "lass,custom_class_id\022\273\001\n\016GetCustomClass\022" - + "4.google.cloud.speech.v1p1beta1.GetCusto" - + "mClassRequest\032*.google.cloud.speech.v1p1" - + "beta1.CustomClass\"G\202\323\344\223\002:\0228/v1p1beta1/{n" - + "ame=projects/*/locations/*/customClasses" - + "/*}\332A\004name\022\321\001\n\021ListCustomClasses\0227.googl" - + "e.cloud.speech.v1p1beta1.ListCustomClass" - + "esRequest\0328.google.cloud.speech.v1p1beta" - + "1.ListCustomClassesResponse\"I\202\323\344\223\002:\0228/v1" - + "p1beta1/{parent=projects/*/locations/*}/" - + "customClasses\332A\006parent\022\360\001\n\021UpdateCustomC" - + "lass\0227.google.cloud.speech.v1p1beta1.Upd" - + "ateCustomClassRequest\032*.google.cloud.spe" - + "ech.v1p1beta1.CustomClass\"v\202\323\344\223\002U2E/v1p1" - + "beta1/{custom_class.name=projects/*/loca" - + "tions/*/customClasses/*}:\014custom_class\332A" - + "\030custom_class,update_mask\022\255\001\n\021DeleteCust" - + "omClass\0227.google.cloud.speech.v1p1beta1." - + "DeleteCustomClassRequest\032\026.google.protob" - + "uf.Empty\"G\202\323\344\223\002:*8/v1p1beta1/{name=proje" - + "cts/*/locations/*/customClasses/*}\332A\004nam" - + "e\032I\312A\025speech.googleapis.com\322A.https://ww" - + "w.googleapis.com/auth/cloud-platformB\212\001\n" - + "!com.google.cloud.speech.v1p1beta1B\025Spee" - + "chAdaptationProtoP\001ZCgoogle.golang.org/g" - + "enproto/googleapis/cloud/speech/v1p1beta" - + "1;speech\370\001\001\242\002\003GCSb\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.cloud.speech.v1p1beta1.SpeechResourceProto.getDescriptor(), - com.google.protobuf.EmptyProto.getDescriptor(), - com.google.protobuf.FieldMaskProto.getDescriptor(), - }); - internal_static_google_cloud_speech_v1p1beta1_CreatePhraseSetRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_speech_v1p1beta1_CreatePhraseSetRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_speech_v1p1beta1_CreatePhraseSetRequest_descriptor, - new java.lang.String[] { - "Parent", "PhraseSetId", "PhraseSet", - }); - internal_static_google_cloud_speech_v1p1beta1_UpdatePhraseSetRequest_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_speech_v1p1beta1_UpdatePhraseSetRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_speech_v1p1beta1_UpdatePhraseSetRequest_descriptor, - new java.lang.String[] { - "PhraseSet", "UpdateMask", - }); - internal_static_google_cloud_speech_v1p1beta1_GetPhraseSetRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_speech_v1p1beta1_GetPhraseSetRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_speech_v1p1beta1_GetPhraseSetRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_speech_v1p1beta1_ListPhraseSetRequest_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_speech_v1p1beta1_ListPhraseSetRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_speech_v1p1beta1_ListPhraseSetRequest_descriptor, - new java.lang.String[] { - "Parent", "PageSize", "PageToken", - }); - internal_static_google_cloud_speech_v1p1beta1_ListPhraseSetResponse_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_speech_v1p1beta1_ListPhraseSetResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_speech_v1p1beta1_ListPhraseSetResponse_descriptor, - new java.lang.String[] { - "PhraseSets", "NextPageToken", - }); - internal_static_google_cloud_speech_v1p1beta1_DeletePhraseSetRequest_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_speech_v1p1beta1_DeletePhraseSetRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_speech_v1p1beta1_DeletePhraseSetRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_speech_v1p1beta1_CreateCustomClassRequest_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_speech_v1p1beta1_CreateCustomClassRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_speech_v1p1beta1_CreateCustomClassRequest_descriptor, - new java.lang.String[] { - "Parent", "CustomClassId", "CustomClass", - }); - internal_static_google_cloud_speech_v1p1beta1_UpdateCustomClassRequest_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_speech_v1p1beta1_UpdateCustomClassRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_speech_v1p1beta1_UpdateCustomClassRequest_descriptor, - new java.lang.String[] { - "CustomClass", "UpdateMask", - }); - internal_static_google_cloud_speech_v1p1beta1_GetCustomClassRequest_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_speech_v1p1beta1_GetCustomClassRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_speech_v1p1beta1_GetCustomClassRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_speech_v1p1beta1_ListCustomClassesRequest_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_speech_v1p1beta1_ListCustomClassesRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_speech_v1p1beta1_ListCustomClassesRequest_descriptor, - new java.lang.String[] { - "Parent", "PageSize", "PageToken", - }); - internal_static_google_cloud_speech_v1p1beta1_ListCustomClassesResponse_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_speech_v1p1beta1_ListCustomClassesResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_speech_v1p1beta1_ListCustomClassesResponse_descriptor, - new java.lang.String[] { - "CustomClasses", "NextPageToken", - }); - internal_static_google_cloud_speech_v1p1beta1_DeleteCustomClassRequest_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_cloud_speech_v1p1beta1_DeleteCustomClassRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_speech_v1p1beta1_DeleteCustomClassRequest_descriptor, - new java.lang.String[] { - "Name", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ClientProto.defaultHost); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.AnnotationsProto.http); - registry.add(com.google.api.ClientProto.methodSignature); - registry.add(com.google.api.ClientProto.oauthScopes); - registry.add(com.google.api.ResourceProto.resourceReference); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.cloud.speech.v1p1beta1.SpeechResourceProto.getDescriptor(); - com.google.protobuf.EmptyProto.getDescriptor(); - com.google.protobuf.FieldMaskProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechProto.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechProto.java deleted file mode 100644 index e858c793b..000000000 --- a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechProto.java +++ /dev/null @@ -1,483 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/speech/v1p1beta1/cloud_speech.proto - -package com.google.cloud.speech.v1p1beta1; - -public final class SpeechProto { - private SpeechProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1p1beta1_RecognizeRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1p1beta1_RecognizeRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1p1beta1_TranscriptOutputConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1p1beta1_TranscriptOutputConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1p1beta1_StreamingRecognizeRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1p1beta1_StreamingRecognizeRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1p1beta1_StreamingRecognitionConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1p1beta1_StreamingRecognitionConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1p1beta1_RecognitionConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1p1beta1_RecognitionConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1p1beta1_SpeakerDiarizationConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1p1beta1_SpeakerDiarizationConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1p1beta1_RecognitionMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1p1beta1_RecognitionMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1p1beta1_SpeechContext_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1p1beta1_SpeechContext_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1p1beta1_RecognitionAudio_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1p1beta1_RecognitionAudio_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1p1beta1_RecognizeResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1p1beta1_RecognizeResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1p1beta1_StreamingRecognizeResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1p1beta1_StreamingRecognizeResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1p1beta1_StreamingRecognitionResult_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1p1beta1_StreamingRecognitionResult_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1p1beta1_SpeechRecognitionResult_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1p1beta1_SpeechRecognitionResult_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1p1beta1_SpeechRecognitionAlternative_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1p1beta1_SpeechRecognitionAlternative_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1p1beta1_WordInfo_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1p1beta1_WordInfo_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n0google/cloud/speech/v1p1beta1/cloud_sp" - + "eech.proto\022\035google.cloud.speech.v1p1beta" - + "1\032\034google/api/annotations.proto\032\027google/" - + "api/client.proto\032\037google/api/field_behav" - + "ior.proto\032,google/cloud/speech/v1p1beta1" - + "/resource.proto\032#google/longrunning/oper" - + "ations.proto\032\031google/protobuf/any.proto\032" - + "\036google/protobuf/duration.proto\032\037google/" - + "protobuf/timestamp.proto\032\036google/protobu" - + "f/wrappers.proto\032\027google/rpc/status.prot" - + "o\"\236\001\n\020RecognizeRequest\022E\n\006config\030\001 \001(\01320" - + ".google.cloud.speech.v1p1beta1.Recogniti" - + "onConfigB\003\340A\002\022C\n\005audio\030\002 \001(\0132/.google.cl" - + "oud.speech.v1p1beta1.RecognitionAudioB\003\340" - + "A\002\"\374\001\n\033LongRunningRecognizeRequest\022E\n\006co" - + "nfig\030\001 \001(\01320.google.cloud.speech.v1p1bet" - + "a1.RecognitionConfigB\003\340A\002\022C\n\005audio\030\002 \001(\013" - + "2/.google.cloud.speech.v1p1beta1.Recogni" - + "tionAudioB\003\340A\002\022Q\n\routput_config\030\004 \001(\01325." - + "google.cloud.speech.v1p1beta1.Transcript" - + "OutputConfigB\003\340A\001\":\n\026TranscriptOutputCon" - + "fig\022\021\n\007gcs_uri\030\001 \001(\tH\000B\r\n\013output_type\"\240\001" - + "\n\031StreamingRecognizeRequest\022U\n\020streaming" - + "_config\030\001 \001(\01329.google.cloud.speech.v1p1" - + "beta1.StreamingRecognitionConfigH\000\022\027\n\rau" - + "dio_content\030\002 \001(\014H\000B\023\n\021streaming_request" - + "\"\226\001\n\032StreamingRecognitionConfig\022E\n\006confi" - + "g\030\001 \001(\01320.google.cloud.speech.v1p1beta1." - + "RecognitionConfigB\003\340A\002\022\030\n\020single_utteran" - + "ce\030\002 \001(\010\022\027\n\017interim_results\030\003 \001(\010\"\276\t\n\021Re" - + "cognitionConfig\022P\n\010encoding\030\001 \001(\0162>.goog" - + "le.cloud.speech.v1p1beta1.RecognitionCon" - + "fig.AudioEncoding\022\031\n\021sample_rate_hertz\030\002" - + " \001(\005\022\033\n\023audio_channel_count\030\007 \001(\005\022/\n\'ena" - + "ble_separate_recognition_per_channel\030\014 \001" - + "(\010\022\032\n\rlanguage_code\030\003 \001(\tB\003\340A\002\022\"\n\032altern" - + "ative_language_codes\030\022 \003(\t\022\030\n\020max_altern" - + "atives\030\004 \001(\005\022\030\n\020profanity_filter\030\005 \001(\010\022C" - + "\n\nadaptation\030\024 \001(\0132/.google.cloud.speech" - + ".v1p1beta1.SpeechAdaptation\022X\n\030transcrip" - + "t_normalization\030\030 \001(\01326.google.cloud.spe" - + "ech.v1p1beta1.TranscriptNormalization\022E\n" - + "\017speech_contexts\030\006 \003(\0132,.google.cloud.sp" - + "eech.v1p1beta1.SpeechContext\022 \n\030enable_w" - + "ord_time_offsets\030\010 \001(\010\022\036\n\026enable_word_co" - + "nfidence\030\017 \001(\010\022$\n\034enable_automatic_punct" - + "uation\030\013 \001(\010\022=\n\031enable_spoken_punctuatio" - + "n\030\026 \001(\0132\032.google.protobuf.BoolValue\0228\n\024e" - + "nable_spoken_emojis\030\027 \001(\0132\032.google.proto" - + "buf.BoolValue\022&\n\032enable_speaker_diarizat" - + "ion\030\020 \001(\010B\002\030\001\022%\n\031diarization_speaker_cou" - + "nt\030\021 \001(\005B\002\030\001\022S\n\022diarization_config\030\023 \001(\013" - + "27.google.cloud.speech.v1p1beta1.Speaker" - + "DiarizationConfig\022D\n\010metadata\030\t \001(\01322.go" - + "ogle.cloud.speech.v1p1beta1.RecognitionM" - + "etadata\022\r\n\005model\030\r \001(\t\022\024\n\014use_enhanced\030\016" - + " \001(\010\"\243\001\n\rAudioEncoding\022\030\n\024ENCODING_UNSPE" - + "CIFIED\020\000\022\014\n\010LINEAR16\020\001\022\010\n\004FLAC\020\002\022\t\n\005MULA" - + "W\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\tW" - + "EBM_OPUS\020\t\"\220\001\n\030SpeakerDiarizationConfig\022" - + "\"\n\032enable_speaker_diarization\030\001 \001(\010\022\031\n\021m" - + "in_speaker_count\030\002 \001(\005\022\031\n\021max_speaker_co" - + "unt\030\003 \001(\005\022\032\n\013speaker_tag\030\005 \001(\005B\005\030\001\340A\003\"\327\010" - + "\n\023RecognitionMetadata\022\\\n\020interaction_typ" - + "e\030\001 \001(\0162B.google.cloud.speech.v1p1beta1." - + "RecognitionMetadata.InteractionType\022$\n\034i" - + "ndustry_naics_code_of_audio\030\003 \001(\r\022b\n\023mic" - + "rophone_distance\030\004 \001(\0162E.google.cloud.sp" - + "eech.v1p1beta1.RecognitionMetadata.Micro" - + "phoneDistance\022a\n\023original_media_type\030\005 \001" - + "(\0162D.google.cloud.speech.v1p1beta1.Recog" - + "nitionMetadata.OriginalMediaType\022e\n\025reco" - + "rding_device_type\030\006 \001(\0162F.google.cloud.s" - + "peech.v1p1beta1.RecognitionMetadata.Reco" - + "rdingDeviceType\022\035\n\025recording_device_name" - + "\030\007 \001(\t\022\032\n\022original_mime_type\030\010 \001(\t\022\031\n\rob" - + "fuscated_id\030\t \001(\003B\002\030\001\022\023\n\013audio_topic\030\n \001" - + "(\t\"\305\001\n\017InteractionType\022 \n\034INTERACTION_TY" - + "PE_UNSPECIFIED\020\000\022\016\n\nDISCUSSION\020\001\022\020\n\014PRES" - + "ENTATION\020\002\022\016\n\nPHONE_CALL\020\003\022\r\n\tVOICEMAIL\020" - + "\004\022\033\n\027PROFESSIONALLY_PRODUCED\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_D" - + "ISTANCE_UNSPECIFIED\020\000\022\r\n\tNEARFIELD\020\001\022\014\n\010" - + "MIDFIELD\020\002\022\014\n\010FARFIELD\020\003\"N\n\021OriginalMedi" - + "aType\022#\n\037ORIGINAL_MEDIA_TYPE_UNSPECIFIED" - + "\020\000\022\t\n\005AUDIO\020\001\022\t\n\005VIDEO\020\002\"\244\001\n\023RecordingDe" - + "viceType\022%\n!RECORDING_DEVICE_TYPE_UNSPEC" - + "IFIED\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_DE" - + "VICE\020\005\022\027\n\023OTHER_INDOOR_DEVICE\020\006\"/\n\rSpeec" - + "hContext\022\017\n\007phrases\030\001 \003(\t\022\r\n\005boost\030\004 \001(\002" - + "\"D\n\020RecognitionAudio\022\021\n\007content\030\001 \001(\014H\000\022" - + "\r\n\003uri\030\002 \001(\tH\000B\016\n\014audio_source\"\222\001\n\021Recog" - + "nizeResponse\022G\n\007results\030\002 \003(\01326.google.c" - + "loud.speech.v1p1beta1.SpeechRecognitionR" - + "esult\0224\n\021total_billed_time\030\003 \001(\0132\031.googl" - + "e.protobuf.Duration\"\225\002\n\034LongRunningRecog" - + "nizeResponse\022G\n\007results\030\002 \003(\01326.google.c" - + "loud.speech.v1p1beta1.SpeechRecognitionR" - + "esult\0224\n\021total_billed_time\030\003 \001(\0132\031.googl" - + "e.protobuf.Duration\022L\n\routput_config\030\006 \001" - + "(\01325.google.cloud.speech.v1p1beta1.Trans" - + "criptOutputConfig\022(\n\014output_error\030\007 \001(\0132" - + "\022.google.rpc.Status\"\203\002\n\034LongRunningRecog" - + "nizeMetadata\022\030\n\020progress_percent\030\001 \001(\005\022." - + "\n\nstart_time\030\002 \001(\0132\032.google.protobuf.Tim" - + "estamp\0224\n\020last_update_time\030\003 \001(\0132\032.googl" - + "e.protobuf.Timestamp\022\020\n\003uri\030\004 \001(\tB\003\340A\003\022Q" - + "\n\routput_config\030\005 \001(\01325.google.cloud.spe" - + "ech.v1p1beta1.TranscriptOutputConfigB\003\340A" - + "\003\"\365\002\n\032StreamingRecognizeResponse\022!\n\005erro" - + "r\030\001 \001(\0132\022.google.rpc.Status\022J\n\007results\030\002" - + " \003(\01329.google.cloud.speech.v1p1beta1.Str" - + "eamingRecognitionResult\022d\n\021speech_event_" - + "type\030\004 \001(\0162I.google.cloud.speech.v1p1bet" - + "a1.StreamingRecognizeResponse.SpeechEven" - + "tType\0224\n\021total_billed_time\030\005 \001(\0132\031.googl" - + "e.protobuf.Duration\"L\n\017SpeechEventType\022\034" - + "\n\030SPEECH_EVENT_UNSPECIFIED\020\000\022\033\n\027END_OF_S" - + "INGLE_UTTERANCE\020\001\"\371\001\n\032StreamingRecogniti" - + "onResult\022Q\n\014alternatives\030\001 \003(\0132;.google." - + "cloud.speech.v1p1beta1.SpeechRecognition" - + "Alternative\022\020\n\010is_final\030\002 \001(\010\022\021\n\tstabili" - + "ty\030\003 \001(\002\0222\n\017result_end_time\030\004 \001(\0132\031.goog" - + "le.protobuf.Duration\022\023\n\013channel_tag\030\005 \001(" - + "\005\022\032\n\rlanguage_code\030\006 \001(\tB\003\340A\003\"\321\001\n\027Speech" - + "RecognitionResult\022Q\n\014alternatives\030\001 \003(\0132" - + ";.google.cloud.speech.v1p1beta1.SpeechRe" - + "cognitionAlternative\022\023\n\013channel_tag\030\002 \001(" - + "\005\0222\n\017result_end_time\030\004 \001(\0132\031.google.prot" - + "obuf.Duration\022\032\n\rlanguage_code\030\005 \001(\tB\003\340A" - + "\003\"~\n\034SpeechRecognitionAlternative\022\022\n\ntra" - + "nscript\030\001 \001(\t\022\022\n\nconfidence\030\002 \001(\002\0226\n\005wor" - + "ds\030\003 \003(\0132\'.google.cloud.speech.v1p1beta1" - + ".WordInfo\"\242\001\n\010WordInfo\022-\n\nstart_time\030\001 \001" - + "(\0132\031.google.protobuf.Duration\022+\n\010end_tim" - + "e\030\002 \001(\0132\031.google.protobuf.Duration\022\014\n\004wo" - + "rd\030\003 \001(\t\022\022\n\nconfidence\030\004 \001(\002\022\030\n\013speaker_" - + "tag\030\005 \001(\005B\003\340A\0032\202\005\n\006Speech\022\245\001\n\tRecognize\022" - + "/.google.cloud.speech.v1p1beta1.Recogniz" - + "eRequest\0320.google.cloud.speech.v1p1beta1" - + ".RecognizeResponse\"5\202\323\344\223\002 \"\033/v1p1beta1/s" - + "peech:recognize:\001*\332A\014config,audio\022\362\001\n\024Lo" - + "ngRunningRecognize\022:.google.cloud.speech" - + ".v1p1beta1.LongRunningRecognizeRequest\032\035" - + ".google.longrunning.Operation\"\177\202\323\344\223\002+\"&/" - + "v1p1beta1/speech:longrunningrecognize:\001*" - + "\332A\014config,audio\312A<\n\034LongRunningRecognize" - + "Response\022\034LongRunningRecognizeMetadata\022\217" - + "\001\n\022StreamingRecognize\0228.google.cloud.spe" - + "ech.v1p1beta1.StreamingRecognizeRequest\032" - + "9.google.cloud.speech.v1p1beta1.Streamin" - + "gRecognizeResponse\"\000(\0010\001\032I\312A\025speech.goog" - + "leapis.com\322A.https://www.googleapis.com/" - + "auth/cloud-platformB\200\001\n!com.google.cloud" - + ".speech.v1p1beta1B\013SpeechProtoP\001ZCgoogle" - + ".golang.org/genproto/googleapis/cloud/sp" - + "eech/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.AnyProto.getDescriptor(), - com.google.protobuf.DurationProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - com.google.protobuf.WrappersProto.getDescriptor(), - com.google.rpc.StatusProto.getDescriptor(), - }); - internal_static_google_cloud_speech_v1p1beta1_RecognizeRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_speech_v1p1beta1_RecognizeRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_speech_v1p1beta1_RecognizeRequest_descriptor, - new java.lang.String[] { - "Config", "Audio", - }); - internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeRequest_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeRequest_descriptor, - new java.lang.String[] { - "Config", "Audio", "OutputConfig", - }); - internal_static_google_cloud_speech_v1p1beta1_TranscriptOutputConfig_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_speech_v1p1beta1_TranscriptOutputConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_speech_v1p1beta1_TranscriptOutputConfig_descriptor, - new java.lang.String[] { - "GcsUri", "OutputType", - }); - internal_static_google_cloud_speech_v1p1beta1_StreamingRecognizeRequest_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_speech_v1p1beta1_StreamingRecognizeRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_speech_v1p1beta1_StreamingRecognizeRequest_descriptor, - new java.lang.String[] { - "StreamingConfig", "AudioContent", "StreamingRequest", - }); - internal_static_google_cloud_speech_v1p1beta1_StreamingRecognitionConfig_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_speech_v1p1beta1_StreamingRecognitionConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_speech_v1p1beta1_StreamingRecognitionConfig_descriptor, - new java.lang.String[] { - "Config", "SingleUtterance", "InterimResults", - }); - internal_static_google_cloud_speech_v1p1beta1_RecognitionConfig_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_speech_v1p1beta1_RecognitionConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_speech_v1p1beta1_RecognitionConfig_descriptor, - new java.lang.String[] { - "Encoding", - "SampleRateHertz", - "AudioChannelCount", - "EnableSeparateRecognitionPerChannel", - "LanguageCode", - "AlternativeLanguageCodes", - "MaxAlternatives", - "ProfanityFilter", - "Adaptation", - "TranscriptNormalization", - "SpeechContexts", - "EnableWordTimeOffsets", - "EnableWordConfidence", - "EnableAutomaticPunctuation", - "EnableSpokenPunctuation", - "EnableSpokenEmojis", - "EnableSpeakerDiarization", - "DiarizationSpeakerCount", - "DiarizationConfig", - "Metadata", - "Model", - "UseEnhanced", - }); - internal_static_google_cloud_speech_v1p1beta1_SpeakerDiarizationConfig_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_speech_v1p1beta1_SpeakerDiarizationConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_speech_v1p1beta1_SpeakerDiarizationConfig_descriptor, - new java.lang.String[] { - "EnableSpeakerDiarization", "MinSpeakerCount", "MaxSpeakerCount", "SpeakerTag", - }); - internal_static_google_cloud_speech_v1p1beta1_RecognitionMetadata_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_speech_v1p1beta1_RecognitionMetadata_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_speech_v1p1beta1_RecognitionMetadata_descriptor, - new java.lang.String[] { - "InteractionType", - "IndustryNaicsCodeOfAudio", - "MicrophoneDistance", - "OriginalMediaType", - "RecordingDeviceType", - "RecordingDeviceName", - "OriginalMimeType", - "ObfuscatedId", - "AudioTopic", - }); - internal_static_google_cloud_speech_v1p1beta1_SpeechContext_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_speech_v1p1beta1_SpeechContext_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_speech_v1p1beta1_SpeechContext_descriptor, - new java.lang.String[] { - "Phrases", "Boost", - }); - internal_static_google_cloud_speech_v1p1beta1_RecognitionAudio_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_speech_v1p1beta1_RecognitionAudio_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_speech_v1p1beta1_RecognitionAudio_descriptor, - new java.lang.String[] { - "Content", "Uri", "AudioSource", - }); - internal_static_google_cloud_speech_v1p1beta1_RecognizeResponse_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_speech_v1p1beta1_RecognizeResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_speech_v1p1beta1_RecognizeResponse_descriptor, - new java.lang.String[] { - "Results", "TotalBilledTime", - }); - internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeResponse_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeResponse_descriptor, - new java.lang.String[] { - "Results", "TotalBilledTime", "OutputConfig", "OutputError", - }); - internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeMetadata_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeMetadata_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeMetadata_descriptor, - new java.lang.String[] { - "ProgressPercent", "StartTime", "LastUpdateTime", "Uri", "OutputConfig", - }); - internal_static_google_cloud_speech_v1p1beta1_StreamingRecognizeResponse_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_google_cloud_speech_v1p1beta1_StreamingRecognizeResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_speech_v1p1beta1_StreamingRecognizeResponse_descriptor, - new java.lang.String[] { - "Error", "Results", "SpeechEventType", "TotalBilledTime", - }); - internal_static_google_cloud_speech_v1p1beta1_StreamingRecognitionResult_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_google_cloud_speech_v1p1beta1_StreamingRecognitionResult_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_speech_v1p1beta1_StreamingRecognitionResult_descriptor, - new java.lang.String[] { - "Alternatives", "IsFinal", "Stability", "ResultEndTime", "ChannelTag", "LanguageCode", - }); - internal_static_google_cloud_speech_v1p1beta1_SpeechRecognitionResult_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_google_cloud_speech_v1p1beta1_SpeechRecognitionResult_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_speech_v1p1beta1_SpeechRecognitionResult_descriptor, - new java.lang.String[] { - "Alternatives", "ChannelTag", "ResultEndTime", "LanguageCode", - }); - internal_static_google_cloud_speech_v1p1beta1_SpeechRecognitionAlternative_descriptor = - getDescriptor().getMessageTypes().get(16); - internal_static_google_cloud_speech_v1p1beta1_SpeechRecognitionAlternative_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_speech_v1p1beta1_SpeechRecognitionAlternative_descriptor, - new java.lang.String[] { - "Transcript", "Confidence", "Words", - }); - internal_static_google_cloud_speech_v1p1beta1_WordInfo_descriptor = - getDescriptor().getMessageTypes().get(17); - internal_static_google_cloud_speech_v1p1beta1_WordInfo_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_speech_v1p1beta1_WordInfo_descriptor, - new java.lang.String[] { - "StartTime", "EndTime", "Word", "Confidence", "SpeakerTag", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ClientProto.defaultHost); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.AnnotationsProto.http); - registry.add(com.google.api.ClientProto.methodSignature); - registry.add(com.google.api.ClientProto.oauthScopes); - registry.add(com.google.longrunning.OperationsProto.operationInfo); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.cloud.speech.v1p1beta1.SpeechResourceProto.getDescriptor(); - com.google.longrunning.OperationsProto.getDescriptor(); - com.google.protobuf.AnyProto.getDescriptor(); - com.google.protobuf.DurationProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - com.google.protobuf.WrappersProto.getDescriptor(); - com.google.rpc.StatusProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechResourceProto.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechResourceProto.java deleted file mode 100644 index fd1fc79b9..000000000 --- a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechResourceProto.java +++ /dev/null @@ -1,179 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/speech/v1p1beta1/resource.proto - -package com.google.cloud.speech.v1p1beta1; - -public final class SpeechResourceProto { - private SpeechResourceProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1p1beta1_CustomClass_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1p1beta1_CustomClass_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1p1beta1_CustomClass_ClassItem_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1p1beta1_CustomClass_ClassItem_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1p1beta1_PhraseSet_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1p1beta1_PhraseSet_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1p1beta1_PhraseSet_Phrase_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1p1beta1_PhraseSet_Phrase_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptation_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptation_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1p1beta1_TranscriptNormalization_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1p1beta1_TranscriptNormalization_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1p1beta1_TranscriptNormalization_Entry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1p1beta1_TranscriptNormalization_Entry_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n,google/cloud/speech/v1p1beta1/resource" - + ".proto\022\035google.cloud.speech.v1p1beta1\032\031g" - + "oogle/api/resource.proto\032\037google/protobu" - + "f/timestamp.proto\032\034google/api/annotation" - + "s.proto\"\203\002\n\013CustomClass\022\014\n\004name\030\001 \001(\t\022\027\n" - + "\017custom_class_id\030\002 \001(\t\022C\n\005items\030\003 \003(\01324." - + "google.cloud.speech.v1p1beta1.CustomClas" - + "s.ClassItem\032\032\n\tClassItem\022\r\n\005value\030\001 \001(\t:" - + "l\352Ai\n!speech.googleapis.com/CustomClass\022" - + "Dprojects/{project}/locations/{location}" - + "/customClasses/{custom_class}\"\371\001\n\tPhrase" - + "Set\022\014\n\004name\030\001 \001(\t\022@\n\007phrases\030\002 \003(\0132/.goo" - + "gle.cloud.speech.v1p1beta1.PhraseSet.Phr" - + "ase\022\r\n\005boost\030\004 \001(\002\032&\n\006Phrase\022\r\n\005value\030\001 " - + "\001(\t\022\r\n\005boost\030\002 \001(\002:e\352Ab\n\037speech.googleap" - + "is.com/PhraseSet\022?projects/{project}/loc" - + "ations/{location}/phraseSets/{phrase_set" - + "}\"\332\001\n\020SpeechAdaptation\022=\n\013phrase_sets\030\001 " - + "\003(\0132(.google.cloud.speech.v1p1beta1.Phra" - + "seSet\022C\n\025phrase_set_references\030\002 \003(\tB$\372A" - + "!\n\037speech.googleapis.com/PhraseSet\022B\n\016cu" - + "stom_classes\030\003 \003(\0132*.google.cloud.speech" - + ".v1p1beta1.CustomClass\"\252\001\n\027TranscriptNor" - + "malization\022M\n\007entries\030\001 \003(\0132<.google.clo" - + "ud.speech.v1p1beta1.TranscriptNormalizat" - + "ion.Entry\032@\n\005Entry\022\016\n\006search\030\001 \001(\t\022\017\n\007re" - + "place\030\002 \001(\t\022\026\n\016case_sensitive\030\003 \001(\010B\210\001\n!" - + "com.google.cloud.speech.v1p1beta1B\023Speec" - + "hResourceProtoP\001ZCgoogle.golang.org/genp" - + "roto/googleapis/cloud/speech/v1p1beta1;s" - + "peech\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(), - com.google.protobuf.TimestampProto.getDescriptor(), - com.google.api.AnnotationsProto.getDescriptor(), - }); - internal_static_google_cloud_speech_v1p1beta1_CustomClass_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_speech_v1p1beta1_CustomClass_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_speech_v1p1beta1_CustomClass_descriptor, - new java.lang.String[] { - "Name", "CustomClassId", "Items", - }); - internal_static_google_cloud_speech_v1p1beta1_CustomClass_ClassItem_descriptor = - internal_static_google_cloud_speech_v1p1beta1_CustomClass_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_speech_v1p1beta1_CustomClass_ClassItem_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_speech_v1p1beta1_CustomClass_ClassItem_descriptor, - new java.lang.String[] { - "Value", - }); - internal_static_google_cloud_speech_v1p1beta1_PhraseSet_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_speech_v1p1beta1_PhraseSet_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_speech_v1p1beta1_PhraseSet_descriptor, - new java.lang.String[] { - "Name", "Phrases", "Boost", - }); - internal_static_google_cloud_speech_v1p1beta1_PhraseSet_Phrase_descriptor = - internal_static_google_cloud_speech_v1p1beta1_PhraseSet_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_speech_v1p1beta1_PhraseSet_Phrase_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_speech_v1p1beta1_PhraseSet_Phrase_descriptor, - new java.lang.String[] { - "Value", "Boost", - }); - internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptation_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptation_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptation_descriptor, - new java.lang.String[] { - "PhraseSets", "PhraseSetReferences", "CustomClasses", - }); - internal_static_google_cloud_speech_v1p1beta1_TranscriptNormalization_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_speech_v1p1beta1_TranscriptNormalization_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_speech_v1p1beta1_TranscriptNormalization_descriptor, - new java.lang.String[] { - "Entries", - }); - internal_static_google_cloud_speech_v1p1beta1_TranscriptNormalization_Entry_descriptor = - internal_static_google_cloud_speech_v1p1beta1_TranscriptNormalization_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_speech_v1p1beta1_TranscriptNormalization_Entry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_speech_v1p1beta1_TranscriptNormalization_Entry_descriptor, - new java.lang.String[] { - "Search", "Replace", "CaseSensitive", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ResourceProto.resource); - registry.add(com.google.api.ResourceProto.resourceReference); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.ResourceProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - com.google.api.AnnotationsProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} From 54c035b3bdf0c398dd2e863e36a2fdbee60ac99a Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Sat, 9 Apr 2022 00:51:05 +0000 Subject: [PATCH 2/3] =?UTF-8?q?=F0=9F=A6=89=20Updates=20from=20OwlBot=20po?= =?UTF-8?q?st-processor?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --- README.md | 4 +- .../google/cloud/speech/v1/SpeechClient.java | 6 +- .../cloud/speech/v1/SpeechSettings.java | 7 +- .../cloud/speech/v1/gapic_metadata.json | 0 .../google/cloud/speech/v1/package-info.java | 0 .../v1/stub/GrpcSpeechCallableFactory.java | 0 .../cloud/speech/v1/stub/GrpcSpeechStub.java | 0 .../cloud/speech/v1/stub/SpeechStub.java | 0 .../speech/v1/stub/SpeechStubSettings.java | 6 +- .../speech/v1p1beta1/AdaptationClient.java | 26 +- .../speech/v1p1beta1/AdaptationSettings.java | 7 +- .../cloud/speech/v1p1beta1/SpeechClient.java | 6 +- .../speech/v1p1beta1/SpeechSettings.java | 7 +- .../speech/v1p1beta1/gapic_metadata.json | 0 .../cloud/speech/v1p1beta1/package-info.java | 0 .../speech/v1p1beta1/stub/AdaptationStub.java | 0 .../stub/AdaptationStubSettings.java | 9 +- .../stub/GrpcAdaptationCallableFactory.java | 0 .../v1p1beta1/stub/GrpcAdaptationStub.java | 1 - .../stub/GrpcSpeechCallableFactory.java | 0 .../speech/v1p1beta1/stub/GrpcSpeechStub.java | 0 .../speech/v1p1beta1/stub/SpeechStub.java | 0 .../v1p1beta1/stub/SpeechStubSettings.java | 6 +- .../google/cloud/speech/v1/MockSpeech.java | 0 .../cloud/speech/v1/MockSpeechImpl.java | 0 .../cloud/speech/v1/SpeechClientTest.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 .../speech/v1p1beta1/SpeechClientTest.java | 0 .../google/cloud/speech/v1/SpeechGrpc.java | 579 +++++ .../speech/v1p1beta1/AdaptationGrpc.java | 1424 ++++++++++++ .../cloud/speech/v1p1beta1/SpeechGrpc.java | 589 +++++ .../google/cloud/speech/v1/SpeechGrpc.java | 479 ---- .../speech/v1/RecognizeRequestOrBuilder.java | 66 - .../google/cloud/speech/v1/SpeechProto.java | 406 ---- .../cloud/speech/v1/SpeechResourceProto.java | 121 -- .../speech/v1p1beta1/AdaptationGrpc.java | 1085 ---------- .../cloud/speech/v1p1beta1/SpeechGrpc.java | 479 ---- .../DeletePhraseSetRequestOrBuilder.java | 31 - .../GetCustomClassRequestOrBuilder.java | 31 - .../v1p1beta1/RecognizeRequestOrBuilder.java | 66 - .../v1p1beta1/SpeechAdaptationProto.java | 292 --- .../cloud/speech/v1p1beta1/SpeechProto.java | 422 ---- .../speech/v1p1beta1/SpeechResourceProto.java | 154 -- .../google/cloud/speech/v1/CustomClass.java | 823 ++++--- .../cloud/speech/v1/CustomClassOrBuilder.java | 54 +- .../v1/LongRunningRecognizeMetadata.java | 536 +++-- ...LongRunningRecognizeMetadataOrBuilder.java | 46 +- .../v1/LongRunningRecognizeRequest.java | 685 ++++-- .../LongRunningRecognizeRequestOrBuilder.java | 78 +- .../v1/LongRunningRecognizeResponse.java | 665 ++++-- ...LongRunningRecognizeResponseOrBuilder.java | 60 +- .../com/google/cloud/speech/v1/PhraseSet.java | 812 ++++--- .../cloud/speech/v1/PhraseSetOrBuilder.java | 48 +- .../cloud/speech/v1/RecognitionAudio.java | 417 ++-- .../speech/v1/RecognitionAudioOrBuilder.java | 36 +- .../cloud/speech/v1/RecognitionConfig.java | 1658 +++++++++----- .../speech/v1/RecognitionConfigOrBuilder.java | 145 +- .../cloud/speech/v1/RecognitionMetadata.java | 1221 +++++++---- .../v1/RecognitionMetadataOrBuilder.java | 92 +- .../cloud/speech/v1/RecognizeRequest.java | 525 +++-- .../speech/v1/RecognizeRequestOrBuilder.java | 110 + .../cloud/speech/v1/RecognizeResponse.java | 470 ++-- .../speech/v1/RecognizeResponseOrBuilder.java | 44 +- .../speech/v1/SpeakerDiarizationConfig.java | 398 ++-- .../v1/SpeakerDiarizationConfigOrBuilder.java | 36 +- .../cloud/speech/v1/SpeechAdaptation.java | 663 +++--- .../speech/v1/SpeechAdaptationOrBuilder.java | 84 +- .../google/cloud/speech/v1/SpeechContext.java | 367 ++-- .../speech/v1/SpeechContextOrBuilder.java | 39 +- .../google/cloud/speech/v1/SpeechProto.java | 463 ++++ .../v1/SpeechRecognitionAlternative.java | 499 +++-- ...SpeechRecognitionAlternativeOrBuilder.java | 49 +- .../speech/v1/SpeechRecognitionResult.java | 604 ++++-- .../v1/SpeechRecognitionResultOrBuilder.java | 53 +- .../cloud/speech/v1/SpeechResourceProto.java | 140 ++ .../speech/v1/StreamingRecognitionConfig.java | 461 ++-- .../StreamingRecognitionConfigOrBuilder.java | 44 +- .../speech/v1/StreamingRecognitionResult.java | 681 +++--- .../StreamingRecognitionResultOrBuilder.java | 59 +- .../speech/v1/StreamingRecognizeRequest.java | 459 ++-- .../StreamingRecognizeRequestOrBuilder.java | 35 +- .../speech/v1/StreamingRecognizeResponse.java | 727 ++++--- .../StreamingRecognizeResponseOrBuilder.java | 64 +- .../speech/v1/TranscriptOutputConfig.java | 368 ++-- .../v1/TranscriptOutputConfigOrBuilder.java | 30 +- .../com/google/cloud/speech/v1/WordInfo.java | 541 +++-- .../cloud/speech/v1/WordInfoOrBuilder.java | 49 +- .../google/cloud/speech/v1/cloud_speech.proto | 0 .../google/cloud/speech/v1/resource.proto | 0 .../v1p1beta1/CreateCustomClassRequest.java | 567 +++-- .../CreateCustomClassRequestOrBuilder.java | 64 +- .../v1p1beta1/CreatePhraseSetRequest.java | 567 +++-- .../CreatePhraseSetRequestOrBuilder.java | 64 +- .../cloud/speech/v1p1beta1/CustomClass.java | 831 ++++--- .../speech/v1p1beta1/CustomClassName.java | 0 .../v1p1beta1/CustomClassOrBuilder.java | 54 +- .../v1p1beta1/DeleteCustomClassRequest.java | 342 +-- .../DeleteCustomClassRequestOrBuilder.java | 35 +- .../v1p1beta1/DeletePhraseSetRequest.java | 342 +-- .../DeletePhraseSetRequestOrBuilder.java | 56 + .../v1p1beta1/GetCustomClassRequest.java | 342 +-- .../GetCustomClassRequestOrBuilder.java | 56 + .../speech/v1p1beta1/GetPhraseSetRequest.java | 342 +-- .../GetPhraseSetRequestOrBuilder.java | 35 +- .../v1p1beta1/ListCustomClassesRequest.java | 455 ++-- .../ListCustomClassesRequestOrBuilder.java | 47 +- .../v1p1beta1/ListCustomClassesResponse.java | 441 ++-- .../ListCustomClassesResponseOrBuilder.java | 45 +- .../v1p1beta1/ListPhraseSetRequest.java | 455 ++-- .../ListPhraseSetRequestOrBuilder.java | 47 +- .../v1p1beta1/ListPhraseSetResponse.java | 464 ++-- .../ListPhraseSetResponseOrBuilder.java | 45 +- .../cloud/speech/v1p1beta1/LocationName.java | 0 .../LongRunningRecognizeMetadata.java | 715 +++--- ...LongRunningRecognizeMetadataOrBuilder.java | 66 +- .../LongRunningRecognizeRequest.java | 701 ++++-- .../LongRunningRecognizeRequestOrBuilder.java | 78 +- .../LongRunningRecognizeResponse.java | 704 +++--- ...LongRunningRecognizeResponseOrBuilder.java | 60 +- .../cloud/speech/v1p1beta1/PhraseSet.java | 826 ++++--- .../cloud/speech/v1p1beta1/PhraseSetName.java | 0 .../speech/v1p1beta1/PhraseSetOrBuilder.java | 48 +- .../speech/v1p1beta1/RecognitionAudio.java | 427 ++-- .../v1p1beta1/RecognitionAudioOrBuilder.java | 36 +- .../speech/v1p1beta1/RecognitionConfig.java | 1919 +++++++++++------ .../v1p1beta1/RecognitionConfigOrBuilder.java | 180 +- .../speech/v1p1beta1/RecognitionMetadata.java | 1335 ++++++++---- .../RecognitionMetadataOrBuilder.java | 111 +- .../speech/v1p1beta1/RecognizeRequest.java | 531 +++-- .../v1p1beta1/RecognizeRequestOrBuilder.java | 110 + .../speech/v1p1beta1/RecognizeResponse.java | 489 +++-- .../v1p1beta1/RecognizeResponseOrBuilder.java | 44 +- .../v1p1beta1/SpeakerDiarizationConfig.java | 401 ++-- .../SpeakerDiarizationConfigOrBuilder.java | 36 +- .../speech/v1p1beta1/SpeechAdaptation.java | 658 ++++-- .../v1p1beta1/SpeechAdaptationOrBuilder.java | 84 +- .../v1p1beta1/SpeechAdaptationProto.java | 318 +++ .../cloud/speech/v1p1beta1/SpeechContext.java | 373 ++-- .../v1p1beta1/SpeechContextOrBuilder.java | 39 +- .../cloud/speech/v1p1beta1/SpeechProto.java | 483 +++++ .../SpeechRecognitionAlternative.java | 518 +++-- ...SpeechRecognitionAlternativeOrBuilder.java | 48 +- .../v1p1beta1/SpeechRecognitionResult.java | 702 +++--- .../SpeechRecognitionResultOrBuilder.java | 67 +- .../speech/v1p1beta1/SpeechResourceProto.java | 179 ++ .../v1p1beta1/StreamingRecognitionConfig.java | 466 ++-- .../StreamingRecognitionConfigOrBuilder.java | 44 +- .../v1p1beta1/StreamingRecognitionResult.java | 783 ++++--- .../StreamingRecognitionResultOrBuilder.java | 73 +- .../v1p1beta1/StreamingRecognizeRequest.java | 470 ++-- .../StreamingRecognizeRequestOrBuilder.java | 38 +- .../v1p1beta1/StreamingRecognizeResponse.java | 760 ++++--- .../StreamingRecognizeResponseOrBuilder.java | 63 +- .../v1p1beta1/TranscriptNormalization.java | 931 ++++---- .../TranscriptNormalizationOrBuilder.java | 33 +- .../v1p1beta1/TranscriptOutputConfig.java | 371 ++-- .../TranscriptOutputConfigOrBuilder.java | 33 +- .../v1p1beta1/UpdateCustomClassRequest.java | 480 +++-- .../UpdateCustomClassRequestOrBuilder.java | 46 +- .../v1p1beta1/UpdatePhraseSetRequest.java | 480 +++-- .../UpdatePhraseSetRequestOrBuilder.java | 46 +- .../cloud/speech/v1p1beta1/WordInfo.java | 548 +++-- .../speech/v1p1beta1/WordInfoOrBuilder.java | 49 +- .../cloud/speech/v1p1beta1/cloud_speech.proto | 0 .../v1p1beta1/cloud_speech_adaptation.proto | 0 .../cloud/speech/v1p1beta1/resource.proto | 0 170 files changed, 28609 insertions(+), 16834 deletions(-) rename {owl-bot-staging/v1/google-cloud-speech => google-cloud-speech}/src/main/java/com/google/cloud/speech/v1/SpeechClient.java (98%) rename {owl-bot-staging/v1/google-cloud-speech => google-cloud-speech}/src/main/java/com/google/cloud/speech/v1/SpeechSettings.java (96%) rename {owl-bot-staging/v1/google-cloud-speech => google-cloud-speech}/src/main/java/com/google/cloud/speech/v1/gapic_metadata.json (100%) rename {owl-bot-staging/v1/google-cloud-speech => google-cloud-speech}/src/main/java/com/google/cloud/speech/v1/package-info.java (100%) rename {owl-bot-staging/v1/google-cloud-speech => google-cloud-speech}/src/main/java/com/google/cloud/speech/v1/stub/GrpcSpeechCallableFactory.java (100%) rename {owl-bot-staging/v1/google-cloud-speech => google-cloud-speech}/src/main/java/com/google/cloud/speech/v1/stub/GrpcSpeechStub.java (100%) rename {owl-bot-staging/v1/google-cloud-speech => google-cloud-speech}/src/main/java/com/google/cloud/speech/v1/stub/SpeechStub.java (100%) rename {owl-bot-staging/v1/google-cloud-speech => google-cloud-speech}/src/main/java/com/google/cloud/speech/v1/stub/SpeechStubSettings.java (98%) rename {owl-bot-staging/v1p1beta1/google-cloud-speech => google-cloud-speech}/src/main/java/com/google/cloud/speech/v1p1beta1/AdaptationClient.java (98%) rename {owl-bot-staging/v1p1beta1/google-cloud-speech => google-cloud-speech}/src/main/java/com/google/cloud/speech/v1p1beta1/AdaptationSettings.java (97%) rename {owl-bot-staging/v1p1beta1/google-cloud-speech => google-cloud-speech}/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechClient.java (98%) rename {owl-bot-staging/v1p1beta1/google-cloud-speech => google-cloud-speech}/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechSettings.java (96%) rename {owl-bot-staging/v1p1beta1/google-cloud-speech => google-cloud-speech}/src/main/java/com/google/cloud/speech/v1p1beta1/gapic_metadata.json (100%) rename {owl-bot-staging/v1p1beta1/google-cloud-speech => google-cloud-speech}/src/main/java/com/google/cloud/speech/v1p1beta1/package-info.java (100%) rename {owl-bot-staging/v1p1beta1/google-cloud-speech => google-cloud-speech}/src/main/java/com/google/cloud/speech/v1p1beta1/stub/AdaptationStub.java (100%) rename {owl-bot-staging/v1p1beta1/google-cloud-speech => google-cloud-speech}/src/main/java/com/google/cloud/speech/v1p1beta1/stub/AdaptationStubSettings.java (98%) rename {owl-bot-staging/v1p1beta1/google-cloud-speech => google-cloud-speech}/src/main/java/com/google/cloud/speech/v1p1beta1/stub/GrpcAdaptationCallableFactory.java (100%) rename {owl-bot-staging/v1p1beta1/google-cloud-speech => google-cloud-speech}/src/main/java/com/google/cloud/speech/v1p1beta1/stub/GrpcAdaptationStub.java (99%) rename {owl-bot-staging/v1p1beta1/google-cloud-speech => google-cloud-speech}/src/main/java/com/google/cloud/speech/v1p1beta1/stub/GrpcSpeechCallableFactory.java (100%) rename {owl-bot-staging/v1p1beta1/google-cloud-speech => google-cloud-speech}/src/main/java/com/google/cloud/speech/v1p1beta1/stub/GrpcSpeechStub.java (100%) rename {owl-bot-staging/v1p1beta1/google-cloud-speech => google-cloud-speech}/src/main/java/com/google/cloud/speech/v1p1beta1/stub/SpeechStub.java (100%) rename {owl-bot-staging/v1p1beta1/google-cloud-speech => google-cloud-speech}/src/main/java/com/google/cloud/speech/v1p1beta1/stub/SpeechStubSettings.java (98%) rename {owl-bot-staging/v1/google-cloud-speech => google-cloud-speech}/src/test/java/com/google/cloud/speech/v1/MockSpeech.java (100%) rename {owl-bot-staging/v1/google-cloud-speech => google-cloud-speech}/src/test/java/com/google/cloud/speech/v1/MockSpeechImpl.java (100%) rename {owl-bot-staging/v1/google-cloud-speech => google-cloud-speech}/src/test/java/com/google/cloud/speech/v1/SpeechClientTest.java (100%) rename {owl-bot-staging/v1p1beta1/google-cloud-speech => google-cloud-speech}/src/test/java/com/google/cloud/speech/v1p1beta1/AdaptationClientTest.java (100%) rename {owl-bot-staging/v1p1beta1/google-cloud-speech => google-cloud-speech}/src/test/java/com/google/cloud/speech/v1p1beta1/MockAdaptation.java (100%) rename {owl-bot-staging/v1p1beta1/google-cloud-speech => google-cloud-speech}/src/test/java/com/google/cloud/speech/v1p1beta1/MockAdaptationImpl.java (100%) rename {owl-bot-staging/v1p1beta1/google-cloud-speech => google-cloud-speech}/src/test/java/com/google/cloud/speech/v1p1beta1/MockSpeech.java (100%) rename {owl-bot-staging/v1p1beta1/google-cloud-speech => google-cloud-speech}/src/test/java/com/google/cloud/speech/v1p1beta1/MockSpeechImpl.java (100%) rename {owl-bot-staging/v1p1beta1/google-cloud-speech => google-cloud-speech}/src/test/java/com/google/cloud/speech/v1p1beta1/SpeechClientTest.java (100%) create mode 100644 grpc-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechGrpc.java create mode 100644 grpc-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/AdaptationGrpc.java create mode 100644 grpc-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechGrpc.java delete mode 100644 owl-bot-staging/v1/grpc-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechGrpc.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechProto.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechResourceProto.java delete mode 100644 owl-bot-staging/v1p1beta1/grpc-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/AdaptationGrpc.java delete mode 100644 owl-bot-staging/v1p1beta1/grpc-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechGrpc.java delete mode 100644 owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeletePhraseSetRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetCustomClassRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptationProto.java delete mode 100644 owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechProto.java delete mode 100644 owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechResourceProto.java rename {owl-bot-staging/v1/proto-google-cloud-speech-v1 => proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/CustomClass.java (73%) rename {owl-bot-staging/v1/proto-google-cloud-speech-v1 => proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/CustomClassOrBuilder.java (70%) rename {owl-bot-staging/v1/proto-google-cloud-speech-v1 => proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeMetadata.java (71%) rename {owl-bot-staging/v1/proto-google-cloud-speech-v1 => proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeMetadataOrBuilder.java (74%) rename {owl-bot-staging/v1/proto-google-cloud-speech-v1 => proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeRequest.java (60%) rename {owl-bot-staging/v1/proto-google-cloud-speech-v1 => proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeRequestOrBuilder.java (51%) rename {owl-bot-staging/v1/proto-google-cloud-speech-v1 => proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeResponse.java (74%) rename {owl-bot-staging/v1/proto-google-cloud-speech-v1 => proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeResponseOrBuilder.java (81%) rename {owl-bot-staging/v1/proto-google-cloud-speech-v1 => proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/PhraseSet.java (77%) rename {owl-bot-staging/v1/proto-google-cloud-speech-v1 => proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/PhraseSetOrBuilder.java (72%) rename {owl-bot-staging/v1/proto-google-cloud-speech-v1 => proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/RecognitionAudio.java (75%) rename {owl-bot-staging/v1/proto-google-cloud-speech-v1 => proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/RecognitionAudioOrBuilder.java (79%) rename {owl-bot-staging/v1/proto-google-cloud-speech-v1 => proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/RecognitionConfig.java (83%) rename {owl-bot-staging/v1/proto-google-cloud-speech-v1 => proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/RecognitionConfigOrBuilder.java (94%) rename {owl-bot-staging/v1/proto-google-cloud-speech-v1 => proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/RecognitionMetadata.java (72%) rename {owl-bot-staging/v1/proto-google-cloud-speech-v1 => proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/RecognitionMetadataOrBuilder.java (76%) rename {owl-bot-staging/v1/proto-google-cloud-speech-v1 => proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/RecognizeRequest.java (61%) create mode 100644 proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeRequestOrBuilder.java rename {owl-bot-staging/v1/proto-google-cloud-speech-v1 => proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/RecognizeResponse.java (74%) rename {owl-bot-staging/v1/proto-google-cloud-speech-v1 => proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/RecognizeResponseOrBuilder.java (75%) rename {owl-bot-staging/v1/proto-google-cloud-speech-v1 => proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/SpeakerDiarizationConfig.java (71%) rename {owl-bot-staging/v1/proto-google-cloud-speech-v1 => proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/SpeakerDiarizationConfigOrBuilder.java (65%) rename {owl-bot-staging/v1/proto-google-cloud-speech-v1 => proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/SpeechAdaptation.java (79%) rename {owl-bot-staging/v1/proto-google-cloud-speech-v1 => proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/SpeechAdaptationOrBuilder.java (79%) rename {owl-bot-staging/v1/proto-google-cloud-speech-v1 => proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/SpeechContext.java (80%) rename {owl-bot-staging/v1/proto-google-cloud-speech-v1 => proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/SpeechContextOrBuilder.java (85%) create mode 100644 proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechProto.java rename {owl-bot-staging/v1/proto-google-cloud-speech-v1 => proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/SpeechRecognitionAlternative.java (76%) rename {owl-bot-staging/v1/proto-google-cloud-speech-v1 => proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/SpeechRecognitionAlternativeOrBuilder.java (76%) rename {owl-bot-staging/v1/proto-google-cloud-speech-v1 => proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/SpeechRecognitionResult.java (76%) rename {owl-bot-staging/v1/proto-google-cloud-speech-v1 => proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/SpeechRecognitionResultOrBuilder.java (83%) create mode 100644 proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechResourceProto.java rename {owl-bot-staging/v1/proto-google-cloud-speech-v1 => proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/StreamingRecognitionConfig.java (70%) rename {owl-bot-staging/v1/proto-google-cloud-speech-v1 => proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/StreamingRecognitionConfigOrBuilder.java (70%) rename {owl-bot-staging/v1/proto-google-cloud-speech-v1 => proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/StreamingRecognitionResult.java (77%) rename {owl-bot-staging/v1/proto-google-cloud-speech-v1 => proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/StreamingRecognitionResultOrBuilder.java (85%) rename {owl-bot-staging/v1/proto-google-cloud-speech-v1 => proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeRequest.java (73%) rename {owl-bot-staging/v1/proto-google-cloud-speech-v1 => proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeRequestOrBuilder.java (79%) rename {owl-bot-staging/v1/proto-google-cloud-speech-v1 => proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeResponse.java (77%) rename {owl-bot-staging/v1/proto-google-cloud-speech-v1 => proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeResponseOrBuilder.java (83%) rename {owl-bot-staging/v1/proto-google-cloud-speech-v1 => proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/TranscriptOutputConfig.java (70%) rename {owl-bot-staging/v1/proto-google-cloud-speech-v1 => proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/TranscriptOutputConfigOrBuilder.java (63%) rename {owl-bot-staging/v1/proto-google-cloud-speech-v1 => proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/WordInfo.java (77%) rename {owl-bot-staging/v1/proto-google-cloud-speech-v1 => proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/WordInfoOrBuilder.java (84%) rename {owl-bot-staging/v1/proto-google-cloud-speech-v1 => proto-google-cloud-speech-v1}/src/main/proto/google/cloud/speech/v1/cloud_speech.proto (100%) rename {owl-bot-staging/v1/proto-google-cloud-speech-v1 => proto-google-cloud-speech-v1}/src/main/proto/google/cloud/speech/v1/resource.proto (100%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1 => proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/CreateCustomClassRequest.java (68%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1 => proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/CreateCustomClassRequestOrBuilder.java (64%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1 => proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/CreatePhraseSetRequest.java (68%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1 => proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/CreatePhraseSetRequestOrBuilder.java (64%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1 => proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/CustomClass.java (74%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1 => proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/CustomClassName.java (100%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1 => proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/CustomClassOrBuilder.java (70%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1 => proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/DeleteCustomClassRequest.java (69%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1 => proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/DeleteCustomClassRequestOrBuilder.java (59%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1 => proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/DeletePhraseSetRequest.java (66%) create mode 100644 proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeletePhraseSetRequestOrBuilder.java rename {owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1 => proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/GetCustomClassRequest.java (66%) create mode 100644 proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetCustomClassRequestOrBuilder.java rename {owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1 => proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/GetPhraseSetRequest.java (69%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1 => proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/GetPhraseSetRequestOrBuilder.java (59%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1 => proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesRequest.java (73%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1 => proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesRequestOrBuilder.java (70%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1 => proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesResponse.java (75%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1 => proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesResponseOrBuilder.java (69%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1 => proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetRequest.java (73%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1 => proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetRequestOrBuilder.java (69%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1 => proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetResponse.java (73%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1 => proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetResponseOrBuilder.java (67%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1 => proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/LocationName.java (100%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1 => proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeMetadata.java (68%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1 => proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeMetadataOrBuilder.java (70%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1 => proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeRequest.java (59%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1 => proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeRequestOrBuilder.java (51%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1 => proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeResponse.java (73%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1 => proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeResponseOrBuilder.java (81%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1 => proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/PhraseSet.java (77%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1 => proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/PhraseSetName.java (100%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1 => proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/PhraseSetOrBuilder.java (74%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1 => proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionAudio.java (75%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1 => proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionAudioOrBuilder.java (79%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1 => proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionConfig.java (82%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1 => proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionConfigOrBuilder.java (93%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1 => proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionMetadata.java (69%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1 => proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionMetadataOrBuilder.java (70%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1 => proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeRequest.java (61%) create mode 100644 proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeRequestOrBuilder.java rename {owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1 => proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeResponse.java (73%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1 => proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeResponseOrBuilder.java (75%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1 => proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/SpeakerDiarizationConfig.java (71%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1 => proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/SpeakerDiarizationConfigOrBuilder.java (65%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1 => proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptation.java (79%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1 => proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptationOrBuilder.java (80%) create mode 100644 proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptationProto.java rename {owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1 => proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechContext.java (80%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1 => proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechContextOrBuilder.java (85%) create mode 100644 proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechProto.java rename {owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1 => proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionAlternative.java (75%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1 => proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionAlternativeOrBuilder.java (76%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1 => proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionResult.java (73%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1 => proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionResultOrBuilder.java (79%) create mode 100644 proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechResourceProto.java rename {owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1 => proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionConfig.java (70%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1 => proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionConfigOrBuilder.java (70%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1 => proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionResult.java (75%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1 => proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionResultOrBuilder.java (82%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1 => proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeRequest.java (72%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1 => proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeRequestOrBuilder.java (78%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1 => proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeResponse.java (75%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1 => proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeResponseOrBuilder.java (81%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1 => proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptNormalization.java (73%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1 => proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptNormalizationOrBuilder.java (78%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1 => proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptOutputConfig.java (70%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1 => proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptOutputConfigOrBuilder.java (61%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1 => proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/UpdateCustomClassRequest.java (71%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1 => proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/UpdateCustomClassRequestOrBuilder.java (72%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1 => proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/UpdatePhraseSetRequest.java (71%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1 => proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/UpdatePhraseSetRequestOrBuilder.java (72%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1 => proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/WordInfo.java (77%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1 => proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/WordInfoOrBuilder.java (84%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1 => proto-google-cloud-speech-v1p1beta1}/src/main/proto/google/cloud/speech/v1p1beta1/cloud_speech.proto (100%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1 => proto-google-cloud-speech-v1p1beta1}/src/main/proto/google/cloud/speech/v1p1beta1/cloud_speech_adaptation.proto (100%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1 => proto-google-cloud-speech-v1p1beta1}/src/main/proto/google/cloud/speech/v1p1beta1/resource.proto (100%) diff --git a/README.md b/README.md index a54ca0ce1..e6fd7271f 100644 --- a/README.md +++ b/README.md @@ -62,13 +62,13 @@ implementation 'com.google.cloud:google-cloud-speech' If you are using Gradle without BOM, add this to your dependencies ```Groovy -implementation 'com.google.cloud:google-cloud-speech:2.2.13' +implementation 'com.google.cloud:google-cloud-speech:2.2.14' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-speech" % "2.2.13" +libraryDependencies += "com.google.cloud" % "google-cloud-speech" % "2.2.14" ``` ## Authentication diff --git a/owl-bot-staging/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/SpeechClient.java b/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/SpeechClient.java similarity index 98% rename from owl-bot-staging/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/SpeechClient.java rename to google-cloud-speech/src/main/java/com/google/cloud/speech/v1/SpeechClient.java index 414cd087f..186dd5aa2 100644 --- a/owl-bot-staging/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/SpeechClient.java +++ b/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/SpeechClient.java @@ -52,13 +52,13 @@ * methods: * *
    - *
  1. A "flattened" method. With this type of method, the fields of the request type have been + *
  2. A "flattened" method. With this type of method, the fields of the request type have been * converted into function parameters. It may be the case that not all fields are available as * parameters, and not every API method will have a flattened method entry point. - *
  3. A "request object" method. This type of method only takes one parameter, a request object, + *
  4. A "request object" method. This type of method only takes one parameter, a request object, * which must be constructed before the call. Not every API method will have a request object * method. - *
  5. A "callable" method. This type of method takes no parameters and returns an immutable API + *
  6. A "callable" method. This type of method takes no parameters and returns an immutable API * callable object, which can be used to initiate calls to the service. *
* diff --git a/owl-bot-staging/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/SpeechSettings.java b/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/SpeechSettings.java similarity index 96% rename from owl-bot-staging/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/SpeechSettings.java rename to google-cloud-speech/src/main/java/com/google/cloud/speech/v1/SpeechSettings.java index c8e69daaa..3234b5f66 100644 --- a/owl-bot-staging/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/SpeechSettings.java +++ b/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/SpeechSettings.java @@ -26,7 +26,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; @@ -42,9 +41,9 @@ *

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

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

The builder of this class is recursive, so contained classes are themselves builders. When diff --git a/owl-bot-staging/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/gapic_metadata.json b/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/gapic_metadata.json similarity index 100% rename from owl-bot-staging/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/gapic_metadata.json rename to google-cloud-speech/src/main/java/com/google/cloud/speech/v1/gapic_metadata.json diff --git a/owl-bot-staging/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/package-info.java b/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/package-info.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/package-info.java rename to google-cloud-speech/src/main/java/com/google/cloud/speech/v1/package-info.java diff --git a/owl-bot-staging/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/GrpcSpeechCallableFactory.java b/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/GrpcSpeechCallableFactory.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/GrpcSpeechCallableFactory.java rename to google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/GrpcSpeechCallableFactory.java diff --git a/owl-bot-staging/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/GrpcSpeechStub.java b/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/GrpcSpeechStub.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/GrpcSpeechStub.java rename to google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/GrpcSpeechStub.java diff --git a/owl-bot-staging/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/SpeechStub.java b/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/SpeechStub.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/SpeechStub.java rename to google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/SpeechStub.java diff --git a/owl-bot-staging/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/SpeechStubSettings.java b/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/SpeechStubSettings.java similarity index 98% rename from owl-bot-staging/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/SpeechStubSettings.java rename to google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/SpeechStubSettings.java index 3fe6ed944..c55156e5c 100644 --- a/owl-bot-staging/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/SpeechStubSettings.java +++ b/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/SpeechStubSettings.java @@ -60,9 +60,9 @@ *

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

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

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

    - *
  1. A "flattened" method. With this type of method, the fields of the request type have been + *
  2. A "flattened" method. With this type of method, the fields of the request type have been * converted into function parameters. It may be the case that not all fields are available as * parameters, and not every API method will have a flattened method entry point. - *
  3. A "request object" method. This type of method only takes one parameter, a request object, + *
  4. A "request object" method. This type of method only takes one parameter, a request object, * which must be constructed before the call. Not every API method will have a request object * method. - *
  5. A "callable" method. This type of method takes no parameters and returns an immutable API + *
  6. A "callable" method. This type of method takes no parameters and returns an immutable API * callable object, which can be used to initiate calls to the service. *
* @@ -1290,7 +1290,10 @@ public boolean awaitTermination(long duration, TimeUnit unit) throws Interrupted public static class ListPhraseSetPagedResponse extends AbstractPagedListResponse< - ListPhraseSetRequest, ListPhraseSetResponse, PhraseSet, ListPhraseSetPage, + ListPhraseSetRequest, + ListPhraseSetResponse, + PhraseSet, + ListPhraseSetPage, ListPhraseSetFixedSizeCollection> { public static ApiFuture createAsync( @@ -1340,7 +1343,10 @@ public ApiFuture createPageAsync( public static class ListPhraseSetFixedSizeCollection extends AbstractFixedSizeCollection< - ListPhraseSetRequest, ListPhraseSetResponse, PhraseSet, ListPhraseSetPage, + ListPhraseSetRequest, + ListPhraseSetResponse, + PhraseSet, + ListPhraseSetPage, ListPhraseSetFixedSizeCollection> { private ListPhraseSetFixedSizeCollection(List pages, int collectionSize) { @@ -1360,7 +1366,10 @@ protected ListPhraseSetFixedSizeCollection createCollection( public static class ListCustomClassesPagedResponse extends AbstractPagedListResponse< - ListCustomClassesRequest, ListCustomClassesResponse, CustomClass, ListCustomClassesPage, + ListCustomClassesRequest, + ListCustomClassesResponse, + CustomClass, + ListCustomClassesPage, ListCustomClassesFixedSizeCollection> { public static ApiFuture createAsync( @@ -1410,7 +1419,10 @@ public ApiFuture createPageAsync( public static class ListCustomClassesFixedSizeCollection extends AbstractFixedSizeCollection< - ListCustomClassesRequest, ListCustomClassesResponse, CustomClass, ListCustomClassesPage, + ListCustomClassesRequest, + ListCustomClassesResponse, + CustomClass, + ListCustomClassesPage, ListCustomClassesFixedSizeCollection> { private ListCustomClassesFixedSizeCollection( diff --git a/owl-bot-staging/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/AdaptationSettings.java b/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/AdaptationSettings.java similarity index 97% rename from owl-bot-staging/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/AdaptationSettings.java rename to google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/AdaptationSettings.java index aa70f94b6..b852275f2 100644 --- a/owl-bot-staging/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/AdaptationSettings.java +++ b/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/AdaptationSettings.java @@ -28,7 +28,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; @@ -44,9 +43,9 @@ *

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

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

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

    - *
  1. A "flattened" method. With this type of method, the fields of the request type have been + *
  2. A "flattened" method. With this type of method, the fields of the request type have been * converted into function parameters. It may be the case that not all fields are available as * parameters, and not every API method will have a flattened method entry point. - *
  3. A "request object" method. This type of method only takes one parameter, a request object, + *
  4. A "request object" method. This type of method only takes one parameter, a request object, * which must be constructed before the call. Not every API method will have a request object * method. - *
  5. A "callable" method. This type of method takes no parameters and returns an immutable API + *
  6. A "callable" method. This type of method takes no parameters and returns an immutable API * callable object, which can be used to initiate calls to the service. *
* diff --git a/owl-bot-staging/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechSettings.java b/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechSettings.java similarity index 96% rename from owl-bot-staging/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechSettings.java rename to google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechSettings.java index 1ed215f3d..2dad612a2 100644 --- a/owl-bot-staging/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechSettings.java +++ b/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechSettings.java @@ -26,7 +26,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; @@ -42,9 +41,9 @@ *

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

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

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

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

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

The builder of this class is recursive, so contained classes are themselves builders. When @@ -214,7 +214,8 @@ public ApiFuture getFuturePagedResponse( ListCustomClassesRequest, ListCustomClassesResponse, ListCustomClassesPagedResponse> LIST_CUSTOM_CLASSES_PAGE_STR_FACT = new PagedListResponseFactory< - ListCustomClassesRequest, ListCustomClassesResponse, + ListCustomClassesRequest, + ListCustomClassesResponse, ListCustomClassesPagedResponse>() { @Override public ApiFuture getFuturePagedResponse( diff --git a/owl-bot-staging/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/GrpcAdaptationCallableFactory.java b/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/GrpcAdaptationCallableFactory.java similarity index 100% rename from owl-bot-staging/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/GrpcAdaptationCallableFactory.java rename to google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/GrpcAdaptationCallableFactory.java diff --git a/owl-bot-staging/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/GrpcAdaptationStub.java b/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/GrpcAdaptationStub.java similarity index 99% rename from owl-bot-staging/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/GrpcAdaptationStub.java rename to google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/GrpcAdaptationStub.java index 8a46e9cfb..be361d622 100644 --- a/owl-bot-staging/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/GrpcAdaptationStub.java +++ b/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/GrpcAdaptationStub.java @@ -46,7 +46,6 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; -import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/owl-bot-staging/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/GrpcSpeechCallableFactory.java b/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/GrpcSpeechCallableFactory.java similarity index 100% rename from owl-bot-staging/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/GrpcSpeechCallableFactory.java rename to google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/GrpcSpeechCallableFactory.java diff --git a/owl-bot-staging/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/GrpcSpeechStub.java b/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/GrpcSpeechStub.java similarity index 100% rename from owl-bot-staging/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/GrpcSpeechStub.java rename to google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/GrpcSpeechStub.java diff --git a/owl-bot-staging/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/SpeechStub.java b/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/SpeechStub.java similarity index 100% rename from owl-bot-staging/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/SpeechStub.java rename to google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/SpeechStub.java diff --git a/owl-bot-staging/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/SpeechStubSettings.java b/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/SpeechStubSettings.java similarity index 98% rename from owl-bot-staging/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/SpeechStubSettings.java rename to google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/SpeechStubSettings.java index a1fcee665..b9a2aedb7 100644 --- a/owl-bot-staging/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/SpeechStubSettings.java +++ b/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/SpeechStubSettings.java @@ -60,9 +60,9 @@ *

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

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

The builder of this class is recursive, so contained classes are themselves builders. When diff --git a/owl-bot-staging/v1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/MockSpeech.java b/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/MockSpeech.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/MockSpeech.java rename to google-cloud-speech/src/test/java/com/google/cloud/speech/v1/MockSpeech.java diff --git a/owl-bot-staging/v1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/MockSpeechImpl.java b/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/MockSpeechImpl.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/MockSpeechImpl.java rename to google-cloud-speech/src/test/java/com/google/cloud/speech/v1/MockSpeechImpl.java diff --git a/owl-bot-staging/v1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/SpeechClientTest.java b/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/SpeechClientTest.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/SpeechClientTest.java rename to google-cloud-speech/src/test/java/com/google/cloud/speech/v1/SpeechClientTest.java diff --git a/owl-bot-staging/v1p1beta1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/AdaptationClientTest.java b/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/AdaptationClientTest.java similarity index 100% rename from owl-bot-staging/v1p1beta1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/AdaptationClientTest.java rename to google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/AdaptationClientTest.java diff --git a/owl-bot-staging/v1p1beta1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/MockAdaptation.java b/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/MockAdaptation.java similarity index 100% rename from owl-bot-staging/v1p1beta1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/MockAdaptation.java rename to google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/MockAdaptation.java diff --git a/owl-bot-staging/v1p1beta1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/MockAdaptationImpl.java b/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/MockAdaptationImpl.java similarity index 100% rename from owl-bot-staging/v1p1beta1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/MockAdaptationImpl.java rename to google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/MockAdaptationImpl.java diff --git a/owl-bot-staging/v1p1beta1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/MockSpeech.java b/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/MockSpeech.java similarity index 100% rename from owl-bot-staging/v1p1beta1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/MockSpeech.java rename to google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/MockSpeech.java diff --git a/owl-bot-staging/v1p1beta1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/MockSpeechImpl.java b/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/MockSpeechImpl.java similarity index 100% rename from owl-bot-staging/v1p1beta1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/MockSpeechImpl.java rename to google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/MockSpeechImpl.java diff --git a/owl-bot-staging/v1p1beta1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/SpeechClientTest.java b/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/SpeechClientTest.java similarity index 100% rename from owl-bot-staging/v1p1beta1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/SpeechClientTest.java rename to google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/SpeechClientTest.java diff --git a/grpc-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechGrpc.java b/grpc-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechGrpc.java new file mode 100644 index 000000000..846458da2 --- /dev/null +++ b/grpc-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechGrpc.java @@ -0,0 +1,579 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.speech.v1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *

+ * Service that implements Google Cloud Speech API.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/speech/v1/cloud_speech.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class SpeechGrpc { + + private SpeechGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.speech.v1.Speech"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.speech.v1.RecognizeRequest, com.google.cloud.speech.v1.RecognizeResponse> + getRecognizeMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "Recognize", + requestType = com.google.cloud.speech.v1.RecognizeRequest.class, + responseType = com.google.cloud.speech.v1.RecognizeResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.speech.v1.RecognizeRequest, com.google.cloud.speech.v1.RecognizeResponse> + getRecognizeMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.speech.v1.RecognizeRequest, + com.google.cloud.speech.v1.RecognizeResponse> + getRecognizeMethod; + if ((getRecognizeMethod = SpeechGrpc.getRecognizeMethod) == null) { + synchronized (SpeechGrpc.class) { + if ((getRecognizeMethod = SpeechGrpc.getRecognizeMethod) == null) { + SpeechGrpc.getRecognizeMethod = + getRecognizeMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Recognize")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v1.RecognizeRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v1.RecognizeResponse.getDefaultInstance())) + .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("Recognize")) + .build(); + } + } + } + return getRecognizeMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.speech.v1.LongRunningRecognizeRequest, com.google.longrunning.Operation> + getLongRunningRecognizeMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "LongRunningRecognize", + requestType = com.google.cloud.speech.v1.LongRunningRecognizeRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.speech.v1.LongRunningRecognizeRequest, com.google.longrunning.Operation> + getLongRunningRecognizeMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.speech.v1.LongRunningRecognizeRequest, + com.google.longrunning.Operation> + getLongRunningRecognizeMethod; + if ((getLongRunningRecognizeMethod = SpeechGrpc.getLongRunningRecognizeMethod) == null) { + synchronized (SpeechGrpc.class) { + if ((getLongRunningRecognizeMethod = SpeechGrpc.getLongRunningRecognizeMethod) == null) { + SpeechGrpc.getLongRunningRecognizeMethod = + getLongRunningRecognizeMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "LongRunningRecognize")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v1.LongRunningRecognizeRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new SpeechMethodDescriptorSupplier("LongRunningRecognize")) + .build(); + } + } + } + return getLongRunningRecognizeMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.speech.v1.StreamingRecognizeRequest, + com.google.cloud.speech.v1.StreamingRecognizeResponse> + getStreamingRecognizeMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "StreamingRecognize", + requestType = com.google.cloud.speech.v1.StreamingRecognizeRequest.class, + responseType = com.google.cloud.speech.v1.StreamingRecognizeResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING) + public static io.grpc.MethodDescriptor< + com.google.cloud.speech.v1.StreamingRecognizeRequest, + com.google.cloud.speech.v1.StreamingRecognizeResponse> + getStreamingRecognizeMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.speech.v1.StreamingRecognizeRequest, + com.google.cloud.speech.v1.StreamingRecognizeResponse> + getStreamingRecognizeMethod; + if ((getStreamingRecognizeMethod = SpeechGrpc.getStreamingRecognizeMethod) == null) { + synchronized (SpeechGrpc.class) { + if ((getStreamingRecognizeMethod = SpeechGrpc.getStreamingRecognizeMethod) == null) { + SpeechGrpc.getStreamingRecognizeMethod = + getStreamingRecognizeMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StreamingRecognize")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v1.StreamingRecognizeRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v1.StreamingRecognizeResponse + .getDefaultInstance())) + .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("StreamingRecognize")) + .build(); + } + } + } + return getStreamingRecognizeMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static SpeechStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public SpeechStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SpeechStub(channel, callOptions); + } + }; + return SpeechStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static SpeechBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public SpeechBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SpeechBlockingStub(channel, callOptions); + } + }; + return SpeechBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static SpeechFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public SpeechFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SpeechFutureStub(channel, callOptions); + } + }; + return SpeechFutureStub.newStub(factory, channel); + } + + /** + * + * + *
+   * Service that implements Google Cloud Speech API.
+   * 
+ */ + public abstract static class SpeechImplBase implements io.grpc.BindableService { + + /** + * + * + *
+     * Performs synchronous speech recognition: receive results after all audio
+     * has been sent and processed.
+     * 
+ */ + public void recognize( + com.google.cloud.speech.v1.RecognizeRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRecognizeMethod(), responseObserver); + } + + /** + * + * + *
+     * Performs asynchronous speech recognition: receive results via the
+     * google.longrunning.Operations interface. Returns either an
+     * `Operation.error` or an `Operation.response` which contains
+     * a `LongRunningRecognizeResponse` message.
+     * For more information on asynchronous speech recognition, see the
+     * [how-to](https://cloud.google.com/speech-to-text/docs/async-recognize).
+     * 
+ */ + public void longRunningRecognize( + com.google.cloud.speech.v1.LongRunningRecognizeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getLongRunningRecognizeMethod(), responseObserver); + } + + /** + * + * + *
+     * Performs bidirectional streaming speech recognition: receive results while
+     * sending audio. This method is only available via the gRPC API (not REST).
+     * 
+ */ + public io.grpc.stub.StreamObserver + streamingRecognize( + io.grpc.stub.StreamObserver + responseObserver) { + return io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall( + getStreamingRecognizeMethod(), responseObserver); + } + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getRecognizeMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.speech.v1.RecognizeRequest, + com.google.cloud.speech.v1.RecognizeResponse>(this, METHODID_RECOGNIZE))) + .addMethod( + getLongRunningRecognizeMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.speech.v1.LongRunningRecognizeRequest, + com.google.longrunning.Operation>(this, METHODID_LONG_RUNNING_RECOGNIZE))) + .addMethod( + getStreamingRecognizeMethod(), + io.grpc.stub.ServerCalls.asyncBidiStreamingCall( + new MethodHandlers< + com.google.cloud.speech.v1.StreamingRecognizeRequest, + com.google.cloud.speech.v1.StreamingRecognizeResponse>( + this, METHODID_STREAMING_RECOGNIZE))) + .build(); + } + } + + /** + * + * + *
+   * Service that implements Google Cloud Speech API.
+   * 
+ */ + public static final class SpeechStub extends io.grpc.stub.AbstractAsyncStub { + private SpeechStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected SpeechStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SpeechStub(channel, callOptions); + } + + /** + * + * + *
+     * Performs synchronous speech recognition: receive results after all audio
+     * has been sent and processed.
+     * 
+ */ + public void recognize( + com.google.cloud.speech.v1.RecognizeRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getRecognizeMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Performs asynchronous speech recognition: receive results via the
+     * google.longrunning.Operations interface. Returns either an
+     * `Operation.error` or an `Operation.response` which contains
+     * a `LongRunningRecognizeResponse` message.
+     * For more information on asynchronous speech recognition, see the
+     * [how-to](https://cloud.google.com/speech-to-text/docs/async-recognize).
+     * 
+ */ + public void longRunningRecognize( + com.google.cloud.speech.v1.LongRunningRecognizeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getLongRunningRecognizeMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Performs bidirectional streaming speech recognition: receive results while
+     * sending audio. This method is only available via the gRPC API (not REST).
+     * 
+ */ + public io.grpc.stub.StreamObserver + streamingRecognize( + io.grpc.stub.StreamObserver + responseObserver) { + return io.grpc.stub.ClientCalls.asyncBidiStreamingCall( + getChannel().newCall(getStreamingRecognizeMethod(), getCallOptions()), responseObserver); + } + } + + /** + * + * + *
+   * Service that implements Google Cloud Speech API.
+   * 
+ */ + public static final class SpeechBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private SpeechBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected SpeechBlockingStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SpeechBlockingStub(channel, callOptions); + } + + /** + * + * + *
+     * Performs synchronous speech recognition: receive results after all audio
+     * has been sent and processed.
+     * 
+ */ + public com.google.cloud.speech.v1.RecognizeResponse recognize( + com.google.cloud.speech.v1.RecognizeRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getRecognizeMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Performs asynchronous speech recognition: receive results via the
+     * google.longrunning.Operations interface. Returns either an
+     * `Operation.error` or an `Operation.response` which contains
+     * a `LongRunningRecognizeResponse` message.
+     * For more information on asynchronous speech recognition, see the
+     * [how-to](https://cloud.google.com/speech-to-text/docs/async-recognize).
+     * 
+ */ + public com.google.longrunning.Operation longRunningRecognize( + com.google.cloud.speech.v1.LongRunningRecognizeRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getLongRunningRecognizeMethod(), getCallOptions(), request); + } + } + + /** + * + * + *
+   * Service that implements Google Cloud Speech API.
+   * 
+ */ + public static final class SpeechFutureStub + extends io.grpc.stub.AbstractFutureStub { + private SpeechFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected SpeechFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SpeechFutureStub(channel, callOptions); + } + + /** + * + * + *
+     * Performs synchronous speech recognition: receive results after all audio
+     * has been sent and processed.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.speech.v1.RecognizeResponse> + recognize(com.google.cloud.speech.v1.RecognizeRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getRecognizeMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Performs asynchronous speech recognition: receive results via the
+     * google.longrunning.Operations interface. Returns either an
+     * `Operation.error` or an `Operation.response` which contains
+     * a `LongRunningRecognizeResponse` message.
+     * For more information on asynchronous speech recognition, see the
+     * [how-to](https://cloud.google.com/speech-to-text/docs/async-recognize).
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + longRunningRecognize(com.google.cloud.speech.v1.LongRunningRecognizeRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getLongRunningRecognizeMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_RECOGNIZE = 0; + private static final int METHODID_LONG_RUNNING_RECOGNIZE = 1; + private static final int METHODID_STREAMING_RECOGNIZE = 2; + + private static final class MethodHandlers + implements io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final SpeechImplBase serviceImpl; + private final int methodId; + + MethodHandlers(SpeechImplBase serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_RECOGNIZE: + serviceImpl.recognize( + (com.google.cloud.speech.v1.RecognizeRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LONG_RUNNING_RECOGNIZE: + serviceImpl.longRunningRecognize( + (com.google.cloud.speech.v1.LongRunningRecognizeRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_STREAMING_RECOGNIZE: + return (io.grpc.stub.StreamObserver) + serviceImpl.streamingRecognize( + (io.grpc.stub.StreamObserver< + com.google.cloud.speech.v1.StreamingRecognizeResponse>) + responseObserver); + default: + throw new AssertionError(); + } + } + } + + private abstract static class SpeechBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + SpeechBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.speech.v1.SpeechProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("Speech"); + } + } + + private static final class SpeechFileDescriptorSupplier extends SpeechBaseDescriptorSupplier { + SpeechFileDescriptorSupplier() {} + } + + private static final class SpeechMethodDescriptorSupplier extends SpeechBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + SpeechMethodDescriptorSupplier(String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (SpeechGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new SpeechFileDescriptorSupplier()) + .addMethod(getRecognizeMethod()) + .addMethod(getLongRunningRecognizeMethod()) + .addMethod(getStreamingRecognizeMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/grpc-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/AdaptationGrpc.java b/grpc-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/AdaptationGrpc.java new file mode 100644 index 000000000..5a5395620 --- /dev/null +++ b/grpc-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/AdaptationGrpc.java @@ -0,0 +1,1424 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.speech.v1p1beta1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *
+ * Service that implements Google Cloud Speech Adaptation API.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/speech/v1p1beta1/cloud_speech_adaptation.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class AdaptationGrpc { + + private AdaptationGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.speech.v1p1beta1.Adaptation"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest, + com.google.cloud.speech.v1p1beta1.PhraseSet> + getCreatePhraseSetMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreatePhraseSet", + requestType = com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest.class, + responseType = com.google.cloud.speech.v1p1beta1.PhraseSet.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest, + com.google.cloud.speech.v1p1beta1.PhraseSet> + getCreatePhraseSetMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest, + com.google.cloud.speech.v1p1beta1.PhraseSet> + getCreatePhraseSetMethod; + if ((getCreatePhraseSetMethod = AdaptationGrpc.getCreatePhraseSetMethod) == null) { + synchronized (AdaptationGrpc.class) { + if ((getCreatePhraseSetMethod = AdaptationGrpc.getCreatePhraseSetMethod) == null) { + AdaptationGrpc.getCreatePhraseSetMethod = + getCreatePhraseSetMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreatePhraseSet")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v1p1beta1.PhraseSet.getDefaultInstance())) + .setSchemaDescriptor( + new AdaptationMethodDescriptorSupplier("CreatePhraseSet")) + .build(); + } + } + } + return getCreatePhraseSetMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest, + com.google.cloud.speech.v1p1beta1.PhraseSet> + getGetPhraseSetMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetPhraseSet", + requestType = com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest.class, + responseType = com.google.cloud.speech.v1p1beta1.PhraseSet.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest, + com.google.cloud.speech.v1p1beta1.PhraseSet> + getGetPhraseSetMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest, + com.google.cloud.speech.v1p1beta1.PhraseSet> + getGetPhraseSetMethod; + if ((getGetPhraseSetMethod = AdaptationGrpc.getGetPhraseSetMethod) == null) { + synchronized (AdaptationGrpc.class) { + if ((getGetPhraseSetMethod = AdaptationGrpc.getGetPhraseSetMethod) == null) { + AdaptationGrpc.getGetPhraseSetMethod = + getGetPhraseSetMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetPhraseSet")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v1p1beta1.PhraseSet.getDefaultInstance())) + .setSchemaDescriptor(new AdaptationMethodDescriptorSupplier("GetPhraseSet")) + .build(); + } + } + } + return getGetPhraseSetMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest, + com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse> + getListPhraseSetMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListPhraseSet", + requestType = com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest.class, + responseType = com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest, + com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse> + getListPhraseSetMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest, + com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse> + getListPhraseSetMethod; + if ((getListPhraseSetMethod = AdaptationGrpc.getListPhraseSetMethod) == null) { + synchronized (AdaptationGrpc.class) { + if ((getListPhraseSetMethod = AdaptationGrpc.getListPhraseSetMethod) == null) { + AdaptationGrpc.getListPhraseSetMethod = + getListPhraseSetMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListPhraseSet")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse + .getDefaultInstance())) + .setSchemaDescriptor(new AdaptationMethodDescriptorSupplier("ListPhraseSet")) + .build(); + } + } + } + return getListPhraseSetMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest, + com.google.cloud.speech.v1p1beta1.PhraseSet> + getUpdatePhraseSetMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdatePhraseSet", + requestType = com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest.class, + responseType = com.google.cloud.speech.v1p1beta1.PhraseSet.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest, + com.google.cloud.speech.v1p1beta1.PhraseSet> + getUpdatePhraseSetMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest, + com.google.cloud.speech.v1p1beta1.PhraseSet> + getUpdatePhraseSetMethod; + if ((getUpdatePhraseSetMethod = AdaptationGrpc.getUpdatePhraseSetMethod) == null) { + synchronized (AdaptationGrpc.class) { + if ((getUpdatePhraseSetMethod = AdaptationGrpc.getUpdatePhraseSetMethod) == null) { + AdaptationGrpc.getUpdatePhraseSetMethod = + getUpdatePhraseSetMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdatePhraseSet")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v1p1beta1.PhraseSet.getDefaultInstance())) + .setSchemaDescriptor( + new AdaptationMethodDescriptorSupplier("UpdatePhraseSet")) + .build(); + } + } + } + return getUpdatePhraseSetMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest, com.google.protobuf.Empty> + getDeletePhraseSetMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeletePhraseSet", + requestType = com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest, com.google.protobuf.Empty> + getDeletePhraseSetMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest, com.google.protobuf.Empty> + getDeletePhraseSetMethod; + if ((getDeletePhraseSetMethod = AdaptationGrpc.getDeletePhraseSetMethod) == null) { + synchronized (AdaptationGrpc.class) { + if ((getDeletePhraseSetMethod = AdaptationGrpc.getDeletePhraseSetMethod) == null) { + AdaptationGrpc.getDeletePhraseSetMethod = + getDeletePhraseSetMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeletePhraseSet")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new AdaptationMethodDescriptorSupplier("DeletePhraseSet")) + .build(); + } + } + } + return getDeletePhraseSetMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest, + com.google.cloud.speech.v1p1beta1.CustomClass> + getCreateCustomClassMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateCustomClass", + requestType = com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest.class, + responseType = com.google.cloud.speech.v1p1beta1.CustomClass.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest, + com.google.cloud.speech.v1p1beta1.CustomClass> + getCreateCustomClassMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest, + com.google.cloud.speech.v1p1beta1.CustomClass> + getCreateCustomClassMethod; + if ((getCreateCustomClassMethod = AdaptationGrpc.getCreateCustomClassMethod) == null) { + synchronized (AdaptationGrpc.class) { + if ((getCreateCustomClassMethod = AdaptationGrpc.getCreateCustomClassMethod) == null) { + AdaptationGrpc.getCreateCustomClassMethod = + getCreateCustomClassMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateCustomClass")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v1p1beta1.CustomClass.getDefaultInstance())) + .setSchemaDescriptor( + new AdaptationMethodDescriptorSupplier("CreateCustomClass")) + .build(); + } + } + } + return getCreateCustomClassMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.speech.v1p1beta1.GetCustomClassRequest, + com.google.cloud.speech.v1p1beta1.CustomClass> + getGetCustomClassMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetCustomClass", + requestType = com.google.cloud.speech.v1p1beta1.GetCustomClassRequest.class, + responseType = com.google.cloud.speech.v1p1beta1.CustomClass.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.speech.v1p1beta1.GetCustomClassRequest, + com.google.cloud.speech.v1p1beta1.CustomClass> + getGetCustomClassMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.speech.v1p1beta1.GetCustomClassRequest, + com.google.cloud.speech.v1p1beta1.CustomClass> + getGetCustomClassMethod; + if ((getGetCustomClassMethod = AdaptationGrpc.getGetCustomClassMethod) == null) { + synchronized (AdaptationGrpc.class) { + if ((getGetCustomClassMethod = AdaptationGrpc.getGetCustomClassMethod) == null) { + AdaptationGrpc.getGetCustomClassMethod = + getGetCustomClassMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetCustomClass")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v1p1beta1.GetCustomClassRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v1p1beta1.CustomClass.getDefaultInstance())) + .setSchemaDescriptor(new AdaptationMethodDescriptorSupplier("GetCustomClass")) + .build(); + } + } + } + return getGetCustomClassMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest, + com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse> + getListCustomClassesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListCustomClasses", + requestType = com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest.class, + responseType = com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest, + com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse> + getListCustomClassesMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest, + com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse> + getListCustomClassesMethod; + if ((getListCustomClassesMethod = AdaptationGrpc.getListCustomClassesMethod) == null) { + synchronized (AdaptationGrpc.class) { + if ((getListCustomClassesMethod = AdaptationGrpc.getListCustomClassesMethod) == null) { + AdaptationGrpc.getListCustomClassesMethod = + getListCustomClassesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListCustomClasses")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new AdaptationMethodDescriptorSupplier("ListCustomClasses")) + .build(); + } + } + } + return getListCustomClassesMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest, + com.google.cloud.speech.v1p1beta1.CustomClass> + getUpdateCustomClassMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateCustomClass", + requestType = com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest.class, + responseType = com.google.cloud.speech.v1p1beta1.CustomClass.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest, + com.google.cloud.speech.v1p1beta1.CustomClass> + getUpdateCustomClassMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest, + com.google.cloud.speech.v1p1beta1.CustomClass> + getUpdateCustomClassMethod; + if ((getUpdateCustomClassMethod = AdaptationGrpc.getUpdateCustomClassMethod) == null) { + synchronized (AdaptationGrpc.class) { + if ((getUpdateCustomClassMethod = AdaptationGrpc.getUpdateCustomClassMethod) == null) { + AdaptationGrpc.getUpdateCustomClassMethod = + getUpdateCustomClassMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateCustomClass")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v1p1beta1.CustomClass.getDefaultInstance())) + .setSchemaDescriptor( + new AdaptationMethodDescriptorSupplier("UpdateCustomClass")) + .build(); + } + } + } + return getUpdateCustomClassMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest, com.google.protobuf.Empty> + getDeleteCustomClassMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteCustomClass", + requestType = com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest, com.google.protobuf.Empty> + getDeleteCustomClassMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest, com.google.protobuf.Empty> + getDeleteCustomClassMethod; + if ((getDeleteCustomClassMethod = AdaptationGrpc.getDeleteCustomClassMethod) == null) { + synchronized (AdaptationGrpc.class) { + if ((getDeleteCustomClassMethod = AdaptationGrpc.getDeleteCustomClassMethod) == null) { + AdaptationGrpc.getDeleteCustomClassMethod = + getDeleteCustomClassMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteCustomClass")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new AdaptationMethodDescriptorSupplier("DeleteCustomClass")) + .build(); + } + } + } + return getDeleteCustomClassMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static AdaptationStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public AdaptationStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AdaptationStub(channel, callOptions); + } + }; + return AdaptationStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static AdaptationBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public AdaptationBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AdaptationBlockingStub(channel, callOptions); + } + }; + return AdaptationBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static AdaptationFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public AdaptationFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AdaptationFutureStub(channel, callOptions); + } + }; + return AdaptationFutureStub.newStub(factory, channel); + } + + /** + * + * + *
+   * Service that implements Google Cloud Speech Adaptation API.
+   * 
+ */ + public abstract static class AdaptationImplBase implements io.grpc.BindableService { + + /** + * + * + *
+     * Create a set of phrase hints. Each item in the set can be a single word or
+     * a multi-word phrase. The items in the PhraseSet are favored by the
+     * recognition model when you send a call that includes the PhraseSet.
+     * 
+ */ + public void createPhraseSet( + com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreatePhraseSetMethod(), responseObserver); + } + + /** + * + * + *
+     * Get a phrase set.
+     * 
+ */ + public void getPhraseSet( + com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetPhraseSetMethod(), responseObserver); + } + + /** + * + * + *
+     * List phrase sets.
+     * 
+ */ + public void listPhraseSet( + com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListPhraseSetMethod(), responseObserver); + } + + /** + * + * + *
+     * Update a phrase set.
+     * 
+ */ + public void updatePhraseSet( + com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdatePhraseSetMethod(), responseObserver); + } + + /** + * + * + *
+     * Delete a phrase set.
+     * 
+ */ + public void deletePhraseSet( + com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeletePhraseSetMethod(), responseObserver); + } + + /** + * + * + *
+     * Create a custom class.
+     * 
+ */ + public void createCustomClass( + com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateCustomClassMethod(), responseObserver); + } + + /** + * + * + *
+     * Get a custom class.
+     * 
+ */ + public void getCustomClass( + com.google.cloud.speech.v1p1beta1.GetCustomClassRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetCustomClassMethod(), responseObserver); + } + + /** + * + * + *
+     * List custom classes.
+     * 
+ */ + public void listCustomClasses( + com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListCustomClassesMethod(), responseObserver); + } + + /** + * + * + *
+     * Update a custom class.
+     * 
+ */ + public void updateCustomClass( + com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateCustomClassMethod(), responseObserver); + } + + /** + * + * + *
+     * Delete a custom class.
+     * 
+ */ + public void deleteCustomClass( + com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteCustomClassMethod(), responseObserver); + } + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getCreatePhraseSetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest, + com.google.cloud.speech.v1p1beta1.PhraseSet>( + this, METHODID_CREATE_PHRASE_SET))) + .addMethod( + getGetPhraseSetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest, + com.google.cloud.speech.v1p1beta1.PhraseSet>(this, METHODID_GET_PHRASE_SET))) + .addMethod( + getListPhraseSetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest, + com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse>( + this, METHODID_LIST_PHRASE_SET))) + .addMethod( + getUpdatePhraseSetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest, + com.google.cloud.speech.v1p1beta1.PhraseSet>( + this, METHODID_UPDATE_PHRASE_SET))) + .addMethod( + getDeletePhraseSetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest, + com.google.protobuf.Empty>(this, METHODID_DELETE_PHRASE_SET))) + .addMethod( + getCreateCustomClassMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest, + com.google.cloud.speech.v1p1beta1.CustomClass>( + this, METHODID_CREATE_CUSTOM_CLASS))) + .addMethod( + getGetCustomClassMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.speech.v1p1beta1.GetCustomClassRequest, + com.google.cloud.speech.v1p1beta1.CustomClass>( + this, METHODID_GET_CUSTOM_CLASS))) + .addMethod( + getListCustomClassesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest, + com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse>( + this, METHODID_LIST_CUSTOM_CLASSES))) + .addMethod( + getUpdateCustomClassMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest, + com.google.cloud.speech.v1p1beta1.CustomClass>( + this, METHODID_UPDATE_CUSTOM_CLASS))) + .addMethod( + getDeleteCustomClassMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest, + com.google.protobuf.Empty>(this, METHODID_DELETE_CUSTOM_CLASS))) + .build(); + } + } + + /** + * + * + *
+   * Service that implements Google Cloud Speech Adaptation API.
+   * 
+ */ + public static final class AdaptationStub extends io.grpc.stub.AbstractAsyncStub { + private AdaptationStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected AdaptationStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AdaptationStub(channel, callOptions); + } + + /** + * + * + *
+     * Create a set of phrase hints. Each item in the set can be a single word or
+     * a multi-word phrase. The items in the PhraseSet are favored by the
+     * recognition model when you send a call that includes the PhraseSet.
+     * 
+ */ + public void createPhraseSet( + com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreatePhraseSetMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Get a phrase set.
+     * 
+ */ + public void getPhraseSet( + com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetPhraseSetMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * List phrase sets.
+     * 
+ */ + public void listPhraseSet( + com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListPhraseSetMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Update a phrase set.
+     * 
+ */ + public void updatePhraseSet( + com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdatePhraseSetMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Delete a phrase set.
+     * 
+ */ + public void deletePhraseSet( + com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeletePhraseSetMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Create a custom class.
+     * 
+ */ + public void createCustomClass( + com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateCustomClassMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Get a custom class.
+     * 
+ */ + public void getCustomClass( + com.google.cloud.speech.v1p1beta1.GetCustomClassRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetCustomClassMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * List custom classes.
+     * 
+ */ + public void listCustomClasses( + com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListCustomClassesMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Update a custom class.
+     * 
+ */ + public void updateCustomClass( + com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateCustomClassMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Delete a custom class.
+     * 
+ */ + public void deleteCustomClass( + com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteCustomClassMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * + * + *
+   * Service that implements Google Cloud Speech Adaptation API.
+   * 
+ */ + public static final class AdaptationBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private AdaptationBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected AdaptationBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AdaptationBlockingStub(channel, callOptions); + } + + /** + * + * + *
+     * Create a set of phrase hints. Each item in the set can be a single word or
+     * a multi-word phrase. The items in the PhraseSet are favored by the
+     * recognition model when you send a call that includes the PhraseSet.
+     * 
+ */ + public com.google.cloud.speech.v1p1beta1.PhraseSet createPhraseSet( + com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreatePhraseSetMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Get a phrase set.
+     * 
+ */ + public com.google.cloud.speech.v1p1beta1.PhraseSet getPhraseSet( + com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetPhraseSetMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * List phrase sets.
+     * 
+ */ + public com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse listPhraseSet( + com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListPhraseSetMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Update a phrase set.
+     * 
+ */ + public com.google.cloud.speech.v1p1beta1.PhraseSet updatePhraseSet( + com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdatePhraseSetMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Delete a phrase set.
+     * 
+ */ + public com.google.protobuf.Empty deletePhraseSet( + com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeletePhraseSetMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Create a custom class.
+     * 
+ */ + public com.google.cloud.speech.v1p1beta1.CustomClass createCustomClass( + com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateCustomClassMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Get a custom class.
+     * 
+ */ + public com.google.cloud.speech.v1p1beta1.CustomClass getCustomClass( + com.google.cloud.speech.v1p1beta1.GetCustomClassRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetCustomClassMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * List custom classes.
+     * 
+ */ + public com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse listCustomClasses( + com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListCustomClassesMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Update a custom class.
+     * 
+ */ + public com.google.cloud.speech.v1p1beta1.CustomClass updateCustomClass( + com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateCustomClassMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Delete a custom class.
+     * 
+ */ + public com.google.protobuf.Empty deleteCustomClass( + com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteCustomClassMethod(), getCallOptions(), request); + } + } + + /** + * + * + *
+   * Service that implements Google Cloud Speech Adaptation API.
+   * 
+ */ + public static final class AdaptationFutureStub + extends io.grpc.stub.AbstractFutureStub { + private AdaptationFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected AdaptationFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AdaptationFutureStub(channel, callOptions); + } + + /** + * + * + *
+     * Create a set of phrase hints. Each item in the set can be a single word or
+     * a multi-word phrase. The items in the PhraseSet are favored by the
+     * recognition model when you send a call that includes the PhraseSet.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.speech.v1p1beta1.PhraseSet> + createPhraseSet(com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreatePhraseSetMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Get a phrase set.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.speech.v1p1beta1.PhraseSet> + getPhraseSet(com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetPhraseSetMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * List phrase sets.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse> + listPhraseSet(com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListPhraseSetMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Update a phrase set.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.speech.v1p1beta1.PhraseSet> + updatePhraseSet(com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdatePhraseSetMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Delete a phrase set.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deletePhraseSet(com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeletePhraseSetMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Create a custom class.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.speech.v1p1beta1.CustomClass> + createCustomClass(com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateCustomClassMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Get a custom class.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.speech.v1p1beta1.CustomClass> + getCustomClass(com.google.cloud.speech.v1p1beta1.GetCustomClassRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetCustomClassMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * List custom classes.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse> + listCustomClasses(com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListCustomClassesMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Update a custom class.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.speech.v1p1beta1.CustomClass> + updateCustomClass(com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateCustomClassMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Delete a custom class.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteCustomClass(com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteCustomClassMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_CREATE_PHRASE_SET = 0; + private static final int METHODID_GET_PHRASE_SET = 1; + private static final int METHODID_LIST_PHRASE_SET = 2; + private static final int METHODID_UPDATE_PHRASE_SET = 3; + private static final int METHODID_DELETE_PHRASE_SET = 4; + private static final int METHODID_CREATE_CUSTOM_CLASS = 5; + private static final int METHODID_GET_CUSTOM_CLASS = 6; + private static final int METHODID_LIST_CUSTOM_CLASSES = 7; + private static final int METHODID_UPDATE_CUSTOM_CLASS = 8; + private static final int METHODID_DELETE_CUSTOM_CLASS = 9; + + private static final class MethodHandlers + implements io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final AdaptationImplBase serviceImpl; + private final int methodId; + + MethodHandlers(AdaptationImplBase serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_CREATE_PHRASE_SET: + serviceImpl.createPhraseSet( + (com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_PHRASE_SET: + serviceImpl.getPhraseSet( + (com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_PHRASE_SET: + serviceImpl.listPhraseSet( + (com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_UPDATE_PHRASE_SET: + serviceImpl.updatePhraseSet( + (com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_DELETE_PHRASE_SET: + serviceImpl.deletePhraseSet( + (com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_CUSTOM_CLASS: + serviceImpl.createCustomClass( + (com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_CUSTOM_CLASS: + serviceImpl.getCustomClass( + (com.google.cloud.speech.v1p1beta1.GetCustomClassRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_CUSTOM_CLASSES: + serviceImpl.listCustomClasses( + (com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse>) + responseObserver); + break; + case METHODID_UPDATE_CUSTOM_CLASS: + serviceImpl.updateCustomClass( + (com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_DELETE_CUSTOM_CLASS: + serviceImpl.deleteCustomClass( + (com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + private abstract static class AdaptationBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + AdaptationBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("Adaptation"); + } + } + + private static final class AdaptationFileDescriptorSupplier + extends AdaptationBaseDescriptorSupplier { + AdaptationFileDescriptorSupplier() {} + } + + private static final class AdaptationMethodDescriptorSupplier + extends AdaptationBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + AdaptationMethodDescriptorSupplier(String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (AdaptationGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new AdaptationFileDescriptorSupplier()) + .addMethod(getCreatePhraseSetMethod()) + .addMethod(getGetPhraseSetMethod()) + .addMethod(getListPhraseSetMethod()) + .addMethod(getUpdatePhraseSetMethod()) + .addMethod(getDeletePhraseSetMethod()) + .addMethod(getCreateCustomClassMethod()) + .addMethod(getGetCustomClassMethod()) + .addMethod(getListCustomClassesMethod()) + .addMethod(getUpdateCustomClassMethod()) + .addMethod(getDeleteCustomClassMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/grpc-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechGrpc.java b/grpc-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechGrpc.java new file mode 100644 index 000000000..c3bc87f0f --- /dev/null +++ b/grpc-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechGrpc.java @@ -0,0 +1,589 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.speech.v1p1beta1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *
+ * Service that implements Google Cloud Speech API.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/speech/v1p1beta1/cloud_speech.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class SpeechGrpc { + + private SpeechGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.speech.v1p1beta1.Speech"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.speech.v1p1beta1.RecognizeRequest, + com.google.cloud.speech.v1p1beta1.RecognizeResponse> + getRecognizeMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "Recognize", + requestType = com.google.cloud.speech.v1p1beta1.RecognizeRequest.class, + responseType = com.google.cloud.speech.v1p1beta1.RecognizeResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.speech.v1p1beta1.RecognizeRequest, + com.google.cloud.speech.v1p1beta1.RecognizeResponse> + getRecognizeMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.speech.v1p1beta1.RecognizeRequest, + com.google.cloud.speech.v1p1beta1.RecognizeResponse> + getRecognizeMethod; + if ((getRecognizeMethod = SpeechGrpc.getRecognizeMethod) == null) { + synchronized (SpeechGrpc.class) { + if ((getRecognizeMethod = SpeechGrpc.getRecognizeMethod) == null) { + SpeechGrpc.getRecognizeMethod = + getRecognizeMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Recognize")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v1p1beta1.RecognizeRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v1p1beta1.RecognizeResponse + .getDefaultInstance())) + .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("Recognize")) + .build(); + } + } + } + return getRecognizeMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest, + com.google.longrunning.Operation> + getLongRunningRecognizeMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "LongRunningRecognize", + requestType = com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest, + com.google.longrunning.Operation> + getLongRunningRecognizeMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest, + com.google.longrunning.Operation> + getLongRunningRecognizeMethod; + if ((getLongRunningRecognizeMethod = SpeechGrpc.getLongRunningRecognizeMethod) == null) { + synchronized (SpeechGrpc.class) { + if ((getLongRunningRecognizeMethod = SpeechGrpc.getLongRunningRecognizeMethod) == null) { + SpeechGrpc.getLongRunningRecognizeMethod = + getLongRunningRecognizeMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "LongRunningRecognize")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new SpeechMethodDescriptorSupplier("LongRunningRecognize")) + .build(); + } + } + } + return getLongRunningRecognizeMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest, + com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse> + getStreamingRecognizeMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "StreamingRecognize", + requestType = com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest.class, + responseType = com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING) + public static io.grpc.MethodDescriptor< + com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest, + com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse> + getStreamingRecognizeMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest, + com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse> + getStreamingRecognizeMethod; + if ((getStreamingRecognizeMethod = SpeechGrpc.getStreamingRecognizeMethod) == null) { + synchronized (SpeechGrpc.class) { + if ((getStreamingRecognizeMethod = SpeechGrpc.getStreamingRecognizeMethod) == null) { + SpeechGrpc.getStreamingRecognizeMethod = + getStreamingRecognizeMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StreamingRecognize")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse + .getDefaultInstance())) + .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("StreamingRecognize")) + .build(); + } + } + } + return getStreamingRecognizeMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static SpeechStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public SpeechStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SpeechStub(channel, callOptions); + } + }; + return SpeechStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static SpeechBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public SpeechBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SpeechBlockingStub(channel, callOptions); + } + }; + return SpeechBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static SpeechFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public SpeechFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SpeechFutureStub(channel, callOptions); + } + }; + return SpeechFutureStub.newStub(factory, channel); + } + + /** + * + * + *
+   * Service that implements Google Cloud Speech API.
+   * 
+ */ + public abstract static class SpeechImplBase implements io.grpc.BindableService { + + /** + * + * + *
+     * Performs synchronous speech recognition: receive results after all audio
+     * has been sent and processed.
+     * 
+ */ + public void recognize( + com.google.cloud.speech.v1p1beta1.RecognizeRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRecognizeMethod(), responseObserver); + } + + /** + * + * + *
+     * Performs asynchronous speech recognition: receive results via the
+     * google.longrunning.Operations interface. Returns either an
+     * `Operation.error` or an `Operation.response` which contains
+     * a `LongRunningRecognizeResponse` message.
+     * For more information on asynchronous speech recognition, see the
+     * [how-to](https://cloud.google.com/speech-to-text/docs/async-recognize).
+     * 
+ */ + public void longRunningRecognize( + com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getLongRunningRecognizeMethod(), responseObserver); + } + + /** + * + * + *
+     * Performs bidirectional streaming speech recognition: receive results while
+     * sending audio. This method is only available via the gRPC API (not REST).
+     * 
+ */ + public io.grpc.stub.StreamObserver + streamingRecognize( + io.grpc.stub.StreamObserver< + com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse> + responseObserver) { + return io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall( + getStreamingRecognizeMethod(), responseObserver); + } + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getRecognizeMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.speech.v1p1beta1.RecognizeRequest, + com.google.cloud.speech.v1p1beta1.RecognizeResponse>( + this, METHODID_RECOGNIZE))) + .addMethod( + getLongRunningRecognizeMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest, + com.google.longrunning.Operation>(this, METHODID_LONG_RUNNING_RECOGNIZE))) + .addMethod( + getStreamingRecognizeMethod(), + io.grpc.stub.ServerCalls.asyncBidiStreamingCall( + new MethodHandlers< + com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest, + com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse>( + this, METHODID_STREAMING_RECOGNIZE))) + .build(); + } + } + + /** + * + * + *
+   * Service that implements Google Cloud Speech API.
+   * 
+ */ + public static final class SpeechStub extends io.grpc.stub.AbstractAsyncStub { + private SpeechStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected SpeechStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SpeechStub(channel, callOptions); + } + + /** + * + * + *
+     * Performs synchronous speech recognition: receive results after all audio
+     * has been sent and processed.
+     * 
+ */ + public void recognize( + com.google.cloud.speech.v1p1beta1.RecognizeRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getRecognizeMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Performs asynchronous speech recognition: receive results via the
+     * google.longrunning.Operations interface. Returns either an
+     * `Operation.error` or an `Operation.response` which contains
+     * a `LongRunningRecognizeResponse` message.
+     * For more information on asynchronous speech recognition, see the
+     * [how-to](https://cloud.google.com/speech-to-text/docs/async-recognize).
+     * 
+ */ + public void longRunningRecognize( + com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getLongRunningRecognizeMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Performs bidirectional streaming speech recognition: receive results while
+     * sending audio. This method is only available via the gRPC API (not REST).
+     * 
+ */ + public io.grpc.stub.StreamObserver + streamingRecognize( + io.grpc.stub.StreamObserver< + com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse> + responseObserver) { + return io.grpc.stub.ClientCalls.asyncBidiStreamingCall( + getChannel().newCall(getStreamingRecognizeMethod(), getCallOptions()), responseObserver); + } + } + + /** + * + * + *
+   * Service that implements Google Cloud Speech API.
+   * 
+ */ + public static final class SpeechBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private SpeechBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected SpeechBlockingStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SpeechBlockingStub(channel, callOptions); + } + + /** + * + * + *
+     * Performs synchronous speech recognition: receive results after all audio
+     * has been sent and processed.
+     * 
+ */ + public com.google.cloud.speech.v1p1beta1.RecognizeResponse recognize( + com.google.cloud.speech.v1p1beta1.RecognizeRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getRecognizeMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Performs asynchronous speech recognition: receive results via the
+     * google.longrunning.Operations interface. Returns either an
+     * `Operation.error` or an `Operation.response` which contains
+     * a `LongRunningRecognizeResponse` message.
+     * For more information on asynchronous speech recognition, see the
+     * [how-to](https://cloud.google.com/speech-to-text/docs/async-recognize).
+     * 
+ */ + public com.google.longrunning.Operation longRunningRecognize( + com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getLongRunningRecognizeMethod(), getCallOptions(), request); + } + } + + /** + * + * + *
+   * Service that implements Google Cloud Speech API.
+   * 
+ */ + public static final class SpeechFutureStub + extends io.grpc.stub.AbstractFutureStub { + private SpeechFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected SpeechFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SpeechFutureStub(channel, callOptions); + } + + /** + * + * + *
+     * Performs synchronous speech recognition: receive results after all audio
+     * has been sent and processed.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.speech.v1p1beta1.RecognizeResponse> + recognize(com.google.cloud.speech.v1p1beta1.RecognizeRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getRecognizeMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Performs asynchronous speech recognition: receive results via the
+     * google.longrunning.Operations interface. Returns either an
+     * `Operation.error` or an `Operation.response` which contains
+     * a `LongRunningRecognizeResponse` message.
+     * For more information on asynchronous speech recognition, see the
+     * [how-to](https://cloud.google.com/speech-to-text/docs/async-recognize).
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + longRunningRecognize( + com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getLongRunningRecognizeMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_RECOGNIZE = 0; + private static final int METHODID_LONG_RUNNING_RECOGNIZE = 1; + private static final int METHODID_STREAMING_RECOGNIZE = 2; + + private static final class MethodHandlers + implements io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final SpeechImplBase serviceImpl; + private final int methodId; + + MethodHandlers(SpeechImplBase serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_RECOGNIZE: + serviceImpl.recognize( + (com.google.cloud.speech.v1p1beta1.RecognizeRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LONG_RUNNING_RECOGNIZE: + serviceImpl.longRunningRecognize( + (com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_STREAMING_RECOGNIZE: + return (io.grpc.stub.StreamObserver) + serviceImpl.streamingRecognize( + (io.grpc.stub.StreamObserver< + com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse>) + responseObserver); + default: + throw new AssertionError(); + } + } + } + + private abstract static class SpeechBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + SpeechBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("Speech"); + } + } + + private static final class SpeechFileDescriptorSupplier extends SpeechBaseDescriptorSupplier { + SpeechFileDescriptorSupplier() {} + } + + private static final class SpeechMethodDescriptorSupplier extends SpeechBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + SpeechMethodDescriptorSupplier(String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (SpeechGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new SpeechFileDescriptorSupplier()) + .addMethod(getRecognizeMethod()) + .addMethod(getLongRunningRecognizeMethod()) + .addMethod(getStreamingRecognizeMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/owl-bot-staging/v1/grpc-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechGrpc.java b/owl-bot-staging/v1/grpc-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechGrpc.java deleted file mode 100644 index 46b71822a..000000000 --- a/owl-bot-staging/v1/grpc-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechGrpc.java +++ /dev/null @@ -1,479 +0,0 @@ -package com.google.cloud.speech.v1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - *
- * Service that implements Google Cloud Speech API.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/speech/v1/cloud_speech.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class SpeechGrpc { - - private SpeechGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.speech.v1.Speech"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor getRecognizeMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "Recognize", - requestType = com.google.cloud.speech.v1.RecognizeRequest.class, - responseType = com.google.cloud.speech.v1.RecognizeResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getRecognizeMethod() { - io.grpc.MethodDescriptor getRecognizeMethod; - if ((getRecognizeMethod = SpeechGrpc.getRecognizeMethod) == null) { - synchronized (SpeechGrpc.class) { - if ((getRecognizeMethod = SpeechGrpc.getRecognizeMethod) == null) { - SpeechGrpc.getRecognizeMethod = getRecognizeMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Recognize")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v1.RecognizeRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v1.RecognizeResponse.getDefaultInstance())) - .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("Recognize")) - .build(); - } - } - } - return getRecognizeMethod; - } - - private static volatile io.grpc.MethodDescriptor getLongRunningRecognizeMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "LongRunningRecognize", - requestType = com.google.cloud.speech.v1.LongRunningRecognizeRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getLongRunningRecognizeMethod() { - io.grpc.MethodDescriptor getLongRunningRecognizeMethod; - if ((getLongRunningRecognizeMethod = SpeechGrpc.getLongRunningRecognizeMethod) == null) { - synchronized (SpeechGrpc.class) { - if ((getLongRunningRecognizeMethod = SpeechGrpc.getLongRunningRecognizeMethod) == null) { - SpeechGrpc.getLongRunningRecognizeMethod = getLongRunningRecognizeMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "LongRunningRecognize")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v1.LongRunningRecognizeRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("LongRunningRecognize")) - .build(); - } - } - } - return getLongRunningRecognizeMethod; - } - - private static volatile io.grpc.MethodDescriptor getStreamingRecognizeMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "StreamingRecognize", - requestType = com.google.cloud.speech.v1.StreamingRecognizeRequest.class, - responseType = com.google.cloud.speech.v1.StreamingRecognizeResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING) - public static io.grpc.MethodDescriptor getStreamingRecognizeMethod() { - io.grpc.MethodDescriptor getStreamingRecognizeMethod; - if ((getStreamingRecognizeMethod = SpeechGrpc.getStreamingRecognizeMethod) == null) { - synchronized (SpeechGrpc.class) { - if ((getStreamingRecognizeMethod = SpeechGrpc.getStreamingRecognizeMethod) == null) { - SpeechGrpc.getStreamingRecognizeMethod = getStreamingRecognizeMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StreamingRecognize")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v1.StreamingRecognizeRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v1.StreamingRecognizeResponse.getDefaultInstance())) - .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("StreamingRecognize")) - .build(); - } - } - } - return getStreamingRecognizeMethod; - } - - /** - * Creates a new async stub that supports all call types for the service - */ - public static SpeechStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public SpeechStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SpeechStub(channel, callOptions); - } - }; - return SpeechStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static SpeechBlockingStub newBlockingStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public SpeechBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SpeechBlockingStub(channel, callOptions); - } - }; - return SpeechBlockingStub.newStub(factory, channel); - } - - /** - * Creates a new ListenableFuture-style stub that supports unary calls on the service - */ - public static SpeechFutureStub newFutureStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public SpeechFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SpeechFutureStub(channel, callOptions); - } - }; - return SpeechFutureStub.newStub(factory, channel); - } - - /** - *
-   * Service that implements Google Cloud Speech API.
-   * 
- */ - public static abstract class SpeechImplBase implements io.grpc.BindableService { - - /** - *
-     * Performs synchronous speech recognition: receive results after all audio
-     * has been sent and processed.
-     * 
- */ - public void recognize(com.google.cloud.speech.v1.RecognizeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRecognizeMethod(), responseObserver); - } - - /** - *
-     * Performs asynchronous speech recognition: receive results via the
-     * google.longrunning.Operations interface. Returns either an
-     * `Operation.error` or an `Operation.response` which contains
-     * a `LongRunningRecognizeResponse` message.
-     * For more information on asynchronous speech recognition, see the
-     * [how-to](https://cloud.google.com/speech-to-text/docs/async-recognize).
-     * 
- */ - public void longRunningRecognize(com.google.cloud.speech.v1.LongRunningRecognizeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getLongRunningRecognizeMethod(), responseObserver); - } - - /** - *
-     * Performs bidirectional streaming speech recognition: receive results while
-     * sending audio. This method is only available via the gRPC API (not REST).
-     * 
- */ - public io.grpc.stub.StreamObserver streamingRecognize( - io.grpc.stub.StreamObserver responseObserver) { - return io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall(getStreamingRecognizeMethod(), responseObserver); - } - - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getRecognizeMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.speech.v1.RecognizeRequest, - com.google.cloud.speech.v1.RecognizeResponse>( - this, METHODID_RECOGNIZE))) - .addMethod( - getLongRunningRecognizeMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.speech.v1.LongRunningRecognizeRequest, - com.google.longrunning.Operation>( - this, METHODID_LONG_RUNNING_RECOGNIZE))) - .addMethod( - getStreamingRecognizeMethod(), - io.grpc.stub.ServerCalls.asyncBidiStreamingCall( - new MethodHandlers< - com.google.cloud.speech.v1.StreamingRecognizeRequest, - com.google.cloud.speech.v1.StreamingRecognizeResponse>( - this, METHODID_STREAMING_RECOGNIZE))) - .build(); - } - } - - /** - *
-   * Service that implements Google Cloud Speech API.
-   * 
- */ - public static final class SpeechStub extends io.grpc.stub.AbstractAsyncStub { - private SpeechStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected SpeechStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SpeechStub(channel, callOptions); - } - - /** - *
-     * Performs synchronous speech recognition: receive results after all audio
-     * has been sent and processed.
-     * 
- */ - public void recognize(com.google.cloud.speech.v1.RecognizeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getRecognizeMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Performs asynchronous speech recognition: receive results via the
-     * google.longrunning.Operations interface. Returns either an
-     * `Operation.error` or an `Operation.response` which contains
-     * a `LongRunningRecognizeResponse` message.
-     * For more information on asynchronous speech recognition, see the
-     * [how-to](https://cloud.google.com/speech-to-text/docs/async-recognize).
-     * 
- */ - public void longRunningRecognize(com.google.cloud.speech.v1.LongRunningRecognizeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getLongRunningRecognizeMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Performs bidirectional streaming speech recognition: receive results while
-     * sending audio. This method is only available via the gRPC API (not REST).
-     * 
- */ - public io.grpc.stub.StreamObserver streamingRecognize( - io.grpc.stub.StreamObserver responseObserver) { - return io.grpc.stub.ClientCalls.asyncBidiStreamingCall( - getChannel().newCall(getStreamingRecognizeMethod(), getCallOptions()), responseObserver); - } - } - - /** - *
-   * Service that implements Google Cloud Speech API.
-   * 
- */ - public static final class SpeechBlockingStub extends io.grpc.stub.AbstractBlockingStub { - private SpeechBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected SpeechBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SpeechBlockingStub(channel, callOptions); - } - - /** - *
-     * Performs synchronous speech recognition: receive results after all audio
-     * has been sent and processed.
-     * 
- */ - public com.google.cloud.speech.v1.RecognizeResponse recognize(com.google.cloud.speech.v1.RecognizeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getRecognizeMethod(), getCallOptions(), request); - } - - /** - *
-     * Performs asynchronous speech recognition: receive results via the
-     * google.longrunning.Operations interface. Returns either an
-     * `Operation.error` or an `Operation.response` which contains
-     * a `LongRunningRecognizeResponse` message.
-     * For more information on asynchronous speech recognition, see the
-     * [how-to](https://cloud.google.com/speech-to-text/docs/async-recognize).
-     * 
- */ - public com.google.longrunning.Operation longRunningRecognize(com.google.cloud.speech.v1.LongRunningRecognizeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getLongRunningRecognizeMethod(), getCallOptions(), request); - } - } - - /** - *
-   * Service that implements Google Cloud Speech API.
-   * 
- */ - public static final class SpeechFutureStub extends io.grpc.stub.AbstractFutureStub { - private SpeechFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected SpeechFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SpeechFutureStub(channel, callOptions); - } - - /** - *
-     * Performs synchronous speech recognition: receive results after all audio
-     * has been sent and processed.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture recognize( - com.google.cloud.speech.v1.RecognizeRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getRecognizeMethod(), getCallOptions()), request); - } - - /** - *
-     * Performs asynchronous speech recognition: receive results via the
-     * google.longrunning.Operations interface. Returns either an
-     * `Operation.error` or an `Operation.response` which contains
-     * a `LongRunningRecognizeResponse` message.
-     * For more information on asynchronous speech recognition, see the
-     * [how-to](https://cloud.google.com/speech-to-text/docs/async-recognize).
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture longRunningRecognize( - com.google.cloud.speech.v1.LongRunningRecognizeRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getLongRunningRecognizeMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_RECOGNIZE = 0; - private static final int METHODID_LONG_RUNNING_RECOGNIZE = 1; - private static final int METHODID_STREAMING_RECOGNIZE = 2; - - private static final class MethodHandlers implements - io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final SpeechImplBase serviceImpl; - private final int methodId; - - MethodHandlers(SpeechImplBase serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_RECOGNIZE: - serviceImpl.recognize((com.google.cloud.speech.v1.RecognizeRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LONG_RUNNING_RECOGNIZE: - serviceImpl.longRunningRecognize((com.google.cloud.speech.v1.LongRunningRecognizeRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_STREAMING_RECOGNIZE: - return (io.grpc.stub.StreamObserver) serviceImpl.streamingRecognize( - (io.grpc.stub.StreamObserver) responseObserver); - default: - throw new AssertionError(); - } - } - } - - private static abstract class SpeechBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { - SpeechBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.speech.v1.SpeechProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("Speech"); - } - } - - private static final class SpeechFileDescriptorSupplier - extends SpeechBaseDescriptorSupplier { - SpeechFileDescriptorSupplier() {} - } - - private static final class SpeechMethodDescriptorSupplier - extends SpeechBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - SpeechMethodDescriptorSupplier(String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (SpeechGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new SpeechFileDescriptorSupplier()) - .addMethod(getRecognizeMethod()) - .addMethod(getLongRunningRecognizeMethod()) - .addMethod(getStreamingRecognizeMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeRequestOrBuilder.java deleted file mode 100644 index 5811af703..000000000 --- a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeRequestOrBuilder.java +++ /dev/null @@ -1,66 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/speech/v1/cloud_speech.proto - -package com.google.cloud.speech.v1; - -public interface RecognizeRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1.RecognizeRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Provides information to the recognizer that specifies how to
-   * process the request.
-   * 
- * - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the config field is set. - */ - boolean hasConfig(); - /** - *
-   * Required. Provides information to the recognizer that specifies how to
-   * process the request.
-   * 
- * - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The config. - */ - com.google.cloud.speech.v1.RecognitionConfig getConfig(); - /** - *
-   * Required. Provides information to the recognizer that specifies how to
-   * process the request.
-   * 
- * - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - com.google.cloud.speech.v1.RecognitionConfigOrBuilder getConfigOrBuilder(); - - /** - *
-   * Required. The audio data to be recognized.
-   * 
- * - * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the audio field is set. - */ - boolean hasAudio(); - /** - *
-   * Required. The audio data to be recognized.
-   * 
- * - * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The audio. - */ - com.google.cloud.speech.v1.RecognitionAudio getAudio(); - /** - *
-   * Required. The audio data to be recognized.
-   * 
- * - * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - com.google.cloud.speech.v1.RecognitionAudioOrBuilder getAudioOrBuilder(); -} diff --git a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechProto.java b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechProto.java deleted file mode 100644 index eb13ab171..000000000 --- a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechProto.java +++ /dev/null @@ -1,406 +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 final class SpeechProto { - private SpeechProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1_RecognizeRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1_RecognizeRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1_LongRunningRecognizeRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1_LongRunningRecognizeRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1_TranscriptOutputConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1_TranscriptOutputConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1_StreamingRecognizeRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1_StreamingRecognizeRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1_StreamingRecognitionConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1_StreamingRecognitionConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1_RecognitionConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1_RecognitionConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1_SpeakerDiarizationConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1_SpeakerDiarizationConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1_RecognitionMetadata_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1_RecognitionMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1_SpeechContext_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1_SpeechContext_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1_RecognitionAudio_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1_RecognitionAudio_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1_RecognizeResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1_RecognizeResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1_LongRunningRecognizeResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1_LongRunningRecognizeResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1_LongRunningRecognizeMetadata_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1_LongRunningRecognizeMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1_StreamingRecognizeResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1_StreamingRecognizeResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1_StreamingRecognitionResult_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1_StreamingRecognitionResult_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1_SpeechRecognitionResult_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1_SpeechRecognitionResult_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1_SpeechRecognitionAlternative_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1_SpeechRecognitionAlternative_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1_WordInfo_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1_WordInfo_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n)google/cloud/speech/v1/cloud_speech.pr" + - "oto\022\026google.cloud.speech.v1\032\034google/api/" + - "annotations.proto\032\027google/api/client.pro" + - "to\032\037google/api/field_behavior.proto\032%goo" + - "gle/cloud/speech/v1/resource.proto\032#goog" + - "le/longrunning/operations.proto\032\036google/" + - "protobuf/duration.proto\032\037google/protobuf" + - "/timestamp.proto\032\036google/protobuf/wrappe" + - "rs.proto\032\027google/rpc/status.proto\"\220\001\n\020Re" + - "cognizeRequest\022>\n\006config\030\001 \001(\0132).google." + - "cloud.speech.v1.RecognitionConfigB\003\340A\002\022<" + - "\n\005audio\030\002 \001(\0132(.google.cloud.speech.v1.R" + - "ecognitionAudioB\003\340A\002\"\347\001\n\033LongRunningReco" + - "gnizeRequest\022>\n\006config\030\001 \001(\0132).google.cl" + - "oud.speech.v1.RecognitionConfigB\003\340A\002\022<\n\005" + - "audio\030\002 \001(\0132(.google.cloud.speech.v1.Rec" + - "ognitionAudioB\003\340A\002\022J\n\routput_config\030\004 \001(" + - "\0132..google.cloud.speech.v1.TranscriptOut" + - "putConfigB\003\340A\001\":\n\026TranscriptOutputConfig" + - "\022\021\n\007gcs_uri\030\001 \001(\tH\000B\r\n\013output_type\"\231\001\n\031S" + - "treamingRecognizeRequest\022N\n\020streaming_co" + - "nfig\030\001 \001(\01322.google.cloud.speech.v1.Stre" + - "amingRecognitionConfigH\000\022\027\n\raudio_conten" + - "t\030\002 \001(\014H\000B\023\n\021streaming_request\"\217\001\n\032Strea" + - "mingRecognitionConfig\022>\n\006config\030\001 \001(\0132)." + - "google.cloud.speech.v1.RecognitionConfig" + - "B\003\340A\002\022\030\n\020single_utterance\030\002 \001(\010\022\027\n\017inter" + - "im_results\030\003 \001(\010\"\351\007\n\021RecognitionConfig\022I" + - "\n\010encoding\030\001 \001(\01627.google.cloud.speech.v" + - "1.RecognitionConfig.AudioEncoding\022\031\n\021sam" + - "ple_rate_hertz\030\002 \001(\005\022\033\n\023audio_channel_co" + - "unt\030\007 \001(\005\022/\n\'enable_separate_recognition" + - "_per_channel\030\014 \001(\010\022\032\n\rlanguage_code\030\003 \001(" + - "\tB\003\340A\002\022\"\n\032alternative_language_codes\030\022 \003" + - "(\t\022\030\n\020max_alternatives\030\004 \001(\005\022\030\n\020profanit" + - "y_filter\030\005 \001(\010\022<\n\nadaptation\030\024 \001(\0132(.goo" + - "gle.cloud.speech.v1.SpeechAdaptation\022>\n\017" + - "speech_contexts\030\006 \003(\0132%.google.cloud.spe" + - "ech.v1.SpeechContext\022 \n\030enable_word_time" + - "_offsets\030\010 \001(\010\022\036\n\026enable_word_confidence" + - "\030\017 \001(\010\022$\n\034enable_automatic_punctuation\030\013" + - " \001(\010\022=\n\031enable_spoken_punctuation\030\026 \001(\0132" + - "\032.google.protobuf.BoolValue\0228\n\024enable_sp" + - "oken_emojis\030\027 \001(\0132\032.google.protobuf.Bool" + - "Value\022L\n\022diarization_config\030\023 \001(\01320.goog" + - "le.cloud.speech.v1.SpeakerDiarizationCon" + - "fig\022=\n\010metadata\030\t \001(\0132+.google.cloud.spe" + - "ech.v1.RecognitionMetadata\022\r\n\005model\030\r \001(" + - "\t\022\024\n\014use_enhanced\030\016 \001(\010\"\232\001\n\rAudioEncodin" + - "g\022\030\n\024ENCODING_UNSPECIFIED\020\000\022\014\n\010LINEAR16\020" + - "\001\022\010\n\004FLAC\020\002\022\t\n\005MULAW\020\003\022\007\n\003AMR\020\004\022\n\n\006AMR_W" + - "B\020\005\022\014\n\010OGG_OPUS\020\006\022\032\n\026SPEEX_WITH_HEADER_B" + - "YTE\020\007\022\r\n\tWEBM_OPUS\020\t\"\220\001\n\030SpeakerDiarizat" + - "ionConfig\022\"\n\032enable_speaker_diarization\030" + - "\001 \001(\010\022\031\n\021min_speaker_count\030\002 \001(\005\022\031\n\021max_" + - "speaker_count\030\003 \001(\005\022\032\n\013speaker_tag\030\005 \001(\005" + - "B\005\030\001\340A\003\"\240\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\"/\n\rSpeechCont" + - "ext\022\017\n\007phrases\030\001 \003(\t\022\r\n\005boost\030\004 \001(\002\"D\n\020R" + - "ecognitionAudio\022\021\n\007content\030\001 \001(\014H\000\022\r\n\003ur" + - "i\030\002 \001(\tH\000B\016\n\014audio_source\"\213\001\n\021RecognizeR" + - "esponse\022@\n\007results\030\002 \003(\0132/.google.cloud." + - "speech.v1.SpeechRecognitionResult\0224\n\021tot" + - "al_billed_time\030\003 \001(\0132\031.google.protobuf.D" + - "uration\"\207\002\n\034LongRunningRecognizeResponse" + - "\022@\n\007results\030\002 \003(\0132/.google.cloud.speech." + - "v1.SpeechRecognitionResult\0224\n\021total_bill" + - "ed_time\030\003 \001(\0132\031.google.protobuf.Duration" + - "\022E\n\routput_config\030\006 \001(\0132..google.cloud.s" + - "peech.v1.TranscriptOutputConfig\022(\n\014outpu" + - "t_error\030\007 \001(\0132\022.google.rpc.Status\"\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\"\347\002\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\"L\n\017SpeechEventType\022\034\n\030S" + - "PEECH_EVENT_UNSPECIFIED\020\000\022\033\n\027END_OF_SING" + - "LE_UTTERANCE\020\001\"\362\001\n\032StreamingRecognitionR" + - "esult\022J\n\014alternatives\030\001 \003(\01324.google.clo" + - "ud.speech.v1.SpeechRecognitionAlternativ" + - "e\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.protobu" + - "f.Duration\022\023\n\013channel_tag\030\005 \001(\005\022\032\n\rlangu" + - "age_code\030\006 \001(\tB\003\340A\003\"\312\001\n\027SpeechRecognitio" + - "nResult\022J\n\014alternatives\030\001 \003(\01324.google.c" + - "loud.speech.v1.SpeechRecognitionAlternat" + - "ive\022\023\n\013channel_tag\030\002 \001(\005\0222\n\017result_end_t" + - "ime\030\004 \001(\0132\031.google.protobuf.Duration\022\032\n\r" + - "language_code\030\005 \001(\tB\003\340A\003\"w\n\034SpeechRecogn" + - "itionAlternative\022\022\n\ntranscript\030\001 \001(\t\022\022\n\n" + - "confidence\030\002 \001(\002\022/\n\005words\030\003 \003(\0132 .google" + - ".cloud.speech.v1.WordInfo\"\242\001\n\010WordInfo\022-" + - "\n\nstart_time\030\001 \001(\0132\031.google.protobuf.Dur" + - "ation\022+\n\010end_time\030\002 \001(\0132\031.google.protobu" + - "f.Duration\022\014\n\004word\030\003 \001(\t\022\022\n\nconfidence\030\004" + - " \001(\002\022\030\n\013speaker_tag\030\005 \001(\005B\003\340A\0032\321\004\n\006Speec" + - "h\022\220\001\n\tRecognize\022(.google.cloud.speech.v1" + - ".RecognizeRequest\032).google.cloud.speech." + - "v1.RecognizeResponse\".\202\323\344\223\002\031\"\024/v1/speech" + - ":recognize:\001*\332A\014config,audio\022\344\001\n\024LongRun" + - "ningRecognize\0223.google.cloud.speech.v1.L" + - "ongRunningRecognizeRequest\032\035.google.long" + - "running.Operation\"x\202\323\344\223\002$\"\037/v1/speech:lo" + - "ngrunningrecognize:\001*\332A\014config,audio\312A<\n" + - "\034LongRunningRecognizeResponse\022\034LongRunni" + - "ngRecognizeMetadata\022\201\001\n\022StreamingRecogni" + - "ze\0221.google.cloud.speech.v1.StreamingRec" + - "ognizeRequest\0322.google.cloud.speech.v1.S" + - "treamingRecognizeResponse\"\000(\0010\001\032I\312A\025spee" + - "ch.googleapis.com\322A.https://www.googleap" + - "is.com/auth/cloud-platformBr\n\032com.google" + - ".cloud.speech.v1B\013SpeechProtoP\001Z - * Service that implements Google Cloud Speech Adaptation API. - *
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/speech/v1p1beta1/cloud_speech_adaptation.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class AdaptationGrpc { - - private AdaptationGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.speech.v1p1beta1.Adaptation"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor getCreatePhraseSetMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreatePhraseSet", - requestType = com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest.class, - responseType = com.google.cloud.speech.v1p1beta1.PhraseSet.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreatePhraseSetMethod() { - io.grpc.MethodDescriptor getCreatePhraseSetMethod; - if ((getCreatePhraseSetMethod = AdaptationGrpc.getCreatePhraseSetMethod) == null) { - synchronized (AdaptationGrpc.class) { - if ((getCreatePhraseSetMethod = AdaptationGrpc.getCreatePhraseSetMethod) == null) { - AdaptationGrpc.getCreatePhraseSetMethod = getCreatePhraseSetMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreatePhraseSet")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v1p1beta1.PhraseSet.getDefaultInstance())) - .setSchemaDescriptor(new AdaptationMethodDescriptorSupplier("CreatePhraseSet")) - .build(); - } - } - } - return getCreatePhraseSetMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetPhraseSetMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetPhraseSet", - requestType = com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest.class, - responseType = com.google.cloud.speech.v1p1beta1.PhraseSet.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetPhraseSetMethod() { - io.grpc.MethodDescriptor getGetPhraseSetMethod; - if ((getGetPhraseSetMethod = AdaptationGrpc.getGetPhraseSetMethod) == null) { - synchronized (AdaptationGrpc.class) { - if ((getGetPhraseSetMethod = AdaptationGrpc.getGetPhraseSetMethod) == null) { - AdaptationGrpc.getGetPhraseSetMethod = getGetPhraseSetMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetPhraseSet")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v1p1beta1.PhraseSet.getDefaultInstance())) - .setSchemaDescriptor(new AdaptationMethodDescriptorSupplier("GetPhraseSet")) - .build(); - } - } - } - return getGetPhraseSetMethod; - } - - private static volatile io.grpc.MethodDescriptor getListPhraseSetMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListPhraseSet", - requestType = com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest.class, - responseType = com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListPhraseSetMethod() { - io.grpc.MethodDescriptor getListPhraseSetMethod; - if ((getListPhraseSetMethod = AdaptationGrpc.getListPhraseSetMethod) == null) { - synchronized (AdaptationGrpc.class) { - if ((getListPhraseSetMethod = AdaptationGrpc.getListPhraseSetMethod) == null) { - AdaptationGrpc.getListPhraseSetMethod = getListPhraseSetMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListPhraseSet")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse.getDefaultInstance())) - .setSchemaDescriptor(new AdaptationMethodDescriptorSupplier("ListPhraseSet")) - .build(); - } - } - } - return getListPhraseSetMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpdatePhraseSetMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdatePhraseSet", - requestType = com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest.class, - responseType = com.google.cloud.speech.v1p1beta1.PhraseSet.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdatePhraseSetMethod() { - io.grpc.MethodDescriptor getUpdatePhraseSetMethod; - if ((getUpdatePhraseSetMethod = AdaptationGrpc.getUpdatePhraseSetMethod) == null) { - synchronized (AdaptationGrpc.class) { - if ((getUpdatePhraseSetMethod = AdaptationGrpc.getUpdatePhraseSetMethod) == null) { - AdaptationGrpc.getUpdatePhraseSetMethod = getUpdatePhraseSetMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdatePhraseSet")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v1p1beta1.PhraseSet.getDefaultInstance())) - .setSchemaDescriptor(new AdaptationMethodDescriptorSupplier("UpdatePhraseSet")) - .build(); - } - } - } - return getUpdatePhraseSetMethod; - } - - private static volatile io.grpc.MethodDescriptor getDeletePhraseSetMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeletePhraseSet", - requestType = com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeletePhraseSetMethod() { - io.grpc.MethodDescriptor getDeletePhraseSetMethod; - if ((getDeletePhraseSetMethod = AdaptationGrpc.getDeletePhraseSetMethod) == null) { - synchronized (AdaptationGrpc.class) { - if ((getDeletePhraseSetMethod = AdaptationGrpc.getDeletePhraseSetMethod) == null) { - AdaptationGrpc.getDeletePhraseSetMethod = getDeletePhraseSetMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeletePhraseSet")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor(new AdaptationMethodDescriptorSupplier("DeletePhraseSet")) - .build(); - } - } - } - return getDeletePhraseSetMethod; - } - - private static volatile io.grpc.MethodDescriptor getCreateCustomClassMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateCustomClass", - requestType = com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest.class, - responseType = com.google.cloud.speech.v1p1beta1.CustomClass.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateCustomClassMethod() { - io.grpc.MethodDescriptor getCreateCustomClassMethod; - if ((getCreateCustomClassMethod = AdaptationGrpc.getCreateCustomClassMethod) == null) { - synchronized (AdaptationGrpc.class) { - if ((getCreateCustomClassMethod = AdaptationGrpc.getCreateCustomClassMethod) == null) { - AdaptationGrpc.getCreateCustomClassMethod = getCreateCustomClassMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateCustomClass")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v1p1beta1.CustomClass.getDefaultInstance())) - .setSchemaDescriptor(new AdaptationMethodDescriptorSupplier("CreateCustomClass")) - .build(); - } - } - } - return getCreateCustomClassMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetCustomClassMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetCustomClass", - requestType = com.google.cloud.speech.v1p1beta1.GetCustomClassRequest.class, - responseType = com.google.cloud.speech.v1p1beta1.CustomClass.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetCustomClassMethod() { - io.grpc.MethodDescriptor getGetCustomClassMethod; - if ((getGetCustomClassMethod = AdaptationGrpc.getGetCustomClassMethod) == null) { - synchronized (AdaptationGrpc.class) { - if ((getGetCustomClassMethod = AdaptationGrpc.getGetCustomClassMethod) == null) { - AdaptationGrpc.getGetCustomClassMethod = getGetCustomClassMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetCustomClass")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v1p1beta1.GetCustomClassRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v1p1beta1.CustomClass.getDefaultInstance())) - .setSchemaDescriptor(new AdaptationMethodDescriptorSupplier("GetCustomClass")) - .build(); - } - } - } - return getGetCustomClassMethod; - } - - private static volatile io.grpc.MethodDescriptor getListCustomClassesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListCustomClasses", - requestType = com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest.class, - responseType = com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListCustomClassesMethod() { - io.grpc.MethodDescriptor getListCustomClassesMethod; - if ((getListCustomClassesMethod = AdaptationGrpc.getListCustomClassesMethod) == null) { - synchronized (AdaptationGrpc.class) { - if ((getListCustomClassesMethod = AdaptationGrpc.getListCustomClassesMethod) == null) { - AdaptationGrpc.getListCustomClassesMethod = getListCustomClassesMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListCustomClasses")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse.getDefaultInstance())) - .setSchemaDescriptor(new AdaptationMethodDescriptorSupplier("ListCustomClasses")) - .build(); - } - } - } - return getListCustomClassesMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpdateCustomClassMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateCustomClass", - requestType = com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest.class, - responseType = com.google.cloud.speech.v1p1beta1.CustomClass.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateCustomClassMethod() { - io.grpc.MethodDescriptor getUpdateCustomClassMethod; - if ((getUpdateCustomClassMethod = AdaptationGrpc.getUpdateCustomClassMethod) == null) { - synchronized (AdaptationGrpc.class) { - if ((getUpdateCustomClassMethod = AdaptationGrpc.getUpdateCustomClassMethod) == null) { - AdaptationGrpc.getUpdateCustomClassMethod = getUpdateCustomClassMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateCustomClass")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v1p1beta1.CustomClass.getDefaultInstance())) - .setSchemaDescriptor(new AdaptationMethodDescriptorSupplier("UpdateCustomClass")) - .build(); - } - } - } - return getUpdateCustomClassMethod; - } - - private static volatile io.grpc.MethodDescriptor getDeleteCustomClassMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteCustomClass", - requestType = com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeleteCustomClassMethod() { - io.grpc.MethodDescriptor getDeleteCustomClassMethod; - if ((getDeleteCustomClassMethod = AdaptationGrpc.getDeleteCustomClassMethod) == null) { - synchronized (AdaptationGrpc.class) { - if ((getDeleteCustomClassMethod = AdaptationGrpc.getDeleteCustomClassMethod) == null) { - AdaptationGrpc.getDeleteCustomClassMethod = getDeleteCustomClassMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteCustomClass")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor(new AdaptationMethodDescriptorSupplier("DeleteCustomClass")) - .build(); - } - } - } - return getDeleteCustomClassMethod; - } - - /** - * Creates a new async stub that supports all call types for the service - */ - public static AdaptationStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public AdaptationStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AdaptationStub(channel, callOptions); - } - }; - return AdaptationStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static AdaptationBlockingStub newBlockingStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public AdaptationBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AdaptationBlockingStub(channel, callOptions); - } - }; - return AdaptationBlockingStub.newStub(factory, channel); - } - - /** - * Creates a new ListenableFuture-style stub that supports unary calls on the service - */ - public static AdaptationFutureStub newFutureStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public AdaptationFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AdaptationFutureStub(channel, callOptions); - } - }; - return AdaptationFutureStub.newStub(factory, channel); - } - - /** - *
-   * Service that implements Google Cloud Speech Adaptation API.
-   * 
- */ - public static abstract class AdaptationImplBase implements io.grpc.BindableService { - - /** - *
-     * Create a set of phrase hints. Each item in the set can be a single word or
-     * a multi-word phrase. The items in the PhraseSet are favored by the
-     * recognition model when you send a call that includes the PhraseSet.
-     * 
- */ - public void createPhraseSet(com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreatePhraseSetMethod(), responseObserver); - } - - /** - *
-     * Get a phrase set.
-     * 
- */ - public void getPhraseSet(com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetPhraseSetMethod(), responseObserver); - } - - /** - *
-     * List phrase sets.
-     * 
- */ - public void listPhraseSet(com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListPhraseSetMethod(), responseObserver); - } - - /** - *
-     * Update a phrase set.
-     * 
- */ - public void updatePhraseSet(com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdatePhraseSetMethod(), responseObserver); - } - - /** - *
-     * Delete a phrase set.
-     * 
- */ - public void deletePhraseSet(com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeletePhraseSetMethod(), responseObserver); - } - - /** - *
-     * Create a custom class.
-     * 
- */ - public void createCustomClass(com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateCustomClassMethod(), responseObserver); - } - - /** - *
-     * Get a custom class.
-     * 
- */ - public void getCustomClass(com.google.cloud.speech.v1p1beta1.GetCustomClassRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetCustomClassMethod(), responseObserver); - } - - /** - *
-     * List custom classes.
-     * 
- */ - public void listCustomClasses(com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListCustomClassesMethod(), responseObserver); - } - - /** - *
-     * Update a custom class.
-     * 
- */ - public void updateCustomClass(com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateCustomClassMethod(), responseObserver); - } - - /** - *
-     * Delete a custom class.
-     * 
- */ - public void deleteCustomClass(com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteCustomClassMethod(), responseObserver); - } - - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getCreatePhraseSetMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest, - com.google.cloud.speech.v1p1beta1.PhraseSet>( - this, METHODID_CREATE_PHRASE_SET))) - .addMethod( - getGetPhraseSetMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest, - com.google.cloud.speech.v1p1beta1.PhraseSet>( - this, METHODID_GET_PHRASE_SET))) - .addMethod( - getListPhraseSetMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest, - com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse>( - this, METHODID_LIST_PHRASE_SET))) - .addMethod( - getUpdatePhraseSetMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest, - com.google.cloud.speech.v1p1beta1.PhraseSet>( - this, METHODID_UPDATE_PHRASE_SET))) - .addMethod( - getDeletePhraseSetMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest, - com.google.protobuf.Empty>( - this, METHODID_DELETE_PHRASE_SET))) - .addMethod( - getCreateCustomClassMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest, - com.google.cloud.speech.v1p1beta1.CustomClass>( - this, METHODID_CREATE_CUSTOM_CLASS))) - .addMethod( - getGetCustomClassMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.speech.v1p1beta1.GetCustomClassRequest, - com.google.cloud.speech.v1p1beta1.CustomClass>( - this, METHODID_GET_CUSTOM_CLASS))) - .addMethod( - getListCustomClassesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest, - com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse>( - this, METHODID_LIST_CUSTOM_CLASSES))) - .addMethod( - getUpdateCustomClassMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest, - com.google.cloud.speech.v1p1beta1.CustomClass>( - this, METHODID_UPDATE_CUSTOM_CLASS))) - .addMethod( - getDeleteCustomClassMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest, - com.google.protobuf.Empty>( - this, METHODID_DELETE_CUSTOM_CLASS))) - .build(); - } - } - - /** - *
-   * Service that implements Google Cloud Speech Adaptation API.
-   * 
- */ - public static final class AdaptationStub extends io.grpc.stub.AbstractAsyncStub { - private AdaptationStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected AdaptationStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AdaptationStub(channel, callOptions); - } - - /** - *
-     * Create a set of phrase hints. Each item in the set can be a single word or
-     * a multi-word phrase. The items in the PhraseSet are favored by the
-     * recognition model when you send a call that includes the PhraseSet.
-     * 
- */ - public void createPhraseSet(com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreatePhraseSetMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Get a phrase set.
-     * 
- */ - public void getPhraseSet(com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetPhraseSetMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * List phrase sets.
-     * 
- */ - public void listPhraseSet(com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListPhraseSetMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Update a phrase set.
-     * 
- */ - public void updatePhraseSet(com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdatePhraseSetMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Delete a phrase set.
-     * 
- */ - public void deletePhraseSet(com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeletePhraseSetMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Create a custom class.
-     * 
- */ - public void createCustomClass(com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateCustomClassMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Get a custom class.
-     * 
- */ - public void getCustomClass(com.google.cloud.speech.v1p1beta1.GetCustomClassRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetCustomClassMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * List custom classes.
-     * 
- */ - public void listCustomClasses(com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListCustomClassesMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Update a custom class.
-     * 
- */ - public void updateCustomClass(com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateCustomClassMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Delete a custom class.
-     * 
- */ - public void deleteCustomClass(com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteCustomClassMethod(), getCallOptions()), request, responseObserver); - } - } - - /** - *
-   * Service that implements Google Cloud Speech Adaptation API.
-   * 
- */ - public static final class AdaptationBlockingStub extends io.grpc.stub.AbstractBlockingStub { - private AdaptationBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected AdaptationBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AdaptationBlockingStub(channel, callOptions); - } - - /** - *
-     * Create a set of phrase hints. Each item in the set can be a single word or
-     * a multi-word phrase. The items in the PhraseSet are favored by the
-     * recognition model when you send a call that includes the PhraseSet.
-     * 
- */ - public com.google.cloud.speech.v1p1beta1.PhraseSet createPhraseSet(com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreatePhraseSetMethod(), getCallOptions(), request); - } - - /** - *
-     * Get a phrase set.
-     * 
- */ - public com.google.cloud.speech.v1p1beta1.PhraseSet getPhraseSet(com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetPhraseSetMethod(), getCallOptions(), request); - } - - /** - *
-     * List phrase sets.
-     * 
- */ - public com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse listPhraseSet(com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListPhraseSetMethod(), getCallOptions(), request); - } - - /** - *
-     * Update a phrase set.
-     * 
- */ - public com.google.cloud.speech.v1p1beta1.PhraseSet updatePhraseSet(com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdatePhraseSetMethod(), getCallOptions(), request); - } - - /** - *
-     * Delete a phrase set.
-     * 
- */ - public com.google.protobuf.Empty deletePhraseSet(com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeletePhraseSetMethod(), getCallOptions(), request); - } - - /** - *
-     * Create a custom class.
-     * 
- */ - public com.google.cloud.speech.v1p1beta1.CustomClass createCustomClass(com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateCustomClassMethod(), getCallOptions(), request); - } - - /** - *
-     * Get a custom class.
-     * 
- */ - public com.google.cloud.speech.v1p1beta1.CustomClass getCustomClass(com.google.cloud.speech.v1p1beta1.GetCustomClassRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetCustomClassMethod(), getCallOptions(), request); - } - - /** - *
-     * List custom classes.
-     * 
- */ - public com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse listCustomClasses(com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListCustomClassesMethod(), getCallOptions(), request); - } - - /** - *
-     * Update a custom class.
-     * 
- */ - public com.google.cloud.speech.v1p1beta1.CustomClass updateCustomClass(com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateCustomClassMethod(), getCallOptions(), request); - } - - /** - *
-     * Delete a custom class.
-     * 
- */ - public com.google.protobuf.Empty deleteCustomClass(com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteCustomClassMethod(), getCallOptions(), request); - } - } - - /** - *
-   * Service that implements Google Cloud Speech Adaptation API.
-   * 
- */ - public static final class AdaptationFutureStub extends io.grpc.stub.AbstractFutureStub { - private AdaptationFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected AdaptationFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AdaptationFutureStub(channel, callOptions); - } - - /** - *
-     * Create a set of phrase hints. Each item in the set can be a single word or
-     * a multi-word phrase. The items in the PhraseSet are favored by the
-     * recognition model when you send a call that includes the PhraseSet.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture createPhraseSet( - com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreatePhraseSetMethod(), getCallOptions()), request); - } - - /** - *
-     * Get a phrase set.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getPhraseSet( - com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetPhraseSetMethod(), getCallOptions()), request); - } - - /** - *
-     * List phrase sets.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listPhraseSet( - com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListPhraseSetMethod(), getCallOptions()), request); - } - - /** - *
-     * Update a phrase set.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture updatePhraseSet( - com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdatePhraseSetMethod(), getCallOptions()), request); - } - - /** - *
-     * Delete a phrase set.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture deletePhraseSet( - com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeletePhraseSetMethod(), getCallOptions()), request); - } - - /** - *
-     * Create a custom class.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture createCustomClass( - com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateCustomClassMethod(), getCallOptions()), request); - } - - /** - *
-     * Get a custom class.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getCustomClass( - com.google.cloud.speech.v1p1beta1.GetCustomClassRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetCustomClassMethod(), getCallOptions()), request); - } - - /** - *
-     * List custom classes.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listCustomClasses( - com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListCustomClassesMethod(), getCallOptions()), request); - } - - /** - *
-     * Update a custom class.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture updateCustomClass( - com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateCustomClassMethod(), getCallOptions()), request); - } - - /** - *
-     * Delete a custom class.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture deleteCustomClass( - com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteCustomClassMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_CREATE_PHRASE_SET = 0; - private static final int METHODID_GET_PHRASE_SET = 1; - private static final int METHODID_LIST_PHRASE_SET = 2; - private static final int METHODID_UPDATE_PHRASE_SET = 3; - private static final int METHODID_DELETE_PHRASE_SET = 4; - private static final int METHODID_CREATE_CUSTOM_CLASS = 5; - private static final int METHODID_GET_CUSTOM_CLASS = 6; - private static final int METHODID_LIST_CUSTOM_CLASSES = 7; - private static final int METHODID_UPDATE_CUSTOM_CLASS = 8; - private static final int METHODID_DELETE_CUSTOM_CLASS = 9; - - private static final class MethodHandlers implements - io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final AdaptationImplBase serviceImpl; - private final int methodId; - - MethodHandlers(AdaptationImplBase serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_CREATE_PHRASE_SET: - serviceImpl.createPhraseSet((com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_PHRASE_SET: - serviceImpl.getPhraseSet((com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_PHRASE_SET: - serviceImpl.listPhraseSet((com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_PHRASE_SET: - serviceImpl.updatePhraseSet((com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_PHRASE_SET: - serviceImpl.deletePhraseSet((com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_CUSTOM_CLASS: - serviceImpl.createCustomClass((com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_CUSTOM_CLASS: - serviceImpl.getCustomClass((com.google.cloud.speech.v1p1beta1.GetCustomClassRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_CUSTOM_CLASSES: - serviceImpl.listCustomClasses((com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_CUSTOM_CLASS: - serviceImpl.updateCustomClass((com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_CUSTOM_CLASS: - serviceImpl.deleteCustomClass((com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - default: - throw new AssertionError(); - } - } - } - - private static abstract class AdaptationBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { - AdaptationBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("Adaptation"); - } - } - - private static final class AdaptationFileDescriptorSupplier - extends AdaptationBaseDescriptorSupplier { - AdaptationFileDescriptorSupplier() {} - } - - private static final class AdaptationMethodDescriptorSupplier - extends AdaptationBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - AdaptationMethodDescriptorSupplier(String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (AdaptationGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new AdaptationFileDescriptorSupplier()) - .addMethod(getCreatePhraseSetMethod()) - .addMethod(getGetPhraseSetMethod()) - .addMethod(getListPhraseSetMethod()) - .addMethod(getUpdatePhraseSetMethod()) - .addMethod(getDeletePhraseSetMethod()) - .addMethod(getCreateCustomClassMethod()) - .addMethod(getGetCustomClassMethod()) - .addMethod(getListCustomClassesMethod()) - .addMethod(getUpdateCustomClassMethod()) - .addMethod(getDeleteCustomClassMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/owl-bot-staging/v1p1beta1/grpc-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechGrpc.java b/owl-bot-staging/v1p1beta1/grpc-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechGrpc.java deleted file mode 100644 index 5879fdc44..000000000 --- a/owl-bot-staging/v1p1beta1/grpc-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechGrpc.java +++ /dev/null @@ -1,479 +0,0 @@ -package com.google.cloud.speech.v1p1beta1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - *
- * Service that implements Google Cloud Speech API.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/speech/v1p1beta1/cloud_speech.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class SpeechGrpc { - - private SpeechGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.speech.v1p1beta1.Speech"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor getRecognizeMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "Recognize", - requestType = com.google.cloud.speech.v1p1beta1.RecognizeRequest.class, - responseType = com.google.cloud.speech.v1p1beta1.RecognizeResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getRecognizeMethod() { - io.grpc.MethodDescriptor getRecognizeMethod; - if ((getRecognizeMethod = SpeechGrpc.getRecognizeMethod) == null) { - synchronized (SpeechGrpc.class) { - if ((getRecognizeMethod = SpeechGrpc.getRecognizeMethod) == null) { - SpeechGrpc.getRecognizeMethod = getRecognizeMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Recognize")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v1p1beta1.RecognizeRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v1p1beta1.RecognizeResponse.getDefaultInstance())) - .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("Recognize")) - .build(); - } - } - } - return getRecognizeMethod; - } - - private static volatile io.grpc.MethodDescriptor getLongRunningRecognizeMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "LongRunningRecognize", - requestType = com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getLongRunningRecognizeMethod() { - io.grpc.MethodDescriptor getLongRunningRecognizeMethod; - if ((getLongRunningRecognizeMethod = SpeechGrpc.getLongRunningRecognizeMethod) == null) { - synchronized (SpeechGrpc.class) { - if ((getLongRunningRecognizeMethod = SpeechGrpc.getLongRunningRecognizeMethod) == null) { - SpeechGrpc.getLongRunningRecognizeMethod = getLongRunningRecognizeMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "LongRunningRecognize")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("LongRunningRecognize")) - .build(); - } - } - } - return getLongRunningRecognizeMethod; - } - - private static volatile io.grpc.MethodDescriptor getStreamingRecognizeMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "StreamingRecognize", - requestType = com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest.class, - responseType = com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING) - public static io.grpc.MethodDescriptor getStreamingRecognizeMethod() { - io.grpc.MethodDescriptor getStreamingRecognizeMethod; - if ((getStreamingRecognizeMethod = SpeechGrpc.getStreamingRecognizeMethod) == null) { - synchronized (SpeechGrpc.class) { - if ((getStreamingRecognizeMethod = SpeechGrpc.getStreamingRecognizeMethod) == null) { - SpeechGrpc.getStreamingRecognizeMethod = getStreamingRecognizeMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StreamingRecognize")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.getDefaultInstance())) - .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("StreamingRecognize")) - .build(); - } - } - } - return getStreamingRecognizeMethod; - } - - /** - * Creates a new async stub that supports all call types for the service - */ - public static SpeechStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public SpeechStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SpeechStub(channel, callOptions); - } - }; - return SpeechStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static SpeechBlockingStub newBlockingStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public SpeechBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SpeechBlockingStub(channel, callOptions); - } - }; - return SpeechBlockingStub.newStub(factory, channel); - } - - /** - * Creates a new ListenableFuture-style stub that supports unary calls on the service - */ - public static SpeechFutureStub newFutureStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public SpeechFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SpeechFutureStub(channel, callOptions); - } - }; - return SpeechFutureStub.newStub(factory, channel); - } - - /** - *
-   * Service that implements Google Cloud Speech API.
-   * 
- */ - public static abstract class SpeechImplBase implements io.grpc.BindableService { - - /** - *
-     * Performs synchronous speech recognition: receive results after all audio
-     * has been sent and processed.
-     * 
- */ - public void recognize(com.google.cloud.speech.v1p1beta1.RecognizeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRecognizeMethod(), responseObserver); - } - - /** - *
-     * Performs asynchronous speech recognition: receive results via the
-     * google.longrunning.Operations interface. Returns either an
-     * `Operation.error` or an `Operation.response` which contains
-     * a `LongRunningRecognizeResponse` message.
-     * For more information on asynchronous speech recognition, see the
-     * [how-to](https://cloud.google.com/speech-to-text/docs/async-recognize).
-     * 
- */ - public void longRunningRecognize(com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getLongRunningRecognizeMethod(), responseObserver); - } - - /** - *
-     * Performs bidirectional streaming speech recognition: receive results while
-     * sending audio. This method is only available via the gRPC API (not REST).
-     * 
- */ - public io.grpc.stub.StreamObserver streamingRecognize( - io.grpc.stub.StreamObserver responseObserver) { - return io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall(getStreamingRecognizeMethod(), responseObserver); - } - - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getRecognizeMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.speech.v1p1beta1.RecognizeRequest, - com.google.cloud.speech.v1p1beta1.RecognizeResponse>( - this, METHODID_RECOGNIZE))) - .addMethod( - getLongRunningRecognizeMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest, - com.google.longrunning.Operation>( - this, METHODID_LONG_RUNNING_RECOGNIZE))) - .addMethod( - getStreamingRecognizeMethod(), - io.grpc.stub.ServerCalls.asyncBidiStreamingCall( - new MethodHandlers< - com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest, - com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse>( - this, METHODID_STREAMING_RECOGNIZE))) - .build(); - } - } - - /** - *
-   * Service that implements Google Cloud Speech API.
-   * 
- */ - public static final class SpeechStub extends io.grpc.stub.AbstractAsyncStub { - private SpeechStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected SpeechStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SpeechStub(channel, callOptions); - } - - /** - *
-     * Performs synchronous speech recognition: receive results after all audio
-     * has been sent and processed.
-     * 
- */ - public void recognize(com.google.cloud.speech.v1p1beta1.RecognizeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getRecognizeMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Performs asynchronous speech recognition: receive results via the
-     * google.longrunning.Operations interface. Returns either an
-     * `Operation.error` or an `Operation.response` which contains
-     * a `LongRunningRecognizeResponse` message.
-     * For more information on asynchronous speech recognition, see the
-     * [how-to](https://cloud.google.com/speech-to-text/docs/async-recognize).
-     * 
- */ - public void longRunningRecognize(com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getLongRunningRecognizeMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Performs bidirectional streaming speech recognition: receive results while
-     * sending audio. This method is only available via the gRPC API (not REST).
-     * 
- */ - public io.grpc.stub.StreamObserver streamingRecognize( - io.grpc.stub.StreamObserver responseObserver) { - return io.grpc.stub.ClientCalls.asyncBidiStreamingCall( - getChannel().newCall(getStreamingRecognizeMethod(), getCallOptions()), responseObserver); - } - } - - /** - *
-   * Service that implements Google Cloud Speech API.
-   * 
- */ - public static final class SpeechBlockingStub extends io.grpc.stub.AbstractBlockingStub { - private SpeechBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected SpeechBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SpeechBlockingStub(channel, callOptions); - } - - /** - *
-     * Performs synchronous speech recognition: receive results after all audio
-     * has been sent and processed.
-     * 
- */ - public com.google.cloud.speech.v1p1beta1.RecognizeResponse recognize(com.google.cloud.speech.v1p1beta1.RecognizeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getRecognizeMethod(), getCallOptions(), request); - } - - /** - *
-     * Performs asynchronous speech recognition: receive results via the
-     * google.longrunning.Operations interface. Returns either an
-     * `Operation.error` or an `Operation.response` which contains
-     * a `LongRunningRecognizeResponse` message.
-     * For more information on asynchronous speech recognition, see the
-     * [how-to](https://cloud.google.com/speech-to-text/docs/async-recognize).
-     * 
- */ - public com.google.longrunning.Operation longRunningRecognize(com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getLongRunningRecognizeMethod(), getCallOptions(), request); - } - } - - /** - *
-   * Service that implements Google Cloud Speech API.
-   * 
- */ - public static final class SpeechFutureStub extends io.grpc.stub.AbstractFutureStub { - private SpeechFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected SpeechFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SpeechFutureStub(channel, callOptions); - } - - /** - *
-     * Performs synchronous speech recognition: receive results after all audio
-     * has been sent and processed.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture recognize( - com.google.cloud.speech.v1p1beta1.RecognizeRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getRecognizeMethod(), getCallOptions()), request); - } - - /** - *
-     * Performs asynchronous speech recognition: receive results via the
-     * google.longrunning.Operations interface. Returns either an
-     * `Operation.error` or an `Operation.response` which contains
-     * a `LongRunningRecognizeResponse` message.
-     * For more information on asynchronous speech recognition, see the
-     * [how-to](https://cloud.google.com/speech-to-text/docs/async-recognize).
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture longRunningRecognize( - com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getLongRunningRecognizeMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_RECOGNIZE = 0; - private static final int METHODID_LONG_RUNNING_RECOGNIZE = 1; - private static final int METHODID_STREAMING_RECOGNIZE = 2; - - private static final class MethodHandlers implements - io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final SpeechImplBase serviceImpl; - private final int methodId; - - MethodHandlers(SpeechImplBase serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_RECOGNIZE: - serviceImpl.recognize((com.google.cloud.speech.v1p1beta1.RecognizeRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LONG_RUNNING_RECOGNIZE: - serviceImpl.longRunningRecognize((com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_STREAMING_RECOGNIZE: - return (io.grpc.stub.StreamObserver) serviceImpl.streamingRecognize( - (io.grpc.stub.StreamObserver) responseObserver); - default: - throw new AssertionError(); - } - } - } - - private static abstract class SpeechBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { - SpeechBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("Speech"); - } - } - - private static final class SpeechFileDescriptorSupplier - extends SpeechBaseDescriptorSupplier { - SpeechFileDescriptorSupplier() {} - } - - private static final class SpeechMethodDescriptorSupplier - extends SpeechBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - SpeechMethodDescriptorSupplier(String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (SpeechGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new SpeechFileDescriptorSupplier()) - .addMethod(getRecognizeMethod()) - .addMethod(getLongRunningRecognizeMethod()) - .addMethod(getStreamingRecognizeMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeletePhraseSetRequestOrBuilder.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeletePhraseSetRequestOrBuilder.java deleted file mode 100644 index 246c425ca..000000000 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeletePhraseSetRequestOrBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/speech/v1p1beta1/cloud_speech_adaptation.proto - -package com.google.cloud.speech.v1p1beta1; - -public interface DeletePhraseSetRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1p1beta1.DeletePhraseSetRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The name of the phrase set to delete. Format:
-   * `projects/{project}/locations/{location}/phraseSets/{phrase_set}`
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The name of the phrase set to delete. Format:
-   * `projects/{project}/locations/{location}/phraseSets/{phrase_set}`
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetCustomClassRequestOrBuilder.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetCustomClassRequestOrBuilder.java deleted file mode 100644 index 721b97fda..000000000 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetCustomClassRequestOrBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/speech/v1p1beta1/cloud_speech_adaptation.proto - -package com.google.cloud.speech.v1p1beta1; - -public interface GetCustomClassRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1p1beta1.GetCustomClassRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The name of the custom class to retrieve. Format:
-   * `projects/{project}/locations/{location}/customClasses/{custom_class}`
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The name of the custom class to retrieve. Format:
-   * `projects/{project}/locations/{location}/customClasses/{custom_class}`
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeRequestOrBuilder.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeRequestOrBuilder.java deleted file mode 100644 index 2e594dfdd..000000000 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeRequestOrBuilder.java +++ /dev/null @@ -1,66 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/speech/v1p1beta1/cloud_speech.proto - -package com.google.cloud.speech.v1p1beta1; - -public interface RecognizeRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1p1beta1.RecognizeRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Provides information to the recognizer that specifies how to
-   * process the request.
-   * 
- * - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the config field is set. - */ - boolean hasConfig(); - /** - *
-   * Required. Provides information to the recognizer that specifies how to
-   * process the request.
-   * 
- * - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The config. - */ - com.google.cloud.speech.v1p1beta1.RecognitionConfig getConfig(); - /** - *
-   * Required. Provides information to the recognizer that specifies how to
-   * process the request.
-   * 
- * - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - com.google.cloud.speech.v1p1beta1.RecognitionConfigOrBuilder getConfigOrBuilder(); - - /** - *
-   * Required. The audio data to be recognized.
-   * 
- * - * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the audio field is set. - */ - boolean hasAudio(); - /** - *
-   * Required. The audio data to be recognized.
-   * 
- * - * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The audio. - */ - com.google.cloud.speech.v1p1beta1.RecognitionAudio getAudio(); - /** - *
-   * Required. The audio data to be recognized.
-   * 
- * - * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - com.google.cloud.speech.v1p1beta1.RecognitionAudioOrBuilder getAudioOrBuilder(); -} diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptationProto.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptationProto.java deleted file mode 100644 index 0322b2c20..000000000 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptationProto.java +++ /dev/null @@ -1,292 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/speech/v1p1beta1/cloud_speech_adaptation.proto - -package com.google.cloud.speech.v1p1beta1; - -public final class SpeechAdaptationProto { - private SpeechAdaptationProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1p1beta1_CreatePhraseSetRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1p1beta1_CreatePhraseSetRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1p1beta1_UpdatePhraseSetRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1p1beta1_UpdatePhraseSetRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1p1beta1_GetPhraseSetRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1p1beta1_GetPhraseSetRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1p1beta1_ListPhraseSetRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1p1beta1_ListPhraseSetRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1p1beta1_ListPhraseSetResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1p1beta1_ListPhraseSetResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1p1beta1_DeletePhraseSetRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1p1beta1_DeletePhraseSetRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1p1beta1_CreateCustomClassRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1p1beta1_CreateCustomClassRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1p1beta1_UpdateCustomClassRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1p1beta1_UpdateCustomClassRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1p1beta1_GetCustomClassRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1p1beta1_GetCustomClassRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1p1beta1_ListCustomClassesRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1p1beta1_ListCustomClassesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1p1beta1_ListCustomClassesResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1p1beta1_ListCustomClassesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1p1beta1_DeleteCustomClassRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1p1beta1_DeleteCustomClassRequest_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n;google/cloud/speech/v1p1beta1/cloud_sp" + - "eech_adaptation.proto\022\035google.cloud.spee" + - "ch.v1p1beta1\032\034google/api/annotations.pro" + - "to\032\027google/api/client.proto\032\037google/api/" + - "field_behavior.proto\032\031google/api/resourc" + - "e.proto\032,google/cloud/speech/v1p1beta1/r" + - "esource.proto\032\033google/protobuf/empty.pro" + - "to\032 google/protobuf/field_mask.proto\"\260\001\n" + - "\026CreatePhraseSetRequest\0227\n\006parent\030\001 \001(\tB" + - "\'\340A\002\372A!\022\037speech.googleapis.com/PhraseSet" + - "\022\032\n\rphrase_set_id\030\002 \001(\tB\003\340A\002\022A\n\nphrase_s" + - "et\030\003 \001(\0132(.google.cloud.speech.v1p1beta1" + - ".PhraseSetB\003\340A\002\"\214\001\n\026UpdatePhraseSetReque" + - "st\022A\n\nphrase_set\030\001 \001(\0132(.google.cloud.sp" + - "eech.v1p1beta1.PhraseSetB\003\340A\002\022/\n\013update_" + - "mask\030\002 \001(\0132\032.google.protobuf.FieldMask\"L" + - "\n\023GetPhraseSetRequest\0225\n\004name\030\001 \001(\tB\'\340A\002" + - "\372A!\n\037speech.googleapis.com/PhraseSet\"v\n\024" + - "ListPhraseSetRequest\0227\n\006parent\030\001 \001(\tB\'\340A" + - "\002\372A!\022\037speech.googleapis.com/PhraseSet\022\021\n" + - "\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"o\n\025" + - "ListPhraseSetResponse\022=\n\013phrase_sets\030\001 \003" + - "(\0132(.google.cloud.speech.v1p1beta1.Phras" + - "eSet\022\027\n\017next_page_token\030\002 \001(\t\"O\n\026DeleteP" + - "hraseSetRequest\0225\n\004name\030\001 \001(\tB\'\340A\002\372A!\n\037s" + - "peech.googleapis.com/PhraseSet\"\272\001\n\030Creat" + - "eCustomClassRequest\0229\n\006parent\030\001 \001(\tB)\340A\002" + - "\372A#\022!speech.googleapis.com/CustomClass\022\034" + - "\n\017custom_class_id\030\002 \001(\tB\003\340A\002\022E\n\014custom_c" + - "lass\030\003 \001(\0132*.google.cloud.speech.v1p1bet" + - "a1.CustomClassB\003\340A\002\"\222\001\n\030UpdateCustomClas" + - "sRequest\022E\n\014custom_class\030\001 \001(\0132*.google." + - "cloud.speech.v1p1beta1.CustomClassB\003\340A\002\022" + - "/\n\013update_mask\030\002 \001(\0132\032.google.protobuf.F" + - "ieldMask\"P\n\025GetCustomClassRequest\0227\n\004nam" + - "e\030\001 \001(\tB)\340A\002\372A#\n!speech.googleapis.com/C" + - "ustomClass\"|\n\030ListCustomClassesRequest\0229" + - "\n\006parent\030\001 \001(\tB)\340A\002\372A#\022!speech.googleapi" + - "s.com/CustomClass\022\021\n\tpage_size\030\002 \001(\005\022\022\n\n" + - "page_token\030\003 \001(\t\"x\n\031ListCustomClassesRes" + - "ponse\022B\n\016custom_classes\030\001 \003(\0132*.google.c" + - "loud.speech.v1p1beta1.CustomClass\022\027\n\017nex" + - "t_page_token\030\002 \001(\t\"S\n\030DeleteCustomClassR" + - "equest\0227\n\004name\030\001 \001(\tB)\340A\002\372A#\n!speech.goo" + - "gleapis.com/CustomClass2\322\020\n\nAdaptation\022\326" + - "\001\n\017CreatePhraseSet\0225.google.cloud.speech" + - ".v1p1beta1.CreatePhraseSetRequest\032(.goog" + - "le.cloud.speech.v1p1beta1.PhraseSet\"b\202\323\344" + - "\223\002:\"5/v1p1beta1/{parent=projects/*/locat" + - "ions/*}/phraseSets:\001*\332A\037parent,phrase_se" + - "t,phrase_set_id\022\262\001\n\014GetPhraseSet\0222.googl" + - "e.cloud.speech.v1p1beta1.GetPhraseSetReq" + - "uest\032(.google.cloud.speech.v1p1beta1.Phr" + - "aseSet\"D\202\323\344\223\0027\0225/v1p1beta1/{name=project" + - "s/*/locations/*/phraseSets/*}\332A\004name\022\302\001\n" + - "\rListPhraseSet\0223.google.cloud.speech.v1p" + - "1beta1.ListPhraseSetRequest\0324.google.clo" + - "ud.speech.v1p1beta1.ListPhraseSetRespons" + - "e\"F\202\323\344\223\0027\0225/v1p1beta1/{parent=projects/*" + - "/locations/*}/phraseSets\332A\006parent\022\341\001\n\017Up" + - "datePhraseSet\0225.google.cloud.speech.v1p1" + - "beta1.UpdatePhraseSetRequest\032(.google.cl" + - "oud.speech.v1p1beta1.PhraseSet\"m\202\323\344\223\002N2@" + - "/v1p1beta1/{phrase_set.name=projects/*/l" + - "ocations/*/phraseSets/*}:\nphrase_set\332A\026p" + - "hrase_set,update_mask\022\246\001\n\017DeletePhraseSe" + - "t\0225.google.cloud.speech.v1p1beta1.Delete" + - "PhraseSetRequest\032\026.google.protobuf.Empty" + - "\"D\202\323\344\223\0027*5/v1p1beta1/{name=projects/*/lo" + - "cations/*/phraseSets/*}\332A\004name\022\343\001\n\021Creat" + - "eCustomClass\0227.google.cloud.speech.v1p1b" + - "eta1.CreateCustomClassRequest\032*.google.c" + - "loud.speech.v1p1beta1.CustomClass\"i\202\323\344\223\002" + - "=\"8/v1p1beta1/{parent=projects/*/locatio" + - "ns/*}/customClasses:\001*\332A#parent,custom_c" + - "lass,custom_class_id\022\273\001\n\016GetCustomClass\022" + - "4.google.cloud.speech.v1p1beta1.GetCusto" + - "mClassRequest\032*.google.cloud.speech.v1p1" + - "beta1.CustomClass\"G\202\323\344\223\002:\0228/v1p1beta1/{n" + - "ame=projects/*/locations/*/customClasses" + - "/*}\332A\004name\022\321\001\n\021ListCustomClasses\0227.googl" + - "e.cloud.speech.v1p1beta1.ListCustomClass" + - "esRequest\0328.google.cloud.speech.v1p1beta" + - "1.ListCustomClassesResponse\"I\202\323\344\223\002:\0228/v1" + - "p1beta1/{parent=projects/*/locations/*}/" + - "customClasses\332A\006parent\022\360\001\n\021UpdateCustomC" + - "lass\0227.google.cloud.speech.v1p1beta1.Upd" + - "ateCustomClassRequest\032*.google.cloud.spe" + - "ech.v1p1beta1.CustomClass\"v\202\323\344\223\002U2E/v1p1" + - "beta1/{custom_class.name=projects/*/loca" + - "tions/*/customClasses/*}:\014custom_class\332A" + - "\030custom_class,update_mask\022\255\001\n\021DeleteCust" + - "omClass\0227.google.cloud.speech.v1p1beta1." + - "DeleteCustomClassRequest\032\026.google.protob" + - "uf.Empty\"G\202\323\344\223\002:*8/v1p1beta1/{name=proje" + - "cts/*/locations/*/customClasses/*}\332A\004nam" + - "e\032I\312A\025speech.googleapis.com\322A.https://ww" + - "w.googleapis.com/auth/cloud-platformB\212\001\n" + - "!com.google.cloud.speech.v1p1beta1B\025Spee" + - "chAdaptationProtoP\001ZCgoogle.golang.org/g" + - "enproto/googleapis/cloud/speech/v1p1beta" + - "1;speech\370\001\001\242\002\003GCSb\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.cloud.speech.v1p1beta1.SpeechResourceProto.getDescriptor(), - com.google.protobuf.EmptyProto.getDescriptor(), - com.google.protobuf.FieldMaskProto.getDescriptor(), - }); - internal_static_google_cloud_speech_v1p1beta1_CreatePhraseSetRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_speech_v1p1beta1_CreatePhraseSetRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_speech_v1p1beta1_CreatePhraseSetRequest_descriptor, - new java.lang.String[] { "Parent", "PhraseSetId", "PhraseSet", }); - internal_static_google_cloud_speech_v1p1beta1_UpdatePhraseSetRequest_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_speech_v1p1beta1_UpdatePhraseSetRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_speech_v1p1beta1_UpdatePhraseSetRequest_descriptor, - new java.lang.String[] { "PhraseSet", "UpdateMask", }); - internal_static_google_cloud_speech_v1p1beta1_GetPhraseSetRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_speech_v1p1beta1_GetPhraseSetRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_speech_v1p1beta1_GetPhraseSetRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_speech_v1p1beta1_ListPhraseSetRequest_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_speech_v1p1beta1_ListPhraseSetRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_speech_v1p1beta1_ListPhraseSetRequest_descriptor, - new java.lang.String[] { "Parent", "PageSize", "PageToken", }); - internal_static_google_cloud_speech_v1p1beta1_ListPhraseSetResponse_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_speech_v1p1beta1_ListPhraseSetResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_speech_v1p1beta1_ListPhraseSetResponse_descriptor, - new java.lang.String[] { "PhraseSets", "NextPageToken", }); - internal_static_google_cloud_speech_v1p1beta1_DeletePhraseSetRequest_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_speech_v1p1beta1_DeletePhraseSetRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_speech_v1p1beta1_DeletePhraseSetRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_speech_v1p1beta1_CreateCustomClassRequest_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_speech_v1p1beta1_CreateCustomClassRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_speech_v1p1beta1_CreateCustomClassRequest_descriptor, - new java.lang.String[] { "Parent", "CustomClassId", "CustomClass", }); - internal_static_google_cloud_speech_v1p1beta1_UpdateCustomClassRequest_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_speech_v1p1beta1_UpdateCustomClassRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_speech_v1p1beta1_UpdateCustomClassRequest_descriptor, - new java.lang.String[] { "CustomClass", "UpdateMask", }); - internal_static_google_cloud_speech_v1p1beta1_GetCustomClassRequest_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_speech_v1p1beta1_GetCustomClassRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_speech_v1p1beta1_GetCustomClassRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_speech_v1p1beta1_ListCustomClassesRequest_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_speech_v1p1beta1_ListCustomClassesRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_speech_v1p1beta1_ListCustomClassesRequest_descriptor, - new java.lang.String[] { "Parent", "PageSize", "PageToken", }); - internal_static_google_cloud_speech_v1p1beta1_ListCustomClassesResponse_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_speech_v1p1beta1_ListCustomClassesResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_speech_v1p1beta1_ListCustomClassesResponse_descriptor, - new java.lang.String[] { "CustomClasses", "NextPageToken", }); - internal_static_google_cloud_speech_v1p1beta1_DeleteCustomClassRequest_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_cloud_speech_v1p1beta1_DeleteCustomClassRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_speech_v1p1beta1_DeleteCustomClassRequest_descriptor, - new java.lang.String[] { "Name", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ClientProto.defaultHost); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.AnnotationsProto.http); - registry.add(com.google.api.ClientProto.methodSignature); - registry.add(com.google.api.ClientProto.oauthScopes); - registry.add(com.google.api.ResourceProto.resourceReference); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.cloud.speech.v1p1beta1.SpeechResourceProto.getDescriptor(); - com.google.protobuf.EmptyProto.getDescriptor(); - com.google.protobuf.FieldMaskProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechProto.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechProto.java deleted file mode 100644 index fa6b61566..000000000 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechProto.java +++ /dev/null @@ -1,422 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/speech/v1p1beta1/cloud_speech.proto - -package com.google.cloud.speech.v1p1beta1; - -public final class SpeechProto { - private SpeechProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1p1beta1_RecognizeRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1p1beta1_RecognizeRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1p1beta1_TranscriptOutputConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1p1beta1_TranscriptOutputConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1p1beta1_StreamingRecognizeRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1p1beta1_StreamingRecognizeRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1p1beta1_StreamingRecognitionConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1p1beta1_StreamingRecognitionConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1p1beta1_RecognitionConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1p1beta1_RecognitionConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1p1beta1_SpeakerDiarizationConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1p1beta1_SpeakerDiarizationConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1p1beta1_RecognitionMetadata_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1p1beta1_RecognitionMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1p1beta1_SpeechContext_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1p1beta1_SpeechContext_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1p1beta1_RecognitionAudio_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1p1beta1_RecognitionAudio_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1p1beta1_RecognizeResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1p1beta1_RecognizeResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeMetadata_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1p1beta1_StreamingRecognizeResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1p1beta1_StreamingRecognizeResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1p1beta1_StreamingRecognitionResult_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1p1beta1_StreamingRecognitionResult_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1p1beta1_SpeechRecognitionResult_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1p1beta1_SpeechRecognitionResult_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1p1beta1_SpeechRecognitionAlternative_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1p1beta1_SpeechRecognitionAlternative_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1p1beta1_WordInfo_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1p1beta1_WordInfo_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n0google/cloud/speech/v1p1beta1/cloud_sp" + - "eech.proto\022\035google.cloud.speech.v1p1beta" + - "1\032\034google/api/annotations.proto\032\027google/" + - "api/client.proto\032\037google/api/field_behav" + - "ior.proto\032,google/cloud/speech/v1p1beta1" + - "/resource.proto\032#google/longrunning/oper" + - "ations.proto\032\031google/protobuf/any.proto\032" + - "\036google/protobuf/duration.proto\032\037google/" + - "protobuf/timestamp.proto\032\036google/protobu" + - "f/wrappers.proto\032\027google/rpc/status.prot" + - "o\"\236\001\n\020RecognizeRequest\022E\n\006config\030\001 \001(\01320" + - ".google.cloud.speech.v1p1beta1.Recogniti" + - "onConfigB\003\340A\002\022C\n\005audio\030\002 \001(\0132/.google.cl" + - "oud.speech.v1p1beta1.RecognitionAudioB\003\340" + - "A\002\"\374\001\n\033LongRunningRecognizeRequest\022E\n\006co" + - "nfig\030\001 \001(\01320.google.cloud.speech.v1p1bet" + - "a1.RecognitionConfigB\003\340A\002\022C\n\005audio\030\002 \001(\013" + - "2/.google.cloud.speech.v1p1beta1.Recogni" + - "tionAudioB\003\340A\002\022Q\n\routput_config\030\004 \001(\01325." + - "google.cloud.speech.v1p1beta1.Transcript" + - "OutputConfigB\003\340A\001\":\n\026TranscriptOutputCon" + - "fig\022\021\n\007gcs_uri\030\001 \001(\tH\000B\r\n\013output_type\"\240\001" + - "\n\031StreamingRecognizeRequest\022U\n\020streaming" + - "_config\030\001 \001(\01329.google.cloud.speech.v1p1" + - "beta1.StreamingRecognitionConfigH\000\022\027\n\rau" + - "dio_content\030\002 \001(\014H\000B\023\n\021streaming_request" + - "\"\226\001\n\032StreamingRecognitionConfig\022E\n\006confi" + - "g\030\001 \001(\01320.google.cloud.speech.v1p1beta1." + - "RecognitionConfigB\003\340A\002\022\030\n\020single_utteran" + - "ce\030\002 \001(\010\022\027\n\017interim_results\030\003 \001(\010\"\276\t\n\021Re" + - "cognitionConfig\022P\n\010encoding\030\001 \001(\0162>.goog" + - "le.cloud.speech.v1p1beta1.RecognitionCon" + - "fig.AudioEncoding\022\031\n\021sample_rate_hertz\030\002" + - " \001(\005\022\033\n\023audio_channel_count\030\007 \001(\005\022/\n\'ena" + - "ble_separate_recognition_per_channel\030\014 \001" + - "(\010\022\032\n\rlanguage_code\030\003 \001(\tB\003\340A\002\022\"\n\032altern" + - "ative_language_codes\030\022 \003(\t\022\030\n\020max_altern" + - "atives\030\004 \001(\005\022\030\n\020profanity_filter\030\005 \001(\010\022C" + - "\n\nadaptation\030\024 \001(\0132/.google.cloud.speech" + - ".v1p1beta1.SpeechAdaptation\022X\n\030transcrip" + - "t_normalization\030\030 \001(\01326.google.cloud.spe" + - "ech.v1p1beta1.TranscriptNormalization\022E\n" + - "\017speech_contexts\030\006 \003(\0132,.google.cloud.sp" + - "eech.v1p1beta1.SpeechContext\022 \n\030enable_w" + - "ord_time_offsets\030\010 \001(\010\022\036\n\026enable_word_co" + - "nfidence\030\017 \001(\010\022$\n\034enable_automatic_punct" + - "uation\030\013 \001(\010\022=\n\031enable_spoken_punctuatio" + - "n\030\026 \001(\0132\032.google.protobuf.BoolValue\0228\n\024e" + - "nable_spoken_emojis\030\027 \001(\0132\032.google.proto" + - "buf.BoolValue\022&\n\032enable_speaker_diarizat" + - "ion\030\020 \001(\010B\002\030\001\022%\n\031diarization_speaker_cou" + - "nt\030\021 \001(\005B\002\030\001\022S\n\022diarization_config\030\023 \001(\013" + - "27.google.cloud.speech.v1p1beta1.Speaker" + - "DiarizationConfig\022D\n\010metadata\030\t \001(\01322.go" + - "ogle.cloud.speech.v1p1beta1.RecognitionM" + - "etadata\022\r\n\005model\030\r \001(\t\022\024\n\014use_enhanced\030\016" + - " \001(\010\"\243\001\n\rAudioEncoding\022\030\n\024ENCODING_UNSPE" + - "CIFIED\020\000\022\014\n\010LINEAR16\020\001\022\010\n\004FLAC\020\002\022\t\n\005MULA" + - "W\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\tW" + - "EBM_OPUS\020\t\"\220\001\n\030SpeakerDiarizationConfig\022" + - "\"\n\032enable_speaker_diarization\030\001 \001(\010\022\031\n\021m" + - "in_speaker_count\030\002 \001(\005\022\031\n\021max_speaker_co" + - "unt\030\003 \001(\005\022\032\n\013speaker_tag\030\005 \001(\005B\005\030\001\340A\003\"\327\010" + - "\n\023RecognitionMetadata\022\\\n\020interaction_typ" + - "e\030\001 \001(\0162B.google.cloud.speech.v1p1beta1." + - "RecognitionMetadata.InteractionType\022$\n\034i" + - "ndustry_naics_code_of_audio\030\003 \001(\r\022b\n\023mic" + - "rophone_distance\030\004 \001(\0162E.google.cloud.sp" + - "eech.v1p1beta1.RecognitionMetadata.Micro" + - "phoneDistance\022a\n\023original_media_type\030\005 \001" + - "(\0162D.google.cloud.speech.v1p1beta1.Recog" + - "nitionMetadata.OriginalMediaType\022e\n\025reco" + - "rding_device_type\030\006 \001(\0162F.google.cloud.s" + - "peech.v1p1beta1.RecognitionMetadata.Reco" + - "rdingDeviceType\022\035\n\025recording_device_name" + - "\030\007 \001(\t\022\032\n\022original_mime_type\030\010 \001(\t\022\031\n\rob" + - "fuscated_id\030\t \001(\003B\002\030\001\022\023\n\013audio_topic\030\n \001" + - "(\t\"\305\001\n\017InteractionType\022 \n\034INTERACTION_TY" + - "PE_UNSPECIFIED\020\000\022\016\n\nDISCUSSION\020\001\022\020\n\014PRES" + - "ENTATION\020\002\022\016\n\nPHONE_CALL\020\003\022\r\n\tVOICEMAIL\020" + - "\004\022\033\n\027PROFESSIONALLY_PRODUCED\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_D" + - "ISTANCE_UNSPECIFIED\020\000\022\r\n\tNEARFIELD\020\001\022\014\n\010" + - "MIDFIELD\020\002\022\014\n\010FARFIELD\020\003\"N\n\021OriginalMedi" + - "aType\022#\n\037ORIGINAL_MEDIA_TYPE_UNSPECIFIED" + - "\020\000\022\t\n\005AUDIO\020\001\022\t\n\005VIDEO\020\002\"\244\001\n\023RecordingDe" + - "viceType\022%\n!RECORDING_DEVICE_TYPE_UNSPEC" + - "IFIED\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_DE" + - "VICE\020\005\022\027\n\023OTHER_INDOOR_DEVICE\020\006\"/\n\rSpeec" + - "hContext\022\017\n\007phrases\030\001 \003(\t\022\r\n\005boost\030\004 \001(\002" + - "\"D\n\020RecognitionAudio\022\021\n\007content\030\001 \001(\014H\000\022" + - "\r\n\003uri\030\002 \001(\tH\000B\016\n\014audio_source\"\222\001\n\021Recog" + - "nizeResponse\022G\n\007results\030\002 \003(\01326.google.c" + - "loud.speech.v1p1beta1.SpeechRecognitionR" + - "esult\0224\n\021total_billed_time\030\003 \001(\0132\031.googl" + - "e.protobuf.Duration\"\225\002\n\034LongRunningRecog" + - "nizeResponse\022G\n\007results\030\002 \003(\01326.google.c" + - "loud.speech.v1p1beta1.SpeechRecognitionR" + - "esult\0224\n\021total_billed_time\030\003 \001(\0132\031.googl" + - "e.protobuf.Duration\022L\n\routput_config\030\006 \001" + - "(\01325.google.cloud.speech.v1p1beta1.Trans" + - "criptOutputConfig\022(\n\014output_error\030\007 \001(\0132" + - "\022.google.rpc.Status\"\203\002\n\034LongRunningRecog" + - "nizeMetadata\022\030\n\020progress_percent\030\001 \001(\005\022." + - "\n\nstart_time\030\002 \001(\0132\032.google.protobuf.Tim" + - "estamp\0224\n\020last_update_time\030\003 \001(\0132\032.googl" + - "e.protobuf.Timestamp\022\020\n\003uri\030\004 \001(\tB\003\340A\003\022Q" + - "\n\routput_config\030\005 \001(\01325.google.cloud.spe" + - "ech.v1p1beta1.TranscriptOutputConfigB\003\340A" + - "\003\"\365\002\n\032StreamingRecognizeResponse\022!\n\005erro" + - "r\030\001 \001(\0132\022.google.rpc.Status\022J\n\007results\030\002" + - " \003(\01329.google.cloud.speech.v1p1beta1.Str" + - "eamingRecognitionResult\022d\n\021speech_event_" + - "type\030\004 \001(\0162I.google.cloud.speech.v1p1bet" + - "a1.StreamingRecognizeResponse.SpeechEven" + - "tType\0224\n\021total_billed_time\030\005 \001(\0132\031.googl" + - "e.protobuf.Duration\"L\n\017SpeechEventType\022\034" + - "\n\030SPEECH_EVENT_UNSPECIFIED\020\000\022\033\n\027END_OF_S" + - "INGLE_UTTERANCE\020\001\"\371\001\n\032StreamingRecogniti" + - "onResult\022Q\n\014alternatives\030\001 \003(\0132;.google." + - "cloud.speech.v1p1beta1.SpeechRecognition" + - "Alternative\022\020\n\010is_final\030\002 \001(\010\022\021\n\tstabili" + - "ty\030\003 \001(\002\0222\n\017result_end_time\030\004 \001(\0132\031.goog" + - "le.protobuf.Duration\022\023\n\013channel_tag\030\005 \001(" + - "\005\022\032\n\rlanguage_code\030\006 \001(\tB\003\340A\003\"\321\001\n\027Speech" + - "RecognitionResult\022Q\n\014alternatives\030\001 \003(\0132" + - ";.google.cloud.speech.v1p1beta1.SpeechRe" + - "cognitionAlternative\022\023\n\013channel_tag\030\002 \001(" + - "\005\0222\n\017result_end_time\030\004 \001(\0132\031.google.prot" + - "obuf.Duration\022\032\n\rlanguage_code\030\005 \001(\tB\003\340A" + - "\003\"~\n\034SpeechRecognitionAlternative\022\022\n\ntra" + - "nscript\030\001 \001(\t\022\022\n\nconfidence\030\002 \001(\002\0226\n\005wor" + - "ds\030\003 \003(\0132\'.google.cloud.speech.v1p1beta1" + - ".WordInfo\"\242\001\n\010WordInfo\022-\n\nstart_time\030\001 \001" + - "(\0132\031.google.protobuf.Duration\022+\n\010end_tim" + - "e\030\002 \001(\0132\031.google.protobuf.Duration\022\014\n\004wo" + - "rd\030\003 \001(\t\022\022\n\nconfidence\030\004 \001(\002\022\030\n\013speaker_" + - "tag\030\005 \001(\005B\003\340A\0032\202\005\n\006Speech\022\245\001\n\tRecognize\022" + - "/.google.cloud.speech.v1p1beta1.Recogniz" + - "eRequest\0320.google.cloud.speech.v1p1beta1" + - ".RecognizeResponse\"5\202\323\344\223\002 \"\033/v1p1beta1/s" + - "peech:recognize:\001*\332A\014config,audio\022\362\001\n\024Lo" + - "ngRunningRecognize\022:.google.cloud.speech" + - ".v1p1beta1.LongRunningRecognizeRequest\032\035" + - ".google.longrunning.Operation\"\177\202\323\344\223\002+\"&/" + - "v1p1beta1/speech:longrunningrecognize:\001*" + - "\332A\014config,audio\312A<\n\034LongRunningRecognize" + - "Response\022\034LongRunningRecognizeMetadata\022\217" + - "\001\n\022StreamingRecognize\0228.google.cloud.spe" + - "ech.v1p1beta1.StreamingRecognizeRequest\032" + - "9.google.cloud.speech.v1p1beta1.Streamin" + - "gRecognizeResponse\"\000(\0010\001\032I\312A\025speech.goog" + - "leapis.com\322A.https://www.googleapis.com/" + - "auth/cloud-platformB\200\001\n!com.google.cloud" + - ".speech.v1p1beta1B\013SpeechProtoP\001ZCgoogle" + - ".golang.org/genproto/googleapis/cloud/sp" + - "eech/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.AnyProto.getDescriptor(), - com.google.protobuf.DurationProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - com.google.protobuf.WrappersProto.getDescriptor(), - com.google.rpc.StatusProto.getDescriptor(), - }); - internal_static_google_cloud_speech_v1p1beta1_RecognizeRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_speech_v1p1beta1_RecognizeRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_speech_v1p1beta1_RecognizeRequest_descriptor, - new java.lang.String[] { "Config", "Audio", }); - internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeRequest_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeRequest_descriptor, - new java.lang.String[] { "Config", "Audio", "OutputConfig", }); - internal_static_google_cloud_speech_v1p1beta1_TranscriptOutputConfig_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_speech_v1p1beta1_TranscriptOutputConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_speech_v1p1beta1_TranscriptOutputConfig_descriptor, - new java.lang.String[] { "GcsUri", "OutputType", }); - internal_static_google_cloud_speech_v1p1beta1_StreamingRecognizeRequest_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_speech_v1p1beta1_StreamingRecognizeRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_speech_v1p1beta1_StreamingRecognizeRequest_descriptor, - new java.lang.String[] { "StreamingConfig", "AudioContent", "StreamingRequest", }); - internal_static_google_cloud_speech_v1p1beta1_StreamingRecognitionConfig_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_speech_v1p1beta1_StreamingRecognitionConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_speech_v1p1beta1_StreamingRecognitionConfig_descriptor, - new java.lang.String[] { "Config", "SingleUtterance", "InterimResults", }); - internal_static_google_cloud_speech_v1p1beta1_RecognitionConfig_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_speech_v1p1beta1_RecognitionConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_speech_v1p1beta1_RecognitionConfig_descriptor, - new java.lang.String[] { "Encoding", "SampleRateHertz", "AudioChannelCount", "EnableSeparateRecognitionPerChannel", "LanguageCode", "AlternativeLanguageCodes", "MaxAlternatives", "ProfanityFilter", "Adaptation", "TranscriptNormalization", "SpeechContexts", "EnableWordTimeOffsets", "EnableWordConfidence", "EnableAutomaticPunctuation", "EnableSpokenPunctuation", "EnableSpokenEmojis", "EnableSpeakerDiarization", "DiarizationSpeakerCount", "DiarizationConfig", "Metadata", "Model", "UseEnhanced", }); - internal_static_google_cloud_speech_v1p1beta1_SpeakerDiarizationConfig_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_speech_v1p1beta1_SpeakerDiarizationConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_speech_v1p1beta1_SpeakerDiarizationConfig_descriptor, - new java.lang.String[] { "EnableSpeakerDiarization", "MinSpeakerCount", "MaxSpeakerCount", "SpeakerTag", }); - internal_static_google_cloud_speech_v1p1beta1_RecognitionMetadata_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_speech_v1p1beta1_RecognitionMetadata_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_speech_v1p1beta1_RecognitionMetadata_descriptor, - new java.lang.String[] { "InteractionType", "IndustryNaicsCodeOfAudio", "MicrophoneDistance", "OriginalMediaType", "RecordingDeviceType", "RecordingDeviceName", "OriginalMimeType", "ObfuscatedId", "AudioTopic", }); - internal_static_google_cloud_speech_v1p1beta1_SpeechContext_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_speech_v1p1beta1_SpeechContext_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_speech_v1p1beta1_SpeechContext_descriptor, - new java.lang.String[] { "Phrases", "Boost", }); - internal_static_google_cloud_speech_v1p1beta1_RecognitionAudio_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_speech_v1p1beta1_RecognitionAudio_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_speech_v1p1beta1_RecognitionAudio_descriptor, - new java.lang.String[] { "Content", "Uri", "AudioSource", }); - internal_static_google_cloud_speech_v1p1beta1_RecognizeResponse_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_speech_v1p1beta1_RecognizeResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_speech_v1p1beta1_RecognizeResponse_descriptor, - new java.lang.String[] { "Results", "TotalBilledTime", }); - internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeResponse_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeResponse_descriptor, - new java.lang.String[] { "Results", "TotalBilledTime", "OutputConfig", "OutputError", }); - internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeMetadata_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeMetadata_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeMetadata_descriptor, - new java.lang.String[] { "ProgressPercent", "StartTime", "LastUpdateTime", "Uri", "OutputConfig", }); - internal_static_google_cloud_speech_v1p1beta1_StreamingRecognizeResponse_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_google_cloud_speech_v1p1beta1_StreamingRecognizeResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_speech_v1p1beta1_StreamingRecognizeResponse_descriptor, - new java.lang.String[] { "Error", "Results", "SpeechEventType", "TotalBilledTime", }); - internal_static_google_cloud_speech_v1p1beta1_StreamingRecognitionResult_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_google_cloud_speech_v1p1beta1_StreamingRecognitionResult_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_speech_v1p1beta1_StreamingRecognitionResult_descriptor, - new java.lang.String[] { "Alternatives", "IsFinal", "Stability", "ResultEndTime", "ChannelTag", "LanguageCode", }); - internal_static_google_cloud_speech_v1p1beta1_SpeechRecognitionResult_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_google_cloud_speech_v1p1beta1_SpeechRecognitionResult_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_speech_v1p1beta1_SpeechRecognitionResult_descriptor, - new java.lang.String[] { "Alternatives", "ChannelTag", "ResultEndTime", "LanguageCode", }); - internal_static_google_cloud_speech_v1p1beta1_SpeechRecognitionAlternative_descriptor = - getDescriptor().getMessageTypes().get(16); - internal_static_google_cloud_speech_v1p1beta1_SpeechRecognitionAlternative_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_speech_v1p1beta1_SpeechRecognitionAlternative_descriptor, - new java.lang.String[] { "Transcript", "Confidence", "Words", }); - internal_static_google_cloud_speech_v1p1beta1_WordInfo_descriptor = - getDescriptor().getMessageTypes().get(17); - internal_static_google_cloud_speech_v1p1beta1_WordInfo_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_speech_v1p1beta1_WordInfo_descriptor, - new java.lang.String[] { "StartTime", "EndTime", "Word", "Confidence", "SpeakerTag", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ClientProto.defaultHost); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.AnnotationsProto.http); - registry.add(com.google.api.ClientProto.methodSignature); - registry.add(com.google.api.ClientProto.oauthScopes); - registry.add(com.google.longrunning.OperationsProto.operationInfo); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.cloud.speech.v1p1beta1.SpeechResourceProto.getDescriptor(); - com.google.longrunning.OperationsProto.getDescriptor(); - com.google.protobuf.AnyProto.getDescriptor(); - com.google.protobuf.DurationProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - com.google.protobuf.WrappersProto.getDescriptor(); - com.google.rpc.StatusProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechResourceProto.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechResourceProto.java deleted file mode 100644 index b835955e1..000000000 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechResourceProto.java +++ /dev/null @@ -1,154 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/speech/v1p1beta1/resource.proto - -package com.google.cloud.speech.v1p1beta1; - -public final class SpeechResourceProto { - private SpeechResourceProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1p1beta1_CustomClass_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1p1beta1_CustomClass_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1p1beta1_CustomClass_ClassItem_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1p1beta1_CustomClass_ClassItem_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1p1beta1_PhraseSet_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1p1beta1_PhraseSet_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1p1beta1_PhraseSet_Phrase_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1p1beta1_PhraseSet_Phrase_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptation_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptation_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1p1beta1_TranscriptNormalization_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1p1beta1_TranscriptNormalization_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1p1beta1_TranscriptNormalization_Entry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1p1beta1_TranscriptNormalization_Entry_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n,google/cloud/speech/v1p1beta1/resource" + - ".proto\022\035google.cloud.speech.v1p1beta1\032\031g" + - "oogle/api/resource.proto\032\037google/protobu" + - "f/timestamp.proto\032\034google/api/annotation" + - "s.proto\"\203\002\n\013CustomClass\022\014\n\004name\030\001 \001(\t\022\027\n" + - "\017custom_class_id\030\002 \001(\t\022C\n\005items\030\003 \003(\01324." + - "google.cloud.speech.v1p1beta1.CustomClas" + - "s.ClassItem\032\032\n\tClassItem\022\r\n\005value\030\001 \001(\t:" + - "l\352Ai\n!speech.googleapis.com/CustomClass\022" + - "Dprojects/{project}/locations/{location}" + - "/customClasses/{custom_class}\"\371\001\n\tPhrase" + - "Set\022\014\n\004name\030\001 \001(\t\022@\n\007phrases\030\002 \003(\0132/.goo" + - "gle.cloud.speech.v1p1beta1.PhraseSet.Phr" + - "ase\022\r\n\005boost\030\004 \001(\002\032&\n\006Phrase\022\r\n\005value\030\001 " + - "\001(\t\022\r\n\005boost\030\002 \001(\002:e\352Ab\n\037speech.googleap" + - "is.com/PhraseSet\022?projects/{project}/loc" + - "ations/{location}/phraseSets/{phrase_set" + - "}\"\332\001\n\020SpeechAdaptation\022=\n\013phrase_sets\030\001 " + - "\003(\0132(.google.cloud.speech.v1p1beta1.Phra" + - "seSet\022C\n\025phrase_set_references\030\002 \003(\tB$\372A" + - "!\n\037speech.googleapis.com/PhraseSet\022B\n\016cu" + - "stom_classes\030\003 \003(\0132*.google.cloud.speech" + - ".v1p1beta1.CustomClass\"\252\001\n\027TranscriptNor" + - "malization\022M\n\007entries\030\001 \003(\0132<.google.clo" + - "ud.speech.v1p1beta1.TranscriptNormalizat" + - "ion.Entry\032@\n\005Entry\022\016\n\006search\030\001 \001(\t\022\017\n\007re" + - "place\030\002 \001(\t\022\026\n\016case_sensitive\030\003 \001(\010B\210\001\n!" + - "com.google.cloud.speech.v1p1beta1B\023Speec" + - "hResourceProtoP\001ZCgoogle.golang.org/genp" + - "roto/googleapis/cloud/speech/v1p1beta1;s" + - "peech\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(), - com.google.protobuf.TimestampProto.getDescriptor(), - com.google.api.AnnotationsProto.getDescriptor(), - }); - internal_static_google_cloud_speech_v1p1beta1_CustomClass_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_speech_v1p1beta1_CustomClass_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_speech_v1p1beta1_CustomClass_descriptor, - new java.lang.String[] { "Name", "CustomClassId", "Items", }); - internal_static_google_cloud_speech_v1p1beta1_CustomClass_ClassItem_descriptor = - internal_static_google_cloud_speech_v1p1beta1_CustomClass_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_speech_v1p1beta1_CustomClass_ClassItem_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_speech_v1p1beta1_CustomClass_ClassItem_descriptor, - new java.lang.String[] { "Value", }); - internal_static_google_cloud_speech_v1p1beta1_PhraseSet_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_speech_v1p1beta1_PhraseSet_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_speech_v1p1beta1_PhraseSet_descriptor, - new java.lang.String[] { "Name", "Phrases", "Boost", }); - internal_static_google_cloud_speech_v1p1beta1_PhraseSet_Phrase_descriptor = - internal_static_google_cloud_speech_v1p1beta1_PhraseSet_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_speech_v1p1beta1_PhraseSet_Phrase_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_speech_v1p1beta1_PhraseSet_Phrase_descriptor, - new java.lang.String[] { "Value", "Boost", }); - internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptation_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptation_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptation_descriptor, - new java.lang.String[] { "PhraseSets", "PhraseSetReferences", "CustomClasses", }); - internal_static_google_cloud_speech_v1p1beta1_TranscriptNormalization_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_speech_v1p1beta1_TranscriptNormalization_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_speech_v1p1beta1_TranscriptNormalization_descriptor, - new java.lang.String[] { "Entries", }); - internal_static_google_cloud_speech_v1p1beta1_TranscriptNormalization_Entry_descriptor = - internal_static_google_cloud_speech_v1p1beta1_TranscriptNormalization_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_speech_v1p1beta1_TranscriptNormalization_Entry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_speech_v1p1beta1_TranscriptNormalization_Entry_descriptor, - new java.lang.String[] { "Search", "Replace", "CaseSensitive", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ResourceProto.resource); - registry.add(com.google.api.ResourceProto.resourceReference); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.ResourceProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - com.google.api.AnnotationsProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CustomClass.java b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CustomClass.java similarity index 73% rename from owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CustomClass.java rename to proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CustomClass.java index 3567bea88..4ecd622f2 100644 --- a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CustomClass.java +++ b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CustomClass.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1/resource.proto package com.google.cloud.speech.v1; /** + * + * *
  * A set of words or phrases that represents a common concept likely to appear
  * in your audio, for example a list of passenger ship names. CustomClass items
@@ -12,15 +29,16 @@
  *
  * Protobuf type {@code google.cloud.speech.v1.CustomClass}
  */
-public final class CustomClass extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class CustomClass extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.speech.v1.CustomClass)
     CustomClassOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use CustomClass.newBuilder() to construct.
   private CustomClass(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private CustomClass() {
     name_ = "";
     customClassId_ = "";
@@ -29,16 +47,15 @@ private CustomClass() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new CustomClass();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private CustomClass(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -58,41 +75,46 @@ private CustomClass(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            name_ = s;
-            break;
-          }
-          case 18: {
-            java.lang.String s = input.readStringRequireUtf8();
+              name_ = s;
+              break;
+            }
+          case 18:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            customClassId_ = s;
-            break;
-          }
-          case 26: {
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              items_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000001;
+              customClassId_ = s;
+              break;
             }
-            items_.add(
-                input.readMessage(com.google.cloud.speech.v1.CustomClass.ClassItem.parser(), extensionRegistry));
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          case 26:
+            {
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                items_ =
+                    new java.util.ArrayList();
+                mutable_bitField0_ |= 0x00000001;
+              }
+              items_.add(
+                  input.readMessage(
+                      com.google.cloud.speech.v1.CustomClass.ClassItem.parser(),
+                      extensionRegistry));
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         items_ = java.util.Collections.unmodifiableList(items_);
@@ -101,75 +123,86 @@ private CustomClass(
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.speech.v1.SpeechResourceProto.internal_static_google_cloud_speech_v1_CustomClass_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.speech.v1.SpeechResourceProto
+        .internal_static_google_cloud_speech_v1_CustomClass_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v1.SpeechResourceProto.internal_static_google_cloud_speech_v1_CustomClass_fieldAccessorTable
+    return com.google.cloud.speech.v1.SpeechResourceProto
+        .internal_static_google_cloud_speech_v1_CustomClass_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v1.CustomClass.class, com.google.cloud.speech.v1.CustomClass.Builder.class);
+            com.google.cloud.speech.v1.CustomClass.class,
+            com.google.cloud.speech.v1.CustomClass.Builder.class);
   }
 
-  public interface ClassItemOrBuilder extends
+  public interface ClassItemOrBuilder
+      extends
       // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1.CustomClass.ClassItem)
       com.google.protobuf.MessageOrBuilder {
 
     /**
+     *
+     *
      * 
      * The class item's value.
      * 
* * string value = 1; + * * @return The value. */ java.lang.String getValue(); /** + * + * *
      * The class item's value.
      * 
* * string value = 1; + * * @return The bytes for value. */ - com.google.protobuf.ByteString - getValueBytes(); + com.google.protobuf.ByteString getValueBytes(); } /** + * + * *
    * An item of the class.
    * 
* * Protobuf type {@code google.cloud.speech.v1.CustomClass.ClassItem} */ - public static final class ClassItem extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class ClassItem extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v1.CustomClass.ClassItem) ClassItemOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ClassItem.newBuilder() to construct. private ClassItem(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ClassItem() { value_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ClassItem(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ClassItem( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -188,52 +221,58 @@ private ClassItem( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - value_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + value_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1.SpeechResourceProto.internal_static_google_cloud_speech_v1_CustomClass_ClassItem_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1.SpeechResourceProto + .internal_static_google_cloud_speech_v1_CustomClass_ClassItem_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1.SpeechResourceProto.internal_static_google_cloud_speech_v1_CustomClass_ClassItem_fieldAccessorTable + return com.google.cloud.speech.v1.SpeechResourceProto + .internal_static_google_cloud_speech_v1_CustomClass_ClassItem_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1.CustomClass.ClassItem.class, com.google.cloud.speech.v1.CustomClass.ClassItem.Builder.class); + com.google.cloud.speech.v1.CustomClass.ClassItem.class, + com.google.cloud.speech.v1.CustomClass.ClassItem.Builder.class); } public static final int VALUE_FIELD_NUMBER = 1; private volatile java.lang.Object value_; /** + * + * *
      * The class item's value.
      * 
* * string value = 1; + * * @return The value. */ @java.lang.Override @@ -242,29 +281,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 { @@ -273,6 +312,7 @@ public java.lang.String getValue() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -284,8 +324,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(value_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, value_); } @@ -309,15 +348,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1.CustomClass.ClassItem)) { return super.equals(obj); } - com.google.cloud.speech.v1.CustomClass.ClassItem other = (com.google.cloud.speech.v1.CustomClass.ClassItem) obj; + com.google.cloud.speech.v1.CustomClass.ClassItem other = + (com.google.cloud.speech.v1.CustomClass.ClassItem) obj; - if (!getValue() - .equals(other.getValue())) return false; + if (!getValue().equals(other.getValue())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -337,87 +376,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 @@ -427,27 +472,32 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * An item of the class.
      * 
* * Protobuf type {@code google.cloud.speech.v1.CustomClass.ClassItem} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1.CustomClass.ClassItem) com.google.cloud.speech.v1.CustomClass.ClassItemOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1.SpeechResourceProto.internal_static_google_cloud_speech_v1_CustomClass_ClassItem_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1.SpeechResourceProto + .internal_static_google_cloud_speech_v1_CustomClass_ClassItem_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1.SpeechResourceProto.internal_static_google_cloud_speech_v1_CustomClass_ClassItem_fieldAccessorTable + return com.google.cloud.speech.v1.SpeechResourceProto + .internal_static_google_cloud_speech_v1_CustomClass_ClassItem_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1.CustomClass.ClassItem.class, com.google.cloud.speech.v1.CustomClass.ClassItem.Builder.class); + com.google.cloud.speech.v1.CustomClass.ClassItem.class, + com.google.cloud.speech.v1.CustomClass.ClassItem.Builder.class); } // Construct using com.google.cloud.speech.v1.CustomClass.ClassItem.newBuilder() @@ -455,16 +505,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -474,9 +523,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 @@ -495,7 +544,8 @@ public com.google.cloud.speech.v1.CustomClass.ClassItem build() { @java.lang.Override public com.google.cloud.speech.v1.CustomClass.ClassItem buildPartial() { - com.google.cloud.speech.v1.CustomClass.ClassItem result = new com.google.cloud.speech.v1.CustomClass.ClassItem(this); + com.google.cloud.speech.v1.CustomClass.ClassItem result = + new com.google.cloud.speech.v1.CustomClass.ClassItem(this); result.value_ = value_; onBuilt(); return result; @@ -505,38 +555,41 @@ public com.google.cloud.speech.v1.CustomClass.ClassItem buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.speech.v1.CustomClass.ClassItem) { - return mergeFrom((com.google.cloud.speech.v1.CustomClass.ClassItem)other); + return mergeFrom((com.google.cloud.speech.v1.CustomClass.ClassItem) other); } else { super.mergeFrom(other); return this; @@ -544,7 +597,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.speech.v1.CustomClass.ClassItem other) { - if (other == com.google.cloud.speech.v1.CustomClass.ClassItem.getDefaultInstance()) return this; + if (other == com.google.cloud.speech.v1.CustomClass.ClassItem.getDefaultInstance()) + return this; if (!other.getValue().isEmpty()) { value_ = other.value_; onChanged(); @@ -568,7 +622,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.speech.v1.CustomClass.ClassItem) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.speech.v1.CustomClass.ClassItem) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -580,18 +635,20 @@ public Builder mergeFrom( private java.lang.Object value_ = ""; /** + * + * *
        * The class item's value.
        * 
* * string value = 1; + * * @return The value. */ public java.lang.String getValue() { java.lang.Object ref = value_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); value_ = s; return s; @@ -600,20 +657,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 { @@ -621,58 +679,66 @@ public java.lang.String getValue() { } } /** + * + * *
        * The class item's value.
        * 
* * string value = 1; + * * @param value The value to set. * @return This builder for chaining. */ - public Builder setValue( - java.lang.String value) { + public Builder setValue(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + value_ = value; onChanged(); return this; } /** + * + * *
        * The class item's value.
        * 
* * string value = 1; + * * @return This builder for chaining. */ public Builder clearValue() { - + value_ = getDefaultInstance().getValue(); onChanged(); return this; } /** + * + * *
        * The class item's value.
        * 
* * string value = 1; + * * @param value The bytes for value to set. * @return This builder for chaining. */ - public Builder setValueBytes( - com.google.protobuf.ByteString value) { + public Builder setValueBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + value_ = value; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -685,12 +751,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(); } @@ -699,16 +765,16 @@ public static com.google.cloud.speech.v1.CustomClass.ClassItem getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ClassItem parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ClassItem(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ClassItem parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ClassItem(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -723,17 +789,19 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1.CustomClass.ClassItem getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * The resource name of the custom class.
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -742,29 +810,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 { @@ -775,12 +843,15 @@ public java.lang.String getName() { public static final int CUSTOM_CLASS_ID_FIELD_NUMBER = 2; private volatile java.lang.Object customClassId_; /** + * + * *
    * If this custom class is a resource, the custom_class_id is the resource id
    * of the CustomClass. Case sensitive.
    * 
* * string custom_class_id = 2; + * * @return The customClassId. */ @java.lang.Override @@ -789,30 +860,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,6 +894,8 @@ public java.lang.String getCustomClassId() { public static final int ITEMS_FIELD_NUMBER = 3; private java.util.List items_; /** + * + * *
    * A collection of class items.
    * 
@@ -834,6 +907,8 @@ public java.util.List getItems return items_; } /** + * + * *
    * A collection of class items.
    * 
@@ -841,11 +916,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.
    * 
@@ -857,6 +934,8 @@ public int getItemsCount() { return items_.size(); } /** + * + * *
    * A collection of class items.
    * 
@@ -868,6 +947,8 @@ public com.google.cloud.speech.v1.CustomClass.ClassItem getItems(int index) { return items_.get(index); } /** + * + * *
    * A collection of class items.
    * 
@@ -875,12 +956,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; @@ -892,8 +973,7 @@ public final boolean isInitialized() { } @java.lang.Override - public 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_); } @@ -919,8 +999,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, customClassId_); } for (int i = 0; i < items_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, items_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, items_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -930,19 +1009,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1.CustomClass)) { return super.equals(obj); } com.google.cloud.speech.v1.CustomClass other = (com.google.cloud.speech.v1.CustomClass) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getCustomClassId() - .equals(other.getCustomClassId())) return false; - if (!getItemsList() - .equals(other.getItemsList())) return false; + if (!getName().equals(other.getName())) return false; + if (!getCustomClassId().equals(other.getCustomClassId())) return false; + if (!getItemsList().equals(other.getItemsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -967,97 +1043,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
@@ -1066,21 +1149,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.speech.v1.CustomClass}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1.CustomClass)
       com.google.cloud.speech.v1.CustomClassOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.speech.v1.SpeechResourceProto.internal_static_google_cloud_speech_v1_CustomClass_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.speech.v1.SpeechResourceProto
+          .internal_static_google_cloud_speech_v1_CustomClass_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v1.SpeechResourceProto.internal_static_google_cloud_speech_v1_CustomClass_fieldAccessorTable
+      return com.google.cloud.speech.v1.SpeechResourceProto
+          .internal_static_google_cloud_speech_v1_CustomClass_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v1.CustomClass.class, com.google.cloud.speech.v1.CustomClass.Builder.class);
+              com.google.cloud.speech.v1.CustomClass.class,
+              com.google.cloud.speech.v1.CustomClass.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v1.CustomClass.newBuilder()
@@ -1088,17 +1173,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
         getItemsFieldBuilder();
       }
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1116,9 +1201,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
@@ -1137,7 +1222,8 @@ public com.google.cloud.speech.v1.CustomClass build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v1.CustomClass buildPartial() {
-      com.google.cloud.speech.v1.CustomClass result = new com.google.cloud.speech.v1.CustomClass(this);
+      com.google.cloud.speech.v1.CustomClass result =
+          new com.google.cloud.speech.v1.CustomClass(this);
       int from_bitField0_ = bitField0_;
       result.name_ = name_;
       result.customClassId_ = customClassId_;
@@ -1158,38 +1244,39 @@ public com.google.cloud.speech.v1.CustomClass buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.speech.v1.CustomClass) {
-        return mergeFrom((com.google.cloud.speech.v1.CustomClass)other);
+        return mergeFrom((com.google.cloud.speech.v1.CustomClass) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1224,9 +1311,10 @@ public Builder mergeFrom(com.google.cloud.speech.v1.CustomClass other) {
             itemsBuilder_ = null;
             items_ = other.items_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            itemsBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getItemsFieldBuilder() : null;
+            itemsBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getItemsFieldBuilder()
+                    : null;
           } else {
             itemsBuilder_.addAllMessages(other.items_);
           }
@@ -1260,22 +1348,25 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * The resource name of the custom class.
      * 
* * string name = 1; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1284,20 +1375,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 { @@ -1305,54 +1397,61 @@ public java.lang.String getName() { } } /** + * + * *
      * The resource name of the custom class.
      * 
* * string name = 1; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * The resource name of the custom class.
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * The resource name of the custom class.
      * 
* * string name = 1; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -1360,19 +1459,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; @@ -1381,21 +1482,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 { @@ -1403,75 +1505,88 @@ public java.lang.String getCustomClassId() { } } /** + * + * *
      * If this custom class is a resource, the custom_class_id is the resource id
      * of the CustomClass. Case sensitive.
      * 
* * string custom_class_id = 2; + * * @param value The customClassId to set. * @return This builder for chaining. */ - public Builder setCustomClassId( - java.lang.String value) { + public Builder setCustomClassId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + customClassId_ = value; onChanged(); return this; } /** + * + * *
      * If this custom class is a resource, the custom_class_id is the resource id
      * of the CustomClass. Case sensitive.
      * 
* * string custom_class_id = 2; + * * @return This builder for chaining. */ public Builder clearCustomClassId() { - + customClassId_ = getDefaultInstance().getCustomClassId(); onChanged(); return this; } /** + * + * *
      * If this custom class is a resource, the custom_class_id is the resource id
      * of the CustomClass. Case sensitive.
      * 
* * string custom_class_id = 2; + * * @param value The bytes for customClassId to set. * @return This builder for chaining. */ - public Builder setCustomClassIdBytes( - com.google.protobuf.ByteString value) { + public Builder setCustomClassIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + customClassId_ = value; onChanged(); return this; } private java.util.List items_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureItemsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { items_ = new java.util.ArrayList(items_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.speech.v1.CustomClass.ClassItem, com.google.cloud.speech.v1.CustomClass.ClassItem.Builder, com.google.cloud.speech.v1.CustomClass.ClassItemOrBuilder> itemsBuilder_; + com.google.cloud.speech.v1.CustomClass.ClassItem, + com.google.cloud.speech.v1.CustomClass.ClassItem.Builder, + com.google.cloud.speech.v1.CustomClass.ClassItemOrBuilder> + itemsBuilder_; /** + * + * *
      * A collection of class items.
      * 
@@ -1486,6 +1601,8 @@ public java.util.List getItems } } /** + * + * *
      * A collection of class items.
      * 
@@ -1500,6 +1617,8 @@ public int getItemsCount() { } } /** + * + * *
      * A collection of class items.
      * 
@@ -1514,14 +1633,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(); @@ -1535,6 +1655,8 @@ public Builder setItems( return this; } /** + * + * *
      * A collection of class items.
      * 
@@ -1553,6 +1675,8 @@ public Builder setItems( return this; } /** + * + * *
      * A collection of class items.
      * 
@@ -1573,14 +1697,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(); @@ -1594,6 +1719,8 @@ public Builder addItems( return this; } /** + * + * *
      * A collection of class items.
      * 
@@ -1612,6 +1739,8 @@ public Builder addItems( return this; } /** + * + * *
      * A collection of class items.
      * 
@@ -1630,6 +1759,8 @@ public Builder addItems( return this; } /** + * + * *
      * A collection of class items.
      * 
@@ -1640,8 +1771,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); @@ -1649,6 +1779,8 @@ public Builder addAllItems( return this; } /** + * + * *
      * A collection of class items.
      * 
@@ -1666,6 +1798,8 @@ public Builder clearItems() { return this; } /** + * + * *
      * A collection of class items.
      * 
@@ -1683,39 +1817,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 { @@ -1723,6 +1862,8 @@ public com.google.cloud.speech.v1.CustomClass.ClassItemOrBuilder getItemsOrBuild } } /** + * + * *
      * A collection of class items.
      * 
@@ -1730,49 +1871,55 @@ public com.google.cloud.speech.v1.CustomClass.ClassItemOrBuilder getItemsOrBuild * repeated .google.cloud.speech.v1.CustomClass.ClassItem items = 3; */ public com.google.cloud.speech.v1.CustomClass.ClassItem.Builder addItemsBuilder() { - return getItemsFieldBuilder().addBuilder( - com.google.cloud.speech.v1.CustomClass.ClassItem.getDefaultInstance()); + return getItemsFieldBuilder() + .addBuilder(com.google.cloud.speech.v1.CustomClass.ClassItem.getDefaultInstance()); } /** + * + * *
      * A collection of class items.
      * 
* * repeated .google.cloud.speech.v1.CustomClass.ClassItem items = 3; */ - public com.google.cloud.speech.v1.CustomClass.ClassItem.Builder addItemsBuilder( - int index) { - return getItemsFieldBuilder().addBuilder( - index, com.google.cloud.speech.v1.CustomClass.ClassItem.getDefaultInstance()); + public com.google.cloud.speech.v1.CustomClass.ClassItem.Builder addItemsBuilder(int index) { + return getItemsFieldBuilder() + .addBuilder(index, com.google.cloud.speech.v1.CustomClass.ClassItem.getDefaultInstance()); } /** + * + * *
      * A collection of class items.
      * 
* * repeated .google.cloud.speech.v1.CustomClass.ClassItem items = 3; */ - public java.util.List - getItemsBuilderList() { + public java.util.List + getItemsBuilderList() { return getItemsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.speech.v1.CustomClass.ClassItem, com.google.cloud.speech.v1.CustomClass.ClassItem.Builder, com.google.cloud.speech.v1.CustomClass.ClassItemOrBuilder> + com.google.cloud.speech.v1.CustomClass.ClassItem, + com.google.cloud.speech.v1.CustomClass.ClassItem.Builder, + com.google.cloud.speech.v1.CustomClass.ClassItemOrBuilder> getItemsFieldBuilder() { if (itemsBuilder_ == null) { - itemsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.speech.v1.CustomClass.ClassItem, com.google.cloud.speech.v1.CustomClass.ClassItem.Builder, com.google.cloud.speech.v1.CustomClass.ClassItemOrBuilder>( - items_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + itemsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.speech.v1.CustomClass.ClassItem, + com.google.cloud.speech.v1.CustomClass.ClassItem.Builder, + com.google.cloud.speech.v1.CustomClass.ClassItemOrBuilder>( + items_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); items_ = null; } return itemsBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1782,12 +1929,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(); } @@ -1796,16 +1943,16 @@ public static com.google.cloud.speech.v1.CustomClass getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CustomClass parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CustomClass(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CustomClass parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CustomClass(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1820,6 +1967,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1.CustomClass getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CustomClassOrBuilder.java b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CustomClassOrBuilder.java similarity index 70% rename from owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CustomClassOrBuilder.java rename to proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CustomClassOrBuilder.java index d22bd6cc0..a32a11ff4 100644 --- a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CustomClassOrBuilder.java +++ b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CustomClassOrBuilder.java @@ -1,64 +1,93 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1/resource.proto package com.google.cloud.speech.v1; -public interface CustomClassOrBuilder extends +public interface CustomClassOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1.CustomClass) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The resource name of the custom class.
    * 
* * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * The resource name of the custom class.
    * 
* * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * If this custom class is a resource, the custom_class_id is the resource id
    * of the CustomClass. Case sensitive.
    * 
* * string custom_class_id = 2; + * * @return The customClassId. */ java.lang.String getCustomClassId(); /** + * + * *
    * If this custom class is a resource, the custom_class_id is the resource id
    * of the CustomClass. Case sensitive.
    * 
* * string custom_class_id = 2; + * * @return The bytes for customClassId. */ - com.google.protobuf.ByteString - getCustomClassIdBytes(); + com.google.protobuf.ByteString getCustomClassIdBytes(); /** + * + * *
    * A collection of class items.
    * 
* * repeated .google.cloud.speech.v1.CustomClass.ClassItem items = 3; */ - java.util.List - getItemsList(); + java.util.List getItemsList(); /** + * + * *
    * A collection of class items.
    * 
@@ -67,6 +96,8 @@ public interface CustomClassOrBuilder extends */ com.google.cloud.speech.v1.CustomClass.ClassItem getItems(int index); /** + * + * *
    * A collection of class items.
    * 
@@ -75,21 +106,24 @@ public interface CustomClassOrBuilder extends */ int getItemsCount(); /** + * + * *
    * A collection of class items.
    * 
* * repeated .google.cloud.speech.v1.CustomClass.ClassItem items = 3; */ - java.util.List + java.util.List getItemsOrBuilderList(); /** + * + * *
    * A collection of class items.
    * 
* * repeated .google.cloud.speech.v1.CustomClass.ClassItem items = 3; */ - com.google.cloud.speech.v1.CustomClass.ClassItemOrBuilder getItemsOrBuilder( - int index); + com.google.cloud.speech.v1.CustomClass.ClassItemOrBuilder getItemsOrBuilder(int index); } diff --git a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeMetadata.java b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeMetadata.java similarity index 71% rename from owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeMetadata.java rename to proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeMetadata.java index d3aa482a2..3aaafc3df 100644 --- a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeMetadata.java +++ b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeMetadata.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1/cloud_speech.proto package com.google.cloud.speech.v1; /** + * + * *
  * Describes the progress of a long-running `LongRunningRecognize` call. It is
  * included in the `metadata` field of the `Operation` returned by the
@@ -12,31 +29,31 @@
  *
  * Protobuf type {@code google.cloud.speech.v1.LongRunningRecognizeMetadata}
  */
-public final class LongRunningRecognizeMetadata extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class LongRunningRecognizeMetadata extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.speech.v1.LongRunningRecognizeMetadata)
     LongRunningRecognizeMetadataOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use LongRunningRecognizeMetadata.newBuilder() to construct.
   private LongRunningRecognizeMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private LongRunningRecognizeMetadata() {
     uri_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new LongRunningRecognizeMetadata();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private LongRunningRecognizeMetadata(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -55,84 +72,94 @@ private LongRunningRecognizeMetadata(
           case 0:
             done = true;
             break;
-          case 8: {
-
-            progressPercent_ = input.readInt32();
-            break;
-          }
-          case 18: {
-            com.google.protobuf.Timestamp.Builder subBuilder = null;
-            if (startTime_ != null) {
-              subBuilder = startTime_.toBuilder();
-            }
-            startTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(startTime_);
-              startTime_ = subBuilder.buildPartial();
+          case 8:
+            {
+              progressPercent_ = input.readInt32();
+              break;
             }
+          case 18:
+            {
+              com.google.protobuf.Timestamp.Builder subBuilder = null;
+              if (startTime_ != null) {
+                subBuilder = startTime_.toBuilder();
+              }
+              startTime_ =
+                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(startTime_);
+                startTime_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          case 26: {
-            com.google.protobuf.Timestamp.Builder subBuilder = null;
-            if (lastUpdateTime_ != null) {
-              subBuilder = lastUpdateTime_.toBuilder();
-            }
-            lastUpdateTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(lastUpdateTime_);
-              lastUpdateTime_ = subBuilder.buildPartial();
+              break;
             }
+          case 26:
+            {
+              com.google.protobuf.Timestamp.Builder subBuilder = null;
+              if (lastUpdateTime_ != null) {
+                subBuilder = lastUpdateTime_.toBuilder();
+              }
+              lastUpdateTime_ =
+                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(lastUpdateTime_);
+                lastUpdateTime_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          case 34: {
-            java.lang.String s = input.readStringRequireUtf8();
+              break;
+            }
+          case 34:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            uri_ = s;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              uri_ = s;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_LongRunningRecognizeMetadata_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.speech.v1.SpeechProto
+        .internal_static_google_cloud_speech_v1_LongRunningRecognizeMetadata_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_LongRunningRecognizeMetadata_fieldAccessorTable
+    return com.google.cloud.speech.v1.SpeechProto
+        .internal_static_google_cloud_speech_v1_LongRunningRecognizeMetadata_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v1.LongRunningRecognizeMetadata.class, com.google.cloud.speech.v1.LongRunningRecognizeMetadata.Builder.class);
+            com.google.cloud.speech.v1.LongRunningRecognizeMetadata.class,
+            com.google.cloud.speech.v1.LongRunningRecognizeMetadata.Builder.class);
   }
 
   public static final int PROGRESS_PERCENT_FIELD_NUMBER = 1;
   private int progressPercent_;
   /**
+   *
+   *
    * 
    * Approximate percentage of audio processed thus far. Guaranteed to be 100
    * when the audio is fully processed and the results are available.
    * 
* * int32 progress_percent = 1; + * * @return The progressPercent. */ @java.lang.Override @@ -143,11 +170,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 @@ -155,11 +185,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 @@ -167,6 +200,8 @@ public com.google.protobuf.Timestamp getStartTime() { return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } /** + * + * *
    * Time when the request was received.
    * 
@@ -181,11 +216,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 @@ -193,18 +231,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.
    * 
@@ -219,12 +264,15 @@ public com.google.protobuf.TimestampOrBuilder getLastUpdateTimeOrBuilder() { public static final int URI_FIELD_NUMBER = 4; private volatile java.lang.Object uri_; /** + * + * *
    * Output only. The URI of the audio file being transcribed. Empty if the audio was sent
    * as byte content.
    * 
* * string uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The uri. */ @java.lang.Override @@ -233,30 +281,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 { @@ -265,6 +313,7 @@ public java.lang.String getUri() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -276,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 (progressPercent_ != 0) { output.writeInt32(1, progressPercent_); } @@ -300,16 +348,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_); @@ -322,27 +367,24 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1.LongRunningRecognizeMetadata)) { return super.equals(obj); } - com.google.cloud.speech.v1.LongRunningRecognizeMetadata other = (com.google.cloud.speech.v1.LongRunningRecognizeMetadata) obj; + com.google.cloud.speech.v1.LongRunningRecognizeMetadata other = + (com.google.cloud.speech.v1.LongRunningRecognizeMetadata) obj; - if (getProgressPercent() - != other.getProgressPercent()) return false; + if (getProgressPercent() != other.getProgressPercent()) return false; if (hasStartTime() != other.hasStartTime()) return false; if (hasStartTime()) { - if (!getStartTime() - .equals(other.getStartTime())) return false; + if (!getStartTime().equals(other.getStartTime())) return false; } if (hasLastUpdateTime() != other.hasLastUpdateTime()) return false; if (hasLastUpdateTime()) { - if (!getLastUpdateTime() - .equals(other.getLastUpdateTime())) return false; + if (!getLastUpdateTime().equals(other.getLastUpdateTime())) return false; } - if (!getUri() - .equals(other.getUri())) return false; + if (!getUri().equals(other.getUri())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -372,96 +414,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
@@ -470,21 +520,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.speech.v1.LongRunningRecognizeMetadata}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1.LongRunningRecognizeMetadata)
       com.google.cloud.speech.v1.LongRunningRecognizeMetadataOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_LongRunningRecognizeMetadata_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.speech.v1.SpeechProto
+          .internal_static_google_cloud_speech_v1_LongRunningRecognizeMetadata_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_LongRunningRecognizeMetadata_fieldAccessorTable
+      return com.google.cloud.speech.v1.SpeechProto
+          .internal_static_google_cloud_speech_v1_LongRunningRecognizeMetadata_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v1.LongRunningRecognizeMetadata.class, com.google.cloud.speech.v1.LongRunningRecognizeMetadata.Builder.class);
+              com.google.cloud.speech.v1.LongRunningRecognizeMetadata.class,
+              com.google.cloud.speech.v1.LongRunningRecognizeMetadata.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v1.LongRunningRecognizeMetadata.newBuilder()
@@ -492,16 +544,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -525,9 +576,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
@@ -546,7 +597,8 @@ public com.google.cloud.speech.v1.LongRunningRecognizeMetadata build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v1.LongRunningRecognizeMetadata buildPartial() {
-      com.google.cloud.speech.v1.LongRunningRecognizeMetadata result = new com.google.cloud.speech.v1.LongRunningRecognizeMetadata(this);
+      com.google.cloud.speech.v1.LongRunningRecognizeMetadata result =
+          new com.google.cloud.speech.v1.LongRunningRecognizeMetadata(this);
       result.progressPercent_ = progressPercent_;
       if (startTimeBuilder_ == null) {
         result.startTime_ = startTime_;
@@ -567,38 +619,39 @@ public com.google.cloud.speech.v1.LongRunningRecognizeMetadata buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.speech.v1.LongRunningRecognizeMetadata) {
-        return mergeFrom((com.google.cloud.speech.v1.LongRunningRecognizeMetadata)other);
+        return mergeFrom((com.google.cloud.speech.v1.LongRunningRecognizeMetadata) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -606,7 +659,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());
       }
@@ -639,7 +693,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.speech.v1.LongRunningRecognizeMetadata) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.speech.v1.LongRunningRecognizeMetadata) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -649,14 +704,17 @@ public Builder mergeFrom(
       return this;
     }
 
-    private int progressPercent_ ;
+    private int progressPercent_;
     /**
+     *
+     *
      * 
      * Approximate percentage of audio processed thus far. Guaranteed to be 100
      * when the audio is fully processed and the results are available.
      * 
* * int32 progress_percent = 1; + * * @return The progressPercent. */ @java.lang.Override @@ -664,32 +722,38 @@ public int getProgressPercent() { return progressPercent_; } /** + * + * *
      * Approximate percentage of audio processed thus far. Guaranteed to be 100
      * when the audio is fully processed and the results are available.
      * 
* * int32 progress_percent = 1; + * * @param value The progressPercent to set. * @return This builder for chaining. */ public Builder setProgressPercent(int value) { - + progressPercent_ = value; onChanged(); return this; } /** + * + * *
      * Approximate percentage of audio processed thus far. Guaranteed to be 100
      * when the audio is fully processed and the results are available.
      * 
* * int32 progress_percent = 1; + * * @return This builder for chaining. */ public Builder clearProgressPercent() { - + progressPercent_ = 0; onChanged(); return this; @@ -697,24 +761,33 @@ public Builder clearProgressPercent() { private com.google.protobuf.Timestamp startTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> startTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + startTimeBuilder_; /** + * + * *
      * Time when the request was received.
      * 
* * .google.protobuf.Timestamp start_time = 2; + * * @return Whether the startTime field is set. */ public boolean hasStartTime() { return startTimeBuilder_ != null || startTime_ != null; } /** + * + * *
      * Time when the request was received.
      * 
* * .google.protobuf.Timestamp start_time = 2; + * * @return The startTime. */ public com.google.protobuf.Timestamp getStartTime() { @@ -725,6 +798,8 @@ public com.google.protobuf.Timestamp getStartTime() { } } /** + * + * *
      * Time when the request was received.
      * 
@@ -745,14 +820,15 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Time when the request was received.
      * 
* * .google.protobuf.Timestamp start_time = 2; */ - public Builder setStartTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (startTimeBuilder_ == null) { startTime_ = builderForValue.build(); onChanged(); @@ -763,6 +839,8 @@ public Builder setStartTime( return this; } /** + * + * *
      * Time when the request was received.
      * 
@@ -773,7 +851,7 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { if (startTimeBuilder_ == null) { if (startTime_ != null) { startTime_ = - com.google.protobuf.Timestamp.newBuilder(startTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(startTime_).mergeFrom(value).buildPartial(); } else { startTime_ = value; } @@ -785,6 +863,8 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Time when the request was received.
      * 
@@ -803,6 +883,8 @@ public Builder clearStartTime() { return this; } /** + * + * *
      * Time when the request was received.
      * 
@@ -810,11 +892,13 @@ public Builder clearStartTime() { * .google.protobuf.Timestamp start_time = 2; */ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { - + onChanged(); return getStartTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Time when the request was received.
      * 
@@ -825,11 +909,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.
      * 
@@ -837,14 +922,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_; @@ -852,34 +940,47 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { private com.google.protobuf.Timestamp lastUpdateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> lastUpdateTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + lastUpdateTimeBuilder_; /** + * + * *
      * Time of the most recent processing update.
      * 
* * .google.protobuf.Timestamp last_update_time = 3; + * * @return Whether the lastUpdateTime field is set. */ public boolean hasLastUpdateTime() { return lastUpdateTimeBuilder_ != null || lastUpdateTime_ != null; } /** + * + * *
      * Time of the most recent processing update.
      * 
* * .google.protobuf.Timestamp last_update_time = 3; + * * @return The lastUpdateTime. */ public com.google.protobuf.Timestamp getLastUpdateTime() { if (lastUpdateTimeBuilder_ == null) { - return lastUpdateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastUpdateTime_; + return lastUpdateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : lastUpdateTime_; } else { return lastUpdateTimeBuilder_.getMessage(); } } /** + * + * *
      * Time of the most recent processing update.
      * 
@@ -900,14 +1001,15 @@ public Builder setLastUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Time of the most recent processing update.
      * 
* * .google.protobuf.Timestamp last_update_time = 3; */ - public Builder setLastUpdateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setLastUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (lastUpdateTimeBuilder_ == null) { lastUpdateTime_ = builderForValue.build(); onChanged(); @@ -918,6 +1020,8 @@ public Builder setLastUpdateTime( return this; } /** + * + * *
      * Time of the most recent processing update.
      * 
@@ -928,7 +1032,9 @@ public Builder mergeLastUpdateTime(com.google.protobuf.Timestamp value) { if (lastUpdateTimeBuilder_ == null) { if (lastUpdateTime_ != null) { lastUpdateTime_ = - com.google.protobuf.Timestamp.newBuilder(lastUpdateTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(lastUpdateTime_) + .mergeFrom(value) + .buildPartial(); } else { lastUpdateTime_ = value; } @@ -940,6 +1046,8 @@ public Builder mergeLastUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Time of the most recent processing update.
      * 
@@ -958,6 +1066,8 @@ public Builder clearLastUpdateTime() { return this; } /** + * + * *
      * Time of the most recent processing update.
      * 
@@ -965,11 +1075,13 @@ public Builder clearLastUpdateTime() { * .google.protobuf.Timestamp last_update_time = 3; */ public com.google.protobuf.Timestamp.Builder getLastUpdateTimeBuilder() { - + onChanged(); return getLastUpdateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Time of the most recent processing update.
      * 
@@ -980,11 +1092,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.
      * 
@@ -992,14 +1107,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_; @@ -1007,19 +1125,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; @@ -1028,21 +1148,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 { @@ -1050,64 +1171,71 @@ public java.lang.String getUri() { } } /** + * + * *
      * Output only. The URI of the audio file being transcribed. Empty if the audio was sent
      * as byte content.
      * 
* * string uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The uri to set. * @return This builder for chaining. */ - public Builder setUri( - java.lang.String value) { + public Builder setUri(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + uri_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The URI of the audio file being transcribed. Empty if the audio was sent
      * as byte content.
      * 
* * string uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearUri() { - + uri_ = getDefaultInstance().getUri(); onChanged(); return this; } /** + * + * *
      * Output only. The URI of the audio file being transcribed. Empty if the audio was sent
      * as byte content.
      * 
* * string uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for uri to set. * @return This builder for chaining. */ - public Builder setUriBytes( - com.google.protobuf.ByteString value) { + public Builder setUriBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + uri_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1117,12 +1245,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(); } @@ -1131,16 +1259,16 @@ public static com.google.cloud.speech.v1.LongRunningRecognizeMetadata getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LongRunningRecognizeMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new LongRunningRecognizeMetadata(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LongRunningRecognizeMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LongRunningRecognizeMetadata(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1155,6 +1283,4 @@ public com.google.protobuf.Parser getParserForType public com.google.cloud.speech.v1.LongRunningRecognizeMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeMetadataOrBuilder.java b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeMetadataOrBuilder.java similarity index 74% rename from owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeMetadataOrBuilder.java rename to proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeMetadataOrBuilder.java index ccedbf890..2b8a33c7f 100644 --- a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeMetadataOrBuilder.java +++ b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeMetadataOrBuilder.java @@ -1,42 +1,69 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1/cloud_speech.proto package com.google.cloud.speech.v1; -public interface LongRunningRecognizeMetadataOrBuilder extends +public interface LongRunningRecognizeMetadataOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1.LongRunningRecognizeMetadata) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Approximate percentage of audio processed thus far. Guaranteed to be 100
    * when the audio is fully processed and the results are available.
    * 
* * int32 progress_percent = 1; + * * @return The progressPercent. */ int getProgressPercent(); /** + * + * *
    * Time when the request was received.
    * 
* * .google.protobuf.Timestamp start_time = 2; + * * @return Whether the startTime field is set. */ boolean hasStartTime(); /** + * + * *
    * Time when the request was received.
    * 
* * .google.protobuf.Timestamp start_time = 2; + * * @return The startTime. */ com.google.protobuf.Timestamp getStartTime(); /** + * + * *
    * Time when the request was received.
    * 
@@ -46,24 +73,32 @@ public interface LongRunningRecognizeMetadataOrBuilder extends com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder(); /** + * + * *
    * Time of the most recent processing update.
    * 
* * .google.protobuf.Timestamp last_update_time = 3; + * * @return Whether the lastUpdateTime field is set. */ boolean hasLastUpdateTime(); /** + * + * *
    * Time of the most recent processing update.
    * 
* * .google.protobuf.Timestamp last_update_time = 3; + * * @return The lastUpdateTime. */ com.google.protobuf.Timestamp getLastUpdateTime(); /** + * + * *
    * Time of the most recent processing update.
    * 
@@ -73,24 +108,29 @@ public interface LongRunningRecognizeMetadataOrBuilder extends com.google.protobuf.TimestampOrBuilder getLastUpdateTimeOrBuilder(); /** + * + * *
    * Output only. The URI of the audio file being transcribed. Empty if the audio was sent
    * as byte content.
    * 
* * string uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The uri. */ java.lang.String getUri(); /** + * + * *
    * Output only. The URI of the audio file being transcribed. Empty if the audio was sent
    * as byte content.
    * 
* * string uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for uri. */ - com.google.protobuf.ByteString - getUriBytes(); + com.google.protobuf.ByteString getUriBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeRequest.java b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeRequest.java similarity index 60% rename from owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeRequest.java rename to proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeRequest.java index 275e0ef91..79e8e3cc3 100644 --- a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeRequest.java +++ b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeRequest.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1/cloud_speech.proto package com.google.cloud.speech.v1; /** + * + * *
  * The top-level message sent by the client for the `LongRunningRecognize`
  * method.
@@ -11,30 +28,29 @@
  *
  * Protobuf type {@code google.cloud.speech.v1.LongRunningRecognizeRequest}
  */
-public final class LongRunningRecognizeRequest extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class LongRunningRecognizeRequest extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.speech.v1.LongRunningRecognizeRequest)
     LongRunningRecognizeRequestOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use LongRunningRecognizeRequest.newBuilder() to construct.
   private LongRunningRecognizeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-  private LongRunningRecognizeRequest() {
-  }
+
+  private LongRunningRecognizeRequest() {}
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new LongRunningRecognizeRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private LongRunningRecognizeRequest(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -53,86 +69,103 @@ private LongRunningRecognizeRequest(
           case 0:
             done = true;
             break;
-          case 10: {
-            com.google.cloud.speech.v1.RecognitionConfig.Builder subBuilder = null;
-            if (config_ != null) {
-              subBuilder = config_.toBuilder();
-            }
-            config_ = input.readMessage(com.google.cloud.speech.v1.RecognitionConfig.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(config_);
-              config_ = subBuilder.buildPartial();
-            }
+          case 10:
+            {
+              com.google.cloud.speech.v1.RecognitionConfig.Builder subBuilder = null;
+              if (config_ != null) {
+                subBuilder = config_.toBuilder();
+              }
+              config_ =
+                  input.readMessage(
+                      com.google.cloud.speech.v1.RecognitionConfig.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(config_);
+                config_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          case 18: {
-            com.google.cloud.speech.v1.RecognitionAudio.Builder subBuilder = null;
-            if (audio_ != null) {
-              subBuilder = audio_.toBuilder();
-            }
-            audio_ = input.readMessage(com.google.cloud.speech.v1.RecognitionAudio.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(audio_);
-              audio_ = subBuilder.buildPartial();
+              break;
             }
+          case 18:
+            {
+              com.google.cloud.speech.v1.RecognitionAudio.Builder subBuilder = null;
+              if (audio_ != null) {
+                subBuilder = audio_.toBuilder();
+              }
+              audio_ =
+                  input.readMessage(
+                      com.google.cloud.speech.v1.RecognitionAudio.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(audio_);
+                audio_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          case 34: {
-            com.google.cloud.speech.v1.TranscriptOutputConfig.Builder subBuilder = null;
-            if (outputConfig_ != null) {
-              subBuilder = outputConfig_.toBuilder();
-            }
-            outputConfig_ = input.readMessage(com.google.cloud.speech.v1.TranscriptOutputConfig.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(outputConfig_);
-              outputConfig_ = subBuilder.buildPartial();
+              break;
             }
+          case 34:
+            {
+              com.google.cloud.speech.v1.TranscriptOutputConfig.Builder subBuilder = null;
+              if (outputConfig_ != null) {
+                subBuilder = outputConfig_.toBuilder();
+              }
+              outputConfig_ =
+                  input.readMessage(
+                      com.google.cloud.speech.v1.TranscriptOutputConfig.parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(outputConfig_);
+                outputConfig_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_LongRunningRecognizeRequest_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.speech.v1.SpeechProto
+        .internal_static_google_cloud_speech_v1_LongRunningRecognizeRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_LongRunningRecognizeRequest_fieldAccessorTable
+    return com.google.cloud.speech.v1.SpeechProto
+        .internal_static_google_cloud_speech_v1_LongRunningRecognizeRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v1.LongRunningRecognizeRequest.class, com.google.cloud.speech.v1.LongRunningRecognizeRequest.Builder.class);
+            com.google.cloud.speech.v1.LongRunningRecognizeRequest.class,
+            com.google.cloud.speech.v1.LongRunningRecognizeRequest.Builder.class);
   }
 
   public static final int CONFIG_FIELD_NUMBER = 1;
   private com.google.cloud.speech.v1.RecognitionConfig config_;
   /**
+   *
+   *
    * 
    * Required. Provides information to the recognizer that specifies how to
    * process the request.
    * 
* - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the config field is set. */ @java.lang.Override @@ -140,25 +173,36 @@ public boolean hasConfig() { return config_ != null; } /** + * + * *
    * Required. Provides information to the recognizer that specifies how to
    * process the request.
    * 
* - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The config. */ @java.lang.Override public com.google.cloud.speech.v1.RecognitionConfig getConfig() { - return config_ == null ? com.google.cloud.speech.v1.RecognitionConfig.getDefaultInstance() : config_; + return config_ == null + ? com.google.cloud.speech.v1.RecognitionConfig.getDefaultInstance() + : config_; } /** + * + * *
    * Required. Provides information to the recognizer that specifies how to
    * process the request.
    * 
* - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.speech.v1.RecognitionConfigOrBuilder getConfigOrBuilder() { @@ -168,11 +212,16 @@ public com.google.cloud.speech.v1.RecognitionConfigOrBuilder getConfigOrBuilder( public static final int AUDIO_FIELD_NUMBER = 2; private com.google.cloud.speech.v1.RecognitionAudio audio_; /** + * + * *
    * Required. The audio data to be recognized.
    * 
* - * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the audio field is set. */ @java.lang.Override @@ -180,23 +229,34 @@ public boolean hasAudio() { return audio_ != null; } /** + * + * *
    * Required. The audio data to be recognized.
    * 
* - * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The audio. */ @java.lang.Override public com.google.cloud.speech.v1.RecognitionAudio getAudio() { - return audio_ == null ? com.google.cloud.speech.v1.RecognitionAudio.getDefaultInstance() : audio_; + return audio_ == null + ? com.google.cloud.speech.v1.RecognitionAudio.getDefaultInstance() + : audio_; } /** + * + * *
    * Required. The audio data to be recognized.
    * 
* - * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.speech.v1.RecognitionAudioOrBuilder getAudioOrBuilder() { @@ -206,11 +266,16 @@ public com.google.cloud.speech.v1.RecognitionAudioOrBuilder getAudioOrBuilder() public static final int OUTPUT_CONFIG_FIELD_NUMBER = 4; private com.google.cloud.speech.v1.TranscriptOutputConfig outputConfig_; /** + * + * *
    * Optional. Specifies an optional destination for the recognition results.
    * 
* - * .google.cloud.speech.v1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.speech.v1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the outputConfig field is set. */ @java.lang.Override @@ -218,23 +283,34 @@ public boolean hasOutputConfig() { return outputConfig_ != null; } /** + * + * *
    * Optional. Specifies an optional destination for the recognition results.
    * 
* - * .google.cloud.speech.v1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.speech.v1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The outputConfig. */ @java.lang.Override public com.google.cloud.speech.v1.TranscriptOutputConfig getOutputConfig() { - return outputConfig_ == null ? com.google.cloud.speech.v1.TranscriptOutputConfig.getDefaultInstance() : outputConfig_; + return outputConfig_ == null + ? com.google.cloud.speech.v1.TranscriptOutputConfig.getDefaultInstance() + : outputConfig_; } /** + * + * *
    * Optional. Specifies an optional destination for the recognition results.
    * 
* - * .google.cloud.speech.v1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.speech.v1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.speech.v1.TranscriptOutputConfigOrBuilder getOutputConfigOrBuilder() { @@ -242,6 +318,7 @@ public com.google.cloud.speech.v1.TranscriptOutputConfigOrBuilder getOutputConfi } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -253,8 +330,7 @@ public final boolean isInitialized() { } @java.lang.Override - public 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()); } @@ -274,16 +350,13 @@ public int getSerializedSize() { size = 0; if (config_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getConfig()); } if (audio_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getAudio()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getAudio()); } if (outputConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getOutputConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getOutputConfig()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -293,27 +366,25 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1.LongRunningRecognizeRequest)) { return super.equals(obj); } - com.google.cloud.speech.v1.LongRunningRecognizeRequest other = (com.google.cloud.speech.v1.LongRunningRecognizeRequest) obj; + com.google.cloud.speech.v1.LongRunningRecognizeRequest other = + (com.google.cloud.speech.v1.LongRunningRecognizeRequest) obj; if (hasConfig() != other.hasConfig()) return false; if (hasConfig()) { - if (!getConfig() - .equals(other.getConfig())) return false; + if (!getConfig().equals(other.getConfig())) return false; } if (hasAudio() != other.hasAudio()) return false; if (hasAudio()) { - if (!getAudio() - .equals(other.getAudio())) return false; + if (!getAudio().equals(other.getAudio())) return false; } if (hasOutputConfig() != other.hasOutputConfig()) return false; if (hasOutputConfig()) { - if (!getOutputConfig() - .equals(other.getOutputConfig())) return false; + if (!getOutputConfig().equals(other.getOutputConfig())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -344,96 +415,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.
@@ -441,21 +520,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.speech.v1.LongRunningRecognizeRequest}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1.LongRunningRecognizeRequest)
       com.google.cloud.speech.v1.LongRunningRecognizeRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_LongRunningRecognizeRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.speech.v1.SpeechProto
+          .internal_static_google_cloud_speech_v1_LongRunningRecognizeRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_LongRunningRecognizeRequest_fieldAccessorTable
+      return com.google.cloud.speech.v1.SpeechProto
+          .internal_static_google_cloud_speech_v1_LongRunningRecognizeRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v1.LongRunningRecognizeRequest.class, com.google.cloud.speech.v1.LongRunningRecognizeRequest.Builder.class);
+              com.google.cloud.speech.v1.LongRunningRecognizeRequest.class,
+              com.google.cloud.speech.v1.LongRunningRecognizeRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v1.LongRunningRecognizeRequest.newBuilder()
@@ -463,16 +544,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -498,9 +578,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_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
@@ -519,7 +599,8 @@ public com.google.cloud.speech.v1.LongRunningRecognizeRequest build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v1.LongRunningRecognizeRequest buildPartial() {
-      com.google.cloud.speech.v1.LongRunningRecognizeRequest result = new com.google.cloud.speech.v1.LongRunningRecognizeRequest(this);
+      com.google.cloud.speech.v1.LongRunningRecognizeRequest result =
+          new com.google.cloud.speech.v1.LongRunningRecognizeRequest(this);
       if (configBuilder_ == null) {
         result.config_ = config_;
       } else {
@@ -543,38 +624,39 @@ public com.google.cloud.speech.v1.LongRunningRecognizeRequest buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.speech.v1.LongRunningRecognizeRequest) {
-        return mergeFrom((com.google.cloud.speech.v1.LongRunningRecognizeRequest)other);
+        return mergeFrom((com.google.cloud.speech.v1.LongRunningRecognizeRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -582,7 +664,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());
       }
@@ -611,7 +694,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.speech.v1.LongRunningRecognizeRequest) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.speech.v1.LongRunningRecognizeRequest) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -623,42 +707,61 @@ public Builder mergeFrom(
 
     private com.google.cloud.speech.v1.RecognitionConfig config_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.speech.v1.RecognitionConfig, com.google.cloud.speech.v1.RecognitionConfig.Builder, com.google.cloud.speech.v1.RecognitionConfigOrBuilder> configBuilder_;
+            com.google.cloud.speech.v1.RecognitionConfig,
+            com.google.cloud.speech.v1.RecognitionConfig.Builder,
+            com.google.cloud.speech.v1.RecognitionConfigOrBuilder>
+        configBuilder_;
     /**
+     *
+     *
      * 
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the config field is set. */ public boolean hasConfig() { return configBuilder_ != null || config_ != null; } /** + * + * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The config. */ public com.google.cloud.speech.v1.RecognitionConfig getConfig() { if (configBuilder_ == null) { - return config_ == null ? com.google.cloud.speech.v1.RecognitionConfig.getDefaultInstance() : config_; + return config_ == null + ? com.google.cloud.speech.v1.RecognitionConfig.getDefaultInstance() + : config_; } else { return configBuilder_.getMessage(); } } /** + * + * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setConfig(com.google.cloud.speech.v1.RecognitionConfig value) { if (configBuilder_ == null) { @@ -674,15 +777,18 @@ public Builder setConfig(com.google.cloud.speech.v1.RecognitionConfig value) { return this; } /** + * + * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setConfig( - com.google.cloud.speech.v1.RecognitionConfig.Builder builderForValue) { + public Builder setConfig(com.google.cloud.speech.v1.RecognitionConfig.Builder builderForValue) { if (configBuilder_ == null) { config_ = builderForValue.build(); onChanged(); @@ -693,18 +799,24 @@ public Builder setConfig( return this; } /** + * + * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeConfig(com.google.cloud.speech.v1.RecognitionConfig value) { if (configBuilder_ == null) { if (config_ != null) { config_ = - com.google.cloud.speech.v1.RecognitionConfig.newBuilder(config_).mergeFrom(value).buildPartial(); + com.google.cloud.speech.v1.RecognitionConfig.newBuilder(config_) + .mergeFrom(value) + .buildPartial(); } else { config_ = value; } @@ -716,12 +828,16 @@ public Builder mergeConfig(com.google.cloud.speech.v1.RecognitionConfig value) { return this; } /** + * + * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearConfig() { if (configBuilder_ == null) { @@ -735,51 +851,67 @@ public Builder clearConfig() { return this; } /** + * + * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.speech.v1.RecognitionConfig.Builder getConfigBuilder() { - + onChanged(); return getConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.speech.v1.RecognitionConfigOrBuilder getConfigOrBuilder() { if (configBuilder_ != null) { return configBuilder_.getMessageOrBuilder(); } else { - return config_ == null ? - com.google.cloud.speech.v1.RecognitionConfig.getDefaultInstance() : config_; + return config_ == null + ? com.google.cloud.speech.v1.RecognitionConfig.getDefaultInstance() + : config_; } } /** + * + * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1.RecognitionConfig, com.google.cloud.speech.v1.RecognitionConfig.Builder, com.google.cloud.speech.v1.RecognitionConfigOrBuilder> + com.google.cloud.speech.v1.RecognitionConfig, + com.google.cloud.speech.v1.RecognitionConfig.Builder, + com.google.cloud.speech.v1.RecognitionConfigOrBuilder> getConfigFieldBuilder() { if (configBuilder_ == null) { - configBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1.RecognitionConfig, com.google.cloud.speech.v1.RecognitionConfig.Builder, com.google.cloud.speech.v1.RecognitionConfigOrBuilder>( - getConfig(), - getParentForChildren(), - isClean()); + configBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v1.RecognitionConfig, + com.google.cloud.speech.v1.RecognitionConfig.Builder, + com.google.cloud.speech.v1.RecognitionConfigOrBuilder>( + getConfig(), getParentForChildren(), isClean()); config_ = null; } return configBuilder_; @@ -787,39 +919,58 @@ public com.google.cloud.speech.v1.RecognitionConfigOrBuilder getConfigOrBuilder( private com.google.cloud.speech.v1.RecognitionAudio audio_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1.RecognitionAudio, com.google.cloud.speech.v1.RecognitionAudio.Builder, com.google.cloud.speech.v1.RecognitionAudioOrBuilder> audioBuilder_; + com.google.cloud.speech.v1.RecognitionAudio, + com.google.cloud.speech.v1.RecognitionAudio.Builder, + com.google.cloud.speech.v1.RecognitionAudioOrBuilder> + audioBuilder_; /** + * + * *
      * Required. The audio data to be recognized.
      * 
* - * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the audio field is set. */ public boolean hasAudio() { return audioBuilder_ != null || audio_ != null; } /** + * + * *
      * Required. The audio data to be recognized.
      * 
* - * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The audio. */ public com.google.cloud.speech.v1.RecognitionAudio getAudio() { if (audioBuilder_ == null) { - return audio_ == null ? com.google.cloud.speech.v1.RecognitionAudio.getDefaultInstance() : audio_; + return audio_ == null + ? com.google.cloud.speech.v1.RecognitionAudio.getDefaultInstance() + : audio_; } else { return audioBuilder_.getMessage(); } } /** + * + * *
      * Required. The audio data to be recognized.
      * 
* - * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setAudio(com.google.cloud.speech.v1.RecognitionAudio value) { if (audioBuilder_ == null) { @@ -835,14 +986,17 @@ public Builder setAudio(com.google.cloud.speech.v1.RecognitionAudio value) { return this; } /** + * + * *
      * Required. The audio data to be recognized.
      * 
* - * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setAudio( - com.google.cloud.speech.v1.RecognitionAudio.Builder builderForValue) { + public Builder setAudio(com.google.cloud.speech.v1.RecognitionAudio.Builder builderForValue) { if (audioBuilder_ == null) { audio_ = builderForValue.build(); onChanged(); @@ -853,17 +1007,23 @@ public Builder setAudio( return this; } /** + * + * *
      * Required. The audio data to be recognized.
      * 
* - * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeAudio(com.google.cloud.speech.v1.RecognitionAudio value) { if (audioBuilder_ == null) { if (audio_ != null) { audio_ = - com.google.cloud.speech.v1.RecognitionAudio.newBuilder(audio_).mergeFrom(value).buildPartial(); + com.google.cloud.speech.v1.RecognitionAudio.newBuilder(audio_) + .mergeFrom(value) + .buildPartial(); } else { audio_ = value; } @@ -875,11 +1035,15 @@ public Builder mergeAudio(com.google.cloud.speech.v1.RecognitionAudio value) { return this; } /** + * + * *
      * Required. The audio data to be recognized.
      * 
* - * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearAudio() { if (audioBuilder_ == null) { @@ -893,48 +1057,64 @@ public Builder clearAudio() { return this; } /** + * + * *
      * Required. The audio data to be recognized.
      * 
* - * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.speech.v1.RecognitionAudio.Builder getAudioBuilder() { - + onChanged(); return getAudioFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The audio data to be recognized.
      * 
* - * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.speech.v1.RecognitionAudioOrBuilder getAudioOrBuilder() { if (audioBuilder_ != null) { return audioBuilder_.getMessageOrBuilder(); } else { - return audio_ == null ? - com.google.cloud.speech.v1.RecognitionAudio.getDefaultInstance() : audio_; + return audio_ == null + ? com.google.cloud.speech.v1.RecognitionAudio.getDefaultInstance() + : audio_; } } /** + * + * *
      * Required. The audio data to be recognized.
      * 
* - * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1.RecognitionAudio, com.google.cloud.speech.v1.RecognitionAudio.Builder, com.google.cloud.speech.v1.RecognitionAudioOrBuilder> + com.google.cloud.speech.v1.RecognitionAudio, + com.google.cloud.speech.v1.RecognitionAudio.Builder, + com.google.cloud.speech.v1.RecognitionAudioOrBuilder> getAudioFieldBuilder() { if (audioBuilder_ == null) { - audioBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1.RecognitionAudio, com.google.cloud.speech.v1.RecognitionAudio.Builder, com.google.cloud.speech.v1.RecognitionAudioOrBuilder>( - getAudio(), - getParentForChildren(), - isClean()); + audioBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v1.RecognitionAudio, + com.google.cloud.speech.v1.RecognitionAudio.Builder, + com.google.cloud.speech.v1.RecognitionAudioOrBuilder>( + getAudio(), getParentForChildren(), isClean()); audio_ = null; } return audioBuilder_; @@ -942,39 +1122,58 @@ public com.google.cloud.speech.v1.RecognitionAudioOrBuilder getAudioOrBuilder() private com.google.cloud.speech.v1.TranscriptOutputConfig outputConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1.TranscriptOutputConfig, com.google.cloud.speech.v1.TranscriptOutputConfig.Builder, com.google.cloud.speech.v1.TranscriptOutputConfigOrBuilder> outputConfigBuilder_; + com.google.cloud.speech.v1.TranscriptOutputConfig, + com.google.cloud.speech.v1.TranscriptOutputConfig.Builder, + com.google.cloud.speech.v1.TranscriptOutputConfigOrBuilder> + outputConfigBuilder_; /** + * + * *
      * Optional. Specifies an optional destination for the recognition results.
      * 
* - * .google.cloud.speech.v1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.speech.v1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the outputConfig field is set. */ public boolean hasOutputConfig() { return outputConfigBuilder_ != null || outputConfig_ != null; } /** + * + * *
      * Optional. Specifies an optional destination for the recognition results.
      * 
* - * .google.cloud.speech.v1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.speech.v1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The outputConfig. */ public com.google.cloud.speech.v1.TranscriptOutputConfig getOutputConfig() { if (outputConfigBuilder_ == null) { - return outputConfig_ == null ? com.google.cloud.speech.v1.TranscriptOutputConfig.getDefaultInstance() : outputConfig_; + return outputConfig_ == null + ? com.google.cloud.speech.v1.TranscriptOutputConfig.getDefaultInstance() + : outputConfig_; } else { return outputConfigBuilder_.getMessage(); } } /** + * + * *
      * Optional. Specifies an optional destination for the recognition results.
      * 
* - * .google.cloud.speech.v1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.speech.v1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setOutputConfig(com.google.cloud.speech.v1.TranscriptOutputConfig value) { if (outputConfigBuilder_ == null) { @@ -990,11 +1189,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) { @@ -1008,17 +1211,23 @@ public Builder setOutputConfig( return this; } /** + * + * *
      * Optional. Specifies an optional destination for the recognition results.
      * 
* - * .google.cloud.speech.v1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.speech.v1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeOutputConfig(com.google.cloud.speech.v1.TranscriptOutputConfig value) { if (outputConfigBuilder_ == null) { if (outputConfig_ != null) { outputConfig_ = - com.google.cloud.speech.v1.TranscriptOutputConfig.newBuilder(outputConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.speech.v1.TranscriptOutputConfig.newBuilder(outputConfig_) + .mergeFrom(value) + .buildPartial(); } else { outputConfig_ = value; } @@ -1030,11 +1239,15 @@ public Builder mergeOutputConfig(com.google.cloud.speech.v1.TranscriptOutputConf return this; } /** + * + * *
      * Optional. Specifies an optional destination for the recognition results.
      * 
* - * .google.cloud.speech.v1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.speech.v1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearOutputConfig() { if (outputConfigBuilder_ == null) { @@ -1048,55 +1261,71 @@ public Builder clearOutputConfig() { return this; } /** + * + * *
      * Optional. Specifies an optional destination for the recognition results.
      * 
* - * .google.cloud.speech.v1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.speech.v1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.speech.v1.TranscriptOutputConfig.Builder getOutputConfigBuilder() { - + onChanged(); return getOutputConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. Specifies an optional destination for the recognition results.
      * 
* - * .google.cloud.speech.v1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.speech.v1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.speech.v1.TranscriptOutputConfigOrBuilder getOutputConfigOrBuilder() { if (outputConfigBuilder_ != null) { return outputConfigBuilder_.getMessageOrBuilder(); } else { - return outputConfig_ == null ? - com.google.cloud.speech.v1.TranscriptOutputConfig.getDefaultInstance() : outputConfig_; + return outputConfig_ == null + ? com.google.cloud.speech.v1.TranscriptOutputConfig.getDefaultInstance() + : outputConfig_; } } /** + * + * *
      * Optional. Specifies an optional destination for the recognition results.
      * 
* - * .google.cloud.speech.v1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.speech.v1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1.TranscriptOutputConfig, com.google.cloud.speech.v1.TranscriptOutputConfig.Builder, com.google.cloud.speech.v1.TranscriptOutputConfigOrBuilder> + com.google.cloud.speech.v1.TranscriptOutputConfig, + com.google.cloud.speech.v1.TranscriptOutputConfig.Builder, + com.google.cloud.speech.v1.TranscriptOutputConfigOrBuilder> getOutputConfigFieldBuilder() { if (outputConfigBuilder_ == null) { - outputConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1.TranscriptOutputConfig, com.google.cloud.speech.v1.TranscriptOutputConfig.Builder, com.google.cloud.speech.v1.TranscriptOutputConfigOrBuilder>( - getOutputConfig(), - getParentForChildren(), - isClean()); + outputConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v1.TranscriptOutputConfig, + com.google.cloud.speech.v1.TranscriptOutputConfig.Builder, + com.google.cloud.speech.v1.TranscriptOutputConfigOrBuilder>( + getOutputConfig(), getParentForChildren(), isClean()); outputConfig_ = null; } return outputConfigBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1106,12 +1335,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(); } @@ -1120,16 +1349,16 @@ public static com.google.cloud.speech.v1.LongRunningRecognizeRequest getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LongRunningRecognizeRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new LongRunningRecognizeRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LongRunningRecognizeRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LongRunningRecognizeRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1144,6 +1373,4 @@ public com.google.protobuf.Parser getParserForType( public com.google.cloud.speech.v1.LongRunningRecognizeRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeRequestOrBuilder.java b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeRequestOrBuilder.java similarity index 51% rename from owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeRequestOrBuilder.java rename to proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeRequestOrBuilder.java index fe890f69a..3a4e90c85 100644 --- a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeRequestOrBuilder.java +++ b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeRequestOrBuilder.java @@ -1,93 +1,151 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1/cloud_speech.proto package com.google.cloud.speech.v1; -public interface LongRunningRecognizeRequestOrBuilder extends +public interface LongRunningRecognizeRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1.LongRunningRecognizeRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Provides information to the recognizer that specifies how to
    * process the request.
    * 
* - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the config field is set. */ boolean hasConfig(); /** + * + * *
    * Required. Provides information to the recognizer that specifies how to
    * process the request.
    * 
* - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The config. */ com.google.cloud.speech.v1.RecognitionConfig getConfig(); /** + * + * *
    * Required. Provides information to the recognizer that specifies how to
    * process the request.
    * 
* - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.speech.v1.RecognitionConfigOrBuilder getConfigOrBuilder(); /** + * + * *
    * Required. The audio data to be recognized.
    * 
* - * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the audio field is set. */ boolean hasAudio(); /** + * + * *
    * Required. The audio data to be recognized.
    * 
* - * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The audio. */ com.google.cloud.speech.v1.RecognitionAudio getAudio(); /** + * + * *
    * Required. The audio data to be recognized.
    * 
* - * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.speech.v1.RecognitionAudioOrBuilder getAudioOrBuilder(); /** + * + * *
    * Optional. Specifies an optional destination for the recognition results.
    * 
* - * .google.cloud.speech.v1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.speech.v1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the outputConfig field is set. */ boolean hasOutputConfig(); /** + * + * *
    * Optional. Specifies an optional destination for the recognition results.
    * 
* - * .google.cloud.speech.v1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.speech.v1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The outputConfig. */ com.google.cloud.speech.v1.TranscriptOutputConfig getOutputConfig(); /** + * + * *
    * Optional. Specifies an optional destination for the recognition results.
    * 
* - * .google.cloud.speech.v1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.speech.v1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.speech.v1.TranscriptOutputConfigOrBuilder getOutputConfigOrBuilder(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeResponse.java b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeResponse.java similarity index 74% rename from owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeResponse.java rename to proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeResponse.java index b495c8701..9ab646c0c 100644 --- a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeResponse.java +++ b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeResponse.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1/cloud_speech.proto package com.google.cloud.speech.v1; /** + * + * *
  * The only message returned to the client by the `LongRunningRecognize` method.
  * It contains the result as zero or more sequential `SpeechRecognitionResult`
@@ -14,31 +31,31 @@
  *
  * Protobuf type {@code google.cloud.speech.v1.LongRunningRecognizeResponse}
  */
-public final class LongRunningRecognizeResponse extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class LongRunningRecognizeResponse extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.speech.v1.LongRunningRecognizeResponse)
     LongRunningRecognizeResponseOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use LongRunningRecognizeResponse.newBuilder() to construct.
   private LongRunningRecognizeResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private LongRunningRecognizeResponse() {
     results_ = java.util.Collections.emptyList();
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new LongRunningRecognizeResponse();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private LongRunningRecognizeResponse(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -58,68 +75,78 @@ private LongRunningRecognizeResponse(
           case 0:
             done = true;
             break;
-          case 18: {
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              results_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000001;
-            }
-            results_.add(
-                input.readMessage(com.google.cloud.speech.v1.SpeechRecognitionResult.parser(), extensionRegistry));
-            break;
-          }
-          case 26: {
-            com.google.protobuf.Duration.Builder subBuilder = null;
-            if (totalBilledTime_ != null) {
-              subBuilder = totalBilledTime_.toBuilder();
-            }
-            totalBilledTime_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(totalBilledTime_);
-              totalBilledTime_ = subBuilder.buildPartial();
+          case 18:
+            {
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                results_ =
+                    new java.util.ArrayList();
+                mutable_bitField0_ |= 0x00000001;
+              }
+              results_.add(
+                  input.readMessage(
+                      com.google.cloud.speech.v1.SpeechRecognitionResult.parser(),
+                      extensionRegistry));
+              break;
             }
+          case 26:
+            {
+              com.google.protobuf.Duration.Builder subBuilder = null;
+              if (totalBilledTime_ != null) {
+                subBuilder = totalBilledTime_.toBuilder();
+              }
+              totalBilledTime_ =
+                  input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(totalBilledTime_);
+                totalBilledTime_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          case 50: {
-            com.google.cloud.speech.v1.TranscriptOutputConfig.Builder subBuilder = null;
-            if (outputConfig_ != null) {
-              subBuilder = outputConfig_.toBuilder();
-            }
-            outputConfig_ = input.readMessage(com.google.cloud.speech.v1.TranscriptOutputConfig.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(outputConfig_);
-              outputConfig_ = subBuilder.buildPartial();
+              break;
             }
+          case 50:
+            {
+              com.google.cloud.speech.v1.TranscriptOutputConfig.Builder subBuilder = null;
+              if (outputConfig_ != null) {
+                subBuilder = outputConfig_.toBuilder();
+              }
+              outputConfig_ =
+                  input.readMessage(
+                      com.google.cloud.speech.v1.TranscriptOutputConfig.parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(outputConfig_);
+                outputConfig_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          case 58: {
-            com.google.rpc.Status.Builder subBuilder = null;
-            if (outputError_ != null) {
-              subBuilder = outputError_.toBuilder();
-            }
-            outputError_ = input.readMessage(com.google.rpc.Status.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(outputError_);
-              outputError_ = subBuilder.buildPartial();
+              break;
             }
+          case 58:
+            {
+              com.google.rpc.Status.Builder subBuilder = null;
+              if (outputError_ != null) {
+                subBuilder = outputError_.toBuilder();
+              }
+              outputError_ = input.readMessage(com.google.rpc.Status.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(outputError_);
+                outputError_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         results_ = java.util.Collections.unmodifiableList(results_);
@@ -128,22 +155,27 @@ private LongRunningRecognizeResponse(
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_LongRunningRecognizeResponse_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.speech.v1.SpeechProto
+        .internal_static_google_cloud_speech_v1_LongRunningRecognizeResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_LongRunningRecognizeResponse_fieldAccessorTable
+    return com.google.cloud.speech.v1.SpeechProto
+        .internal_static_google_cloud_speech_v1_LongRunningRecognizeResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v1.LongRunningRecognizeResponse.class, com.google.cloud.speech.v1.LongRunningRecognizeResponse.Builder.class);
+            com.google.cloud.speech.v1.LongRunningRecognizeResponse.class,
+            com.google.cloud.speech.v1.LongRunningRecognizeResponse.Builder.class);
   }
 
   public static final int RESULTS_FIELD_NUMBER = 2;
   private java.util.List results_;
   /**
+   *
+   *
    * 
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -156,6 +188,8 @@ public java.util.List getRes
     return results_;
   }
   /**
+   *
+   *
    * 
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -164,11 +198,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.
@@ -181,6 +217,8 @@ public int getResultsCount() {
     return results_.size();
   }
   /**
+   *
+   *
    * 
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -193,6 +231,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.
@@ -209,11 +249,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 @@ -221,18 +264,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.
    * 
@@ -247,11 +297,14 @@ public com.google.protobuf.DurationOrBuilder getTotalBilledTimeOrBuilder() { public static final int OUTPUT_CONFIG_FIELD_NUMBER = 6; private com.google.cloud.speech.v1.TranscriptOutputConfig outputConfig_; /** + * + * *
    * Original output config if present in the request.
    * 
* * .google.cloud.speech.v1.TranscriptOutputConfig output_config = 6; + * * @return Whether the outputConfig field is set. */ @java.lang.Override @@ -259,18 +312,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.
    * 
@@ -285,11 +345,14 @@ public com.google.cloud.speech.v1.TranscriptOutputConfigOrBuilder getOutputConfi public static final int OUTPUT_ERROR_FIELD_NUMBER = 7; private com.google.rpc.Status outputError_; /** + * + * *
    * If the transcript output fails this field contains the relevant error.
    * 
* * .google.rpc.Status output_error = 7; + * * @return Whether the outputError field is set. */ @java.lang.Override @@ -297,11 +360,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 @@ -309,6 +375,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.
    * 
@@ -321,6 +389,7 @@ public com.google.rpc.StatusOrBuilder getOutputErrorOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -332,8 +401,7 @@ public final boolean isInitialized() { } @java.lang.Override - 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)); } @@ -356,20 +424,16 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < results_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, results_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, results_.get(i)); } if (totalBilledTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getTotalBilledTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getTotalBilledTime()); } if (outputConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getOutputConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getOutputConfig()); } if (outputError_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, getOutputError()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getOutputError()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -379,29 +443,26 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1.LongRunningRecognizeResponse)) { return super.equals(obj); } - com.google.cloud.speech.v1.LongRunningRecognizeResponse other = (com.google.cloud.speech.v1.LongRunningRecognizeResponse) obj; + com.google.cloud.speech.v1.LongRunningRecognizeResponse other = + (com.google.cloud.speech.v1.LongRunningRecognizeResponse) obj; - if (!getResultsList() - .equals(other.getResultsList())) return false; + if (!getResultsList().equals(other.getResultsList())) return false; if (hasTotalBilledTime() != other.hasTotalBilledTime()) return false; if (hasTotalBilledTime()) { - if (!getTotalBilledTime() - .equals(other.getTotalBilledTime())) return false; + if (!getTotalBilledTime().equals(other.getTotalBilledTime())) return false; } if (hasOutputConfig() != other.hasOutputConfig()) return false; if (hasOutputConfig()) { - if (!getOutputConfig() - .equals(other.getOutputConfig())) return false; + if (!getOutputConfig().equals(other.getOutputConfig())) return false; } if (hasOutputError() != other.hasOutputError()) return false; if (hasOutputError()) { - if (!getOutputError() - .equals(other.getOutputError())) return false; + if (!getOutputError().equals(other.getOutputError())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -436,96 +497,104 @@ public int hashCode() { } public static com.google.cloud.speech.v1.LongRunningRecognizeResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1.LongRunningRecognizeResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1.LongRunningRecognizeResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1.LongRunningRecognizeResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1.LongRunningRecognizeResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1.LongRunningRecognizeResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1.LongRunningRecognizeResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1.LongRunningRecognizeResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1.LongRunningRecognizeResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1.LongRunningRecognizeResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1.LongRunningRecognizeResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1.LongRunningRecognizeResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.speech.v1.LongRunningRecognizeResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1.LongRunningRecognizeResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.speech.v1.LongRunningRecognizeResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.speech.v1.LongRunningRecognizeResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The only message returned to the client by the `LongRunningRecognize` method.
    * It contains the result as zero or more sequential `SpeechRecognitionResult`
@@ -536,21 +605,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.speech.v1.LongRunningRecognizeResponse}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1.LongRunningRecognizeResponse)
       com.google.cloud.speech.v1.LongRunningRecognizeResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_LongRunningRecognizeResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.speech.v1.SpeechProto
+          .internal_static_google_cloud_speech_v1_LongRunningRecognizeResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_LongRunningRecognizeResponse_fieldAccessorTable
+      return com.google.cloud.speech.v1.SpeechProto
+          .internal_static_google_cloud_speech_v1_LongRunningRecognizeResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v1.LongRunningRecognizeResponse.class, com.google.cloud.speech.v1.LongRunningRecognizeResponse.Builder.class);
+              com.google.cloud.speech.v1.LongRunningRecognizeResponse.class,
+              com.google.cloud.speech.v1.LongRunningRecognizeResponse.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v1.LongRunningRecognizeResponse.newBuilder()
@@ -558,17 +629,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
         getResultsFieldBuilder();
       }
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -600,9 +671,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
@@ -621,7 +692,8 @@ public com.google.cloud.speech.v1.LongRunningRecognizeResponse build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v1.LongRunningRecognizeResponse buildPartial() {
-      com.google.cloud.speech.v1.LongRunningRecognizeResponse result = new com.google.cloud.speech.v1.LongRunningRecognizeResponse(this);
+      com.google.cloud.speech.v1.LongRunningRecognizeResponse result =
+          new com.google.cloud.speech.v1.LongRunningRecognizeResponse(this);
       int from_bitField0_ = bitField0_;
       if (resultsBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
@@ -655,38 +727,39 @@ public com.google.cloud.speech.v1.LongRunningRecognizeResponse buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.speech.v1.LongRunningRecognizeResponse) {
-        return mergeFrom((com.google.cloud.speech.v1.LongRunningRecognizeResponse)other);
+        return mergeFrom((com.google.cloud.speech.v1.LongRunningRecognizeResponse) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -694,7 +767,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()) {
@@ -713,9 +787,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_);
           }
@@ -749,7 +824,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.speech.v1.LongRunningRecognizeResponse) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.speech.v1.LongRunningRecognizeResponse) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -758,21 +834,29 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
     private java.util.List results_ =
-      java.util.Collections.emptyList();
+        java.util.Collections.emptyList();
+
     private void ensureResultsIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
-        results_ = new java.util.ArrayList(results_);
+        results_ =
+            new java.util.ArrayList(results_);
         bitField0_ |= 0x00000001;
-       }
+      }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.speech.v1.SpeechRecognitionResult, com.google.cloud.speech.v1.SpeechRecognitionResult.Builder, com.google.cloud.speech.v1.SpeechRecognitionResultOrBuilder> resultsBuilder_;
+            com.google.cloud.speech.v1.SpeechRecognitionResult,
+            com.google.cloud.speech.v1.SpeechRecognitionResult.Builder,
+            com.google.cloud.speech.v1.SpeechRecognitionResultOrBuilder>
+        resultsBuilder_;
 
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -788,6 +872,8 @@ public java.util.List getRes
       }
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -803,6 +889,8 @@ public int getResultsCount() {
       }
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -818,6 +906,8 @@ public com.google.cloud.speech.v1.SpeechRecognitionResult getResults(int index)
       }
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -825,8 +915,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();
@@ -840,6 +929,8 @@ public Builder setResults(
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -859,6 +950,8 @@ public Builder setResults(
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -880,6 +973,8 @@ public Builder addResults(com.google.cloud.speech.v1.SpeechRecognitionResult val
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -887,8 +982,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();
@@ -902,6 +996,8 @@ public Builder addResults(
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -921,6 +1017,8 @@ public Builder addResults(
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -940,6 +1038,8 @@ public Builder addResults(
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -951,8 +1051,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);
@@ -960,6 +1059,8 @@ public Builder addAllResults(
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -978,6 +1079,8 @@ public Builder clearResults() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -996,6 +1099,8 @@ public Builder removeResults(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -1003,11 +1108,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.
@@ -1018,11 +1124,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.
@@ -1030,8 +1139,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 {
@@ -1039,6 +1148,8 @@ public com.google.cloud.speech.v1.SpeechRecognitionResultOrBuilder getResultsOrB
       }
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -1047,10 +1158,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.
@@ -1058,12 +1171,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.
@@ -1071,20 +1186,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_;
@@ -1092,34 +1210,47 @@ public com.google.cloud.speech.v1.SpeechRecognitionResult.Builder addResultsBuil
 
     private com.google.protobuf.Duration totalBilledTime_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> totalBilledTimeBuilder_;
+            com.google.protobuf.Duration,
+            com.google.protobuf.Duration.Builder,
+            com.google.protobuf.DurationOrBuilder>
+        totalBilledTimeBuilder_;
     /**
+     *
+     *
      * 
      * When available, billed audio seconds for the corresponding request.
      * 
* * .google.protobuf.Duration total_billed_time = 3; + * * @return Whether the totalBilledTime field is set. */ public boolean hasTotalBilledTime() { return totalBilledTimeBuilder_ != null || totalBilledTime_ != null; } /** + * + * *
      * When available, billed audio seconds for the corresponding request.
      * 
* * .google.protobuf.Duration total_billed_time = 3; + * * @return The totalBilledTime. */ public com.google.protobuf.Duration getTotalBilledTime() { if (totalBilledTimeBuilder_ == null) { - return totalBilledTime_ == null ? com.google.protobuf.Duration.getDefaultInstance() : totalBilledTime_; + return totalBilledTime_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : totalBilledTime_; } else { return totalBilledTimeBuilder_.getMessage(); } } /** + * + * *
      * When available, billed audio seconds for the corresponding request.
      * 
@@ -1140,14 +1271,15 @@ public Builder setTotalBilledTime(com.google.protobuf.Duration value) { return this; } /** + * + * *
      * When available, billed audio seconds for the corresponding request.
      * 
* * .google.protobuf.Duration total_billed_time = 3; */ - public Builder setTotalBilledTime( - com.google.protobuf.Duration.Builder builderForValue) { + public Builder setTotalBilledTime(com.google.protobuf.Duration.Builder builderForValue) { if (totalBilledTimeBuilder_ == null) { totalBilledTime_ = builderForValue.build(); onChanged(); @@ -1158,6 +1290,8 @@ public Builder setTotalBilledTime( return this; } /** + * + * *
      * When available, billed audio seconds for the corresponding request.
      * 
@@ -1168,7 +1302,9 @@ public Builder mergeTotalBilledTime(com.google.protobuf.Duration value) { if (totalBilledTimeBuilder_ == null) { if (totalBilledTime_ != null) { totalBilledTime_ = - com.google.protobuf.Duration.newBuilder(totalBilledTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Duration.newBuilder(totalBilledTime_) + .mergeFrom(value) + .buildPartial(); } else { totalBilledTime_ = value; } @@ -1180,6 +1316,8 @@ public Builder mergeTotalBilledTime(com.google.protobuf.Duration value) { return this; } /** + * + * *
      * When available, billed audio seconds for the corresponding request.
      * 
@@ -1198,6 +1336,8 @@ public Builder clearTotalBilledTime() { return this; } /** + * + * *
      * When available, billed audio seconds for the corresponding request.
      * 
@@ -1205,11 +1345,13 @@ public Builder clearTotalBilledTime() { * .google.protobuf.Duration total_billed_time = 3; */ public com.google.protobuf.Duration.Builder getTotalBilledTimeBuilder() { - + onChanged(); return getTotalBilledTimeFieldBuilder().getBuilder(); } /** + * + * *
      * When available, billed audio seconds for the corresponding request.
      * 
@@ -1220,11 +1362,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.
      * 
@@ -1232,14 +1377,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_; @@ -1247,34 +1395,47 @@ public com.google.protobuf.DurationOrBuilder getTotalBilledTimeOrBuilder() { private com.google.cloud.speech.v1.TranscriptOutputConfig outputConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1.TranscriptOutputConfig, com.google.cloud.speech.v1.TranscriptOutputConfig.Builder, com.google.cloud.speech.v1.TranscriptOutputConfigOrBuilder> outputConfigBuilder_; + com.google.cloud.speech.v1.TranscriptOutputConfig, + com.google.cloud.speech.v1.TranscriptOutputConfig.Builder, + com.google.cloud.speech.v1.TranscriptOutputConfigOrBuilder> + outputConfigBuilder_; /** + * + * *
      * Original output config if present in the request.
      * 
* * .google.cloud.speech.v1.TranscriptOutputConfig output_config = 6; + * * @return Whether the outputConfig field is set. */ public boolean hasOutputConfig() { return outputConfigBuilder_ != null || outputConfig_ != null; } /** + * + * *
      * Original output config if present in the request.
      * 
* * .google.cloud.speech.v1.TranscriptOutputConfig output_config = 6; + * * @return The outputConfig. */ public com.google.cloud.speech.v1.TranscriptOutputConfig getOutputConfig() { if (outputConfigBuilder_ == null) { - return outputConfig_ == null ? com.google.cloud.speech.v1.TranscriptOutputConfig.getDefaultInstance() : outputConfig_; + return outputConfig_ == null + ? com.google.cloud.speech.v1.TranscriptOutputConfig.getDefaultInstance() + : outputConfig_; } else { return outputConfigBuilder_.getMessage(); } } /** + * + * *
      * Original output config if present in the request.
      * 
@@ -1295,6 +1456,8 @@ public Builder setOutputConfig(com.google.cloud.speech.v1.TranscriptOutputConfig return this; } /** + * + * *
      * Original output config if present in the request.
      * 
@@ -1313,6 +1476,8 @@ public Builder setOutputConfig( return this; } /** + * + * *
      * Original output config if present in the request.
      * 
@@ -1323,7 +1488,9 @@ public Builder mergeOutputConfig(com.google.cloud.speech.v1.TranscriptOutputConf if (outputConfigBuilder_ == null) { if (outputConfig_ != null) { outputConfig_ = - com.google.cloud.speech.v1.TranscriptOutputConfig.newBuilder(outputConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.speech.v1.TranscriptOutputConfig.newBuilder(outputConfig_) + .mergeFrom(value) + .buildPartial(); } else { outputConfig_ = value; } @@ -1335,6 +1502,8 @@ public Builder mergeOutputConfig(com.google.cloud.speech.v1.TranscriptOutputConf return this; } /** + * + * *
      * Original output config if present in the request.
      * 
@@ -1353,6 +1522,8 @@ public Builder clearOutputConfig() { return this; } /** + * + * *
      * Original output config if present in the request.
      * 
@@ -1360,11 +1531,13 @@ public Builder clearOutputConfig() { * .google.cloud.speech.v1.TranscriptOutputConfig output_config = 6; */ public com.google.cloud.speech.v1.TranscriptOutputConfig.Builder getOutputConfigBuilder() { - + onChanged(); return getOutputConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Original output config if present in the request.
      * 
@@ -1375,11 +1548,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.
      * 
@@ -1387,14 +1563,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_; @@ -1402,24 +1581,31 @@ public com.google.cloud.speech.v1.TranscriptOutputConfigOrBuilder getOutputConfi private com.google.rpc.Status outputError_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> outputErrorBuilder_; + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + outputErrorBuilder_; /** + * + * *
      * If the transcript output fails this field contains the relevant error.
      * 
* * .google.rpc.Status output_error = 7; + * * @return Whether the outputError field is set. */ public boolean hasOutputError() { return outputErrorBuilder_ != null || outputError_ != null; } /** + * + * *
      * If the transcript output fails this field contains the relevant error.
      * 
* * .google.rpc.Status output_error = 7; + * * @return The outputError. */ public com.google.rpc.Status getOutputError() { @@ -1430,6 +1616,8 @@ public com.google.rpc.Status getOutputError() { } } /** + * + * *
      * If the transcript output fails this field contains the relevant error.
      * 
@@ -1450,14 +1638,15 @@ public Builder setOutputError(com.google.rpc.Status value) { return this; } /** + * + * *
      * If the transcript output fails this field contains the relevant error.
      * 
* * .google.rpc.Status output_error = 7; */ - public Builder setOutputError( - com.google.rpc.Status.Builder builderForValue) { + public Builder setOutputError(com.google.rpc.Status.Builder builderForValue) { if (outputErrorBuilder_ == null) { outputError_ = builderForValue.build(); onChanged(); @@ -1468,6 +1657,8 @@ public Builder setOutputError( return this; } /** + * + * *
      * If the transcript output fails this field contains the relevant error.
      * 
@@ -1478,7 +1669,7 @@ public Builder mergeOutputError(com.google.rpc.Status value) { if (outputErrorBuilder_ == null) { if (outputError_ != null) { outputError_ = - com.google.rpc.Status.newBuilder(outputError_).mergeFrom(value).buildPartial(); + com.google.rpc.Status.newBuilder(outputError_).mergeFrom(value).buildPartial(); } else { outputError_ = value; } @@ -1490,6 +1681,8 @@ public Builder mergeOutputError(com.google.rpc.Status value) { return this; } /** + * + * *
      * If the transcript output fails this field contains the relevant error.
      * 
@@ -1508,6 +1701,8 @@ public Builder clearOutputError() { return this; } /** + * + * *
      * If the transcript output fails this field contains the relevant error.
      * 
@@ -1515,11 +1710,13 @@ public Builder clearOutputError() { * .google.rpc.Status output_error = 7; */ public com.google.rpc.Status.Builder getOutputErrorBuilder() { - + onChanged(); return getOutputErrorFieldBuilder().getBuilder(); } /** + * + * *
      * If the transcript output fails this field contains the relevant error.
      * 
@@ -1530,11 +1727,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.
      * 
@@ -1542,21 +1740,22 @@ public com.google.rpc.StatusOrBuilder getOutputErrorOrBuilder() { * .google.rpc.Status output_error = 7; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> getOutputErrorFieldBuilder() { if (outputErrorBuilder_ == null) { - outputErrorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>( - getOutputError(), - getParentForChildren(), - isClean()); + outputErrorBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, + com.google.rpc.Status.Builder, + com.google.rpc.StatusOrBuilder>( + getOutputError(), getParentForChildren(), isClean()); outputError_ = null; } return outputErrorBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1566,12 +1765,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(); } @@ -1580,16 +1779,16 @@ public static com.google.cloud.speech.v1.LongRunningRecognizeResponse getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LongRunningRecognizeResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new LongRunningRecognizeResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LongRunningRecognizeResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LongRunningRecognizeResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1604,6 +1803,4 @@ public com.google.protobuf.Parser getParserForType public com.google.cloud.speech.v1.LongRunningRecognizeResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeResponseOrBuilder.java b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeResponseOrBuilder.java similarity index 81% rename from owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeResponseOrBuilder.java rename to proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeResponseOrBuilder.java index 231d7ae91..5078fa81a 100644 --- a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeResponseOrBuilder.java +++ b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeResponseOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1/cloud_speech.proto package com.google.cloud.speech.v1; -public interface LongRunningRecognizeResponseOrBuilder extends +public interface LongRunningRecognizeResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1.LongRunningRecognizeResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -15,9 +33,10 @@ public interface LongRunningRecognizeResponseOrBuilder extends
    *
    * repeated .google.cloud.speech.v1.SpeechRecognitionResult results = 2;
    */
-  java.util.List 
-      getResultsList();
+  java.util.List getResultsList();
   /**
+   *
+   *
    * 
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -27,6 +46,8 @@ public interface LongRunningRecognizeResponseOrBuilder extends
    */
   com.google.cloud.speech.v1.SpeechRecognitionResult getResults(int index);
   /**
+   *
+   *
    * 
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -36,6 +57,8 @@ public interface LongRunningRecognizeResponseOrBuilder extends
    */
   int getResultsCount();
   /**
+   *
+   *
    * 
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -43,9 +66,11 @@ public interface LongRunningRecognizeResponseOrBuilder extends
    *
    * repeated .google.cloud.speech.v1.SpeechRecognitionResult results = 2;
    */
-  java.util.List 
+  java.util.List
       getResultsOrBuilderList();
   /**
+   *
+   *
    * 
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -53,28 +78,35 @@ public interface LongRunningRecognizeResponseOrBuilder extends
    *
    * repeated .google.cloud.speech.v1.SpeechRecognitionResult results = 2;
    */
-  com.google.cloud.speech.v1.SpeechRecognitionResultOrBuilder getResultsOrBuilder(
-      int index);
+  com.google.cloud.speech.v1.SpeechRecognitionResultOrBuilder getResultsOrBuilder(int index);
 
   /**
+   *
+   *
    * 
    * When available, billed audio seconds for the corresponding request.
    * 
* * .google.protobuf.Duration total_billed_time = 3; + * * @return Whether the totalBilledTime field is set. */ boolean hasTotalBilledTime(); /** + * + * *
    * When available, billed audio seconds for the corresponding request.
    * 
* * .google.protobuf.Duration total_billed_time = 3; + * * @return The totalBilledTime. */ com.google.protobuf.Duration getTotalBilledTime(); /** + * + * *
    * When available, billed audio seconds for the corresponding request.
    * 
@@ -84,24 +116,32 @@ com.google.cloud.speech.v1.SpeechRecognitionResultOrBuilder getResultsOrBuilder( com.google.protobuf.DurationOrBuilder getTotalBilledTimeOrBuilder(); /** + * + * *
    * Original output config if present in the request.
    * 
* * .google.cloud.speech.v1.TranscriptOutputConfig output_config = 6; + * * @return Whether the outputConfig field is set. */ boolean hasOutputConfig(); /** + * + * *
    * Original output config if present in the request.
    * 
* * .google.cloud.speech.v1.TranscriptOutputConfig output_config = 6; + * * @return The outputConfig. */ com.google.cloud.speech.v1.TranscriptOutputConfig getOutputConfig(); /** + * + * *
    * Original output config if present in the request.
    * 
@@ -111,24 +151,32 @@ com.google.cloud.speech.v1.SpeechRecognitionResultOrBuilder getResultsOrBuilder( com.google.cloud.speech.v1.TranscriptOutputConfigOrBuilder getOutputConfigOrBuilder(); /** + * + * *
    * If the transcript output fails this field contains the relevant error.
    * 
* * .google.rpc.Status output_error = 7; + * * @return Whether the outputError field is set. */ boolean hasOutputError(); /** + * + * *
    * If the transcript output fails this field contains the relevant error.
    * 
* * .google.rpc.Status output_error = 7; + * * @return The outputError. */ com.google.rpc.Status getOutputError(); /** + * + * *
    * If the transcript output fails this field contains the relevant error.
    * 
diff --git a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/PhraseSet.java b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/PhraseSet.java similarity index 77% rename from owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/PhraseSet.java rename to proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/PhraseSet.java index d516cc695..9789fd000 100644 --- a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/PhraseSet.java +++ b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/PhraseSet.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1/resource.proto package com.google.cloud.speech.v1; /** + * + * *
  * Provides "hints" to the speech recognizer to favor specific words and phrases
  * in the results.
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.cloud.speech.v1.PhraseSet}
  */
-public final class PhraseSet extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class PhraseSet extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.speech.v1.PhraseSet)
     PhraseSetOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use PhraseSet.newBuilder() to construct.
   private PhraseSet(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private PhraseSet() {
     name_ = "";
     phrases_ = java.util.Collections.emptyList();
@@ -27,16 +45,15 @@ private PhraseSet() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new PhraseSet();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private PhraseSet(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -56,40 +73,42 @@ private PhraseSet(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            name_ = s;
-            break;
-          }
-          case 18: {
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              phrases_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000001;
+              name_ = s;
+              break;
             }
-            phrases_.add(
-                input.readMessage(com.google.cloud.speech.v1.PhraseSet.Phrase.parser(), extensionRegistry));
-            break;
-          }
-          case 37: {
-
-            boost_ = input.readFloat();
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          case 18:
+            {
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                phrases_ = new java.util.ArrayList();
+                mutable_bitField0_ |= 0x00000001;
+              }
+              phrases_.add(
+                  input.readMessage(
+                      com.google.cloud.speech.v1.PhraseSet.Phrase.parser(), extensionRegistry));
+              break;
+            }
+          case 37:
+            {
+              boost_ = input.readFloat();
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         phrases_ = java.util.Collections.unmodifiableList(phrases_);
@@ -98,44 +117,55 @@ private PhraseSet(
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.speech.v1.SpeechResourceProto.internal_static_google_cloud_speech_v1_PhraseSet_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.speech.v1.SpeechResourceProto
+        .internal_static_google_cloud_speech_v1_PhraseSet_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v1.SpeechResourceProto.internal_static_google_cloud_speech_v1_PhraseSet_fieldAccessorTable
+    return com.google.cloud.speech.v1.SpeechResourceProto
+        .internal_static_google_cloud_speech_v1_PhraseSet_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v1.PhraseSet.class, com.google.cloud.speech.v1.PhraseSet.Builder.class);
+            com.google.cloud.speech.v1.PhraseSet.class,
+            com.google.cloud.speech.v1.PhraseSet.Builder.class);
   }
 
-  public interface PhraseOrBuilder extends
+  public interface PhraseOrBuilder
+      extends
       // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1.PhraseSet.Phrase)
       com.google.protobuf.MessageOrBuilder {
 
     /**
+     *
+     *
      * 
      * The phrase itself.
      * 
* * string value = 1; + * * @return The value. */ java.lang.String getValue(); /** + * + * *
      * The phrase itself.
      * 
* * string value = 1; + * * @return The bytes for value. */ - com.google.protobuf.ByteString - getValueBytes(); + com.google.protobuf.ByteString getValueBytes(); /** + * + * *
      * Hint Boost. Overrides the boost set at the phrase set level.
      * Positive value will increase the probability that a specific phrase will
@@ -149,11 +179,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
@@ -182,31 +215,31 @@ public interface PhraseOrBuilder extends
    *
    * Protobuf type {@code google.cloud.speech.v1.PhraseSet.Phrase}
    */
-  public static final class Phrase extends
-      com.google.protobuf.GeneratedMessageV3 implements
+  public static final class Phrase extends com.google.protobuf.GeneratedMessageV3
+      implements
       // @@protoc_insertion_point(message_implements:google.cloud.speech.v1.PhraseSet.Phrase)
       PhraseOrBuilder {
-  private static final long serialVersionUID = 0L;
+    private static final long serialVersionUID = 0L;
     // Use Phrase.newBuilder() to construct.
     private Phrase(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
+
     private Phrase() {
       value_ = "";
     }
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(
-        UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
       return new Phrase();
     }
 
     @java.lang.Override
-    public final com.google.protobuf.UnknownFieldSet
-    getUnknownFields() {
+    public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
       return this.unknownFields;
     }
+
     private Phrase(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -225,57 +258,63 @@ private Phrase(
             case 0:
               done = true;
               break;
-            case 10: {
-              java.lang.String s = input.readStringRequireUtf8();
+            case 10:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
 
-              value_ = s;
-              break;
-            }
-            case 21: {
-
-              boost_ = input.readFloat();
-              break;
-            }
-            default: {
-              if (!parseUnknownField(
-                  input, unknownFields, extensionRegistry, tag)) {
-                done = true;
+                value_ = s;
+                break;
+              }
+            case 21:
+              {
+                boost_ = input.readFloat();
+                break;
+              }
+            default:
+              {
+                if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                  done = true;
+                }
+                break;
               }
-              break;
-            }
           }
         }
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
         throw e.setUnfinishedMessage(this);
       } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(
-            e).setUnfinishedMessage(this);
+        throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
       } finally {
         this.unknownFields = unknownFields.build();
         makeExtensionsImmutable();
       }
     }
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.speech.v1.SpeechResourceProto.internal_static_google_cloud_speech_v1_PhraseSet_Phrase_descriptor;
+
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.speech.v1.SpeechResourceProto
+          .internal_static_google_cloud_speech_v1_PhraseSet_Phrase_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v1.SpeechResourceProto.internal_static_google_cloud_speech_v1_PhraseSet_Phrase_fieldAccessorTable
+      return com.google.cloud.speech.v1.SpeechResourceProto
+          .internal_static_google_cloud_speech_v1_PhraseSet_Phrase_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v1.PhraseSet.Phrase.class, com.google.cloud.speech.v1.PhraseSet.Phrase.Builder.class);
+              com.google.cloud.speech.v1.PhraseSet.Phrase.class,
+              com.google.cloud.speech.v1.PhraseSet.Phrase.Builder.class);
     }
 
     public static final int VALUE_FIELD_NUMBER = 1;
     private volatile java.lang.Object value_;
     /**
+     *
+     *
      * 
      * The phrase itself.
      * 
* * string value = 1; + * * @return The value. */ @java.lang.Override @@ -284,29 +323,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 { @@ -317,6 +356,8 @@ public java.lang.String getValue() { public static final int BOOST_FIELD_NUMBER = 2; private float boost_; /** + * + * *
      * Hint Boost. Overrides the boost set at the phrase set level.
      * Positive value will increase the probability that a specific phrase will
@@ -330,6 +371,7 @@ public java.lang.String getValue() {
      * 
* * float boost = 2; + * * @return The boost. */ @java.lang.Override @@ -338,6 +380,7 @@ public float getBoost() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -349,8 +392,7 @@ public final boolean isInitialized() { } @java.lang.Override - public 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_); } @@ -370,8 +412,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, value_); } if (boost_ != 0F) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(2, boost_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, boost_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -381,18 +422,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1.PhraseSet.Phrase)) { return super.equals(obj); } - com.google.cloud.speech.v1.PhraseSet.Phrase other = (com.google.cloud.speech.v1.PhraseSet.Phrase) obj; + com.google.cloud.speech.v1.PhraseSet.Phrase other = + (com.google.cloud.speech.v1.PhraseSet.Phrase) obj; - if (!getValue() - .equals(other.getValue())) return false; + if (!getValue().equals(other.getValue())) return false; if (java.lang.Float.floatToIntBits(getBoost()) - != java.lang.Float.floatToIntBits( - other.getBoost())) return false; + != java.lang.Float.floatToIntBits(other.getBoost())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -407,95 +447,100 @@ public int hashCode() { hash = (37 * hash) + VALUE_FIELD_NUMBER; hash = (53 * hash) + getValue().hashCode(); hash = (37 * hash) + BOOST_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getBoost()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getBoost()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.speech.v1.PhraseSet.Phrase parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.speech.v1.PhraseSet.Phrase parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1.PhraseSet.Phrase parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1.PhraseSet.Phrase parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1.PhraseSet.Phrase parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1.PhraseSet.Phrase parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1.PhraseSet.Phrase parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1.PhraseSet.Phrase parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1.PhraseSet.Phrase parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1.PhraseSet.Phrase parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1.PhraseSet.Phrase parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1.PhraseSet.Phrase parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.speech.v1.PhraseSet.Phrase parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1.PhraseSet.Phrase parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.speech.v1.PhraseSet.Phrase prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -505,6 +550,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
@@ -533,21 +580,24 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.cloud.speech.v1.PhraseSet.Phrase}
      */
-    public static final class Builder extends
-        com.google.protobuf.GeneratedMessageV3.Builder implements
+    public static final class Builder
+        extends com.google.protobuf.GeneratedMessageV3.Builder
+        implements
         // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1.PhraseSet.Phrase)
         com.google.cloud.speech.v1.PhraseSet.PhraseOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor
-          getDescriptor() {
-        return com.google.cloud.speech.v1.SpeechResourceProto.internal_static_google_cloud_speech_v1_PhraseSet_Phrase_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+        return com.google.cloud.speech.v1.SpeechResourceProto
+            .internal_static_google_cloud_speech_v1_PhraseSet_Phrase_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.cloud.speech.v1.SpeechResourceProto.internal_static_google_cloud_speech_v1_PhraseSet_Phrase_fieldAccessorTable
+        return com.google.cloud.speech.v1.SpeechResourceProto
+            .internal_static_google_cloud_speech_v1_PhraseSet_Phrase_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.cloud.speech.v1.PhraseSet.Phrase.class, com.google.cloud.speech.v1.PhraseSet.Phrase.Builder.class);
+                com.google.cloud.speech.v1.PhraseSet.Phrase.class,
+                com.google.cloud.speech.v1.PhraseSet.Phrase.Builder.class);
       }
 
       // Construct using com.google.cloud.speech.v1.PhraseSet.Phrase.newBuilder()
@@ -555,16 +605,15 @@ private Builder() {
         maybeForceBuilderInitialization();
       }
 
-      private Builder(
-          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         super(parent);
         maybeForceBuilderInitialization();
       }
+
       private void maybeForceBuilderInitialization() {
-        if (com.google.protobuf.GeneratedMessageV3
-                .alwaysUseFieldBuilders) {
-        }
+        if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
       }
+
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -576,9 +625,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
@@ -597,7 +646,8 @@ public com.google.cloud.speech.v1.PhraseSet.Phrase build() {
 
       @java.lang.Override
       public com.google.cloud.speech.v1.PhraseSet.Phrase buildPartial() {
-        com.google.cloud.speech.v1.PhraseSet.Phrase result = new com.google.cloud.speech.v1.PhraseSet.Phrase(this);
+        com.google.cloud.speech.v1.PhraseSet.Phrase result =
+            new com.google.cloud.speech.v1.PhraseSet.Phrase(this);
         result.value_ = value_;
         result.boost_ = boost_;
         onBuilt();
@@ -608,38 +658,41 @@ public com.google.cloud.speech.v1.PhraseSet.Phrase buildPartial() {
       public Builder clone() {
         return super.clone();
       }
+
       @java.lang.Override
       public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field,
-          java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
         return super.setField(field, value);
       }
+
       @java.lang.Override
-      public Builder clearField(
-          com.google.protobuf.Descriptors.FieldDescriptor field) {
+      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
         return super.clearField(field);
       }
+
       @java.lang.Override
-      public Builder clearOneof(
-          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+      public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
         return super.clearOneof(oneof);
       }
+
       @java.lang.Override
       public Builder setRepeatedField(
           com.google.protobuf.Descriptors.FieldDescriptor field,
-          int index, java.lang.Object value) {
+          int index,
+          java.lang.Object value) {
         return super.setRepeatedField(field, index, value);
       }
+
       @java.lang.Override
       public Builder addRepeatedField(
-          com.google.protobuf.Descriptors.FieldDescriptor field,
-          java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
         return super.addRepeatedField(field, value);
       }
+
       @java.lang.Override
       public Builder mergeFrom(com.google.protobuf.Message other) {
         if (other instanceof com.google.cloud.speech.v1.PhraseSet.Phrase) {
-          return mergeFrom((com.google.cloud.speech.v1.PhraseSet.Phrase)other);
+          return mergeFrom((com.google.cloud.speech.v1.PhraseSet.Phrase) other);
         } else {
           super.mergeFrom(other);
           return this;
@@ -686,18 +739,20 @@ public Builder mergeFrom(
 
       private java.lang.Object value_ = "";
       /**
+       *
+       *
        * 
        * The phrase itself.
        * 
* * string value = 1; + * * @return The value. */ public java.lang.String getValue() { java.lang.Object ref = value_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); value_ = s; return s; @@ -706,20 +761,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 { @@ -727,61 +783,70 @@ public java.lang.String getValue() { } } /** + * + * *
        * The phrase itself.
        * 
* * string value = 1; + * * @param value The value to set. * @return This builder for chaining. */ - public Builder setValue( - java.lang.String value) { + public Builder setValue(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + value_ = value; onChanged(); return this; } /** + * + * *
        * The phrase itself.
        * 
* * string value = 1; + * * @return This builder for chaining. */ public Builder clearValue() { - + value_ = getDefaultInstance().getValue(); onChanged(); return this; } /** + * + * *
        * The phrase itself.
        * 
* * string value = 1; + * * @param value The bytes for value to set. * @return This builder for chaining. */ - public Builder setValueBytes( - com.google.protobuf.ByteString value) { + public Builder setValueBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + value_ = value; onChanged(); return this; } - private float boost_ ; + private float boost_; /** + * + * *
        * Hint Boost. Overrides the boost set at the phrase set level.
        * Positive value will increase the probability that a specific phrase will
@@ -795,6 +860,7 @@ public Builder setValueBytes(
        * 
* * float boost = 2; + * * @return The boost. */ @java.lang.Override @@ -802,6 +868,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
@@ -815,16 +883,19 @@ public float getBoost() {
        * 
* * float boost = 2; + * * @param value The boost to set. * @return This builder for chaining. */ public Builder setBoost(float value) { - + boost_ = value; onChanged(); return this; } /** + * + * *
        * Hint Boost. Overrides the boost set at the phrase set level.
        * Positive value will increase the probability that a specific phrase will
@@ -838,14 +909,16 @@ public Builder setBoost(float value) {
        * 
* * float boost = 2; + * * @return This builder for chaining. */ public Builder clearBoost() { - + boost_ = 0F; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -858,12 +931,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(); } @@ -872,16 +945,16 @@ public static com.google.cloud.speech.v1.PhraseSet.Phrase getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Phrase parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Phrase(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Phrase parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Phrase(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -896,17 +969,19 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1.PhraseSet.Phrase getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * The resource name of the phrase set.
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -915,29 +990,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 { @@ -948,6 +1023,8 @@ public java.lang.String getName() { public static final int PHRASES_FIELD_NUMBER = 2; private java.util.List phrases_; /** + * + * *
    * A list of word and phrases.
    * 
@@ -959,6 +1036,8 @@ public java.util.List getPhrasesLis return phrases_; } /** + * + * *
    * A list of word and phrases.
    * 
@@ -966,11 +1045,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.
    * 
@@ -982,6 +1063,8 @@ public int getPhrasesCount() { return phrases_.size(); } /** + * + * *
    * A list of word and phrases.
    * 
@@ -993,6 +1076,8 @@ public com.google.cloud.speech.v1.PhraseSet.Phrase getPhrases(int index) { return phrases_.get(index); } /** + * + * *
    * A list of word and phrases.
    * 
@@ -1000,14 +1085,15 @@ public com.google.cloud.speech.v1.PhraseSet.Phrase getPhrases(int index) { * repeated .google.cloud.speech.v1.PhraseSet.Phrase phrases = 2; */ @java.lang.Override - public com.google.cloud.speech.v1.PhraseSet.PhraseOrBuilder getPhrasesOrBuilder( - int index) { + public com.google.cloud.speech.v1.PhraseSet.PhraseOrBuilder getPhrasesOrBuilder(int index) { return phrases_.get(index); } public static final int BOOST_FIELD_NUMBER = 4; private float boost_; /** + * + * *
    * Hint Boost. Positive value will increase the probability that a specific
    * phrase will be recognized over other similar sounding phrases. The higher
@@ -1021,6 +1107,7 @@ public com.google.cloud.speech.v1.PhraseSet.PhraseOrBuilder getPhrasesOrBuilder(
    * 
* * float boost = 4; + * * @return The boost. */ @java.lang.Override @@ -1029,6 +1116,7 @@ public float getBoost() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1040,8 +1128,7 @@ public final boolean isInitialized() { } @java.lang.Override - public 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_); } @@ -1064,12 +1151,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 (boost_ != 0F) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(4, boost_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(4, boost_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1079,20 +1164,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1.PhraseSet)) { return super.equals(obj); } com.google.cloud.speech.v1.PhraseSet other = (com.google.cloud.speech.v1.PhraseSet) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getPhrasesList() - .equals(other.getPhrasesList())) return false; + if (!getName().equals(other.getName())) return false; + if (!getPhrasesList().equals(other.getPhrasesList())) return false; if (java.lang.Float.floatToIntBits(getBoost()) - != java.lang.Float.floatToIntBits( - other.getBoost())) return false; + != java.lang.Float.floatToIntBits(other.getBoost())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1111,104 +1193,109 @@ public int hashCode() { hash = (53 * hash) + getPhrasesList().hashCode(); } hash = (37 * hash) + BOOST_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getBoost()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getBoost()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.speech.v1.PhraseSet parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.speech.v1.PhraseSet parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1.PhraseSet parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1.PhraseSet parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.cloud.speech.v1.PhraseSet parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1.PhraseSet parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1.PhraseSet parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1.PhraseSet parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1.PhraseSet parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1.PhraseSet parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.speech.v1.PhraseSet parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1.PhraseSet parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.speech.v1.PhraseSet parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1.PhraseSet parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.speech.v1.PhraseSet prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Provides "hints" to the speech recognizer to favor specific words and phrases
    * in the results.
@@ -1216,21 +1303,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.speech.v1.PhraseSet}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1.PhraseSet)
       com.google.cloud.speech.v1.PhraseSetOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.speech.v1.SpeechResourceProto.internal_static_google_cloud_speech_v1_PhraseSet_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.speech.v1.SpeechResourceProto
+          .internal_static_google_cloud_speech_v1_PhraseSet_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v1.SpeechResourceProto.internal_static_google_cloud_speech_v1_PhraseSet_fieldAccessorTable
+      return com.google.cloud.speech.v1.SpeechResourceProto
+          .internal_static_google_cloud_speech_v1_PhraseSet_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v1.PhraseSet.class, com.google.cloud.speech.v1.PhraseSet.Builder.class);
+              com.google.cloud.speech.v1.PhraseSet.class,
+              com.google.cloud.speech.v1.PhraseSet.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v1.PhraseSet.newBuilder()
@@ -1238,17 +1327,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
         getPhrasesFieldBuilder();
       }
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1266,9 +1355,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
@@ -1308,38 +1397,39 @@ public com.google.cloud.speech.v1.PhraseSet buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.speech.v1.PhraseSet) {
-        return mergeFrom((com.google.cloud.speech.v1.PhraseSet)other);
+        return mergeFrom((com.google.cloud.speech.v1.PhraseSet) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1370,9 +1460,10 @@ public Builder mergeFrom(com.google.cloud.speech.v1.PhraseSet other) {
             phrasesBuilder_ = null;
             phrases_ = other.phrases_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            phrasesBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getPhrasesFieldBuilder() : null;
+            phrasesBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getPhrasesFieldBuilder()
+                    : null;
           } else {
             phrasesBuilder_.addAllMessages(other.phrases_);
           }
@@ -1409,22 +1500,25 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * The resource name of the phrase set.
      * 
* * string name = 1; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1433,20 +1527,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 { @@ -1454,72 +1549,85 @@ public java.lang.String getName() { } } /** + * + * *
      * The resource name of the phrase set.
      * 
* * string name = 1; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * The resource name of the phrase set.
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * The resource name of the phrase set.
      * 
* * string name = 1; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } private java.util.List phrases_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensurePhrasesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { phrases_ = new java.util.ArrayList(phrases_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.speech.v1.PhraseSet.Phrase, com.google.cloud.speech.v1.PhraseSet.Phrase.Builder, com.google.cloud.speech.v1.PhraseSet.PhraseOrBuilder> phrasesBuilder_; + com.google.cloud.speech.v1.PhraseSet.Phrase, + com.google.cloud.speech.v1.PhraseSet.Phrase.Builder, + com.google.cloud.speech.v1.PhraseSet.PhraseOrBuilder> + phrasesBuilder_; /** + * + * *
      * A list of word and phrases.
      * 
@@ -1534,6 +1642,8 @@ public java.util.List getPhrasesLis } } /** + * + * *
      * A list of word and phrases.
      * 
@@ -1548,6 +1658,8 @@ public int getPhrasesCount() { } } /** + * + * *
      * A list of word and phrases.
      * 
@@ -1562,14 +1674,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(); @@ -1583,6 +1696,8 @@ public Builder setPhrases( return this; } /** + * + * *
      * A list of word and phrases.
      * 
@@ -1601,6 +1716,8 @@ public Builder setPhrases( return this; } /** + * + * *
      * A list of word and phrases.
      * 
@@ -1621,14 +1738,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(); @@ -1642,14 +1760,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()); @@ -1660,6 +1779,8 @@ public Builder addPhrases( return this; } /** + * + * *
      * A list of word and phrases.
      * 
@@ -1678,6 +1799,8 @@ public Builder addPhrases( return this; } /** + * + * *
      * A list of word and phrases.
      * 
@@ -1688,8 +1811,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); @@ -1697,6 +1819,8 @@ public Builder addAllPhrases( return this; } /** + * + * *
      * A list of word and phrases.
      * 
@@ -1714,6 +1838,8 @@ public Builder clearPhrases() { return this; } /** + * + * *
      * A list of word and phrases.
      * 
@@ -1731,39 +1857,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 { @@ -1771,6 +1902,8 @@ public com.google.cloud.speech.v1.PhraseSet.PhraseOrBuilder getPhrasesOrBuilder( } } /** + * + * *
      * A list of word and phrases.
      * 
@@ -1778,49 +1911,57 @@ public com.google.cloud.speech.v1.PhraseSet.PhraseOrBuilder getPhrasesOrBuilder( * repeated .google.cloud.speech.v1.PhraseSet.Phrase phrases = 2; */ public com.google.cloud.speech.v1.PhraseSet.Phrase.Builder addPhrasesBuilder() { - return getPhrasesFieldBuilder().addBuilder( - com.google.cloud.speech.v1.PhraseSet.Phrase.getDefaultInstance()); + return getPhrasesFieldBuilder() + .addBuilder(com.google.cloud.speech.v1.PhraseSet.Phrase.getDefaultInstance()); } /** + * + * *
      * A list of word and phrases.
      * 
* * repeated .google.cloud.speech.v1.PhraseSet.Phrase phrases = 2; */ - public com.google.cloud.speech.v1.PhraseSet.Phrase.Builder addPhrasesBuilder( - int index) { - return getPhrasesFieldBuilder().addBuilder( - index, com.google.cloud.speech.v1.PhraseSet.Phrase.getDefaultInstance()); + public com.google.cloud.speech.v1.PhraseSet.Phrase.Builder addPhrasesBuilder(int index) { + return getPhrasesFieldBuilder() + .addBuilder(index, com.google.cloud.speech.v1.PhraseSet.Phrase.getDefaultInstance()); } /** + * + * *
      * A list of word and phrases.
      * 
* * repeated .google.cloud.speech.v1.PhraseSet.Phrase phrases = 2; */ - public java.util.List - getPhrasesBuilderList() { + public java.util.List + getPhrasesBuilderList() { return getPhrasesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.speech.v1.PhraseSet.Phrase, com.google.cloud.speech.v1.PhraseSet.Phrase.Builder, com.google.cloud.speech.v1.PhraseSet.PhraseOrBuilder> + com.google.cloud.speech.v1.PhraseSet.Phrase, + com.google.cloud.speech.v1.PhraseSet.Phrase.Builder, + com.google.cloud.speech.v1.PhraseSet.PhraseOrBuilder> getPhrasesFieldBuilder() { if (phrasesBuilder_ == null) { - phrasesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.speech.v1.PhraseSet.Phrase, com.google.cloud.speech.v1.PhraseSet.Phrase.Builder, com.google.cloud.speech.v1.PhraseSet.PhraseOrBuilder>( - phrases_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + phrasesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.speech.v1.PhraseSet.Phrase, + com.google.cloud.speech.v1.PhraseSet.Phrase.Builder, + com.google.cloud.speech.v1.PhraseSet.PhraseOrBuilder>( + phrases_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); phrases_ = null; } return phrasesBuilder_; } - private float boost_ ; + private float boost_; /** + * + * *
      * Hint Boost. Positive value will increase the probability that a specific
      * phrase will be recognized over other similar sounding phrases. The higher
@@ -1834,6 +1975,7 @@ public com.google.cloud.speech.v1.PhraseSet.Phrase.Builder addPhrasesBuilder(
      * 
* * float boost = 4; + * * @return The boost. */ @java.lang.Override @@ -1841,6 +1983,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
@@ -1854,16 +1998,19 @@ public float getBoost() {
      * 
* * float boost = 4; + * * @param value The boost to set. * @return This builder for chaining. */ public Builder setBoost(float value) { - + boost_ = value; onChanged(); return this; } /** + * + * *
      * Hint Boost. Positive value will increase the probability that a specific
      * phrase will be recognized over other similar sounding phrases. The higher
@@ -1877,17 +2024,18 @@ public Builder setBoost(float value) {
      * 
* * float boost = 4; + * * @return This builder for chaining. */ public Builder clearBoost() { - + boost_ = 0F; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1897,12 +2045,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(); } @@ -1911,16 +2059,16 @@ public static com.google.cloud.speech.v1.PhraseSet getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PhraseSet parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PhraseSet(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PhraseSet parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PhraseSet(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1935,6 +2083,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1.PhraseSet getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/PhraseSetOrBuilder.java b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/PhraseSetOrBuilder.java similarity index 72% rename from owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/PhraseSetOrBuilder.java rename to proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/PhraseSetOrBuilder.java index c57c3c5d6..39857ed50 100644 --- a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/PhraseSetOrBuilder.java +++ b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/PhraseSetOrBuilder.java @@ -1,42 +1,66 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1/resource.proto package com.google.cloud.speech.v1; -public interface PhraseSetOrBuilder extends +public interface PhraseSetOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1.PhraseSet) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The resource name of the phrase set.
    * 
* * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * The resource name of the phrase set.
    * 
* * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * A list of word and phrases.
    * 
* * repeated .google.cloud.speech.v1.PhraseSet.Phrase phrases = 2; */ - java.util.List - getPhrasesList(); + java.util.List getPhrasesList(); /** + * + * *
    * A list of word and phrases.
    * 
@@ -45,6 +69,8 @@ public interface PhraseSetOrBuilder extends */ com.google.cloud.speech.v1.PhraseSet.Phrase getPhrases(int index); /** + * + * *
    * A list of word and phrases.
    * 
@@ -53,25 +79,30 @@ public interface PhraseSetOrBuilder extends */ int getPhrasesCount(); /** + * + * *
    * A list of word and phrases.
    * 
* * repeated .google.cloud.speech.v1.PhraseSet.Phrase phrases = 2; */ - java.util.List + java.util.List getPhrasesOrBuilderList(); /** + * + * *
    * A list of word and phrases.
    * 
* * repeated .google.cloud.speech.v1.PhraseSet.Phrase phrases = 2; */ - com.google.cloud.speech.v1.PhraseSet.PhraseOrBuilder getPhrasesOrBuilder( - int index); + com.google.cloud.speech.v1.PhraseSet.PhraseOrBuilder getPhrasesOrBuilder(int index); /** + * + * *
    * Hint Boost. Positive value will increase the probability that a specific
    * phrase will be recognized over other similar sounding phrases. The higher
@@ -85,6 +116,7 @@ com.google.cloud.speech.v1.PhraseSet.PhraseOrBuilder getPhrasesOrBuilder(
    * 
* * float boost = 4; + * * @return The boost. */ float getBoost(); diff --git a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionAudio.java b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionAudio.java similarity index 75% rename from owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionAudio.java rename to proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionAudio.java index f77b954c0..b3ba56d14 100644 --- a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionAudio.java +++ b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionAudio.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1/cloud_speech.proto package com.google.cloud.speech.v1; /** + * + * *
  * Contains audio data in the encoding specified in the `RecognitionConfig`.
  * Either `content` or `uri` must be supplied. Supplying both or neither
@@ -13,30 +30,29 @@
  *
  * Protobuf type {@code google.cloud.speech.v1.RecognitionAudio}
  */
-public final class RecognitionAudio extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class RecognitionAudio extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.speech.v1.RecognitionAudio)
     RecognitionAudioOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use RecognitionAudio.newBuilder() to construct.
   private RecognitionAudio(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-  private RecognitionAudio() {
-  }
+
+  private RecognitionAudio() {}
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new RecognitionAudio();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private RecognitionAudio(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -55,58 +71,65 @@ private RecognitionAudio(
           case 0:
             done = true;
             break;
-          case 10: {
-            audioSourceCase_ = 1;
-            audioSource_ = input.readBytes();
-            break;
-          }
-          case 18: {
-            java.lang.String s = input.readStringRequireUtf8();
-            audioSourceCase_ = 2;
-            audioSource_ = s;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          case 10:
+            {
+              audioSourceCase_ = 1;
+              audioSource_ = input.readBytes();
+              break;
+            }
+          case 18:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
+              audioSourceCase_ = 2;
+              audioSource_ = s;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_RecognitionAudio_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.speech.v1.SpeechProto
+        .internal_static_google_cloud_speech_v1_RecognitionAudio_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_RecognitionAudio_fieldAccessorTable
+    return com.google.cloud.speech.v1.SpeechProto
+        .internal_static_google_cloud_speech_v1_RecognitionAudio_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v1.RecognitionAudio.class, com.google.cloud.speech.v1.RecognitionAudio.Builder.class);
+            com.google.cloud.speech.v1.RecognitionAudio.class,
+            com.google.cloud.speech.v1.RecognitionAudio.Builder.class);
   }
 
   private int audioSourceCase_ = 0;
   private java.lang.Object audioSource_;
+
   public enum AudioSourceCase
-      implements com.google.protobuf.Internal.EnumLite,
+      implements
+          com.google.protobuf.Internal.EnumLite,
           com.google.protobuf.AbstractMessage.InternalOneOfEnum {
     CONTENT(1),
     URI(2),
     AUDIOSOURCE_NOT_SET(0);
     private final int value;
+
     private AudioSourceCase(int value) {
       this.value = value;
     }
@@ -122,25 +145,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
@@ -148,6 +176,7 @@ public int getNumber() {
    * 
* * bytes content = 1; + * * @return Whether the content field is set. */ @java.lang.Override @@ -155,6 +184,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
@@ -162,6 +193,7 @@ public boolean hasContent() {
    * 
* * bytes content = 1; + * * @return The content. */ @java.lang.Override @@ -174,6 +206,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).
@@ -185,12 +219,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).
@@ -202,6 +239,7 @@ public boolean hasUri() {
    * 
* * string uri = 2; + * * @return The uri. */ public java.lang.String getUri() { @@ -212,8 +250,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; @@ -222,6 +259,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).
@@ -233,18 +272,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; } @@ -255,6 +293,7 @@ public java.lang.String getUri() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -266,11 +305,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_); @@ -285,9 +322,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_); @@ -300,22 +337,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: @@ -348,97 +384,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
@@ -448,21 +491,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.speech.v1.RecognitionAudio}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1.RecognitionAudio)
       com.google.cloud.speech.v1.RecognitionAudioOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_RecognitionAudio_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.speech.v1.SpeechProto
+          .internal_static_google_cloud_speech_v1_RecognitionAudio_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_RecognitionAudio_fieldAccessorTable
+      return com.google.cloud.speech.v1.SpeechProto
+          .internal_static_google_cloud_speech_v1_RecognitionAudio_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v1.RecognitionAudio.class, com.google.cloud.speech.v1.RecognitionAudio.Builder.class);
+              com.google.cloud.speech.v1.RecognitionAudio.class,
+              com.google.cloud.speech.v1.RecognitionAudio.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v1.RecognitionAudio.newBuilder()
@@ -470,16 +515,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -489,9 +533,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_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
@@ -510,7 +554,8 @@ public com.google.cloud.speech.v1.RecognitionAudio build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v1.RecognitionAudio buildPartial() {
-      com.google.cloud.speech.v1.RecognitionAudio result = new com.google.cloud.speech.v1.RecognitionAudio(this);
+      com.google.cloud.speech.v1.RecognitionAudio result =
+          new com.google.cloud.speech.v1.RecognitionAudio(this);
       if (audioSourceCase_ == 1) {
         result.audioSource_ = audioSource_;
       }
@@ -526,38 +571,39 @@ public com.google.cloud.speech.v1.RecognitionAudio buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.speech.v1.RecognitionAudio) {
-        return mergeFrom((com.google.cloud.speech.v1.RecognitionAudio)other);
+        return mergeFrom((com.google.cloud.speech.v1.RecognitionAudio) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -567,19 +613,22 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     public Builder mergeFrom(com.google.cloud.speech.v1.RecognitionAudio other) {
       if (other == com.google.cloud.speech.v1.RecognitionAudio.getDefaultInstance()) return this;
       switch (other.getAudioSourceCase()) {
-        case CONTENT: {
-          setContent(other.getContent());
-          break;
-        }
-        case URI: {
-          audioSourceCase_ = 2;
-          audioSource_ = other.audioSource_;
-          onChanged();
-          break;
-        }
-        case AUDIOSOURCE_NOT_SET: {
-          break;
-        }
+        case CONTENT:
+          {
+            setContent(other.getContent());
+            break;
+          }
+        case URI:
+          {
+            audioSourceCase_ = 2;
+            audioSource_ = other.audioSource_;
+            onChanged();
+            break;
+          }
+        case AUDIOSOURCE_NOT_SET:
+          {
+            break;
+          }
       }
       this.mergeUnknownFields(other.unknownFields);
       onChanged();
@@ -609,12 +658,12 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int audioSourceCase_ = 0;
     private java.lang.Object audioSource_;
-    public AudioSourceCase
-        getAudioSourceCase() {
-      return AudioSourceCase.forNumber(
-          audioSourceCase_);
+
+    public AudioSourceCase getAudioSourceCase() {
+      return AudioSourceCase.forNumber(audioSourceCase_);
     }
 
     public Builder clearAudioSource() {
@@ -624,8 +673,9 @@ public Builder clearAudioSource() {
       return this;
     }
 
-
     /**
+     *
+     *
      * 
      * The audio data bytes encoded as specified in
      * `RecognitionConfig`. Note: as with all bytes fields, proto buffers use a
@@ -633,12 +683,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
@@ -646,6 +699,7 @@ public boolean hasContent() {
      * 
* * bytes content = 1; + * * @return The content. */ public com.google.protobuf.ByteString getContent() { @@ -655,6 +709,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
@@ -662,19 +718,22 @@ public com.google.protobuf.ByteString getContent() {
      * 
* * bytes content = 1; + * * @param value The content to set. * @return This builder for chaining. */ public Builder setContent(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - audioSourceCase_ = 1; + throw new NullPointerException(); + } + audioSourceCase_ = 1; audioSource_ = value; onChanged(); return this; } /** + * + * *
      * The audio data bytes encoded as specified in
      * `RecognitionConfig`. Note: as with all bytes fields, proto buffers use a
@@ -682,6 +741,7 @@ public Builder setContent(com.google.protobuf.ByteString value) {
      * 
* * bytes content = 1; + * * @return This builder for chaining. */ public Builder clearContent() { @@ -694,6 +754,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).
@@ -705,6 +767,7 @@ public Builder clearContent() {
      * 
* * string uri = 2; + * * @return Whether the uri field is set. */ @java.lang.Override @@ -712,6 +775,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).
@@ -723,6 +788,7 @@ public boolean hasUri() {
      * 
* * string uri = 2; + * * @return The uri. */ @java.lang.Override @@ -732,8 +798,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; @@ -744,6 +809,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).
@@ -755,19 +822,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; } @@ -777,6 +843,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).
@@ -788,20 +856,22 @@ public java.lang.String getUri() {
      * 
* * string uri = 2; + * * @param value The uri to set. * @return This builder for chaining. */ - public Builder setUri( - java.lang.String value) { + public Builder setUri(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - audioSourceCase_ = 2; + throw new NullPointerException(); + } + audioSourceCase_ = 2; audioSource_ = value; onChanged(); return this; } /** + * + * *
      * URI that points to a file that contains audio data bytes as specified in
      * `RecognitionConfig`. The file must not be compressed (for example, gzip).
@@ -813,6 +883,7 @@ public Builder setUri(
      * 
* * string uri = 2; + * * @return This builder for chaining. */ public Builder clearUri() { @@ -824,6 +895,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).
@@ -835,23 +908,23 @@ public Builder clearUri() {
      * 
* * string uri = 2; + * * @param value The bytes for uri to set. * @return This builder for chaining. */ - public Builder setUriBytes( - com.google.protobuf.ByteString value) { + public Builder setUriBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); audioSourceCase_ = 2; audioSource_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -861,12 +934,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(); } @@ -875,16 +948,16 @@ public static com.google.cloud.speech.v1.RecognitionAudio getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RecognitionAudio parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new RecognitionAudio(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RecognitionAudio parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RecognitionAudio(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -899,6 +972,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1.RecognitionAudio getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionAudioOrBuilder.java b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionAudioOrBuilder.java similarity index 79% rename from owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionAudioOrBuilder.java rename to proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionAudioOrBuilder.java index 4347fb6f5..b8330aa93 100644 --- a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionAudioOrBuilder.java +++ b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionAudioOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1/cloud_speech.proto package com.google.cloud.speech.v1; -public interface RecognitionAudioOrBuilder extends +public interface RecognitionAudioOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1.RecognitionAudio) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The audio data bytes encoded as specified in
    * `RecognitionConfig`. Note: as with all bytes fields, proto buffers use a
@@ -15,10 +33,13 @@ public interface RecognitionAudioOrBuilder extends
    * 
* * bytes content = 1; + * * @return Whether the content field is set. */ boolean hasContent(); /** + * + * *
    * The audio data bytes encoded as specified in
    * `RecognitionConfig`. Note: as with all bytes fields, proto buffers use a
@@ -26,11 +47,14 @@ public interface RecognitionAudioOrBuilder extends
    * 
* * bytes content = 1; + * * @return The content. */ com.google.protobuf.ByteString getContent(); /** + * + * *
    * URI that points to a file that contains audio data bytes as specified in
    * `RecognitionConfig`. The file must not be compressed (for example, gzip).
@@ -42,10 +66,13 @@ public interface RecognitionAudioOrBuilder extends
    * 
* * string uri = 2; + * * @return Whether the uri field is set. */ boolean hasUri(); /** + * + * *
    * URI that points to a file that contains audio data bytes as specified in
    * `RecognitionConfig`. The file must not be compressed (for example, gzip).
@@ -57,10 +84,13 @@ public interface RecognitionAudioOrBuilder extends
    * 
* * string uri = 2; + * * @return The uri. */ java.lang.String getUri(); /** + * + * *
    * URI that points to a file that contains audio data bytes as specified in
    * `RecognitionConfig`. The file must not be compressed (for example, gzip).
@@ -72,10 +102,10 @@ public interface RecognitionAudioOrBuilder extends
    * 
* * string uri = 2; + * * @return The bytes for uri. */ - com.google.protobuf.ByteString - getUriBytes(); + com.google.protobuf.ByteString getUriBytes(); public com.google.cloud.speech.v1.RecognitionAudio.AudioSourceCase getAudioSourceCase(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionConfig.java b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionConfig.java similarity index 83% rename from owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionConfig.java rename to proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionConfig.java index 86098757b..7ebbfe32e 100644 --- a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionConfig.java +++ b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionConfig.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1/cloud_speech.proto package com.google.cloud.speech.v1; /** + * + * *
  * Provides information to the recognizer that specifies how to process the
  * request.
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.cloud.speech.v1.RecognitionConfig}
  */
-public final class RecognitionConfig extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class RecognitionConfig extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.speech.v1.RecognitionConfig)
     RecognitionConfigOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use RecognitionConfig.newBuilder() to construct.
   private RecognitionConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private RecognitionConfig() {
     encoding_ = 0;
     languageCode_ = "";
@@ -30,16 +48,15 @@ private RecognitionConfig() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new RecognitionConfig();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private RecognitionConfig(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -59,166 +76,186 @@ private RecognitionConfig(
           case 0:
             done = true;
             break;
-          case 8: {
-            int rawValue = input.readEnum();
-
-            encoding_ = rawValue;
-            break;
-          }
-          case 16: {
-
-            sampleRateHertz_ = input.readInt32();
-            break;
-          }
-          case 26: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            languageCode_ = s;
-            break;
-          }
-          case 32: {
-
-            maxAlternatives_ = input.readInt32();
-            break;
-          }
-          case 40: {
+          case 8:
+            {
+              int rawValue = input.readEnum();
 
-            profanityFilter_ = input.readBool();
-            break;
-          }
-          case 50: {
-            if (!((mutable_bitField0_ & 0x00000002) != 0)) {
-              speechContexts_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000002;
+              encoding_ = rawValue;
+              break;
             }
-            speechContexts_.add(
-                input.readMessage(com.google.cloud.speech.v1.SpeechContext.parser(), extensionRegistry));
-            break;
-          }
-          case 56: {
-
-            audioChannelCount_ = input.readInt32();
-            break;
-          }
-          case 64: {
+          case 16:
+            {
+              sampleRateHertz_ = input.readInt32();
+              break;
+            }
+          case 26:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            enableWordTimeOffsets_ = input.readBool();
-            break;
-          }
-          case 74: {
-            com.google.cloud.speech.v1.RecognitionMetadata.Builder subBuilder = null;
-            if (metadata_ != null) {
-              subBuilder = metadata_.toBuilder();
+              languageCode_ = s;
+              break;
             }
-            metadata_ = input.readMessage(com.google.cloud.speech.v1.RecognitionMetadata.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(metadata_);
-              metadata_ = subBuilder.buildPartial();
+          case 32:
+            {
+              maxAlternatives_ = input.readInt32();
+              break;
             }
-
-            break;
-          }
-          case 88: {
-
-            enableAutomaticPunctuation_ = input.readBool();
-            break;
-          }
-          case 96: {
-
-            enableSeparateRecognitionPerChannel_ = input.readBool();
-            break;
-          }
-          case 106: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            model_ = s;
-            break;
-          }
-          case 112: {
-
-            useEnhanced_ = input.readBool();
-            break;
-          }
-          case 120: {
-
-            enableWordConfidence_ = input.readBool();
-            break;
-          }
-          case 146: {
-            java.lang.String s = input.readStringRequireUtf8();
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              alternativeLanguageCodes_ = new com.google.protobuf.LazyStringArrayList();
-              mutable_bitField0_ |= 0x00000001;
+          case 40:
+            {
+              profanityFilter_ = input.readBool();
+              break;
             }
-            alternativeLanguageCodes_.add(s);
-            break;
-          }
-          case 154: {
-            com.google.cloud.speech.v1.SpeakerDiarizationConfig.Builder subBuilder = null;
-            if (diarizationConfig_ != null) {
-              subBuilder = diarizationConfig_.toBuilder();
+          case 50:
+            {
+              if (!((mutable_bitField0_ & 0x00000002) != 0)) {
+                speechContexts_ =
+                    new java.util.ArrayList();
+                mutable_bitField0_ |= 0x00000002;
+              }
+              speechContexts_.add(
+                  input.readMessage(
+                      com.google.cloud.speech.v1.SpeechContext.parser(), extensionRegistry));
+              break;
             }
-            diarizationConfig_ = input.readMessage(com.google.cloud.speech.v1.SpeakerDiarizationConfig.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(diarizationConfig_);
-              diarizationConfig_ = subBuilder.buildPartial();
+          case 56:
+            {
+              audioChannelCount_ = input.readInt32();
+              break;
             }
-
-            break;
-          }
-          case 162: {
-            com.google.cloud.speech.v1.SpeechAdaptation.Builder subBuilder = null;
-            if (adaptation_ != null) {
-              subBuilder = adaptation_.toBuilder();
+          case 64:
+            {
+              enableWordTimeOffsets_ = input.readBool();
+              break;
             }
-            adaptation_ = input.readMessage(com.google.cloud.speech.v1.SpeechAdaptation.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(adaptation_);
-              adaptation_ = subBuilder.buildPartial();
+          case 74:
+            {
+              com.google.cloud.speech.v1.RecognitionMetadata.Builder subBuilder = null;
+              if (metadata_ != null) {
+                subBuilder = metadata_.toBuilder();
+              }
+              metadata_ =
+                  input.readMessage(
+                      com.google.cloud.speech.v1.RecognitionMetadata.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(metadata_);
+                metadata_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
-
-            break;
-          }
-          case 178: {
-            com.google.protobuf.BoolValue.Builder subBuilder = null;
-            if (enableSpokenPunctuation_ != null) {
-              subBuilder = enableSpokenPunctuation_.toBuilder();
+          case 88:
+            {
+              enableAutomaticPunctuation_ = input.readBool();
+              break;
             }
-            enableSpokenPunctuation_ = input.readMessage(com.google.protobuf.BoolValue.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(enableSpokenPunctuation_);
-              enableSpokenPunctuation_ = subBuilder.buildPartial();
+          case 96:
+            {
+              enableSeparateRecognitionPerChannel_ = input.readBool();
+              break;
             }
+          case 106:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            break;
-          }
-          case 186: {
-            com.google.protobuf.BoolValue.Builder subBuilder = null;
-            if (enableSpokenEmojis_ != null) {
-              subBuilder = enableSpokenEmojis_.toBuilder();
+              model_ = s;
+              break;
             }
-            enableSpokenEmojis_ = input.readMessage(com.google.protobuf.BoolValue.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(enableSpokenEmojis_);
-              enableSpokenEmojis_ = subBuilder.buildPartial();
+          case 112:
+            {
+              useEnhanced_ = input.readBool();
+              break;
             }
-
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          case 120:
+            {
+              enableWordConfidence_ = input.readBool();
+              break;
+            }
+          case 146:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                alternativeLanguageCodes_ = new com.google.protobuf.LazyStringArrayList();
+                mutable_bitField0_ |= 0x00000001;
+              }
+              alternativeLanguageCodes_.add(s);
+              break;
+            }
+          case 154:
+            {
+              com.google.cloud.speech.v1.SpeakerDiarizationConfig.Builder subBuilder = null;
+              if (diarizationConfig_ != null) {
+                subBuilder = diarizationConfig_.toBuilder();
+              }
+              diarizationConfig_ =
+                  input.readMessage(
+                      com.google.cloud.speech.v1.SpeakerDiarizationConfig.parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(diarizationConfig_);
+                diarizationConfig_ = subBuilder.buildPartial();
+              }
+
+              break;
+            }
+          case 162:
+            {
+              com.google.cloud.speech.v1.SpeechAdaptation.Builder subBuilder = null;
+              if (adaptation_ != null) {
+                subBuilder = adaptation_.toBuilder();
+              }
+              adaptation_ =
+                  input.readMessage(
+                      com.google.cloud.speech.v1.SpeechAdaptation.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(adaptation_);
+                adaptation_ = subBuilder.buildPartial();
+              }
+
+              break;
+            }
+          case 178:
+            {
+              com.google.protobuf.BoolValue.Builder subBuilder = null;
+              if (enableSpokenPunctuation_ != null) {
+                subBuilder = enableSpokenPunctuation_.toBuilder();
+              }
+              enableSpokenPunctuation_ =
+                  input.readMessage(com.google.protobuf.BoolValue.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(enableSpokenPunctuation_);
+                enableSpokenPunctuation_ = subBuilder.buildPartial();
+              }
+
+              break;
+            }
+          case 186:
+            {
+              com.google.protobuf.BoolValue.Builder subBuilder = null;
+              if (enableSpokenEmojis_ != null) {
+                subBuilder = enableSpokenEmojis_.toBuilder();
+              }
+              enableSpokenEmojis_ =
+                  input.readMessage(com.google.protobuf.BoolValue.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(enableSpokenEmojis_);
+                enableSpokenEmojis_ = subBuilder.buildPartial();
+              }
+
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000002) != 0)) {
         speechContexts_ = java.util.Collections.unmodifiableList(speechContexts_);
@@ -230,20 +267,25 @@ private RecognitionConfig(
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_RecognitionConfig_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.speech.v1.SpeechProto
+        .internal_static_google_cloud_speech_v1_RecognitionConfig_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_RecognitionConfig_fieldAccessorTable
+    return com.google.cloud.speech.v1.SpeechProto
+        .internal_static_google_cloud_speech_v1_RecognitionConfig_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v1.RecognitionConfig.class, com.google.cloud.speech.v1.RecognitionConfig.Builder.class);
+            com.google.cloud.speech.v1.RecognitionConfig.class,
+            com.google.cloud.speech.v1.RecognitionConfig.Builder.class);
   }
 
   /**
+   *
+   *
    * 
    * The encoding of the audio data sent in the request.
    * All encodings support only 1 channel (mono) audio, unless the
@@ -269,9 +311,10 @@ private RecognitionConfig(
    *
    * Protobuf enum {@code google.cloud.speech.v1.RecognitionConfig.AudioEncoding}
    */
-  public enum AudioEncoding
-      implements com.google.protobuf.ProtocolMessageEnum {
+  public enum AudioEncoding implements com.google.protobuf.ProtocolMessageEnum {
     /**
+     *
+     *
      * 
      * Not specified.
      * 
@@ -280,6 +323,8 @@ public enum AudioEncoding */ ENCODING_UNSPECIFIED(0), /** + * + * *
      * Uncompressed 16-bit signed little-endian samples (Linear PCM).
      * 
@@ -288,6 +333,8 @@ public enum AudioEncoding */ LINEAR16(1), /** + * + * *
      * `FLAC` (Free Lossless Audio
      * Codec) is the recommended encoding because it is
@@ -301,6 +348,8 @@ public enum AudioEncoding
      */
     FLAC(2),
     /**
+     *
+     *
      * 
      * 8-bit samples that compand 14-bit audio samples using G.711 PCMU/mu-law.
      * 
@@ -309,6 +358,8 @@ public enum AudioEncoding */ MULAW(3), /** + * + * *
      * Adaptive Multi-Rate Narrowband codec. `sample_rate_hertz` must be 8000.
      * 
@@ -317,6 +368,8 @@ public enum AudioEncoding */ AMR(4), /** + * + * *
      * Adaptive Multi-Rate Wideband codec. `sample_rate_hertz` must be 16000.
      * 
@@ -325,6 +378,8 @@ public enum AudioEncoding */ AMR_WB(5), /** + * + * *
      * Opus encoded audio frames in Ogg container
      * ([OggOpus](https://wiki.xiph.org/OggOpus)).
@@ -335,6 +390,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
@@ -355,6 +412,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
@@ -368,6 +427,8 @@ public enum AudioEncoding
     ;
 
     /**
+     *
+     *
      * 
      * Not specified.
      * 
@@ -376,6 +437,8 @@ public enum AudioEncoding */ public static final int ENCODING_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Uncompressed 16-bit signed little-endian samples (Linear PCM).
      * 
@@ -384,6 +447,8 @@ public enum AudioEncoding */ public static final int LINEAR16_VALUE = 1; /** + * + * *
      * `FLAC` (Free Lossless Audio
      * Codec) is the recommended encoding because it is
@@ -397,6 +462,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.
      * 
@@ -405,6 +472,8 @@ public enum AudioEncoding */ public static final int MULAW_VALUE = 3; /** + * + * *
      * Adaptive Multi-Rate Narrowband codec. `sample_rate_hertz` must be 8000.
      * 
@@ -413,6 +482,8 @@ public enum AudioEncoding */ public static final int AMR_VALUE = 4; /** + * + * *
      * Adaptive Multi-Rate Wideband codec. `sample_rate_hertz` must be 16000.
      * 
@@ -421,6 +492,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)).
@@ -431,6 +504,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
@@ -451,6 +526,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
@@ -461,7 +538,6 @@ public enum AudioEncoding
      */
     public static final int WEBM_OPUS_VALUE = 9;
 
-
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -486,55 +562,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;
@@ -554,6 +636,8 @@ private AudioEncoding(int value) {
   public static final int ENCODING_FIELD_NUMBER = 1;
   private int encoding_;
   /**
+   *
+   *
    * 
    * Encoding of audio data sent in all `RecognitionAudio` messages.
    * This field is optional for `FLAC` and `WAV` audio files and required
@@ -561,12 +645,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
@@ -574,17 +662,24 @@ private AudioEncoding(int value) {
    * 
* * .google.cloud.speech.v1.RecognitionConfig.AudioEncoding encoding = 1; + * * @return The encoding. */ - @java.lang.Override public com.google.cloud.speech.v1.RecognitionConfig.AudioEncoding getEncoding() { + @java.lang.Override + public com.google.cloud.speech.v1.RecognitionConfig.AudioEncoding getEncoding() { @SuppressWarnings("deprecation") - com.google.cloud.speech.v1.RecognitionConfig.AudioEncoding result = com.google.cloud.speech.v1.RecognitionConfig.AudioEncoding.valueOf(encoding_); - return result == null ? com.google.cloud.speech.v1.RecognitionConfig.AudioEncoding.UNRECOGNIZED : result; + com.google.cloud.speech.v1.RecognitionConfig.AudioEncoding result = + com.google.cloud.speech.v1.RecognitionConfig.AudioEncoding.valueOf(encoding_); + return result == null + ? com.google.cloud.speech.v1.RecognitionConfig.AudioEncoding.UNRECOGNIZED + : result; } public static final int SAMPLE_RATE_HERTZ_FIELD_NUMBER = 2; private int sampleRateHertz_; /** + * + * *
    * Sample rate in Hertz of the audio data sent in all
    * `RecognitionAudio` messages. Valid values are: 8000-48000.
@@ -596,6 +691,7 @@ private AudioEncoding(int value) {
    * 
* * int32 sample_rate_hertz = 2; + * * @return The sampleRateHertz. */ @java.lang.Override @@ -606,6 +702,8 @@ public int getSampleRateHertz() { public static final int AUDIO_CHANNEL_COUNT_FIELD_NUMBER = 7; private int audioChannelCount_; /** + * + * *
    * The number of channels in the input audio data.
    * ONLY set this for MULTI-CHANNEL recognition.
@@ -619,6 +717,7 @@ public int getSampleRateHertz() {
    * 
* * int32 audio_channel_count = 7; + * * @return The audioChannelCount. */ @java.lang.Override @@ -629,6 +728,8 @@ public int getAudioChannelCount() { public static final int ENABLE_SEPARATE_RECOGNITION_PER_CHANNEL_FIELD_NUMBER = 12; private boolean enableSeparateRecognitionPerChannel_; /** + * + * *
    * This needs to be set to `true` explicitly and `audio_channel_count` > 1
    * to get each channel recognized separately. The recognition result will
@@ -639,6 +740,7 @@ public int getAudioChannelCount() {
    * 
* * bool enable_separate_recognition_per_channel = 12; + * * @return The enableSeparateRecognitionPerChannel. */ @java.lang.Override @@ -649,6 +751,8 @@ public boolean getEnableSeparateRecognitionPerChannel() { public static final int LANGUAGE_CODE_FIELD_NUMBER = 3; private volatile java.lang.Object languageCode_; /** + * + * *
    * Required. The language of the supplied audio as a
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.
@@ -659,6 +763,7 @@ public boolean getEnableSeparateRecognitionPerChannel() {
    * 
* * string language_code = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The languageCode. */ @java.lang.Override @@ -667,14 +772,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.
@@ -685,16 +791,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 { @@ -705,6 +810,8 @@ public java.lang.String getLanguageCode() { public static final int ALTERNATIVE_LANGUAGE_CODES_FIELD_NUMBER = 18; private com.google.protobuf.LazyStringList alternativeLanguageCodes_; /** + * + * *
    * A list of up to 3 additional
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags,
@@ -721,13 +828,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,
@@ -744,12 +853,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,
@@ -766,6 +878,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. */ @@ -773,6 +886,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,
@@ -789,17 +904,19 @@ public java.lang.String getAlternativeLanguageCodes(int index) {
    * 
* * repeated string alternative_language_codes = 18; + * * @param index The index of the value to return. * @return The bytes of the alternativeLanguageCodes at the given index. */ - public com.google.protobuf.ByteString - getAlternativeLanguageCodesBytes(int index) { + public com.google.protobuf.ByteString getAlternativeLanguageCodesBytes(int index) { return alternativeLanguageCodes_.getByteString(index); } public static final int MAX_ALTERNATIVES_FIELD_NUMBER = 4; private int maxAlternatives_; /** + * + * *
    * Maximum number of recognition hypotheses to be returned.
    * Specifically, the maximum number of `SpeechRecognitionAlternative` messages
@@ -810,6 +927,7 @@ public java.lang.String getAlternativeLanguageCodes(int index) {
    * 
* * int32 max_alternatives = 4; + * * @return The maxAlternatives. */ @java.lang.Override @@ -820,6 +938,8 @@ public int getMaxAlternatives() { public static final int PROFANITY_FILTER_FIELD_NUMBER = 5; private boolean profanityFilter_; /** + * + * *
    * If set to `true`, the server will attempt to filter out
    * profanities, replacing all but the initial character in each filtered word
@@ -828,6 +948,7 @@ public int getMaxAlternatives() {
    * 
* * bool profanity_filter = 5; + * * @return The profanityFilter. */ @java.lang.Override @@ -838,6 +959,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
@@ -847,6 +970,7 @@ public boolean getProfanityFilter() {
    * 
* * .google.cloud.speech.v1.SpeechAdaptation adaptation = 20; + * * @return Whether the adaptation field is set. */ @java.lang.Override @@ -854,6 +978,8 @@ public boolean hasAdaptation() { return adaptation_ != null; } /** + * + * *
    * Speech adaptation configuration improves the accuracy of speech
    * recognition. For more information, see the [speech
@@ -863,13 +989,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
@@ -888,6 +1019,8 @@ public com.google.cloud.speech.v1.SpeechAdaptationOrBuilder getAdaptationOrBuild
   public static final int SPEECH_CONTEXTS_FIELD_NUMBER = 6;
   private java.util.List speechContexts_;
   /**
+   *
+   *
    * 
    * Array of [SpeechContext][google.cloud.speech.v1.SpeechContext].
    * A means to provide context to assist the speech recognition. For more
@@ -903,6 +1036,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
@@ -914,11 +1049,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
@@ -934,6 +1071,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
@@ -949,6 +1088,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
@@ -960,14 +1101,15 @@ public com.google.cloud.speech.v1.SpeechContext getSpeechContexts(int index) {
    * repeated .google.cloud.speech.v1.SpeechContext speech_contexts = 6;
    */
   @java.lang.Override
-  public com.google.cloud.speech.v1.SpeechContextOrBuilder getSpeechContextsOrBuilder(
-      int index) {
+  public com.google.cloud.speech.v1.SpeechContextOrBuilder getSpeechContextsOrBuilder(int index) {
     return speechContexts_.get(index);
   }
 
   public static final int ENABLE_WORD_TIME_OFFSETS_FIELD_NUMBER = 8;
   private boolean enableWordTimeOffsets_;
   /**
+   *
+   *
    * 
    * If `true`, the top result includes a list of words and
    * the start and end time offsets (timestamps) for those words. If
@@ -976,6 +1118,7 @@ public com.google.cloud.speech.v1.SpeechContextOrBuilder getSpeechContextsOrBuil
    * 
* * bool enable_word_time_offsets = 8; + * * @return The enableWordTimeOffsets. */ @java.lang.Override @@ -986,6 +1129,8 @@ public boolean getEnableWordTimeOffsets() { public static final int ENABLE_WORD_CONFIDENCE_FIELD_NUMBER = 15; private boolean enableWordConfidence_; /** + * + * *
    * If `true`, the top result includes a list of words and the
    * confidence for those words. If `false`, no word-level confidence
@@ -993,6 +1138,7 @@ public boolean getEnableWordTimeOffsets() {
    * 
* * bool enable_word_confidence = 15; + * * @return The enableWordConfidence. */ @java.lang.Override @@ -1003,6 +1149,8 @@ public boolean getEnableWordConfidence() { public static final int ENABLE_AUTOMATIC_PUNCTUATION_FIELD_NUMBER = 11; private boolean enableAutomaticPunctuation_; /** + * + * *
    * If 'true', adds punctuation to recognition result hypotheses.
    * This feature is only available in select languages. Setting this for
@@ -1011,6 +1159,7 @@ public boolean getEnableWordConfidence() {
    * 
* * bool enable_automatic_punctuation = 11; + * * @return The enableAutomaticPunctuation. */ @java.lang.Override @@ -1021,6 +1170,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
@@ -1032,6 +1183,7 @@ public boolean getEnableAutomaticPunctuation() {
    * 
* * .google.protobuf.BoolValue enable_spoken_punctuation = 22; + * * @return Whether the enableSpokenPunctuation field is set. */ @java.lang.Override @@ -1039,6 +1191,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
@@ -1050,13 +1204,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
@@ -1077,6 +1236,8 @@ public com.google.protobuf.BoolValueOrBuilder getEnableSpokenPunctuationOrBuilde
   public static final int ENABLE_SPOKEN_EMOJIS_FIELD_NUMBER = 23;
   private com.google.protobuf.BoolValue enableSpokenEmojis_;
   /**
+   *
+   *
    * 
    * The spoken emoji behavior for the call
    * If not set, uses default behavior based on model of choice
@@ -1086,6 +1247,7 @@ public com.google.protobuf.BoolValueOrBuilder getEnableSpokenPunctuationOrBuilde
    * 
* * .google.protobuf.BoolValue enable_spoken_emojis = 23; + * * @return Whether the enableSpokenEmojis field is set. */ @java.lang.Override @@ -1093,6 +1255,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
@@ -1102,13 +1266,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
@@ -1127,6 +1296,8 @@ public com.google.protobuf.BoolValueOrBuilder getEnableSpokenEmojisOrBuilder() {
   public static final int DIARIZATION_CONFIG_FIELD_NUMBER = 19;
   private com.google.cloud.speech.v1.SpeakerDiarizationConfig diarizationConfig_;
   /**
+   *
+   *
    * 
    * Config to enable speaker diarization and set additional
    * parameters to make diarization better suited for your application.
@@ -1139,6 +1310,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 @@ -1146,6 +1318,8 @@ public boolean hasDiarizationConfig() { return diarizationConfig_ != null; } /** + * + * *
    * Config to enable speaker diarization and set additional
    * parameters to make diarization better suited for your application.
@@ -1158,13 +1332,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.
@@ -1179,18 +1358,22 @@ public com.google.cloud.speech.v1.SpeakerDiarizationConfig getDiarizationConfig(
    * .google.cloud.speech.v1.SpeakerDiarizationConfig diarization_config = 19;
    */
   @java.lang.Override
-  public com.google.cloud.speech.v1.SpeakerDiarizationConfigOrBuilder getDiarizationConfigOrBuilder() {
+  public com.google.cloud.speech.v1.SpeakerDiarizationConfigOrBuilder
+      getDiarizationConfigOrBuilder() {
     return getDiarizationConfig();
   }
 
   public static final int METADATA_FIELD_NUMBER = 9;
   private com.google.cloud.speech.v1.RecognitionMetadata metadata_;
   /**
+   *
+   *
    * 
    * Metadata regarding this request.
    * 
* * .google.cloud.speech.v1.RecognitionMetadata metadata = 9; + * * @return Whether the metadata field is set. */ @java.lang.Override @@ -1198,18 +1381,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.
    * 
@@ -1224,6 +1414,8 @@ public com.google.cloud.speech.v1.RecognitionMetadataOrBuilder getMetadataOrBuil public static final int MODEL_FIELD_NUMBER = 13; private volatile java.lang.Object model_; /** + * + * *
    * Which model to select for the given request. Select the model
    * best suited to your domain to get best results. If a model is not
@@ -1260,6 +1452,7 @@ public com.google.cloud.speech.v1.RecognitionMetadataOrBuilder getMetadataOrBuil
    * 
* * string model = 13; + * * @return The model. */ @java.lang.Override @@ -1268,14 +1461,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
@@ -1312,16 +1506,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 { @@ -1332,6 +1525,8 @@ public java.lang.String getModel() { public static final int USE_ENHANCED_FIELD_NUMBER = 14; private boolean useEnhanced_; /** + * + * *
    * Set to true to use an enhanced model for speech recognition.
    * If `use_enhanced` is set to true and the `model` field is not set, then
@@ -1343,6 +1538,7 @@ public java.lang.String getModel() {
    * 
* * bool use_enhanced = 14; + * * @return The useEnhanced. */ @java.lang.Override @@ -1351,6 +1547,7 @@ public boolean getUseEnhanced() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1362,9 +1559,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) { @@ -1407,7 +1605,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()); @@ -1430,59 +1629,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; @@ -1493,20 +1685,18 @@ public int getSerializedSize() { size += 2 * getAlternativeLanguageCodesList().size(); } if (diarizationConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(19, getDiarizationConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(19, getDiarizationConfig()); } if (adaptation_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(20, getAdaptation()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(20, getAdaptation()); } if (enableSpokenPunctuation_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(22, getEnableSpokenPunctuation()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 22, getEnableSpokenPunctuation()); } if (enableSpokenEmojis_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(23, getEnableSpokenEmojis()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(23, getEnableSpokenEmojis()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1516,65 +1706,50 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1.RecognitionConfig)) { return super.equals(obj); } - com.google.cloud.speech.v1.RecognitionConfig other = (com.google.cloud.speech.v1.RecognitionConfig) obj; + com.google.cloud.speech.v1.RecognitionConfig other = + (com.google.cloud.speech.v1.RecognitionConfig) obj; if (encoding_ != other.encoding_) return false; - if (getSampleRateHertz() - != other.getSampleRateHertz()) return false; - if (getAudioChannelCount() - != other.getAudioChannelCount()) return false; - if (getEnableSeparateRecognitionPerChannel() - != other.getEnableSeparateRecognitionPerChannel()) return false; - if (!getLanguageCode() - .equals(other.getLanguageCode())) return false; - if (!getAlternativeLanguageCodesList() - .equals(other.getAlternativeLanguageCodesList())) return false; - if (getMaxAlternatives() - != other.getMaxAlternatives()) return false; - if (getProfanityFilter() - != other.getProfanityFilter()) return false; + if (getSampleRateHertz() != other.getSampleRateHertz()) return false; + if (getAudioChannelCount() != other.getAudioChannelCount()) return false; + if (getEnableSeparateRecognitionPerChannel() != other.getEnableSeparateRecognitionPerChannel()) + return false; + if (!getLanguageCode().equals(other.getLanguageCode())) return false; + if (!getAlternativeLanguageCodesList().equals(other.getAlternativeLanguageCodesList())) + return false; + if (getMaxAlternatives() != other.getMaxAlternatives()) return false; + if (getProfanityFilter() != other.getProfanityFilter()) return false; if (hasAdaptation() != other.hasAdaptation()) return false; if (hasAdaptation()) { - if (!getAdaptation() - .equals(other.getAdaptation())) return false; - } - if (!getSpeechContextsList() - .equals(other.getSpeechContextsList())) return false; - if (getEnableWordTimeOffsets() - != other.getEnableWordTimeOffsets()) return false; - if (getEnableWordConfidence() - != other.getEnableWordConfidence()) return false; - if (getEnableAutomaticPunctuation() - != other.getEnableAutomaticPunctuation()) return false; + if (!getAdaptation().equals(other.getAdaptation())) return false; + } + if (!getSpeechContextsList().equals(other.getSpeechContextsList())) return false; + if (getEnableWordTimeOffsets() != other.getEnableWordTimeOffsets()) return false; + if (getEnableWordConfidence() != other.getEnableWordConfidence()) return false; + if (getEnableAutomaticPunctuation() != other.getEnableAutomaticPunctuation()) return false; if (hasEnableSpokenPunctuation() != other.hasEnableSpokenPunctuation()) return false; if (hasEnableSpokenPunctuation()) { - if (!getEnableSpokenPunctuation() - .equals(other.getEnableSpokenPunctuation())) return false; + if (!getEnableSpokenPunctuation().equals(other.getEnableSpokenPunctuation())) return false; } if (hasEnableSpokenEmojis() != other.hasEnableSpokenEmojis()) return false; if (hasEnableSpokenEmojis()) { - if (!getEnableSpokenEmojis() - .equals(other.getEnableSpokenEmojis())) return false; + if (!getEnableSpokenEmojis().equals(other.getEnableSpokenEmojis())) return false; } if (hasDiarizationConfig() != other.hasDiarizationConfig()) return false; if (hasDiarizationConfig()) { - if (!getDiarizationConfig() - .equals(other.getDiarizationConfig())) return false; + if (!getDiarizationConfig().equals(other.getDiarizationConfig())) return false; } if (hasMetadata() != other.hasMetadata()) return false; if (hasMetadata()) { - if (!getMetadata() - .equals(other.getMetadata())) return false; + if (!getMetadata().equals(other.getMetadata())) return false; } - if (!getModel() - .equals(other.getModel())) return false; - if (getUseEnhanced() - != other.getUseEnhanced()) return false; + if (!getModel().equals(other.getModel())) return false; + if (getUseEnhanced() != other.getUseEnhanced()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1593,8 +1768,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) { @@ -1604,8 +1780,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(); @@ -1615,14 +1790,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(); @@ -1642,104 +1814,110 @@ public int hashCode() { hash = (37 * hash) + MODEL_FIELD_NUMBER; hash = (53 * hash) + getModel().hashCode(); hash = (37 * hash) + USE_ENHANCED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getUseEnhanced()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getUseEnhanced()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.speech.v1.RecognitionConfig parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.speech.v1.RecognitionConfig parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1.RecognitionConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1.RecognitionConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1.RecognitionConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1.RecognitionConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1.RecognitionConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1.RecognitionConfig parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1.RecognitionConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1.RecognitionConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1.RecognitionConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1.RecognitionConfig parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.speech.v1.RecognitionConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1.RecognitionConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.speech.v1.RecognitionConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Provides information to the recognizer that specifies how to process the
    * request.
@@ -1747,21 +1925,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.speech.v1.RecognitionConfig}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1.RecognitionConfig)
       com.google.cloud.speech.v1.RecognitionConfigOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_RecognitionConfig_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.speech.v1.SpeechProto
+          .internal_static_google_cloud_speech_v1_RecognitionConfig_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_RecognitionConfig_fieldAccessorTable
+      return com.google.cloud.speech.v1.SpeechProto
+          .internal_static_google_cloud_speech_v1_RecognitionConfig_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v1.RecognitionConfig.class, com.google.cloud.speech.v1.RecognitionConfig.Builder.class);
+              com.google.cloud.speech.v1.RecognitionConfig.class,
+              com.google.cloud.speech.v1.RecognitionConfig.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v1.RecognitionConfig.newBuilder()
@@ -1769,17 +1949,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
         getSpeechContextsFieldBuilder();
       }
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1849,9 +2029,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
@@ -1870,7 +2050,8 @@ public com.google.cloud.speech.v1.RecognitionConfig build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v1.RecognitionConfig buildPartial() {
-      com.google.cloud.speech.v1.RecognitionConfig result = new com.google.cloud.speech.v1.RecognitionConfig(this);
+      com.google.cloud.speech.v1.RecognitionConfig result =
+          new com.google.cloud.speech.v1.RecognitionConfig(this);
       int from_bitField0_ = bitField0_;
       result.encoding_ = encoding_;
       result.sampleRateHertz_ = sampleRateHertz_;
@@ -1931,38 +2112,39 @@ public com.google.cloud.speech.v1.RecognitionConfig buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.speech.v1.RecognitionConfig) {
-        return mergeFrom((com.google.cloud.speech.v1.RecognitionConfig)other);
+        return mergeFrom((com.google.cloud.speech.v1.RecognitionConfig) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -2024,9 +2206,10 @@ public Builder mergeFrom(com.google.cloud.speech.v1.RecognitionConfig other) {
             speechContextsBuilder_ = null;
             speechContexts_ = other.speechContexts_;
             bitField0_ = (bitField0_ & ~0x00000002);
-            speechContextsBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getSpeechContextsFieldBuilder() : null;
+            speechContextsBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getSpeechContextsFieldBuilder()
+                    : null;
           } else {
             speechContextsBuilder_.addAllMessages(other.speechContexts_);
           }
@@ -2088,10 +2271,13 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
     private int encoding_ = 0;
     /**
+     *
+     *
      * 
      * Encoding of audio data sent in all `RecognitionAudio` messages.
      * This field is optional for `FLAC` and `WAV` audio files and required
@@ -2099,12 +2285,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
@@ -2112,16 +2302,19 @@ public Builder mergeFrom(
      * 
* * .google.cloud.speech.v1.RecognitionConfig.AudioEncoding encoding = 1; + * * @param value The enum numeric value on the wire for encoding to set. * @return This builder for chaining. */ public Builder setEncodingValue(int value) { - + encoding_ = value; onChanged(); return this; } /** + * + * *
      * Encoding of audio data sent in all `RecognitionAudio` messages.
      * This field is optional for `FLAC` and `WAV` audio files and required
@@ -2129,15 +2322,21 @@ public Builder setEncodingValue(int value) {
      * 
* * .google.cloud.speech.v1.RecognitionConfig.AudioEncoding encoding = 1; + * * @return The encoding. */ @java.lang.Override public com.google.cloud.speech.v1.RecognitionConfig.AudioEncoding getEncoding() { @SuppressWarnings("deprecation") - com.google.cloud.speech.v1.RecognitionConfig.AudioEncoding result = com.google.cloud.speech.v1.RecognitionConfig.AudioEncoding.valueOf(encoding_); - return result == null ? com.google.cloud.speech.v1.RecognitionConfig.AudioEncoding.UNRECOGNIZED : result; + com.google.cloud.speech.v1.RecognitionConfig.AudioEncoding result = + com.google.cloud.speech.v1.RecognitionConfig.AudioEncoding.valueOf(encoding_); + return result == null + ? com.google.cloud.speech.v1.RecognitionConfig.AudioEncoding.UNRECOGNIZED + : result; } /** + * + * *
      * Encoding of audio data sent in all `RecognitionAudio` messages.
      * This field is optional for `FLAC` and `WAV` audio files and required
@@ -2145,6 +2344,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. */ @@ -2152,12 +2352,14 @@ public Builder setEncoding(com.google.cloud.speech.v1.RecognitionConfig.AudioEnc if (value == null) { throw new NullPointerException(); } - + encoding_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Encoding of audio data sent in all `RecognitionAudio` messages.
      * This field is optional for `FLAC` and `WAV` audio files and required
@@ -2165,17 +2367,20 @@ public Builder setEncoding(com.google.cloud.speech.v1.RecognitionConfig.AudioEnc
      * 
* * .google.cloud.speech.v1.RecognitionConfig.AudioEncoding encoding = 1; + * * @return This builder for chaining. */ public Builder clearEncoding() { - + encoding_ = 0; onChanged(); return this; } - private int sampleRateHertz_ ; + private int sampleRateHertz_; /** + * + * *
      * Sample rate in Hertz of the audio data sent in all
      * `RecognitionAudio` messages. Valid values are: 8000-48000.
@@ -2187,6 +2392,7 @@ public Builder clearEncoding() {
      * 
* * int32 sample_rate_hertz = 2; + * * @return The sampleRateHertz. */ @java.lang.Override @@ -2194,6 +2400,8 @@ public int getSampleRateHertz() { return sampleRateHertz_; } /** + * + * *
      * Sample rate in Hertz of the audio data sent in all
      * `RecognitionAudio` messages. Valid values are: 8000-48000.
@@ -2205,16 +2413,19 @@ public int getSampleRateHertz() {
      * 
* * int32 sample_rate_hertz = 2; + * * @param value The sampleRateHertz to set. * @return This builder for chaining. */ public Builder setSampleRateHertz(int value) { - + sampleRateHertz_ = value; onChanged(); return this; } /** + * + * *
      * Sample rate in Hertz of the audio data sent in all
      * `RecognitionAudio` messages. Valid values are: 8000-48000.
@@ -2226,17 +2437,20 @@ public Builder setSampleRateHertz(int value) {
      * 
* * int32 sample_rate_hertz = 2; + * * @return This builder for chaining. */ public Builder clearSampleRateHertz() { - + sampleRateHertz_ = 0; onChanged(); return this; } - private int audioChannelCount_ ; + private int audioChannelCount_; /** + * + * *
      * The number of channels in the input audio data.
      * ONLY set this for MULTI-CHANNEL recognition.
@@ -2250,6 +2464,7 @@ public Builder clearSampleRateHertz() {
      * 
* * int32 audio_channel_count = 7; + * * @return The audioChannelCount. */ @java.lang.Override @@ -2257,6 +2472,8 @@ public int getAudioChannelCount() { return audioChannelCount_; } /** + * + * *
      * The number of channels in the input audio data.
      * ONLY set this for MULTI-CHANNEL recognition.
@@ -2270,16 +2487,19 @@ public int getAudioChannelCount() {
      * 
* * int32 audio_channel_count = 7; + * * @param value The audioChannelCount to set. * @return This builder for chaining. */ public Builder setAudioChannelCount(int value) { - + audioChannelCount_ = value; onChanged(); return this; } /** + * + * *
      * The number of channels in the input audio data.
      * ONLY set this for MULTI-CHANNEL recognition.
@@ -2293,17 +2513,20 @@ public Builder setAudioChannelCount(int value) {
      * 
* * int32 audio_channel_count = 7; + * * @return This builder for chaining. */ public Builder clearAudioChannelCount() { - + audioChannelCount_ = 0; onChanged(); return this; } - private boolean enableSeparateRecognitionPerChannel_ ; + private boolean enableSeparateRecognitionPerChannel_; /** + * + * *
      * This needs to be set to `true` explicitly and `audio_channel_count` > 1
      * to get each channel recognized separately. The recognition result will
@@ -2314,6 +2537,7 @@ public Builder clearAudioChannelCount() {
      * 
* * bool enable_separate_recognition_per_channel = 12; + * * @return The enableSeparateRecognitionPerChannel. */ @java.lang.Override @@ -2321,6 +2545,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
@@ -2331,16 +2557,19 @@ public boolean getEnableSeparateRecognitionPerChannel() {
      * 
* * bool enable_separate_recognition_per_channel = 12; + * * @param value The enableSeparateRecognitionPerChannel to set. * @return This builder for chaining. */ public Builder setEnableSeparateRecognitionPerChannel(boolean value) { - + enableSeparateRecognitionPerChannel_ = value; onChanged(); return this; } /** + * + * *
      * This needs to be set to `true` explicitly and `audio_channel_count` > 1
      * to get each channel recognized separately. The recognition result will
@@ -2351,10 +2580,11 @@ public Builder setEnableSeparateRecognitionPerChannel(boolean value) {
      * 
* * bool enable_separate_recognition_per_channel = 12; + * * @return This builder for chaining. */ public Builder clearEnableSeparateRecognitionPerChannel() { - + enableSeparateRecognitionPerChannel_ = false; onChanged(); return this; @@ -2362,6 +2592,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.
@@ -2372,13 +2604,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; @@ -2387,6 +2619,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.
@@ -2397,15 +2631,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 { @@ -2413,6 +2646,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.
@@ -2423,20 +2658,22 @@ public java.lang.String getLanguageCode() {
      * 
* * string language_code = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCode( - java.lang.String value) { + public Builder setLanguageCode(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + languageCode_ = value; onChanged(); return this; } /** + * + * *
      * Required. The language of the supplied audio as a
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.
@@ -2447,15 +2684,18 @@ public Builder setLanguageCode(
      * 
* * string language_code = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearLanguageCode() { - + languageCode_ = getDefaultInstance().getLanguageCode(); onChanged(); return this; } /** + * + * *
      * Required. The language of the supplied audio as a
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.
@@ -2466,29 +2706,34 @@ public Builder clearLanguageCode() {
      * 
* * string language_code = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCodeBytes( - com.google.protobuf.ByteString value) { + public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + languageCode_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList alternativeLanguageCodes_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList alternativeLanguageCodes_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureAlternativeLanguageCodesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - alternativeLanguageCodes_ = new com.google.protobuf.LazyStringArrayList(alternativeLanguageCodes_); + alternativeLanguageCodes_ = + new com.google.protobuf.LazyStringArrayList(alternativeLanguageCodes_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
      * A list of up to 3 additional
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags,
@@ -2505,13 +2750,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,
@@ -2528,12 +2775,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,
@@ -2550,6 +2800,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. */ @@ -2557,6 +2808,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,
@@ -2573,14 +2826,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,
@@ -2597,21 +2852,23 @@ public java.lang.String getAlternativeLanguageCodes(int index) {
      * 
* * repeated string alternative_language_codes = 18; + * * @param index The index to set the value at. * @param value The alternativeLanguageCodes to set. * @return This builder for chaining. */ - public Builder setAlternativeLanguageCodes( - int index, java.lang.String value) { + public Builder setAlternativeLanguageCodes(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAlternativeLanguageCodesIsMutable(); + throw new NullPointerException(); + } + ensureAlternativeLanguageCodesIsMutable(); alternativeLanguageCodes_.set(index, value); onChanged(); return this; } /** + * + * *
      * A list of up to 3 additional
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags,
@@ -2628,20 +2885,22 @@ public Builder setAlternativeLanguageCodes(
      * 
* * repeated string alternative_language_codes = 18; + * * @param value The alternativeLanguageCodes to add. * @return This builder for chaining. */ - public Builder addAlternativeLanguageCodes( - java.lang.String value) { + public Builder addAlternativeLanguageCodes(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAlternativeLanguageCodesIsMutable(); + throw new NullPointerException(); + } + ensureAlternativeLanguageCodesIsMutable(); alternativeLanguageCodes_.add(value); onChanged(); return this; } /** + * + * *
      * A list of up to 3 additional
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags,
@@ -2658,18 +2917,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,
@@ -2686,6 +2946,7 @@ public Builder addAllAlternativeLanguageCodes(
      * 
* * repeated string alternative_language_codes = 18; + * * @return This builder for chaining. */ public Builder clearAlternativeLanguageCodes() { @@ -2695,6 +2956,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,
@@ -2711,23 +2974,25 @@ public Builder clearAlternativeLanguageCodes() {
      * 
* * repeated string alternative_language_codes = 18; + * * @param value The bytes of the alternativeLanguageCodes to add. * @return This builder for chaining. */ - public Builder addAlternativeLanguageCodesBytes( - com.google.protobuf.ByteString value) { + public Builder addAlternativeLanguageCodesBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureAlternativeLanguageCodesIsMutable(); alternativeLanguageCodes_.add(value); onChanged(); return this; } - private int maxAlternatives_ ; + private int maxAlternatives_; /** + * + * *
      * Maximum number of recognition hypotheses to be returned.
      * Specifically, the maximum number of `SpeechRecognitionAlternative` messages
@@ -2738,6 +3003,7 @@ public Builder addAlternativeLanguageCodesBytes(
      * 
* * int32 max_alternatives = 4; + * * @return The maxAlternatives. */ @java.lang.Override @@ -2745,6 +3011,8 @@ public int getMaxAlternatives() { return maxAlternatives_; } /** + * + * *
      * Maximum number of recognition hypotheses to be returned.
      * Specifically, the maximum number of `SpeechRecognitionAlternative` messages
@@ -2755,16 +3023,19 @@ public int getMaxAlternatives() {
      * 
* * int32 max_alternatives = 4; + * * @param value The maxAlternatives to set. * @return This builder for chaining. */ public Builder setMaxAlternatives(int value) { - + maxAlternatives_ = value; onChanged(); return this; } /** + * + * *
      * Maximum number of recognition hypotheses to be returned.
      * Specifically, the maximum number of `SpeechRecognitionAlternative` messages
@@ -2775,17 +3046,20 @@ public Builder setMaxAlternatives(int value) {
      * 
* * int32 max_alternatives = 4; + * * @return This builder for chaining. */ public Builder clearMaxAlternatives() { - + maxAlternatives_ = 0; onChanged(); return this; } - private boolean profanityFilter_ ; + private boolean profanityFilter_; /** + * + * *
      * If set to `true`, the server will attempt to filter out
      * profanities, replacing all but the initial character in each filtered word
@@ -2794,6 +3068,7 @@ public Builder clearMaxAlternatives() {
      * 
* * bool profanity_filter = 5; + * * @return The profanityFilter. */ @java.lang.Override @@ -2801,6 +3076,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
@@ -2809,16 +3086,19 @@ public boolean getProfanityFilter() {
      * 
* * bool profanity_filter = 5; + * * @param value The profanityFilter to set. * @return This builder for chaining. */ public Builder setProfanityFilter(boolean value) { - + profanityFilter_ = value; onChanged(); return this; } /** + * + * *
      * If set to `true`, the server will attempt to filter out
      * profanities, replacing all but the initial character in each filtered word
@@ -2827,10 +3107,11 @@ public Builder setProfanityFilter(boolean value) {
      * 
* * bool profanity_filter = 5; + * * @return This builder for chaining. */ public Builder clearProfanityFilter() { - + profanityFilter_ = false; onChanged(); return this; @@ -2838,8 +3119,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
@@ -2849,12 +3135,15 @@ public Builder clearProfanityFilter() {
      * 
* * .google.cloud.speech.v1.SpeechAdaptation adaptation = 20; + * * @return Whether the adaptation field is set. */ public boolean hasAdaptation() { return adaptationBuilder_ != null || adaptation_ != null; } /** + * + * *
      * Speech adaptation configuration improves the accuracy of speech
      * recognition. For more information, see the [speech
@@ -2864,16 +3153,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
@@ -2898,6 +3192,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
@@ -2920,6 +3216,8 @@ public Builder setAdaptation(
       return this;
     }
     /**
+     *
+     *
      * 
      * Speech adaptation configuration improves the accuracy of speech
      * recognition. For more information, see the [speech
@@ -2934,7 +3232,9 @@ public Builder mergeAdaptation(com.google.cloud.speech.v1.SpeechAdaptation value
       if (adaptationBuilder_ == null) {
         if (adaptation_ != null) {
           adaptation_ =
-            com.google.cloud.speech.v1.SpeechAdaptation.newBuilder(adaptation_).mergeFrom(value).buildPartial();
+              com.google.cloud.speech.v1.SpeechAdaptation.newBuilder(adaptation_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           adaptation_ = value;
         }
@@ -2946,6 +3246,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
@@ -2968,6 +3270,8 @@ public Builder clearAdaptation() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Speech adaptation configuration improves the accuracy of speech
      * recognition. For more information, see the [speech
@@ -2979,11 +3283,13 @@ public Builder clearAdaptation() {
      * .google.cloud.speech.v1.SpeechAdaptation adaptation = 20;
      */
     public com.google.cloud.speech.v1.SpeechAdaptation.Builder getAdaptationBuilder() {
-      
+
       onChanged();
       return getAdaptationFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Speech adaptation configuration improves the accuracy of speech
      * recognition. For more information, see the [speech
@@ -2998,11 +3304,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
@@ -3014,32 +3323,42 @@ public com.google.cloud.speech.v1.SpeechAdaptationOrBuilder getAdaptationOrBuild
      * .google.cloud.speech.v1.SpeechAdaptation adaptation = 20;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.speech.v1.SpeechAdaptation, com.google.cloud.speech.v1.SpeechAdaptation.Builder, com.google.cloud.speech.v1.SpeechAdaptationOrBuilder> 
+            com.google.cloud.speech.v1.SpeechAdaptation,
+            com.google.cloud.speech.v1.SpeechAdaptation.Builder,
+            com.google.cloud.speech.v1.SpeechAdaptationOrBuilder>
         getAdaptationFieldBuilder() {
       if (adaptationBuilder_ == null) {
-        adaptationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.speech.v1.SpeechAdaptation, com.google.cloud.speech.v1.SpeechAdaptation.Builder, com.google.cloud.speech.v1.SpeechAdaptationOrBuilder>(
-                getAdaptation(),
-                getParentForChildren(),
-                isClean());
+        adaptationBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.speech.v1.SpeechAdaptation,
+                com.google.cloud.speech.v1.SpeechAdaptation.Builder,
+                com.google.cloud.speech.v1.SpeechAdaptationOrBuilder>(
+                getAdaptation(), getParentForChildren(), isClean());
         adaptation_ = null;
       }
       return adaptationBuilder_;
     }
 
     private java.util.List speechContexts_ =
-      java.util.Collections.emptyList();
+        java.util.Collections.emptyList();
+
     private void ensureSpeechContextsIsMutable() {
       if (!((bitField0_ & 0x00000002) != 0)) {
-        speechContexts_ = new java.util.ArrayList(speechContexts_);
+        speechContexts_ =
+            new java.util.ArrayList(speechContexts_);
         bitField0_ |= 0x00000002;
-       }
+      }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.speech.v1.SpeechContext, com.google.cloud.speech.v1.SpeechContext.Builder, com.google.cloud.speech.v1.SpeechContextOrBuilder> speechContextsBuilder_;
+            com.google.cloud.speech.v1.SpeechContext,
+            com.google.cloud.speech.v1.SpeechContext.Builder,
+            com.google.cloud.speech.v1.SpeechContextOrBuilder>
+        speechContextsBuilder_;
 
     /**
+     *
+     *
      * 
      * Array of [SpeechContext][google.cloud.speech.v1.SpeechContext].
      * A means to provide context to assist the speech recognition. For more
@@ -3058,6 +3377,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
@@ -3076,6 +3397,8 @@ public int getSpeechContextsCount() {
       }
     }
     /**
+     *
+     *
      * 
      * Array of [SpeechContext][google.cloud.speech.v1.SpeechContext].
      * A means to provide context to assist the speech recognition. For more
@@ -3094,6 +3417,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
@@ -3104,8 +3429,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();
@@ -3119,6 +3443,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
@@ -3141,6 +3467,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
@@ -3165,6 +3493,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
@@ -3175,8 +3505,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();
@@ -3190,6 +3519,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
@@ -3212,6 +3543,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
@@ -3234,6 +3567,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
@@ -3248,8 +3583,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);
@@ -3257,6 +3591,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
@@ -3278,6 +3614,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
@@ -3299,6 +3637,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
@@ -3309,11 +3649,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
@@ -3324,14 +3665,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
@@ -3342,8 +3685,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 {
@@ -3351,6 +3694,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
@@ -3362,10 +3707,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
@@ -3376,12 +3723,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
@@ -3392,16 +3740,22 @@ public com.google.cloud.speech.v1.SpeechContext.Builder addSpeechContextsBuilder
      *
      * repeated .google.cloud.speech.v1.SpeechContext speech_contexts = 6;
      */
-    public java.util.List 
-         getSpeechContextsBuilderList() {
+    public java.util.List
+        getSpeechContextsBuilderList() {
       return getSpeechContextsFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.speech.v1.SpeechContext, com.google.cloud.speech.v1.SpeechContext.Builder, com.google.cloud.speech.v1.SpeechContextOrBuilder> 
+            com.google.cloud.speech.v1.SpeechContext,
+            com.google.cloud.speech.v1.SpeechContext.Builder,
+            com.google.cloud.speech.v1.SpeechContextOrBuilder>
         getSpeechContextsFieldBuilder() {
       if (speechContextsBuilder_ == null) {
-        speechContextsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.speech.v1.SpeechContext, com.google.cloud.speech.v1.SpeechContext.Builder, com.google.cloud.speech.v1.SpeechContextOrBuilder>(
+        speechContextsBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.cloud.speech.v1.SpeechContext,
+                com.google.cloud.speech.v1.SpeechContext.Builder,
+                com.google.cloud.speech.v1.SpeechContextOrBuilder>(
                 speechContexts_,
                 ((bitField0_ & 0x00000002) != 0),
                 getParentForChildren(),
@@ -3411,8 +3765,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
@@ -3421,6 +3777,7 @@ public com.google.cloud.speech.v1.SpeechContext.Builder addSpeechContextsBuilder
      * 
* * bool enable_word_time_offsets = 8; + * * @return The enableWordTimeOffsets. */ @java.lang.Override @@ -3428,6 +3785,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
@@ -3436,16 +3795,19 @@ public boolean getEnableWordTimeOffsets() {
      * 
* * bool enable_word_time_offsets = 8; + * * @param value The enableWordTimeOffsets to set. * @return This builder for chaining. */ public Builder setEnableWordTimeOffsets(boolean value) { - + enableWordTimeOffsets_ = value; onChanged(); return this; } /** + * + * *
      * If `true`, the top result includes a list of words and
      * the start and end time offsets (timestamps) for those words. If
@@ -3454,17 +3816,20 @@ public Builder setEnableWordTimeOffsets(boolean value) {
      * 
* * bool enable_word_time_offsets = 8; + * * @return This builder for chaining. */ public Builder clearEnableWordTimeOffsets() { - + enableWordTimeOffsets_ = false; onChanged(); return this; } - private boolean enableWordConfidence_ ; + private boolean enableWordConfidence_; /** + * + * *
      * If `true`, the top result includes a list of words and the
      * confidence for those words. If `false`, no word-level confidence
@@ -3472,6 +3837,7 @@ public Builder clearEnableWordTimeOffsets() {
      * 
* * bool enable_word_confidence = 15; + * * @return The enableWordConfidence. */ @java.lang.Override @@ -3479,6 +3845,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
@@ -3486,16 +3854,19 @@ public boolean getEnableWordConfidence() {
      * 
* * bool enable_word_confidence = 15; + * * @param value The enableWordConfidence to set. * @return This builder for chaining. */ public Builder setEnableWordConfidence(boolean value) { - + enableWordConfidence_ = value; onChanged(); return this; } /** + * + * *
      * If `true`, the top result includes a list of words and the
      * confidence for those words. If `false`, no word-level confidence
@@ -3503,17 +3874,20 @@ public Builder setEnableWordConfidence(boolean value) {
      * 
* * bool enable_word_confidence = 15; + * * @return This builder for chaining. */ public Builder clearEnableWordConfidence() { - + enableWordConfidence_ = false; onChanged(); return this; } - private boolean enableAutomaticPunctuation_ ; + private boolean enableAutomaticPunctuation_; /** + * + * *
      * If 'true', adds punctuation to recognition result hypotheses.
      * This feature is only available in select languages. Setting this for
@@ -3522,6 +3896,7 @@ public Builder clearEnableWordConfidence() {
      * 
* * bool enable_automatic_punctuation = 11; + * * @return The enableAutomaticPunctuation. */ @java.lang.Override @@ -3529,6 +3904,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
@@ -3537,16 +3914,19 @@ public boolean getEnableAutomaticPunctuation() {
      * 
* * bool enable_automatic_punctuation = 11; + * * @param value The enableAutomaticPunctuation to set. * @return This builder for chaining. */ public Builder setEnableAutomaticPunctuation(boolean value) { - + enableAutomaticPunctuation_ = value; onChanged(); return this; } /** + * + * *
      * If 'true', adds punctuation to recognition result hypotheses.
      * This feature is only available in select languages. Setting this for
@@ -3555,10 +3935,11 @@ public Builder setEnableAutomaticPunctuation(boolean value) {
      * 
* * bool enable_automatic_punctuation = 11; + * * @return This builder for chaining. */ public Builder clearEnableAutomaticPunctuation() { - + enableAutomaticPunctuation_ = false; onChanged(); return this; @@ -3566,8 +3947,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
@@ -3579,12 +3965,15 @@ public Builder clearEnableAutomaticPunctuation() {
      * 
* * .google.protobuf.BoolValue enable_spoken_punctuation = 22; + * * @return Whether the enableSpokenPunctuation field is set. */ public boolean hasEnableSpokenPunctuation() { return enableSpokenPunctuationBuilder_ != null || enableSpokenPunctuation_ != null; } /** + * + * *
      * The spoken punctuation behavior for the call
      * If not set, uses default behavior based on model of choice
@@ -3596,16 +3985,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
@@ -3632,6 +4026,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
@@ -3656,6 +4052,8 @@ public Builder setEnableSpokenPunctuation(
       return this;
     }
     /**
+     *
+     *
      * 
      * The spoken punctuation behavior for the call
      * If not set, uses default behavior based on model of choice
@@ -3672,7 +4070,9 @@ public Builder mergeEnableSpokenPunctuation(com.google.protobuf.BoolValue value)
       if (enableSpokenPunctuationBuilder_ == null) {
         if (enableSpokenPunctuation_ != null) {
           enableSpokenPunctuation_ =
-            com.google.protobuf.BoolValue.newBuilder(enableSpokenPunctuation_).mergeFrom(value).buildPartial();
+              com.google.protobuf.BoolValue.newBuilder(enableSpokenPunctuation_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           enableSpokenPunctuation_ = value;
         }
@@ -3684,6 +4084,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
@@ -3708,6 +4110,8 @@ public Builder clearEnableSpokenPunctuation() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The spoken punctuation behavior for the call
      * If not set, uses default behavior based on model of choice
@@ -3721,11 +4125,13 @@ public Builder clearEnableSpokenPunctuation() {
      * .google.protobuf.BoolValue enable_spoken_punctuation = 22;
      */
     public com.google.protobuf.BoolValue.Builder getEnableSpokenPunctuationBuilder() {
-      
+
       onChanged();
       return getEnableSpokenPunctuationFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The spoken punctuation behavior for the call
      * If not set, uses default behavior based on model of choice
@@ -3742,11 +4148,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
@@ -3760,14 +4169,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_;
@@ -3775,8 +4187,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
@@ -3786,12 +4203,15 @@ public com.google.protobuf.BoolValueOrBuilder getEnableSpokenPunctuationOrBuilde
      * 
* * .google.protobuf.BoolValue enable_spoken_emojis = 23; + * * @return Whether the enableSpokenEmojis field is set. */ public boolean hasEnableSpokenEmojis() { return enableSpokenEmojisBuilder_ != null || enableSpokenEmojis_ != null; } /** + * + * *
      * The spoken emoji behavior for the call
      * If not set, uses default behavior based on model of choice
@@ -3801,16 +4221,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
@@ -3835,6 +4260,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
@@ -3845,8 +4272,7 @@ public Builder setEnableSpokenEmojis(com.google.protobuf.BoolValue value) {
      *
      * .google.protobuf.BoolValue enable_spoken_emojis = 23;
      */
-    public Builder setEnableSpokenEmojis(
-        com.google.protobuf.BoolValue.Builder builderForValue) {
+    public Builder setEnableSpokenEmojis(com.google.protobuf.BoolValue.Builder builderForValue) {
       if (enableSpokenEmojisBuilder_ == null) {
         enableSpokenEmojis_ = builderForValue.build();
         onChanged();
@@ -3857,6 +4283,8 @@ public Builder setEnableSpokenEmojis(
       return this;
     }
     /**
+     *
+     *
      * 
      * The spoken emoji behavior for the call
      * If not set, uses default behavior based on model of choice
@@ -3871,7 +4299,9 @@ public Builder mergeEnableSpokenEmojis(com.google.protobuf.BoolValue value) {
       if (enableSpokenEmojisBuilder_ == null) {
         if (enableSpokenEmojis_ != null) {
           enableSpokenEmojis_ =
-            com.google.protobuf.BoolValue.newBuilder(enableSpokenEmojis_).mergeFrom(value).buildPartial();
+              com.google.protobuf.BoolValue.newBuilder(enableSpokenEmojis_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           enableSpokenEmojis_ = value;
         }
@@ -3883,6 +4313,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
@@ -3905,6 +4337,8 @@ public Builder clearEnableSpokenEmojis() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The spoken emoji behavior for the call
      * If not set, uses default behavior based on model of choice
@@ -3916,11 +4350,13 @@ public Builder clearEnableSpokenEmojis() {
      * .google.protobuf.BoolValue enable_spoken_emojis = 23;
      */
     public com.google.protobuf.BoolValue.Builder getEnableSpokenEmojisBuilder() {
-      
+
       onChanged();
       return getEnableSpokenEmojisFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The spoken emoji behavior for the call
      * If not set, uses default behavior based on model of choice
@@ -3935,11 +4371,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
@@ -3951,14 +4390,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_;
@@ -3966,8 +4408,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.
@@ -3980,12 +4427,15 @@ public com.google.protobuf.BoolValueOrBuilder getEnableSpokenEmojisOrBuilder() {
      * 
* * .google.cloud.speech.v1.SpeakerDiarizationConfig diarization_config = 19; + * * @return Whether the diarizationConfig field is set. */ public boolean hasDiarizationConfig() { return diarizationConfigBuilder_ != null || diarizationConfig_ != null; } /** + * + * *
      * Config to enable speaker diarization and set additional
      * parameters to make diarization better suited for your application.
@@ -3998,16 +4448,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.
@@ -4035,6 +4490,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.
@@ -4060,6 +4517,8 @@ public Builder setDiarizationConfig(
       return this;
     }
     /**
+     *
+     *
      * 
      * Config to enable speaker diarization and set additional
      * parameters to make diarization better suited for your application.
@@ -4073,11 +4532,14 @@ public Builder setDiarizationConfig(
      *
      * .google.cloud.speech.v1.SpeakerDiarizationConfig diarization_config = 19;
      */
-    public Builder mergeDiarizationConfig(com.google.cloud.speech.v1.SpeakerDiarizationConfig value) {
+    public Builder mergeDiarizationConfig(
+        com.google.cloud.speech.v1.SpeakerDiarizationConfig value) {
       if (diarizationConfigBuilder_ == null) {
         if (diarizationConfig_ != null) {
           diarizationConfig_ =
-            com.google.cloud.speech.v1.SpeakerDiarizationConfig.newBuilder(diarizationConfig_).mergeFrom(value).buildPartial();
+              com.google.cloud.speech.v1.SpeakerDiarizationConfig.newBuilder(diarizationConfig_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           diarizationConfig_ = value;
         }
@@ -4089,6 +4551,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.
@@ -4114,6 +4578,8 @@ public Builder clearDiarizationConfig() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Config to enable speaker diarization and set additional
      * parameters to make diarization better suited for your application.
@@ -4127,12 +4593,15 @@ public Builder clearDiarizationConfig() {
      *
      * .google.cloud.speech.v1.SpeakerDiarizationConfig diarization_config = 19;
      */
-    public com.google.cloud.speech.v1.SpeakerDiarizationConfig.Builder getDiarizationConfigBuilder() {
-      
+    public com.google.cloud.speech.v1.SpeakerDiarizationConfig.Builder
+        getDiarizationConfigBuilder() {
+
       onChanged();
       return getDiarizationConfigFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Config to enable speaker diarization and set additional
      * parameters to make diarization better suited for your application.
@@ -4146,15 +4615,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.
@@ -4169,14 +4642,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_;
@@ -4184,34 +4660,47 @@ public com.google.cloud.speech.v1.SpeakerDiarizationConfigOrBuilder getDiarizati
 
     private com.google.cloud.speech.v1.RecognitionMetadata metadata_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.speech.v1.RecognitionMetadata, com.google.cloud.speech.v1.RecognitionMetadata.Builder, com.google.cloud.speech.v1.RecognitionMetadataOrBuilder> metadataBuilder_;
+            com.google.cloud.speech.v1.RecognitionMetadata,
+            com.google.cloud.speech.v1.RecognitionMetadata.Builder,
+            com.google.cloud.speech.v1.RecognitionMetadataOrBuilder>
+        metadataBuilder_;
     /**
+     *
+     *
      * 
      * Metadata regarding this request.
      * 
* * .google.cloud.speech.v1.RecognitionMetadata metadata = 9; + * * @return Whether the metadata field is set. */ public boolean hasMetadata() { return metadataBuilder_ != null || metadata_ != null; } /** + * + * *
      * Metadata regarding this request.
      * 
* * .google.cloud.speech.v1.RecognitionMetadata metadata = 9; + * * @return The metadata. */ public com.google.cloud.speech.v1.RecognitionMetadata getMetadata() { if (metadataBuilder_ == null) { - return metadata_ == null ? com.google.cloud.speech.v1.RecognitionMetadata.getDefaultInstance() : metadata_; + return metadata_ == null + ? com.google.cloud.speech.v1.RecognitionMetadata.getDefaultInstance() + : metadata_; } else { return metadataBuilder_.getMessage(); } } /** + * + * *
      * Metadata regarding this request.
      * 
@@ -4232,6 +4721,8 @@ public Builder setMetadata(com.google.cloud.speech.v1.RecognitionMetadata value) return this; } /** + * + * *
      * Metadata regarding this request.
      * 
@@ -4250,6 +4741,8 @@ public Builder setMetadata( return this; } /** + * + * *
      * Metadata regarding this request.
      * 
@@ -4260,7 +4753,9 @@ public Builder mergeMetadata(com.google.cloud.speech.v1.RecognitionMetadata valu if (metadataBuilder_ == null) { if (metadata_ != null) { metadata_ = - com.google.cloud.speech.v1.RecognitionMetadata.newBuilder(metadata_).mergeFrom(value).buildPartial(); + com.google.cloud.speech.v1.RecognitionMetadata.newBuilder(metadata_) + .mergeFrom(value) + .buildPartial(); } else { metadata_ = value; } @@ -4272,6 +4767,8 @@ public Builder mergeMetadata(com.google.cloud.speech.v1.RecognitionMetadata valu return this; } /** + * + * *
      * Metadata regarding this request.
      * 
@@ -4290,6 +4787,8 @@ public Builder clearMetadata() { return this; } /** + * + * *
      * Metadata regarding this request.
      * 
@@ -4297,11 +4796,13 @@ public Builder clearMetadata() { * .google.cloud.speech.v1.RecognitionMetadata metadata = 9; */ public com.google.cloud.speech.v1.RecognitionMetadata.Builder getMetadataBuilder() { - + onChanged(); return getMetadataFieldBuilder().getBuilder(); } /** + * + * *
      * Metadata regarding this request.
      * 
@@ -4312,11 +4813,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.
      * 
@@ -4324,14 +4828,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_; @@ -4339,6 +4846,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
@@ -4375,13 +4884,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; @@ -4390,6 +4899,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
@@ -4426,15 +4937,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 { @@ -4442,6 +4952,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
@@ -4478,20 +4990,22 @@ public java.lang.String getModel() {
      * 
* * string model = 13; + * * @param value The model to set. * @return This builder for chaining. */ - public Builder setModel( - java.lang.String value) { + public Builder setModel(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + model_ = value; onChanged(); return this; } /** + * + * *
      * Which model to select for the given request. Select the model
      * best suited to your domain to get best results. If a model is not
@@ -4528,15 +5042,18 @@ public Builder setModel(
      * 
* * string model = 13; + * * @return This builder for chaining. */ public Builder clearModel() { - + model_ = getDefaultInstance().getModel(); onChanged(); return this; } /** + * + * *
      * Which model to select for the given request. Select the model
      * best suited to your domain to get best results. If a model is not
@@ -4573,23 +5090,25 @@ public Builder clearModel() {
      * 
* * string model = 13; + * * @param value The bytes for model to set. * @return This builder for chaining. */ - public Builder setModelBytes( - com.google.protobuf.ByteString value) { + public Builder setModelBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + model_ = value; onChanged(); return this; } - private boolean useEnhanced_ ; + private boolean useEnhanced_; /** + * + * *
      * Set to true to use an enhanced model for speech recognition.
      * If `use_enhanced` is set to true and the `model` field is not set, then
@@ -4601,6 +5120,7 @@ public Builder setModelBytes(
      * 
* * bool use_enhanced = 14; + * * @return The useEnhanced. */ @java.lang.Override @@ -4608,6 +5128,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
@@ -4619,16 +5141,19 @@ public boolean getUseEnhanced() {
      * 
* * bool use_enhanced = 14; + * * @param value The useEnhanced to set. * @return This builder for chaining. */ public Builder setUseEnhanced(boolean value) { - + useEnhanced_ = value; onChanged(); return this; } /** + * + * *
      * Set to true to use an enhanced model for speech recognition.
      * If `use_enhanced` is set to true and the `model` field is not set, then
@@ -4640,17 +5165,18 @@ public Builder setUseEnhanced(boolean value) {
      * 
* * bool use_enhanced = 14; + * * @return This builder for chaining. */ public Builder clearUseEnhanced() { - + useEnhanced_ = false; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -4660,12 +5186,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(); } @@ -4674,16 +5200,16 @@ public static com.google.cloud.speech.v1.RecognitionConfig getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RecognitionConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new RecognitionConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RecognitionConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RecognitionConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -4698,6 +5224,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1.RecognitionConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionConfigOrBuilder.java b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionConfigOrBuilder.java similarity index 94% rename from owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionConfigOrBuilder.java rename to proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionConfigOrBuilder.java index 6025549fc..751985a74 100644 --- a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionConfigOrBuilder.java +++ b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionConfigOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1/cloud_speech.proto package com.google.cloud.speech.v1; -public interface RecognitionConfigOrBuilder extends +public interface RecognitionConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1.RecognitionConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Encoding of audio data sent in all `RecognitionAudio` messages.
    * This field is optional for `FLAC` and `WAV` audio files and required
@@ -15,10 +33,13 @@ public interface RecognitionConfigOrBuilder extends
    * 
* * .google.cloud.speech.v1.RecognitionConfig.AudioEncoding encoding = 1; + * * @return The enum numeric value on the wire for encoding. */ int getEncodingValue(); /** + * + * *
    * Encoding of audio data sent in all `RecognitionAudio` messages.
    * This field is optional for `FLAC` and `WAV` audio files and required
@@ -26,11 +47,14 @@ public interface RecognitionConfigOrBuilder extends
    * 
* * .google.cloud.speech.v1.RecognitionConfig.AudioEncoding encoding = 1; + * * @return The encoding. */ com.google.cloud.speech.v1.RecognitionConfig.AudioEncoding getEncoding(); /** + * + * *
    * Sample rate in Hertz of the audio data sent in all
    * `RecognitionAudio` messages. Valid values are: 8000-48000.
@@ -42,11 +66,14 @@ public interface RecognitionConfigOrBuilder extends
    * 
* * int32 sample_rate_hertz = 2; + * * @return The sampleRateHertz. */ int getSampleRateHertz(); /** + * + * *
    * The number of channels in the input audio data.
    * ONLY set this for MULTI-CHANNEL recognition.
@@ -60,11 +87,14 @@ public interface RecognitionConfigOrBuilder extends
    * 
* * int32 audio_channel_count = 7; + * * @return The audioChannelCount. */ int getAudioChannelCount(); /** + * + * *
    * This needs to be set to `true` explicitly and `audio_channel_count` > 1
    * to get each channel recognized separately. The recognition result will
@@ -75,11 +105,14 @@ public interface RecognitionConfigOrBuilder extends
    * 
* * bool enable_separate_recognition_per_channel = 12; + * * @return The enableSeparateRecognitionPerChannel. */ boolean getEnableSeparateRecognitionPerChannel(); /** + * + * *
    * Required. The language of the supplied audio as a
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.
@@ -90,10 +123,13 @@ public interface RecognitionConfigOrBuilder extends
    * 
* * string language_code = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The languageCode. */ java.lang.String getLanguageCode(); /** + * + * *
    * Required. The language of the supplied audio as a
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.
@@ -104,12 +140,14 @@ public interface RecognitionConfigOrBuilder extends
    * 
* * string language_code = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for languageCode. */ - com.google.protobuf.ByteString - getLanguageCodeBytes(); + com.google.protobuf.ByteString getLanguageCodeBytes(); /** + * + * *
    * A list of up to 3 additional
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags,
@@ -126,11 +164,13 @@ public interface RecognitionConfigOrBuilder extends
    * 
* * repeated string alternative_language_codes = 18; + * * @return A list containing the alternativeLanguageCodes. */ - java.util.List - getAlternativeLanguageCodesList(); + java.util.List getAlternativeLanguageCodesList(); /** + * + * *
    * A list of up to 3 additional
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags,
@@ -147,10 +187,13 @@ public interface RecognitionConfigOrBuilder extends
    * 
* * repeated string alternative_language_codes = 18; + * * @return The count of alternativeLanguageCodes. */ int getAlternativeLanguageCodesCount(); /** + * + * *
    * A list of up to 3 additional
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags,
@@ -167,11 +210,14 @@ public interface RecognitionConfigOrBuilder extends
    * 
* * repeated string alternative_language_codes = 18; + * * @param index The index of the element to return. * @return The alternativeLanguageCodes at the given index. */ java.lang.String getAlternativeLanguageCodes(int index); /** + * + * *
    * A list of up to 3 additional
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags,
@@ -188,13 +234,15 @@ public interface RecognitionConfigOrBuilder extends
    * 
* * repeated string alternative_language_codes = 18; + * * @param index The index of the value to return. * @return The bytes of the alternativeLanguageCodes at the given index. */ - com.google.protobuf.ByteString - getAlternativeLanguageCodesBytes(int index); + com.google.protobuf.ByteString getAlternativeLanguageCodesBytes(int index); /** + * + * *
    * Maximum number of recognition hypotheses to be returned.
    * Specifically, the maximum number of `SpeechRecognitionAlternative` messages
@@ -205,11 +253,14 @@ public interface RecognitionConfigOrBuilder extends
    * 
* * int32 max_alternatives = 4; + * * @return The maxAlternatives. */ int getMaxAlternatives(); /** + * + * *
    * If set to `true`, the server will attempt to filter out
    * profanities, replacing all but the initial character in each filtered word
@@ -218,11 +269,14 @@ public interface RecognitionConfigOrBuilder extends
    * 
* * bool profanity_filter = 5; + * * @return The profanityFilter. */ boolean getProfanityFilter(); /** + * + * *
    * Speech adaptation configuration improves the accuracy of speech
    * recognition. For more information, see the [speech
@@ -232,10 +286,13 @@ public interface RecognitionConfigOrBuilder extends
    * 
* * .google.cloud.speech.v1.SpeechAdaptation adaptation = 20; + * * @return Whether the adaptation field is set. */ boolean hasAdaptation(); /** + * + * *
    * Speech adaptation configuration improves the accuracy of speech
    * recognition. For more information, see the [speech
@@ -245,10 +302,13 @@ public interface RecognitionConfigOrBuilder extends
    * 
* * .google.cloud.speech.v1.SpeechAdaptation adaptation = 20; + * * @return The adaptation. */ com.google.cloud.speech.v1.SpeechAdaptation getAdaptation(); /** + * + * *
    * Speech adaptation configuration improves the accuracy of speech
    * recognition. For more information, see the [speech
@@ -262,6 +322,8 @@ public interface RecognitionConfigOrBuilder extends
   com.google.cloud.speech.v1.SpeechAdaptationOrBuilder getAdaptationOrBuilder();
 
   /**
+   *
+   *
    * 
    * Array of [SpeechContext][google.cloud.speech.v1.SpeechContext].
    * A means to provide context to assist the speech recognition. For more
@@ -272,9 +334,10 @@ public interface RecognitionConfigOrBuilder extends
    *
    * repeated .google.cloud.speech.v1.SpeechContext speech_contexts = 6;
    */
-  java.util.List 
-      getSpeechContextsList();
+  java.util.List getSpeechContextsList();
   /**
+   *
+   *
    * 
    * Array of [SpeechContext][google.cloud.speech.v1.SpeechContext].
    * A means to provide context to assist the speech recognition. For more
@@ -287,6 +350,8 @@ public interface RecognitionConfigOrBuilder extends
    */
   com.google.cloud.speech.v1.SpeechContext getSpeechContexts(int index);
   /**
+   *
+   *
    * 
    * Array of [SpeechContext][google.cloud.speech.v1.SpeechContext].
    * A means to provide context to assist the speech recognition. For more
@@ -299,6 +364,8 @@ public interface RecognitionConfigOrBuilder extends
    */
   int getSpeechContextsCount();
   /**
+   *
+   *
    * 
    * Array of [SpeechContext][google.cloud.speech.v1.SpeechContext].
    * A means to provide context to assist the speech recognition. For more
@@ -309,9 +376,11 @@ public interface RecognitionConfigOrBuilder extends
    *
    * repeated .google.cloud.speech.v1.SpeechContext speech_contexts = 6;
    */
-  java.util.List 
+  java.util.List
       getSpeechContextsOrBuilderList();
   /**
+   *
+   *
    * 
    * Array of [SpeechContext][google.cloud.speech.v1.SpeechContext].
    * A means to provide context to assist the speech recognition. For more
@@ -322,10 +391,11 @@ public interface RecognitionConfigOrBuilder extends
    *
    * repeated .google.cloud.speech.v1.SpeechContext speech_contexts = 6;
    */
-  com.google.cloud.speech.v1.SpeechContextOrBuilder getSpeechContextsOrBuilder(
-      int index);
+  com.google.cloud.speech.v1.SpeechContextOrBuilder getSpeechContextsOrBuilder(int index);
 
   /**
+   *
+   *
    * 
    * If `true`, the top result includes a list of words and
    * the start and end time offsets (timestamps) for those words. If
@@ -334,11 +404,14 @@ com.google.cloud.speech.v1.SpeechContextOrBuilder getSpeechContextsOrBuilder(
    * 
* * bool enable_word_time_offsets = 8; + * * @return The enableWordTimeOffsets. */ boolean getEnableWordTimeOffsets(); /** + * + * *
    * If `true`, the top result includes a list of words and the
    * confidence for those words. If `false`, no word-level confidence
@@ -346,11 +419,14 @@ com.google.cloud.speech.v1.SpeechContextOrBuilder getSpeechContextsOrBuilder(
    * 
* * bool enable_word_confidence = 15; + * * @return The enableWordConfidence. */ boolean getEnableWordConfidence(); /** + * + * *
    * If 'true', adds punctuation to recognition result hypotheses.
    * This feature is only available in select languages. Setting this for
@@ -359,11 +435,14 @@ com.google.cloud.speech.v1.SpeechContextOrBuilder getSpeechContextsOrBuilder(
    * 
* * bool enable_automatic_punctuation = 11; + * * @return The enableAutomaticPunctuation. */ boolean getEnableAutomaticPunctuation(); /** + * + * *
    * The spoken punctuation behavior for the call
    * If not set, uses default behavior based on model of choice
@@ -375,10 +454,13 @@ com.google.cloud.speech.v1.SpeechContextOrBuilder getSpeechContextsOrBuilder(
    * 
* * .google.protobuf.BoolValue enable_spoken_punctuation = 22; + * * @return Whether the enableSpokenPunctuation field is set. */ boolean hasEnableSpokenPunctuation(); /** + * + * *
    * The spoken punctuation behavior for the call
    * If not set, uses default behavior based on model of choice
@@ -390,10 +472,13 @@ com.google.cloud.speech.v1.SpeechContextOrBuilder getSpeechContextsOrBuilder(
    * 
* * .google.protobuf.BoolValue enable_spoken_punctuation = 22; + * * @return The enableSpokenPunctuation. */ com.google.protobuf.BoolValue getEnableSpokenPunctuation(); /** + * + * *
    * The spoken punctuation behavior for the call
    * If not set, uses default behavior based on model of choice
@@ -409,6 +494,8 @@ com.google.cloud.speech.v1.SpeechContextOrBuilder getSpeechContextsOrBuilder(
   com.google.protobuf.BoolValueOrBuilder getEnableSpokenPunctuationOrBuilder();
 
   /**
+   *
+   *
    * 
    * The spoken emoji behavior for the call
    * If not set, uses default behavior based on model of choice
@@ -418,10 +505,13 @@ com.google.cloud.speech.v1.SpeechContextOrBuilder getSpeechContextsOrBuilder(
    * 
* * .google.protobuf.BoolValue enable_spoken_emojis = 23; + * * @return Whether the enableSpokenEmojis field is set. */ boolean hasEnableSpokenEmojis(); /** + * + * *
    * The spoken emoji behavior for the call
    * If not set, uses default behavior based on model of choice
@@ -431,10 +521,13 @@ com.google.cloud.speech.v1.SpeechContextOrBuilder getSpeechContextsOrBuilder(
    * 
* * .google.protobuf.BoolValue enable_spoken_emojis = 23; + * * @return The enableSpokenEmojis. */ com.google.protobuf.BoolValue getEnableSpokenEmojis(); /** + * + * *
    * The spoken emoji behavior for the call
    * If not set, uses default behavior based on model of choice
@@ -448,6 +541,8 @@ com.google.cloud.speech.v1.SpeechContextOrBuilder getSpeechContextsOrBuilder(
   com.google.protobuf.BoolValueOrBuilder getEnableSpokenEmojisOrBuilder();
 
   /**
+   *
+   *
    * 
    * Config to enable speaker diarization and set additional
    * parameters to make diarization better suited for your application.
@@ -460,10 +555,13 @@ com.google.cloud.speech.v1.SpeechContextOrBuilder getSpeechContextsOrBuilder(
    * 
* * .google.cloud.speech.v1.SpeakerDiarizationConfig diarization_config = 19; + * * @return Whether the diarizationConfig field is set. */ boolean hasDiarizationConfig(); /** + * + * *
    * Config to enable speaker diarization and set additional
    * parameters to make diarization better suited for your application.
@@ -476,10 +574,13 @@ com.google.cloud.speech.v1.SpeechContextOrBuilder getSpeechContextsOrBuilder(
    * 
* * .google.cloud.speech.v1.SpeakerDiarizationConfig diarization_config = 19; + * * @return The diarizationConfig. */ com.google.cloud.speech.v1.SpeakerDiarizationConfig getDiarizationConfig(); /** + * + * *
    * Config to enable speaker diarization and set additional
    * parameters to make diarization better suited for your application.
@@ -496,24 +597,32 @@ com.google.cloud.speech.v1.SpeechContextOrBuilder getSpeechContextsOrBuilder(
   com.google.cloud.speech.v1.SpeakerDiarizationConfigOrBuilder getDiarizationConfigOrBuilder();
 
   /**
+   *
+   *
    * 
    * Metadata regarding this request.
    * 
* * .google.cloud.speech.v1.RecognitionMetadata metadata = 9; + * * @return Whether the metadata field is set. */ boolean hasMetadata(); /** + * + * *
    * Metadata regarding this request.
    * 
* * .google.cloud.speech.v1.RecognitionMetadata metadata = 9; + * * @return The metadata. */ com.google.cloud.speech.v1.RecognitionMetadata getMetadata(); /** + * + * *
    * Metadata regarding this request.
    * 
@@ -523,6 +632,8 @@ com.google.cloud.speech.v1.SpeechContextOrBuilder getSpeechContextsOrBuilder( com.google.cloud.speech.v1.RecognitionMetadataOrBuilder getMetadataOrBuilder(); /** + * + * *
    * Which model to select for the given request. Select the model
    * best suited to your domain to get best results. If a model is not
@@ -559,10 +670,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
@@ -599,12 +713,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
@@ -616,6 +732,7 @@ com.google.cloud.speech.v1.SpeechContextOrBuilder getSpeechContextsOrBuilder(
    * 
* * bool use_enhanced = 14; + * * @return The useEnhanced. */ boolean getUseEnhanced(); diff --git a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionMetadata.java b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionMetadata.java similarity index 72% rename from owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionMetadata.java rename to proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionMetadata.java index 2ae9f0508..32b2ee4dd 100644 --- a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionMetadata.java +++ b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionMetadata.java @@ -1,24 +1,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; /** + * + * *
  * Description of audio data to be recognized.
  * 
* * Protobuf type {@code google.cloud.speech.v1.RecognitionMetadata} */ -public final class RecognitionMetadata extends - com.google.protobuf.GeneratedMessageV3 implements +public final class RecognitionMetadata extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v1.RecognitionMetadata) RecognitionMetadataOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use RecognitionMetadata.newBuilder() to construct. private RecognitionMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private RecognitionMetadata() { interactionType_ = 0; microphoneDistance_ = 0; @@ -31,16 +49,15 @@ private RecognitionMetadata() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new RecognitionMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private RecognitionMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -59,86 +76,97 @@ private RecognitionMetadata( case 0: done = true; break; - case 8: { - int rawValue = input.readEnum(); - - interactionType_ = rawValue; - break; - } - case 24: { + case 8: + { + int rawValue = input.readEnum(); - industryNaicsCodeOfAudio_ = input.readUInt32(); - break; - } - case 32: { - int rawValue = input.readEnum(); + interactionType_ = rawValue; + break; + } + case 24: + { + industryNaicsCodeOfAudio_ = input.readUInt32(); + break; + } + case 32: + { + int rawValue = input.readEnum(); - microphoneDistance_ = rawValue; - break; - } - case 40: { - int rawValue = input.readEnum(); + microphoneDistance_ = rawValue; + break; + } + case 40: + { + int rawValue = input.readEnum(); - originalMediaType_ = rawValue; - break; - } - case 48: { - int rawValue = input.readEnum(); + originalMediaType_ = rawValue; + break; + } + case 48: + { + int rawValue = input.readEnum(); - recordingDeviceType_ = rawValue; - break; - } - case 58: { - java.lang.String s = input.readStringRequireUtf8(); + recordingDeviceType_ = rawValue; + break; + } + case 58: + { + java.lang.String s = input.readStringRequireUtf8(); - recordingDeviceName_ = s; - break; - } - case 66: { - java.lang.String s = input.readStringRequireUtf8(); + recordingDeviceName_ = s; + break; + } + case 66: + { + java.lang.String s = input.readStringRequireUtf8(); - originalMimeType_ = s; - break; - } - case 82: { - java.lang.String s = input.readStringRequireUtf8(); + originalMimeType_ = s; + break; + } + case 82: + { + java.lang.String s = input.readStringRequireUtf8(); - audioTopic_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + audioTopic_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_RecognitionMetadata_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1.SpeechProto + .internal_static_google_cloud_speech_v1_RecognitionMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_RecognitionMetadata_fieldAccessorTable + return com.google.cloud.speech.v1.SpeechProto + .internal_static_google_cloud_speech_v1_RecognitionMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1.RecognitionMetadata.class, com.google.cloud.speech.v1.RecognitionMetadata.Builder.class); + com.google.cloud.speech.v1.RecognitionMetadata.class, + com.google.cloud.speech.v1.RecognitionMetadata.Builder.class); } /** + * + * *
    * Use case categories that the audio recognition request can be described
    * by.
@@ -146,9 +174,10 @@ private RecognitionMetadata(
    *
    * Protobuf enum {@code google.cloud.speech.v1.RecognitionMetadata.InteractionType}
    */
-  public enum InteractionType
-      implements com.google.protobuf.ProtocolMessageEnum {
+  public enum InteractionType implements com.google.protobuf.ProtocolMessageEnum {
     /**
+     *
+     *
      * 
      * Use case is either unknown or is something other than one of the other
      * values below.
@@ -158,6 +187,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
@@ -169,6 +200,8 @@ public enum InteractionType
      */
     DISCUSSION(1),
     /**
+     *
+     *
      * 
      * One or more persons lecturing or presenting to others, mostly
      * uninterrupted.
@@ -178,6 +211,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.
@@ -187,6 +222,8 @@ public enum InteractionType
      */
     PHONE_CALL(3),
     /**
+     *
+     *
      * 
      * A recorded message intended for another person to listen to.
      * 
@@ -195,6 +232,8 @@ public enum InteractionType */ VOICEMAIL(4), /** + * + * *
      * Professionally produced audio (eg. TV Show, Podcast).
      * 
@@ -203,6 +242,8 @@ public enum InteractionType */ PROFESSIONALLY_PRODUCED(5), /** + * + * *
      * Transcribe spoken questions and queries into text.
      * 
@@ -211,6 +252,8 @@ public enum InteractionType */ VOICE_SEARCH(6), /** + * + * *
      * Transcribe voice commands, such as for controlling a device.
      * 
@@ -219,6 +262,8 @@ public enum InteractionType */ VOICE_COMMAND(7), /** + * + * *
      * Transcribe speech to text to create a written document, such as a
      * text-message, email or report.
@@ -231,6 +276,8 @@ public enum InteractionType
     ;
 
     /**
+     *
+     *
      * 
      * Use case is either unknown or is something other than one of the other
      * values below.
@@ -240,6 +287,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
@@ -251,6 +300,8 @@ public enum InteractionType
      */
     public static final int DISCUSSION_VALUE = 1;
     /**
+     *
+     *
      * 
      * One or more persons lecturing or presenting to others, mostly
      * uninterrupted.
@@ -260,6 +311,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.
@@ -269,6 +322,8 @@ public enum InteractionType
      */
     public static final int PHONE_CALL_VALUE = 3;
     /**
+     *
+     *
      * 
      * A recorded message intended for another person to listen to.
      * 
@@ -277,6 +332,8 @@ public enum InteractionType */ public static final int VOICEMAIL_VALUE = 4; /** + * + * *
      * Professionally produced audio (eg. TV Show, Podcast).
      * 
@@ -285,6 +342,8 @@ public enum InteractionType */ public static final int PROFESSIONALLY_PRODUCED_VALUE = 5; /** + * + * *
      * Transcribe spoken questions and queries into text.
      * 
@@ -293,6 +352,8 @@ public enum InteractionType */ public static final int VOICE_SEARCH_VALUE = 6; /** + * + * *
      * Transcribe voice commands, such as for controlling a device.
      * 
@@ -301,6 +362,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.
@@ -310,7 +373,6 @@ public enum InteractionType
      */
     public static final int DICTATION_VALUE = 8;
 
-
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -335,45 +397,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);
     }
 
@@ -382,8 +453,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;
@@ -401,15 +471,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.
      * 
@@ -418,6 +491,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
@@ -428,6 +503,8 @@ public enum MicrophoneDistance
      */
     NEARFIELD(1),
     /**
+     *
+     *
      * 
      * The speaker if within 3 meters of the microphone.
      * 
@@ -436,6 +513,8 @@ public enum MicrophoneDistance */ MIDFIELD(2), /** + * + * *
      * The speaker is more than 3 meters away from the microphone.
      * 
@@ -447,6 +526,8 @@ public enum MicrophoneDistance ; /** + * + * *
      * Audio type is not known.
      * 
@@ -455,6 +536,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
@@ -465,6 +548,8 @@ public enum MicrophoneDistance
      */
     public static final int NEARFIELD_VALUE = 1;
     /**
+     *
+     *
      * 
      * The speaker if within 3 meters of the microphone.
      * 
@@ -473,6 +558,8 @@ public enum MicrophoneDistance */ public static final int MIDFIELD_VALUE = 2; /** + * + * *
      * The speaker is more than 3 meters away from the microphone.
      * 
@@ -481,7 +568,6 @@ public enum MicrophoneDistance */ public static final int FARFIELD_VALUE = 3; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -506,11 +592,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; } } @@ -518,28 +609,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); } @@ -548,8 +639,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; @@ -567,15 +657,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.
      * 
@@ -584,6 +677,8 @@ public enum OriginalMediaType */ ORIGINAL_MEDIA_TYPE_UNSPECIFIED(0), /** + * + * *
      * The speech data is an audio recording.
      * 
@@ -592,6 +687,8 @@ public enum OriginalMediaType */ AUDIO(1), /** + * + * *
      * The speech data originally recorded on a video.
      * 
@@ -603,6 +700,8 @@ public enum OriginalMediaType ; /** + * + * *
      * Unknown original media type.
      * 
@@ -611,6 +710,8 @@ public enum OriginalMediaType */ public static final int ORIGINAL_MEDIA_TYPE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * The speech data is an audio recording.
      * 
@@ -619,6 +720,8 @@ public enum OriginalMediaType */ public static final int AUDIO_VALUE = 1; /** + * + * *
      * The speech data originally recorded on a video.
      * 
@@ -627,7 +730,6 @@ public enum OriginalMediaType */ public static final int VIDEO_VALUE = 2; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -652,10 +754,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; } } @@ -663,28 +769,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); } @@ -693,8 +799,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; @@ -712,15 +817,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.
      * 
@@ -729,6 +837,8 @@ public enum RecordingDeviceType */ RECORDING_DEVICE_TYPE_UNSPECIFIED(0), /** + * + * *
      * Speech was recorded on a smartphone.
      * 
@@ -737,6 +847,8 @@ public enum RecordingDeviceType */ SMARTPHONE(1), /** + * + * *
      * Speech was recorded using a personal computer or tablet.
      * 
@@ -745,6 +857,8 @@ public enum RecordingDeviceType */ PC(2), /** + * + * *
      * Speech was recorded over a phone line.
      * 
@@ -753,6 +867,8 @@ public enum RecordingDeviceType */ PHONE_LINE(3), /** + * + * *
      * Speech was recorded in a vehicle.
      * 
@@ -761,6 +877,8 @@ public enum RecordingDeviceType */ VEHICLE(4), /** + * + * *
      * Speech was recorded outdoors.
      * 
@@ -769,6 +887,8 @@ public enum RecordingDeviceType */ OTHER_OUTDOOR_DEVICE(5), /** + * + * *
      * Speech was recorded indoors.
      * 
@@ -780,6 +900,8 @@ public enum RecordingDeviceType ; /** + * + * *
      * The recording device is unknown.
      * 
@@ -788,6 +910,8 @@ public enum RecordingDeviceType */ public static final int RECORDING_DEVICE_TYPE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Speech was recorded on a smartphone.
      * 
@@ -796,6 +920,8 @@ public enum RecordingDeviceType */ public static final int SMARTPHONE_VALUE = 1; /** + * + * *
      * Speech was recorded using a personal computer or tablet.
      * 
@@ -804,6 +930,8 @@ public enum RecordingDeviceType */ public static final int PC_VALUE = 2; /** + * + * *
      * Speech was recorded over a phone line.
      * 
@@ -812,6 +940,8 @@ public enum RecordingDeviceType */ public static final int PHONE_LINE_VALUE = 3; /** + * + * *
      * Speech was recorded in a vehicle.
      * 
@@ -820,6 +950,8 @@ public enum RecordingDeviceType */ public static final int VEHICLE_VALUE = 4; /** + * + * *
      * Speech was recorded outdoors.
      * 
@@ -828,6 +960,8 @@ public enum RecordingDeviceType */ public static final int OTHER_OUTDOOR_DEVICE_VALUE = 5; /** + * + * *
      * Speech was recorded indoors.
      * 
@@ -836,7 +970,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( @@ -861,14 +994,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; } } @@ -876,28 +1017,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); } @@ -906,8 +1047,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; @@ -927,33 +1067,46 @@ private RecordingDeviceType(int value) { public static final int INTERACTION_TYPE_FIELD_NUMBER = 1; private int interactionType_; /** + * + * *
    * The use case most closely describing the audio content to be recognized.
    * 
* * .google.cloud.speech.v1.RecognitionMetadata.InteractionType interaction_type = 1; + * * @return The enum numeric value on the wire for interactionType. */ - @java.lang.Override public int getInteractionTypeValue() { + @java.lang.Override + public int getInteractionTypeValue() { return interactionType_; } /** + * + * *
    * The use case most closely describing the audio content to be recognized.
    * 
* * .google.cloud.speech.v1.RecognitionMetadata.InteractionType interaction_type = 1; + * * @return The interactionType. */ - @java.lang.Override public com.google.cloud.speech.v1.RecognitionMetadata.InteractionType getInteractionType() { + @java.lang.Override + public com.google.cloud.speech.v1.RecognitionMetadata.InteractionType getInteractionType() { @SuppressWarnings("deprecation") - com.google.cloud.speech.v1.RecognitionMetadata.InteractionType result = com.google.cloud.speech.v1.RecognitionMetadata.InteractionType.valueOf(interactionType_); - return result == null ? com.google.cloud.speech.v1.RecognitionMetadata.InteractionType.UNRECOGNIZED : result; + com.google.cloud.speech.v1.RecognitionMetadata.InteractionType result = + com.google.cloud.speech.v1.RecognitionMetadata.InteractionType.valueOf(interactionType_); + return result == null + ? com.google.cloud.speech.v1.RecognitionMetadata.InteractionType.UNRECOGNIZED + : result; } public static final int INDUSTRY_NAICS_CODE_OF_AUDIO_FIELD_NUMBER = 3; private int industryNaicsCodeOfAudio_; /** + * + * *
    * The industry vertical to which this speech recognition request most
    * closely applies. This is most indicative of the topics contained
@@ -962,6 +1115,7 @@ private RecordingDeviceType(int value) {
    * 
* * uint32 industry_naics_code_of_audio = 3; + * * @return The industryNaicsCodeOfAudio. */ @java.lang.Override @@ -972,87 +1126,134 @@ public int getIndustryNaicsCodeOfAudio() { public static final int MICROPHONE_DISTANCE_FIELD_NUMBER = 4; private int microphoneDistance_; /** + * + * *
    * The audio type that most closely describes the audio being recognized.
    * 
* - * .google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance microphone_distance = 4; + * .google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance microphone_distance = 4; + * + * * @return The enum numeric value on the wire for microphoneDistance. */ - @java.lang.Override public int getMicrophoneDistanceValue() { + @java.lang.Override + public int getMicrophoneDistanceValue() { return microphoneDistance_; } /** + * + * *
    * The audio type that most closely describes the audio being recognized.
    * 
* - * .google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance microphone_distance = 4; + * .google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance microphone_distance = 4; + * + * * @return The microphoneDistance. */ - @java.lang.Override public com.google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance getMicrophoneDistance() { + @java.lang.Override + public com.google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance getMicrophoneDistance() { @SuppressWarnings("deprecation") - com.google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance result = com.google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance.valueOf(microphoneDistance_); - return result == null ? com.google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance.UNRECOGNIZED : result; + com.google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance result = + com.google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance.valueOf( + microphoneDistance_); + return result == null + ? com.google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance.UNRECOGNIZED + : result; } public static final int ORIGINAL_MEDIA_TYPE_FIELD_NUMBER = 5; private int originalMediaType_; /** + * + * *
    * The original media the speech was recorded on.
    * 
* - * .google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType original_media_type = 5; + * .google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType original_media_type = 5; + * + * * @return The enum numeric value on the wire for originalMediaType. */ - @java.lang.Override public int getOriginalMediaTypeValue() { + @java.lang.Override + public int getOriginalMediaTypeValue() { return originalMediaType_; } /** + * + * *
    * The original media the speech was recorded on.
    * 
* - * .google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType original_media_type = 5; + * .google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType original_media_type = 5; + * + * * @return The originalMediaType. */ - @java.lang.Override public com.google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType getOriginalMediaType() { + @java.lang.Override + public com.google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType getOriginalMediaType() { @SuppressWarnings("deprecation") - com.google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType result = com.google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType.valueOf(originalMediaType_); - return result == null ? com.google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType.UNRECOGNIZED : result; + com.google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType result = + com.google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType.valueOf( + originalMediaType_); + return result == null + ? com.google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType.UNRECOGNIZED + : result; } public static final int RECORDING_DEVICE_TYPE_FIELD_NUMBER = 6; private int recordingDeviceType_; /** + * + * *
    * The type of device the speech was recorded with.
    * 
* - * .google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType recording_device_type = 6; + * + * .google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType recording_device_type = 6; + * + * * @return The enum numeric value on the wire for recordingDeviceType. */ - @java.lang.Override public int getRecordingDeviceTypeValue() { + @java.lang.Override + public int getRecordingDeviceTypeValue() { return recordingDeviceType_; } /** + * + * *
    * The type of device the speech was recorded with.
    * 
* - * .google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType recording_device_type = 6; + * + * .google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType recording_device_type = 6; + * + * * @return The recordingDeviceType. */ - @java.lang.Override public com.google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType getRecordingDeviceType() { + @java.lang.Override + public com.google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType + getRecordingDeviceType() { @SuppressWarnings("deprecation") - com.google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType result = com.google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType.valueOf(recordingDeviceType_); - return result == null ? com.google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType.UNRECOGNIZED : result; + com.google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType result = + com.google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType.valueOf( + recordingDeviceType_); + return result == null + ? com.google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType.UNRECOGNIZED + : result; } public static final int RECORDING_DEVICE_NAME_FIELD_NUMBER = 7; private volatile java.lang.Object recordingDeviceName_; /** + * + * *
    * The device used to make the recording.  Examples 'Nexus 5X' or
    * 'Polycom SoundStation IP 6000' or 'POTS' or 'VoIP' or
@@ -1060,6 +1261,7 @@ public int getIndustryNaicsCodeOfAudio() {
    * 
* * string recording_device_name = 7; + * * @return The recordingDeviceName. */ @java.lang.Override @@ -1068,14 +1270,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
@@ -1083,16 +1286,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 { @@ -1103,6 +1305,8 @@ public java.lang.String getRecordingDeviceName() { public static final int ORIGINAL_MIME_TYPE_FIELD_NUMBER = 8; private volatile java.lang.Object originalMimeType_; /** + * + * *
    * Mime type of the original audio file.  For example `audio/m4a`,
    * `audio/x-alaw-basic`, `audio/mp3`, `audio/3gpp`.
@@ -1111,6 +1315,7 @@ public java.lang.String getRecordingDeviceName() {
    * 
* * string original_mime_type = 8; + * * @return The originalMimeType. */ @java.lang.Override @@ -1119,14 +1324,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`.
@@ -1135,16 +1341,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 { @@ -1155,12 +1360,15 @@ public java.lang.String getOriginalMimeType() { public static final int AUDIO_TOPIC_FIELD_NUMBER = 10; private volatile java.lang.Object audioTopic_; /** + * + * *
    * Description of the content. Eg. "Recordings of federal supreme court
    * hearings from 2012".
    * 
* * string audio_topic = 10; + * * @return The audioTopic. */ @java.lang.Override @@ -1169,30 +1377,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 { @@ -1201,6 +1409,7 @@ public java.lang.String getAudioTopic() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1212,21 +1421,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_)) { @@ -1247,25 +1467,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_); @@ -1284,25 +1511,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1.RecognitionMetadata)) { return super.equals(obj); } - com.google.cloud.speech.v1.RecognitionMetadata other = (com.google.cloud.speech.v1.RecognitionMetadata) obj; + com.google.cloud.speech.v1.RecognitionMetadata other = + (com.google.cloud.speech.v1.RecognitionMetadata) obj; if (interactionType_ != other.interactionType_) return false; - if (getIndustryNaicsCodeOfAudio() - != other.getIndustryNaicsCodeOfAudio()) return false; + if (getIndustryNaicsCodeOfAudio() != other.getIndustryNaicsCodeOfAudio()) return false; if (microphoneDistance_ != other.microphoneDistance_) return false; if (originalMediaType_ != other.originalMediaType_) return false; if (recordingDeviceType_ != other.recordingDeviceType_) return false; - if (!getRecordingDeviceName() - .equals(other.getRecordingDeviceName())) return false; - if (!getOriginalMimeType() - .equals(other.getOriginalMimeType())) return false; - if (!getAudioTopic() - .equals(other.getAudioTopic())) return false; + if (!getRecordingDeviceName().equals(other.getRecordingDeviceName())) return false; + if (!getOriginalMimeType().equals(other.getOriginalMimeType())) return false; + if (!getAudioTopic().equals(other.getAudioTopic())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1335,118 +1559,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.speech.v1.RecognitionMetadata parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.speech.v1.RecognitionMetadata parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1.RecognitionMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1.RecognitionMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1.RecognitionMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1.RecognitionMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1.RecognitionMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1.RecognitionMetadata parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1.RecognitionMetadata parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1.RecognitionMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1.RecognitionMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1.RecognitionMetadata parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.speech.v1.RecognitionMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1.RecognitionMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.speech.v1.RecognitionMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Description of audio data to be recognized.
    * 
* * Protobuf type {@code google.cloud.speech.v1.RecognitionMetadata} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1.RecognitionMetadata) com.google.cloud.speech.v1.RecognitionMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_RecognitionMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1.SpeechProto + .internal_static_google_cloud_speech_v1_RecognitionMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_RecognitionMetadata_fieldAccessorTable + return com.google.cloud.speech.v1.SpeechProto + .internal_static_google_cloud_speech_v1_RecognitionMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1.RecognitionMetadata.class, com.google.cloud.speech.v1.RecognitionMetadata.Builder.class); + com.google.cloud.speech.v1.RecognitionMetadata.class, + com.google.cloud.speech.v1.RecognitionMetadata.Builder.class); } // Construct using com.google.cloud.speech.v1.RecognitionMetadata.newBuilder() @@ -1454,16 +1687,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -1487,9 +1719,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 @@ -1508,7 +1740,8 @@ public com.google.cloud.speech.v1.RecognitionMetadata build() { @java.lang.Override public com.google.cloud.speech.v1.RecognitionMetadata buildPartial() { - com.google.cloud.speech.v1.RecognitionMetadata result = new com.google.cloud.speech.v1.RecognitionMetadata(this); + com.google.cloud.speech.v1.RecognitionMetadata result = + new com.google.cloud.speech.v1.RecognitionMetadata(this); result.interactionType_ = interactionType_; result.industryNaicsCodeOfAudio_ = industryNaicsCodeOfAudio_; result.microphoneDistance_ = microphoneDistance_; @@ -1525,38 +1758,39 @@ public com.google.cloud.speech.v1.RecognitionMetadata buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.speech.v1.RecognitionMetadata) { - return mergeFrom((com.google.cloud.speech.v1.RecognitionMetadata)other); + return mergeFrom((com.google.cloud.speech.v1.RecognitionMetadata) other); } else { super.mergeFrom(other); return this; @@ -1623,80 +1857,107 @@ public Builder mergeFrom( private int interactionType_ = 0; /** + * + * *
      * The use case most closely describing the audio content to be recognized.
      * 
* - * .google.cloud.speech.v1.RecognitionMetadata.InteractionType interaction_type = 1; + * .google.cloud.speech.v1.RecognitionMetadata.InteractionType interaction_type = 1; + * + * * @return The enum numeric value on the wire for interactionType. */ - @java.lang.Override public int getInteractionTypeValue() { + @java.lang.Override + public int getInteractionTypeValue() { return interactionType_; } /** + * + * *
      * The use case most closely describing the audio content to be recognized.
      * 
* - * .google.cloud.speech.v1.RecognitionMetadata.InteractionType interaction_type = 1; + * .google.cloud.speech.v1.RecognitionMetadata.InteractionType interaction_type = 1; + * + * * @param value The enum numeric value on the wire for interactionType to set. * @return This builder for chaining. */ public Builder setInteractionTypeValue(int value) { - + interactionType_ = value; onChanged(); return this; } /** + * + * *
      * The use case most closely describing the audio content to be recognized.
      * 
* - * .google.cloud.speech.v1.RecognitionMetadata.InteractionType interaction_type = 1; + * .google.cloud.speech.v1.RecognitionMetadata.InteractionType interaction_type = 1; + * + * * @return The interactionType. */ @java.lang.Override public com.google.cloud.speech.v1.RecognitionMetadata.InteractionType getInteractionType() { @SuppressWarnings("deprecation") - com.google.cloud.speech.v1.RecognitionMetadata.InteractionType result = com.google.cloud.speech.v1.RecognitionMetadata.InteractionType.valueOf(interactionType_); - return result == null ? com.google.cloud.speech.v1.RecognitionMetadata.InteractionType.UNRECOGNIZED : result; + com.google.cloud.speech.v1.RecognitionMetadata.InteractionType result = + com.google.cloud.speech.v1.RecognitionMetadata.InteractionType.valueOf(interactionType_); + return result == null + ? com.google.cloud.speech.v1.RecognitionMetadata.InteractionType.UNRECOGNIZED + : result; } /** + * + * *
      * The use case most closely describing the audio content to be recognized.
      * 
* - * .google.cloud.speech.v1.RecognitionMetadata.InteractionType interaction_type = 1; + * .google.cloud.speech.v1.RecognitionMetadata.InteractionType interaction_type = 1; + * + * * @param value The interactionType to set. * @return This builder for chaining. */ - public Builder setInteractionType(com.google.cloud.speech.v1.RecognitionMetadata.InteractionType value) { + public Builder setInteractionType( + com.google.cloud.speech.v1.RecognitionMetadata.InteractionType value) { if (value == null) { throw new NullPointerException(); } - + interactionType_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * The use case most closely describing the audio content to be recognized.
      * 
* - * .google.cloud.speech.v1.RecognitionMetadata.InteractionType interaction_type = 1; + * .google.cloud.speech.v1.RecognitionMetadata.InteractionType interaction_type = 1; + * + * * @return This builder for chaining. */ public Builder clearInteractionType() { - + interactionType_ = 0; onChanged(); return this; } - private int industryNaicsCodeOfAudio_ ; + private int industryNaicsCodeOfAudio_; /** + * + * *
      * The industry vertical to which this speech recognition request most
      * closely applies. This is most indicative of the topics contained
@@ -1705,6 +1966,7 @@ public Builder clearInteractionType() {
      * 
* * uint32 industry_naics_code_of_audio = 3; + * * @return The industryNaicsCodeOfAudio. */ @java.lang.Override @@ -1712,6 +1974,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
@@ -1720,16 +1984,19 @@ public int getIndustryNaicsCodeOfAudio() {
      * 
* * uint32 industry_naics_code_of_audio = 3; + * * @param value The industryNaicsCodeOfAudio to set. * @return This builder for chaining. */ public Builder setIndustryNaicsCodeOfAudio(int value) { - + industryNaicsCodeOfAudio_ = value; onChanged(); return this; } /** + * + * *
      * The industry vertical to which this speech recognition request most
      * closely applies. This is most indicative of the topics contained
@@ -1738,10 +2005,11 @@ public Builder setIndustryNaicsCodeOfAudio(int value) {
      * 
* * uint32 industry_naics_code_of_audio = 3; + * * @return This builder for chaining. */ public Builder clearIndustryNaicsCodeOfAudio() { - + industryNaicsCodeOfAudio_ = 0; onChanged(); return this; @@ -1749,73 +2017,100 @@ public Builder clearIndustryNaicsCodeOfAudio() { private int microphoneDistance_ = 0; /** + * + * *
      * The audio type that most closely describes the audio being recognized.
      * 
* - * .google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance microphone_distance = 4; + * .google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance microphone_distance = 4; + * + * * @return The enum numeric value on the wire for microphoneDistance. */ - @java.lang.Override public int getMicrophoneDistanceValue() { + @java.lang.Override + public int getMicrophoneDistanceValue() { return microphoneDistance_; } /** + * + * *
      * The audio type that most closely describes the audio being recognized.
      * 
* - * .google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance microphone_distance = 4; + * .google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance microphone_distance = 4; + * + * * @param value The enum numeric value on the wire for microphoneDistance to set. * @return This builder for chaining. */ public Builder setMicrophoneDistanceValue(int value) { - + microphoneDistance_ = value; onChanged(); return this; } /** + * + * *
      * The audio type that most closely describes the audio being recognized.
      * 
* - * .google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance microphone_distance = 4; + * .google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance microphone_distance = 4; + * + * * @return The microphoneDistance. */ @java.lang.Override - public com.google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance getMicrophoneDistance() { + public com.google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance + getMicrophoneDistance() { @SuppressWarnings("deprecation") - com.google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance result = com.google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance.valueOf(microphoneDistance_); - return result == null ? com.google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance.UNRECOGNIZED : result; + com.google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance result = + com.google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance.valueOf( + microphoneDistance_); + return result == null + ? com.google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance.UNRECOGNIZED + : result; } /** + * + * *
      * The audio type that most closely describes the audio being recognized.
      * 
* - * .google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance microphone_distance = 4; + * .google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance microphone_distance = 4; + * + * * @param value The microphoneDistance to set. * @return This builder for chaining. */ - public Builder setMicrophoneDistance(com.google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance value) { + public Builder setMicrophoneDistance( + com.google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance value) { if (value == null) { throw new NullPointerException(); } - + microphoneDistance_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * The audio type that most closely describes the audio being recognized.
      * 
* - * .google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance microphone_distance = 4; + * .google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance microphone_distance = 4; + * + * * @return This builder for chaining. */ public Builder clearMicrophoneDistance() { - + microphoneDistance_ = 0; onChanged(); return this; @@ -1823,73 +2118,99 @@ public Builder clearMicrophoneDistance() { private int originalMediaType_ = 0; /** + * + * *
      * The original media the speech was recorded on.
      * 
* - * .google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType original_media_type = 5; + * .google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType original_media_type = 5; + * + * * @return The enum numeric value on the wire for originalMediaType. */ - @java.lang.Override public int getOriginalMediaTypeValue() { + @java.lang.Override + public int getOriginalMediaTypeValue() { return originalMediaType_; } /** + * + * *
      * The original media the speech was recorded on.
      * 
* - * .google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType original_media_type = 5; + * .google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType original_media_type = 5; + * + * * @param value The enum numeric value on the wire for originalMediaType to set. * @return This builder for chaining. */ public Builder setOriginalMediaTypeValue(int value) { - + originalMediaType_ = value; onChanged(); return this; } /** + * + * *
      * The original media the speech was recorded on.
      * 
* - * .google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType original_media_type = 5; + * .google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType original_media_type = 5; + * + * * @return The originalMediaType. */ @java.lang.Override public com.google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType getOriginalMediaType() { @SuppressWarnings("deprecation") - com.google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType result = com.google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType.valueOf(originalMediaType_); - return result == null ? com.google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType.UNRECOGNIZED : result; + com.google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType result = + com.google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType.valueOf( + originalMediaType_); + return result == null + ? com.google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType.UNRECOGNIZED + : result; } /** + * + * *
      * The original media the speech was recorded on.
      * 
* - * .google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType original_media_type = 5; + * .google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType original_media_type = 5; + * + * * @param value The originalMediaType to set. * @return This builder for chaining. */ - public Builder setOriginalMediaType(com.google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType value) { + public Builder setOriginalMediaType( + com.google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType value) { if (value == null) { throw new NullPointerException(); } - + originalMediaType_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * The original media the speech was recorded on.
      * 
* - * .google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType original_media_type = 5; + * .google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType original_media_type = 5; + * + * * @return This builder for chaining. */ public Builder clearOriginalMediaType() { - + originalMediaType_ = 0; onChanged(); return this; @@ -1897,73 +2218,105 @@ public Builder clearOriginalMediaType() { private int recordingDeviceType_ = 0; /** + * + * *
      * The type of device the speech was recorded with.
      * 
* - * .google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType recording_device_type = 6; + * + * .google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType recording_device_type = 6; + * + * * @return The enum numeric value on the wire for recordingDeviceType. */ - @java.lang.Override public int getRecordingDeviceTypeValue() { + @java.lang.Override + public int getRecordingDeviceTypeValue() { return recordingDeviceType_; } /** + * + * *
      * The type of device the speech was recorded with.
      * 
* - * .google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType recording_device_type = 6; + * + * .google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType recording_device_type = 6; + * + * * @param value The enum numeric value on the wire for recordingDeviceType to set. * @return This builder for chaining. */ public Builder setRecordingDeviceTypeValue(int value) { - + recordingDeviceType_ = value; onChanged(); return this; } /** + * + * *
      * The type of device the speech was recorded with.
      * 
* - * .google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType recording_device_type = 6; + * + * .google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType recording_device_type = 6; + * + * * @return The recordingDeviceType. */ @java.lang.Override - public com.google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType getRecordingDeviceType() { + public com.google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType + getRecordingDeviceType() { @SuppressWarnings("deprecation") - com.google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType result = com.google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType.valueOf(recordingDeviceType_); - return result == null ? com.google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType.UNRECOGNIZED : result; + com.google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType result = + com.google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType.valueOf( + recordingDeviceType_); + return result == null + ? com.google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType.UNRECOGNIZED + : result; } /** + * + * *
      * The type of device the speech was recorded with.
      * 
* - * .google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType recording_device_type = 6; + * + * .google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType recording_device_type = 6; + * + * * @param value The recordingDeviceType to set. * @return This builder for chaining. */ - public Builder setRecordingDeviceType(com.google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType value) { + public Builder setRecordingDeviceType( + com.google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType value) { if (value == null) { throw new NullPointerException(); } - + recordingDeviceType_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * The type of device the speech was recorded with.
      * 
* - * .google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType recording_device_type = 6; + * + * .google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType recording_device_type = 6; + * + * * @return This builder for chaining. */ public Builder clearRecordingDeviceType() { - + recordingDeviceType_ = 0; onChanged(); return this; @@ -1971,6 +2324,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
@@ -1978,13 +2333,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; @@ -1993,6 +2348,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
@@ -2000,15 +2357,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 { @@ -2016,6 +2372,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
@@ -2023,20 +2381,22 @@ public java.lang.String getRecordingDeviceName() {
      * 
* * string recording_device_name = 7; + * * @param value The recordingDeviceName to set. * @return This builder for chaining. */ - public Builder setRecordingDeviceName( - java.lang.String value) { + public Builder setRecordingDeviceName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + recordingDeviceName_ = value; onChanged(); return this; } /** + * + * *
      * The device used to make the recording.  Examples 'Nexus 5X' or
      * 'Polycom SoundStation IP 6000' or 'POTS' or 'VoIP' or
@@ -2044,15 +2404,18 @@ public Builder setRecordingDeviceName(
      * 
* * string recording_device_name = 7; + * * @return This builder for chaining. */ public Builder clearRecordingDeviceName() { - + recordingDeviceName_ = getDefaultInstance().getRecordingDeviceName(); onChanged(); return this; } /** + * + * *
      * The device used to make the recording.  Examples 'Nexus 5X' or
      * 'Polycom SoundStation IP 6000' or 'POTS' or 'VoIP' or
@@ -2060,16 +2423,16 @@ public Builder clearRecordingDeviceName() {
      * 
* * string recording_device_name = 7; + * * @param value The bytes for recordingDeviceName to set. * @return This builder for chaining. */ - public Builder setRecordingDeviceNameBytes( - com.google.protobuf.ByteString value) { + public Builder setRecordingDeviceNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + recordingDeviceName_ = value; onChanged(); return this; @@ -2077,6 +2440,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`.
@@ -2085,13 +2450,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; @@ -2100,6 +2465,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`.
@@ -2108,15 +2475,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 { @@ -2124,6 +2490,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`.
@@ -2132,20 +2500,22 @@ public java.lang.String getOriginalMimeType() {
      * 
* * string original_mime_type = 8; + * * @param value The originalMimeType to set. * @return This builder for chaining. */ - public Builder setOriginalMimeType( - java.lang.String value) { + public Builder setOriginalMimeType(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + originalMimeType_ = value; onChanged(); return this; } /** + * + * *
      * Mime type of the original audio file.  For example `audio/m4a`,
      * `audio/x-alaw-basic`, `audio/mp3`, `audio/3gpp`.
@@ -2154,15 +2524,18 @@ public Builder setOriginalMimeType(
      * 
* * string original_mime_type = 8; + * * @return This builder for chaining. */ public Builder clearOriginalMimeType() { - + originalMimeType_ = getDefaultInstance().getOriginalMimeType(); onChanged(); return this; } /** + * + * *
      * Mime type of the original audio file.  For example `audio/m4a`,
      * `audio/x-alaw-basic`, `audio/mp3`, `audio/3gpp`.
@@ -2171,16 +2544,16 @@ public Builder clearOriginalMimeType() {
      * 
* * string original_mime_type = 8; + * * @param value The bytes for originalMimeType to set. * @return This builder for chaining. */ - public Builder setOriginalMimeTypeBytes( - com.google.protobuf.ByteString value) { + public Builder setOriginalMimeTypeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + originalMimeType_ = value; onChanged(); return this; @@ -2188,19 +2561,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; @@ -2209,21 +2584,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 { @@ -2231,64 +2607,71 @@ public java.lang.String getAudioTopic() { } } /** + * + * *
      * Description of the content. Eg. "Recordings of federal supreme court
      * hearings from 2012".
      * 
* * string audio_topic = 10; + * * @param value The audioTopic to set. * @return This builder for chaining. */ - public Builder setAudioTopic( - java.lang.String value) { + public Builder setAudioTopic(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + audioTopic_ = value; onChanged(); return this; } /** + * + * *
      * Description of the content. Eg. "Recordings of federal supreme court
      * hearings from 2012".
      * 
* * string audio_topic = 10; + * * @return This builder for chaining. */ public Builder clearAudioTopic() { - + audioTopic_ = getDefaultInstance().getAudioTopic(); onChanged(); return this; } /** + * + * *
      * Description of the content. Eg. "Recordings of federal supreme court
      * hearings from 2012".
      * 
* * string audio_topic = 10; + * * @param value The bytes for audioTopic to set. * @return This builder for chaining. */ - public Builder setAudioTopicBytes( - com.google.protobuf.ByteString value) { + public Builder setAudioTopicBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + audioTopic_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2298,12 +2681,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(); } @@ -2312,16 +2695,16 @@ public static com.google.cloud.speech.v1.RecognitionMetadata getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RecognitionMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new RecognitionMetadata(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RecognitionMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RecognitionMetadata(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2336,6 +2719,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1.RecognitionMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionMetadataOrBuilder.java b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionMetadataOrBuilder.java similarity index 76% rename from owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionMetadataOrBuilder.java rename to proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionMetadataOrBuilder.java index b8e683832..2c6508778 100644 --- a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionMetadataOrBuilder.java +++ b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionMetadataOrBuilder.java @@ -1,32 +1,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; -public interface RecognitionMetadataOrBuilder extends +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 +59,97 @@ public interface RecognitionMetadataOrBuilder extends
    * 
* * 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 +157,13 @@ public interface RecognitionMetadataOrBuilder extends
    * 
* * 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 +171,14 @@ public interface RecognitionMetadataOrBuilder extends
    * 
* * 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 +187,13 @@ public interface RecognitionMetadataOrBuilder extends
    * 
* * 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 +202,35 @@ public interface RecognitionMetadataOrBuilder extends
    * 
* * string original_mime_type = 8; + * * @return The bytes for originalMimeType. */ - com.google.protobuf.ByteString - getOriginalMimeTypeBytes(); + com.google.protobuf.ByteString getOriginalMimeTypeBytes(); /** + * + * *
    * Description of the content. Eg. "Recordings of federal supreme court
    * hearings from 2012".
    * 
* * string audio_topic = 10; + * * @return The audioTopic. */ java.lang.String getAudioTopic(); /** + * + * *
    * Description of the content. Eg. "Recordings of federal supreme court
    * hearings from 2012".
    * 
* * string audio_topic = 10; + * * @return The bytes for audioTopic. */ - com.google.protobuf.ByteString - getAudioTopicBytes(); + com.google.protobuf.ByteString getAudioTopicBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeRequest.java b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeRequest.java similarity index 61% rename from owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeRequest.java rename to proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeRequest.java index abb3c1735..9f6fd3f2b 100644 --- a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeRequest.java +++ b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeRequest.java @@ -1,39 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1/cloud_speech.proto package com.google.cloud.speech.v1; /** + * + * *
  * The top-level message sent by the client for the `Recognize` method.
  * 
* * Protobuf type {@code google.cloud.speech.v1.RecognizeRequest} */ -public final class RecognizeRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class RecognizeRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v1.RecognizeRequest) RecognizeRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use RecognizeRequest.newBuilder() to construct. private RecognizeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private RecognizeRequest() { - } + + private RecognizeRequest() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new RecognizeRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private RecognizeRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,73 +68,86 @@ private RecognizeRequest( case 0: done = true; break; - case 10: { - com.google.cloud.speech.v1.RecognitionConfig.Builder subBuilder = null; - if (config_ != null) { - subBuilder = config_.toBuilder(); - } - config_ = input.readMessage(com.google.cloud.speech.v1.RecognitionConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(config_); - config_ = subBuilder.buildPartial(); - } + case 10: + { + com.google.cloud.speech.v1.RecognitionConfig.Builder subBuilder = null; + if (config_ != null) { + subBuilder = config_.toBuilder(); + } + config_ = + input.readMessage( + com.google.cloud.speech.v1.RecognitionConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(config_); + config_ = subBuilder.buildPartial(); + } - break; - } - case 18: { - com.google.cloud.speech.v1.RecognitionAudio.Builder subBuilder = null; - if (audio_ != null) { - subBuilder = audio_.toBuilder(); - } - audio_ = input.readMessage(com.google.cloud.speech.v1.RecognitionAudio.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(audio_); - audio_ = subBuilder.buildPartial(); + break; } + case 18: + { + com.google.cloud.speech.v1.RecognitionAudio.Builder subBuilder = null; + if (audio_ != null) { + subBuilder = audio_.toBuilder(); + } + audio_ = + input.readMessage( + com.google.cloud.speech.v1.RecognitionAudio.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(audio_); + audio_ = subBuilder.buildPartial(); + } - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_RecognizeRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1.SpeechProto + .internal_static_google_cloud_speech_v1_RecognizeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_RecognizeRequest_fieldAccessorTable + return com.google.cloud.speech.v1.SpeechProto + .internal_static_google_cloud_speech_v1_RecognizeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1.RecognizeRequest.class, com.google.cloud.speech.v1.RecognizeRequest.Builder.class); + com.google.cloud.speech.v1.RecognizeRequest.class, + com.google.cloud.speech.v1.RecognizeRequest.Builder.class); } public static final int CONFIG_FIELD_NUMBER = 1; private com.google.cloud.speech.v1.RecognitionConfig config_; /** + * + * *
    * Required. Provides information to the recognizer that specifies how to
    * process the request.
    * 
* - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the config field is set. */ @java.lang.Override @@ -126,25 +155,36 @@ public boolean hasConfig() { return config_ != null; } /** + * + * *
    * Required. Provides information to the recognizer that specifies how to
    * process the request.
    * 
* - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The config. */ @java.lang.Override public com.google.cloud.speech.v1.RecognitionConfig getConfig() { - return config_ == null ? com.google.cloud.speech.v1.RecognitionConfig.getDefaultInstance() : config_; + return config_ == null + ? com.google.cloud.speech.v1.RecognitionConfig.getDefaultInstance() + : config_; } /** + * + * *
    * Required. Provides information to the recognizer that specifies how to
    * process the request.
    * 
* - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.speech.v1.RecognitionConfigOrBuilder getConfigOrBuilder() { @@ -154,11 +194,16 @@ public com.google.cloud.speech.v1.RecognitionConfigOrBuilder getConfigOrBuilder( public static final int AUDIO_FIELD_NUMBER = 2; private com.google.cloud.speech.v1.RecognitionAudio audio_; /** + * + * *
    * Required. The audio data to be recognized.
    * 
* - * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the audio field is set. */ @java.lang.Override @@ -166,23 +211,34 @@ public boolean hasAudio() { return audio_ != null; } /** + * + * *
    * Required. The audio data to be recognized.
    * 
* - * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The audio. */ @java.lang.Override public com.google.cloud.speech.v1.RecognitionAudio getAudio() { - return audio_ == null ? com.google.cloud.speech.v1.RecognitionAudio.getDefaultInstance() : audio_; + return audio_ == null + ? com.google.cloud.speech.v1.RecognitionAudio.getDefaultInstance() + : audio_; } /** + * + * *
    * Required. The audio data to be recognized.
    * 
* - * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.speech.v1.RecognitionAudioOrBuilder getAudioOrBuilder() { @@ -190,6 +246,7 @@ public com.google.cloud.speech.v1.RecognitionAudioOrBuilder getAudioOrBuilder() } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -201,8 +258,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (config_ != null) { output.writeMessage(1, getConfig()); } @@ -219,12 +275,10 @@ public int getSerializedSize() { size = 0; if (config_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getConfig()); } if (audio_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getAudio()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getAudio()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -234,22 +288,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1.RecognizeRequest)) { return super.equals(obj); } - com.google.cloud.speech.v1.RecognizeRequest other = (com.google.cloud.speech.v1.RecognizeRequest) obj; + com.google.cloud.speech.v1.RecognizeRequest other = + (com.google.cloud.speech.v1.RecognizeRequest) obj; if (hasConfig() != other.hasConfig()) return false; if (hasConfig()) { - if (!getConfig() - .equals(other.getConfig())) return false; + if (!getConfig().equals(other.getConfig())) return false; } if (hasAudio() != other.hasAudio()) return false; if (hasAudio()) { - if (!getAudio() - .equals(other.getAudio())) return false; + if (!getAudio().equals(other.getAudio())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -275,118 +328,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.speech.v1.RecognizeRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.speech.v1.RecognizeRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1.RecognizeRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1.RecognizeRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1.RecognizeRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1.RecognizeRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1.RecognizeRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1.RecognizeRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1.RecognizeRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1.RecognizeRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1.RecognizeRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1.RecognizeRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.speech.v1.RecognizeRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1.RecognizeRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.speech.v1.RecognizeRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The top-level message sent by the client for the `Recognize` method.
    * 
* * Protobuf type {@code google.cloud.speech.v1.RecognizeRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1.RecognizeRequest) com.google.cloud.speech.v1.RecognizeRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_RecognizeRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1.SpeechProto + .internal_static_google_cloud_speech_v1_RecognizeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_RecognizeRequest_fieldAccessorTable + return com.google.cloud.speech.v1.SpeechProto + .internal_static_google_cloud_speech_v1_RecognizeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1.RecognizeRequest.class, com.google.cloud.speech.v1.RecognizeRequest.Builder.class); + com.google.cloud.speech.v1.RecognizeRequest.class, + com.google.cloud.speech.v1.RecognizeRequest.Builder.class); } // Construct using com.google.cloud.speech.v1.RecognizeRequest.newBuilder() @@ -394,16 +456,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -423,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_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 @@ -444,7 +505,8 @@ public com.google.cloud.speech.v1.RecognizeRequest build() { @java.lang.Override public com.google.cloud.speech.v1.RecognizeRequest buildPartial() { - com.google.cloud.speech.v1.RecognizeRequest result = new com.google.cloud.speech.v1.RecognizeRequest(this); + com.google.cloud.speech.v1.RecognizeRequest result = + new com.google.cloud.speech.v1.RecognizeRequest(this); if (configBuilder_ == null) { result.config_ = config_; } else { @@ -463,38 +525,39 @@ public com.google.cloud.speech.v1.RecognizeRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.speech.v1.RecognizeRequest) { - return mergeFrom((com.google.cloud.speech.v1.RecognizeRequest)other); + return mergeFrom((com.google.cloud.speech.v1.RecognizeRequest) other); } else { super.mergeFrom(other); return this; @@ -540,42 +603,61 @@ public Builder mergeFrom( private com.google.cloud.speech.v1.RecognitionConfig config_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1.RecognitionConfig, com.google.cloud.speech.v1.RecognitionConfig.Builder, com.google.cloud.speech.v1.RecognitionConfigOrBuilder> configBuilder_; + com.google.cloud.speech.v1.RecognitionConfig, + com.google.cloud.speech.v1.RecognitionConfig.Builder, + com.google.cloud.speech.v1.RecognitionConfigOrBuilder> + configBuilder_; /** + * + * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the config field is set. */ public boolean hasConfig() { return configBuilder_ != null || config_ != null; } /** + * + * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The config. */ public com.google.cloud.speech.v1.RecognitionConfig getConfig() { if (configBuilder_ == null) { - return config_ == null ? com.google.cloud.speech.v1.RecognitionConfig.getDefaultInstance() : config_; + return config_ == null + ? com.google.cloud.speech.v1.RecognitionConfig.getDefaultInstance() + : config_; } else { return configBuilder_.getMessage(); } } /** + * + * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setConfig(com.google.cloud.speech.v1.RecognitionConfig value) { if (configBuilder_ == null) { @@ -591,15 +673,18 @@ public Builder setConfig(com.google.cloud.speech.v1.RecognitionConfig value) { return this; } /** + * + * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setConfig( - com.google.cloud.speech.v1.RecognitionConfig.Builder builderForValue) { + public Builder setConfig(com.google.cloud.speech.v1.RecognitionConfig.Builder builderForValue) { if (configBuilder_ == null) { config_ = builderForValue.build(); onChanged(); @@ -610,18 +695,24 @@ public Builder setConfig( return this; } /** + * + * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeConfig(com.google.cloud.speech.v1.RecognitionConfig value) { if (configBuilder_ == null) { if (config_ != null) { config_ = - com.google.cloud.speech.v1.RecognitionConfig.newBuilder(config_).mergeFrom(value).buildPartial(); + com.google.cloud.speech.v1.RecognitionConfig.newBuilder(config_) + .mergeFrom(value) + .buildPartial(); } else { config_ = value; } @@ -633,12 +724,16 @@ public Builder mergeConfig(com.google.cloud.speech.v1.RecognitionConfig value) { return this; } /** + * + * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearConfig() { if (configBuilder_ == null) { @@ -652,51 +747,67 @@ public Builder clearConfig() { return this; } /** + * + * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.speech.v1.RecognitionConfig.Builder getConfigBuilder() { - + onChanged(); return getConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.speech.v1.RecognitionConfigOrBuilder getConfigOrBuilder() { if (configBuilder_ != null) { return configBuilder_.getMessageOrBuilder(); } else { - return config_ == null ? - com.google.cloud.speech.v1.RecognitionConfig.getDefaultInstance() : config_; + return config_ == null + ? com.google.cloud.speech.v1.RecognitionConfig.getDefaultInstance() + : config_; } } /** + * + * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1.RecognitionConfig, com.google.cloud.speech.v1.RecognitionConfig.Builder, com.google.cloud.speech.v1.RecognitionConfigOrBuilder> + com.google.cloud.speech.v1.RecognitionConfig, + com.google.cloud.speech.v1.RecognitionConfig.Builder, + com.google.cloud.speech.v1.RecognitionConfigOrBuilder> getConfigFieldBuilder() { if (configBuilder_ == null) { - configBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1.RecognitionConfig, com.google.cloud.speech.v1.RecognitionConfig.Builder, com.google.cloud.speech.v1.RecognitionConfigOrBuilder>( - getConfig(), - getParentForChildren(), - isClean()); + configBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v1.RecognitionConfig, + com.google.cloud.speech.v1.RecognitionConfig.Builder, + com.google.cloud.speech.v1.RecognitionConfigOrBuilder>( + getConfig(), getParentForChildren(), isClean()); config_ = null; } return configBuilder_; @@ -704,39 +815,58 @@ public com.google.cloud.speech.v1.RecognitionConfigOrBuilder getConfigOrBuilder( private com.google.cloud.speech.v1.RecognitionAudio audio_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1.RecognitionAudio, com.google.cloud.speech.v1.RecognitionAudio.Builder, com.google.cloud.speech.v1.RecognitionAudioOrBuilder> audioBuilder_; + com.google.cloud.speech.v1.RecognitionAudio, + com.google.cloud.speech.v1.RecognitionAudio.Builder, + com.google.cloud.speech.v1.RecognitionAudioOrBuilder> + audioBuilder_; /** + * + * *
      * Required. The audio data to be recognized.
      * 
* - * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the audio field is set. */ public boolean hasAudio() { return audioBuilder_ != null || audio_ != null; } /** + * + * *
      * Required. The audio data to be recognized.
      * 
* - * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The audio. */ public com.google.cloud.speech.v1.RecognitionAudio getAudio() { if (audioBuilder_ == null) { - return audio_ == null ? com.google.cloud.speech.v1.RecognitionAudio.getDefaultInstance() : audio_; + return audio_ == null + ? com.google.cloud.speech.v1.RecognitionAudio.getDefaultInstance() + : audio_; } else { return audioBuilder_.getMessage(); } } /** + * + * *
      * Required. The audio data to be recognized.
      * 
* - * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setAudio(com.google.cloud.speech.v1.RecognitionAudio value) { if (audioBuilder_ == null) { @@ -752,14 +882,17 @@ public Builder setAudio(com.google.cloud.speech.v1.RecognitionAudio value) { return this; } /** + * + * *
      * Required. The audio data to be recognized.
      * 
* - * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setAudio( - com.google.cloud.speech.v1.RecognitionAudio.Builder builderForValue) { + public Builder setAudio(com.google.cloud.speech.v1.RecognitionAudio.Builder builderForValue) { if (audioBuilder_ == null) { audio_ = builderForValue.build(); onChanged(); @@ -770,17 +903,23 @@ public Builder setAudio( return this; } /** + * + * *
      * Required. The audio data to be recognized.
      * 
* - * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeAudio(com.google.cloud.speech.v1.RecognitionAudio value) { if (audioBuilder_ == null) { if (audio_ != null) { audio_ = - com.google.cloud.speech.v1.RecognitionAudio.newBuilder(audio_).mergeFrom(value).buildPartial(); + com.google.cloud.speech.v1.RecognitionAudio.newBuilder(audio_) + .mergeFrom(value) + .buildPartial(); } else { audio_ = value; } @@ -792,11 +931,15 @@ public Builder mergeAudio(com.google.cloud.speech.v1.RecognitionAudio value) { return this; } /** + * + * *
      * Required. The audio data to be recognized.
      * 
* - * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearAudio() { if (audioBuilder_ == null) { @@ -810,55 +953,71 @@ public Builder clearAudio() { return this; } /** + * + * *
      * Required. The audio data to be recognized.
      * 
* - * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.speech.v1.RecognitionAudio.Builder getAudioBuilder() { - + onChanged(); return getAudioFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The audio data to be recognized.
      * 
* - * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.speech.v1.RecognitionAudioOrBuilder getAudioOrBuilder() { if (audioBuilder_ != null) { return audioBuilder_.getMessageOrBuilder(); } else { - return audio_ == null ? - com.google.cloud.speech.v1.RecognitionAudio.getDefaultInstance() : audio_; + return audio_ == null + ? com.google.cloud.speech.v1.RecognitionAudio.getDefaultInstance() + : audio_; } } /** + * + * *
      * Required. The audio data to be recognized.
      * 
* - * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1.RecognitionAudio, com.google.cloud.speech.v1.RecognitionAudio.Builder, com.google.cloud.speech.v1.RecognitionAudioOrBuilder> + com.google.cloud.speech.v1.RecognitionAudio, + com.google.cloud.speech.v1.RecognitionAudio.Builder, + com.google.cloud.speech.v1.RecognitionAudioOrBuilder> getAudioFieldBuilder() { if (audioBuilder_ == null) { - audioBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1.RecognitionAudio, com.google.cloud.speech.v1.RecognitionAudio.Builder, com.google.cloud.speech.v1.RecognitionAudioOrBuilder>( - getAudio(), - getParentForChildren(), - isClean()); + audioBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v1.RecognitionAudio, + com.google.cloud.speech.v1.RecognitionAudio.Builder, + com.google.cloud.speech.v1.RecognitionAudioOrBuilder>( + getAudio(), getParentForChildren(), isClean()); audio_ = null; } return audioBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -868,12 +1027,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(); } @@ -882,16 +1041,16 @@ public static com.google.cloud.speech.v1.RecognizeRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RecognizeRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new RecognizeRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RecognizeRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RecognizeRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -906,6 +1065,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1.RecognizeRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeRequestOrBuilder.java b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeRequestOrBuilder.java new file mode 100644 index 000000000..df0bfe2ab --- /dev/null +++ b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeRequestOrBuilder.java @@ -0,0 +1,110 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/speech/v1/cloud_speech.proto + +package com.google.cloud.speech.v1; + +public interface RecognizeRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1.RecognizeRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Provides information to the recognizer that specifies how to
+   * process the request.
+   * 
+ * + * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the config field is set. + */ + boolean hasConfig(); + /** + * + * + *
+   * Required. Provides information to the recognizer that specifies how to
+   * process the request.
+   * 
+ * + * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The config. + */ + com.google.cloud.speech.v1.RecognitionConfig getConfig(); + /** + * + * + *
+   * Required. Provides information to the recognizer that specifies how to
+   * process the request.
+   * 
+ * + * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.speech.v1.RecognitionConfigOrBuilder getConfigOrBuilder(); + + /** + * + * + *
+   * Required. The audio data to be recognized.
+   * 
+ * + * + * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the audio field is set. + */ + boolean hasAudio(); + /** + * + * + *
+   * Required. The audio data to be recognized.
+   * 
+ * + * + * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The audio. + */ + com.google.cloud.speech.v1.RecognitionAudio getAudio(); + /** + * + * + *
+   * Required. The audio data to be recognized.
+   * 
+ * + * + * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.speech.v1.RecognitionAudioOrBuilder getAudioOrBuilder(); +} diff --git a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeResponse.java b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeResponse.java similarity index 74% rename from owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeResponse.java rename to proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeResponse.java index a3ed84195..3e22f4215 100644 --- a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeResponse.java +++ b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeResponse.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1/cloud_speech.proto package com.google.cloud.speech.v1; /** + * + * *
  * The only message returned to the client by the `Recognize` method. It
  * contains the result as zero or more sequential `SpeechRecognitionResult`
@@ -12,31 +29,31 @@
  *
  * Protobuf type {@code google.cloud.speech.v1.RecognizeResponse}
  */
-public final class RecognizeResponse extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class RecognizeResponse extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.speech.v1.RecognizeResponse)
     RecognizeResponseOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use RecognizeResponse.newBuilder() to construct.
   private RecognizeResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private RecognizeResponse() {
     results_ = java.util.Collections.emptyList();
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new RecognizeResponse();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private RecognizeResponse(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -56,42 +73,47 @@ private RecognizeResponse(
           case 0:
             done = true;
             break;
-          case 18: {
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              results_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000001;
-            }
-            results_.add(
-                input.readMessage(com.google.cloud.speech.v1.SpeechRecognitionResult.parser(), extensionRegistry));
-            break;
-          }
-          case 26: {
-            com.google.protobuf.Duration.Builder subBuilder = null;
-            if (totalBilledTime_ != null) {
-              subBuilder = totalBilledTime_.toBuilder();
-            }
-            totalBilledTime_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(totalBilledTime_);
-              totalBilledTime_ = subBuilder.buildPartial();
+          case 18:
+            {
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                results_ =
+                    new java.util.ArrayList();
+                mutable_bitField0_ |= 0x00000001;
+              }
+              results_.add(
+                  input.readMessage(
+                      com.google.cloud.speech.v1.SpeechRecognitionResult.parser(),
+                      extensionRegistry));
+              break;
             }
+          case 26:
+            {
+              com.google.protobuf.Duration.Builder subBuilder = null;
+              if (totalBilledTime_ != null) {
+                subBuilder = totalBilledTime_.toBuilder();
+              }
+              totalBilledTime_ =
+                  input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(totalBilledTime_);
+                totalBilledTime_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         results_ = java.util.Collections.unmodifiableList(results_);
@@ -100,22 +122,27 @@ private RecognizeResponse(
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_RecognizeResponse_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.speech.v1.SpeechProto
+        .internal_static_google_cloud_speech_v1_RecognizeResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_RecognizeResponse_fieldAccessorTable
+    return com.google.cloud.speech.v1.SpeechProto
+        .internal_static_google_cloud_speech_v1_RecognizeResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v1.RecognizeResponse.class, com.google.cloud.speech.v1.RecognizeResponse.Builder.class);
+            com.google.cloud.speech.v1.RecognizeResponse.class,
+            com.google.cloud.speech.v1.RecognizeResponse.Builder.class);
   }
 
   public static final int RESULTS_FIELD_NUMBER = 2;
   private java.util.List results_;
   /**
+   *
+   *
    * 
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -128,6 +155,8 @@ public java.util.List getRes
     return results_;
   }
   /**
+   *
+   *
    * 
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -136,11 +165,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.
@@ -153,6 +184,8 @@ public int getResultsCount() {
     return results_.size();
   }
   /**
+   *
+   *
    * 
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -165,6 +198,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.
@@ -181,11 +216,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 @@ -193,18 +231,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.
    * 
@@ -217,6 +262,7 @@ public com.google.protobuf.DurationOrBuilder getTotalBilledTimeOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -228,8 +274,7 @@ public final boolean isInitialized() { } @java.lang.Override - 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)); } @@ -246,12 +291,10 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < results_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, results_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, results_.get(i)); } if (totalBilledTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getTotalBilledTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getTotalBilledTime()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -261,19 +304,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1.RecognizeResponse)) { return super.equals(obj); } - com.google.cloud.speech.v1.RecognizeResponse other = (com.google.cloud.speech.v1.RecognizeResponse) obj; + com.google.cloud.speech.v1.RecognizeResponse other = + (com.google.cloud.speech.v1.RecognizeResponse) obj; - if (!getResultsList() - .equals(other.getResultsList())) return false; + if (!getResultsList().equals(other.getResultsList())) return false; if (hasTotalBilledTime() != other.hasTotalBilledTime()) return false; if (hasTotalBilledTime()) { - if (!getTotalBilledTime() - .equals(other.getTotalBilledTime())) return false; + if (!getTotalBilledTime().equals(other.getTotalBilledTime())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -299,97 +341,104 @@ public int hashCode() { return hash; } - public static com.google.cloud.speech.v1.RecognizeResponse parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.speech.v1.RecognizeResponse parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1.RecognizeResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1.RecognizeResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1.RecognizeResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1.RecognizeResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1.RecognizeResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1.RecognizeResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1.RecognizeResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1.RecognizeResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1.RecognizeResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1.RecognizeResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.speech.v1.RecognizeResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1.RecognizeResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.speech.v1.RecognizeResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The only message returned to the client by the `Recognize` method. It
    * contains the result as zero or more sequential `SpeechRecognitionResult`
@@ -398,21 +447,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.speech.v1.RecognizeResponse}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1.RecognizeResponse)
       com.google.cloud.speech.v1.RecognizeResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_RecognizeResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.speech.v1.SpeechProto
+          .internal_static_google_cloud_speech_v1_RecognizeResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_RecognizeResponse_fieldAccessorTable
+      return com.google.cloud.speech.v1.SpeechProto
+          .internal_static_google_cloud_speech_v1_RecognizeResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v1.RecognizeResponse.class, com.google.cloud.speech.v1.RecognizeResponse.Builder.class);
+              com.google.cloud.speech.v1.RecognizeResponse.class,
+              com.google.cloud.speech.v1.RecognizeResponse.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v1.RecognizeResponse.newBuilder()
@@ -420,17 +471,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
         getResultsFieldBuilder();
       }
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -450,9 +501,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
@@ -471,7 +522,8 @@ public com.google.cloud.speech.v1.RecognizeResponse build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v1.RecognizeResponse buildPartial() {
-      com.google.cloud.speech.v1.RecognizeResponse result = new com.google.cloud.speech.v1.RecognizeResponse(this);
+      com.google.cloud.speech.v1.RecognizeResponse result =
+          new com.google.cloud.speech.v1.RecognizeResponse(this);
       int from_bitField0_ = bitField0_;
       if (resultsBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
@@ -495,38 +547,39 @@ public com.google.cloud.speech.v1.RecognizeResponse buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.speech.v1.RecognizeResponse) {
-        return mergeFrom((com.google.cloud.speech.v1.RecognizeResponse)other);
+        return mergeFrom((com.google.cloud.speech.v1.RecognizeResponse) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -553,9 +606,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_);
           }
@@ -592,21 +646,29 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
     private java.util.List results_ =
-      java.util.Collections.emptyList();
+        java.util.Collections.emptyList();
+
     private void ensureResultsIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
-        results_ = new java.util.ArrayList(results_);
+        results_ =
+            new java.util.ArrayList(results_);
         bitField0_ |= 0x00000001;
-       }
+      }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.speech.v1.SpeechRecognitionResult, com.google.cloud.speech.v1.SpeechRecognitionResult.Builder, com.google.cloud.speech.v1.SpeechRecognitionResultOrBuilder> resultsBuilder_;
+            com.google.cloud.speech.v1.SpeechRecognitionResult,
+            com.google.cloud.speech.v1.SpeechRecognitionResult.Builder,
+            com.google.cloud.speech.v1.SpeechRecognitionResultOrBuilder>
+        resultsBuilder_;
 
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -622,6 +684,8 @@ public java.util.List getRes
       }
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -637,6 +701,8 @@ public int getResultsCount() {
       }
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -652,6 +718,8 @@ public com.google.cloud.speech.v1.SpeechRecognitionResult getResults(int index)
       }
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -659,8 +727,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();
@@ -674,6 +741,8 @@ public Builder setResults(
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -693,6 +762,8 @@ public Builder setResults(
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -714,6 +785,8 @@ public Builder addResults(com.google.cloud.speech.v1.SpeechRecognitionResult val
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -721,8 +794,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();
@@ -736,6 +808,8 @@ public Builder addResults(
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -755,6 +829,8 @@ public Builder addResults(
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -774,6 +850,8 @@ public Builder addResults(
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -785,8 +863,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);
@@ -794,6 +871,8 @@ public Builder addAllResults(
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -812,6 +891,8 @@ public Builder clearResults() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -830,6 +911,8 @@ public Builder removeResults(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -837,11 +920,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.
@@ -852,11 +936,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.
@@ -864,8 +951,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 {
@@ -873,6 +960,8 @@ public com.google.cloud.speech.v1.SpeechRecognitionResultOrBuilder getResultsOrB
       }
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -881,10 +970,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.
@@ -892,12 +983,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.
@@ -905,20 +998,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_;
@@ -926,34 +1022,47 @@ public com.google.cloud.speech.v1.SpeechRecognitionResult.Builder addResultsBuil
 
     private com.google.protobuf.Duration totalBilledTime_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> totalBilledTimeBuilder_;
+            com.google.protobuf.Duration,
+            com.google.protobuf.Duration.Builder,
+            com.google.protobuf.DurationOrBuilder>
+        totalBilledTimeBuilder_;
     /**
+     *
+     *
      * 
      * When available, billed audio seconds for the corresponding request.
      * 
* * .google.protobuf.Duration total_billed_time = 3; + * * @return Whether the totalBilledTime field is set. */ public boolean hasTotalBilledTime() { return totalBilledTimeBuilder_ != null || totalBilledTime_ != null; } /** + * + * *
      * When available, billed audio seconds for the corresponding request.
      * 
* * .google.protobuf.Duration total_billed_time = 3; + * * @return The totalBilledTime. */ public com.google.protobuf.Duration getTotalBilledTime() { if (totalBilledTimeBuilder_ == null) { - return totalBilledTime_ == null ? com.google.protobuf.Duration.getDefaultInstance() : totalBilledTime_; + return totalBilledTime_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : totalBilledTime_; } else { return totalBilledTimeBuilder_.getMessage(); } } /** + * + * *
      * When available, billed audio seconds for the corresponding request.
      * 
@@ -974,14 +1083,15 @@ public Builder setTotalBilledTime(com.google.protobuf.Duration value) { return this; } /** + * + * *
      * When available, billed audio seconds for the corresponding request.
      * 
* * .google.protobuf.Duration total_billed_time = 3; */ - public Builder setTotalBilledTime( - com.google.protobuf.Duration.Builder builderForValue) { + public Builder setTotalBilledTime(com.google.protobuf.Duration.Builder builderForValue) { if (totalBilledTimeBuilder_ == null) { totalBilledTime_ = builderForValue.build(); onChanged(); @@ -992,6 +1102,8 @@ public Builder setTotalBilledTime( return this; } /** + * + * *
      * When available, billed audio seconds for the corresponding request.
      * 
@@ -1002,7 +1114,9 @@ public Builder mergeTotalBilledTime(com.google.protobuf.Duration value) { if (totalBilledTimeBuilder_ == null) { if (totalBilledTime_ != null) { totalBilledTime_ = - com.google.protobuf.Duration.newBuilder(totalBilledTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Duration.newBuilder(totalBilledTime_) + .mergeFrom(value) + .buildPartial(); } else { totalBilledTime_ = value; } @@ -1014,6 +1128,8 @@ public Builder mergeTotalBilledTime(com.google.protobuf.Duration value) { return this; } /** + * + * *
      * When available, billed audio seconds for the corresponding request.
      * 
@@ -1032,6 +1148,8 @@ public Builder clearTotalBilledTime() { return this; } /** + * + * *
      * When available, billed audio seconds for the corresponding request.
      * 
@@ -1039,11 +1157,13 @@ public Builder clearTotalBilledTime() { * .google.protobuf.Duration total_billed_time = 3; */ public com.google.protobuf.Duration.Builder getTotalBilledTimeBuilder() { - + onChanged(); return getTotalBilledTimeFieldBuilder().getBuilder(); } /** + * + * *
      * When available, billed audio seconds for the corresponding request.
      * 
@@ -1054,11 +1174,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.
      * 
@@ -1066,21 +1189,24 @@ public com.google.protobuf.DurationOrBuilder getTotalBilledTimeOrBuilder() { * .google.protobuf.Duration total_billed_time = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> getTotalBilledTimeFieldBuilder() { if (totalBilledTimeBuilder_ == null) { - totalBilledTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( - getTotalBilledTime(), - getParentForChildren(), - isClean()); + totalBilledTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>( + getTotalBilledTime(), getParentForChildren(), isClean()); totalBilledTime_ = null; } return totalBilledTimeBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1090,12 +1216,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(); } @@ -1104,16 +1230,16 @@ public static com.google.cloud.speech.v1.RecognizeResponse getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RecognizeResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new RecognizeResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RecognizeResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RecognizeResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1128,6 +1254,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1.RecognizeResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeResponseOrBuilder.java b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeResponseOrBuilder.java similarity index 75% rename from owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeResponseOrBuilder.java rename to proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeResponseOrBuilder.java index d2b282a71..ea3880945 100644 --- a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeResponseOrBuilder.java +++ b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeResponseOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1/cloud_speech.proto package com.google.cloud.speech.v1; -public interface RecognizeResponseOrBuilder extends +public interface RecognizeResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1.RecognizeResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -15,9 +33,10 @@ public interface RecognizeResponseOrBuilder extends
    *
    * repeated .google.cloud.speech.v1.SpeechRecognitionResult results = 2;
    */
-  java.util.List 
-      getResultsList();
+  java.util.List getResultsList();
   /**
+   *
+   *
    * 
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -27,6 +46,8 @@ public interface RecognizeResponseOrBuilder extends
    */
   com.google.cloud.speech.v1.SpeechRecognitionResult getResults(int index);
   /**
+   *
+   *
    * 
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -36,6 +57,8 @@ public interface RecognizeResponseOrBuilder extends
    */
   int getResultsCount();
   /**
+   *
+   *
    * 
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -43,9 +66,11 @@ public interface RecognizeResponseOrBuilder extends
    *
    * repeated .google.cloud.speech.v1.SpeechRecognitionResult results = 2;
    */
-  java.util.List 
+  java.util.List
       getResultsOrBuilderList();
   /**
+   *
+   *
    * 
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -53,28 +78,35 @@ public interface RecognizeResponseOrBuilder extends
    *
    * repeated .google.cloud.speech.v1.SpeechRecognitionResult results = 2;
    */
-  com.google.cloud.speech.v1.SpeechRecognitionResultOrBuilder getResultsOrBuilder(
-      int index);
+  com.google.cloud.speech.v1.SpeechRecognitionResultOrBuilder getResultsOrBuilder(int index);
 
   /**
+   *
+   *
    * 
    * When available, billed audio seconds for the corresponding request.
    * 
* * .google.protobuf.Duration total_billed_time = 3; + * * @return Whether the totalBilledTime field is set. */ boolean hasTotalBilledTime(); /** + * + * *
    * When available, billed audio seconds for the corresponding request.
    * 
* * .google.protobuf.Duration total_billed_time = 3; + * * @return The totalBilledTime. */ com.google.protobuf.Duration getTotalBilledTime(); /** + * + * *
    * When available, billed audio seconds for the corresponding request.
    * 
diff --git a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeakerDiarizationConfig.java b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeakerDiarizationConfig.java similarity index 71% rename from owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeakerDiarizationConfig.java rename to proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeakerDiarizationConfig.java index 698b47b0a..50f1dda45 100644 --- a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeakerDiarizationConfig.java +++ b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeakerDiarizationConfig.java @@ -1,39 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1/cloud_speech.proto package com.google.cloud.speech.v1; /** + * + * *
  * Config to enable speaker diarization.
  * 
* * Protobuf type {@code google.cloud.speech.v1.SpeakerDiarizationConfig} */ -public final class SpeakerDiarizationConfig extends - com.google.protobuf.GeneratedMessageV3 implements +public final class SpeakerDiarizationConfig extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v1.SpeakerDiarizationConfig) SpeakerDiarizationConfigOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use SpeakerDiarizationConfig.newBuilder() to construct. private SpeakerDiarizationConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private SpeakerDiarizationConfig() { - } + + private SpeakerDiarizationConfig() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new SpeakerDiarizationConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private SpeakerDiarizationConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,61 +68,65 @@ private SpeakerDiarizationConfig( case 0: done = true; break; - case 8: { - - enableSpeakerDiarization_ = input.readBool(); - break; - } - case 16: { - - minSpeakerCount_ = input.readInt32(); - break; - } - case 24: { - - maxSpeakerCount_ = input.readInt32(); - break; - } - case 40: { - - speakerTag_ = input.readInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 8: + { + enableSpeakerDiarization_ = input.readBool(); + break; + } + case 16: + { + minSpeakerCount_ = input.readInt32(); + break; + } + case 24: + { + maxSpeakerCount_ = input.readInt32(); + break; + } + case 40: + { + speakerTag_ = input.readInt32(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_SpeakerDiarizationConfig_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1.SpeechProto + .internal_static_google_cloud_speech_v1_SpeakerDiarizationConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_SpeakerDiarizationConfig_fieldAccessorTable + return com.google.cloud.speech.v1.SpeechProto + .internal_static_google_cloud_speech_v1_SpeakerDiarizationConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1.SpeakerDiarizationConfig.class, com.google.cloud.speech.v1.SpeakerDiarizationConfig.Builder.class); + com.google.cloud.speech.v1.SpeakerDiarizationConfig.class, + com.google.cloud.speech.v1.SpeakerDiarizationConfig.Builder.class); } public static final int ENABLE_SPEAKER_DIARIZATION_FIELD_NUMBER = 1; private boolean enableSpeakerDiarization_; /** + * + * *
    * If 'true', enables speaker detection for each recognized word in
    * the top alternative of the recognition result using a speaker_tag provided
@@ -114,6 +134,7 @@ private SpeakerDiarizationConfig(
    * 
* * bool enable_speaker_diarization = 1; + * * @return The enableSpeakerDiarization. */ @java.lang.Override @@ -124,6 +145,8 @@ public boolean getEnableSpeakerDiarization() { public static final int MIN_SPEAKER_COUNT_FIELD_NUMBER = 2; private int minSpeakerCount_; /** + * + * *
    * Minimum number of speakers in the conversation. This range gives you more
    * flexibility by allowing the system to automatically determine the correct
@@ -131,6 +154,7 @@ public boolean getEnableSpeakerDiarization() {
    * 
* * int32 min_speaker_count = 2; + * * @return The minSpeakerCount. */ @java.lang.Override @@ -141,6 +165,8 @@ public int getMinSpeakerCount() { public static final int MAX_SPEAKER_COUNT_FIELD_NUMBER = 3; private int maxSpeakerCount_; /** + * + * *
    * Maximum number of speakers in the conversation. This range gives you more
    * flexibility by allowing the system to automatically determine the correct
@@ -148,6 +174,7 @@ public int getMinSpeakerCount() {
    * 
* * int32 max_speaker_count = 3; + * * @return The maxSpeakerCount. */ @java.lang.Override @@ -158,19 +185,25 @@ public int getMaxSpeakerCount() { public static final int SPEAKER_TAG_FIELD_NUMBER = 5; private int speakerTag_; /** + * + * *
    * Output only. Unused.
    * 
* - * int32 speaker_tag = 5 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * int32 speaker_tag = 5 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @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; @@ -182,8 +215,7 @@ public final boolean isInitialized() { } @java.lang.Override - public 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_); } @@ -206,20 +238,16 @@ public int getSerializedSize() { size = 0; if (enableSpeakerDiarization_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(1, enableSpeakerDiarization_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, enableSpeakerDiarization_); } if (minSpeakerCount_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, minSpeakerCount_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, minSpeakerCount_); } if (maxSpeakerCount_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(3, maxSpeakerCount_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, maxSpeakerCount_); } if (speakerTag_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(5, speakerTag_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, speakerTag_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -229,21 +257,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1.SpeakerDiarizationConfig)) { return super.equals(obj); } - com.google.cloud.speech.v1.SpeakerDiarizationConfig other = (com.google.cloud.speech.v1.SpeakerDiarizationConfig) obj; + com.google.cloud.speech.v1.SpeakerDiarizationConfig other = + (com.google.cloud.speech.v1.SpeakerDiarizationConfig) obj; - if (getEnableSpeakerDiarization() - != other.getEnableSpeakerDiarization()) return false; - if (getMinSpeakerCount() - != other.getMinSpeakerCount()) return false; - if (getMaxSpeakerCount() - != other.getMaxSpeakerCount()) return false; - if (getSpeakerTag() - != other.getSpeakerTag()) return false; + if (getEnableSpeakerDiarization() != other.getEnableSpeakerDiarization()) return false; + if (getMinSpeakerCount() != other.getMinSpeakerCount()) return false; + if (getMaxSpeakerCount() != other.getMaxSpeakerCount()) return false; + if (getSpeakerTag() != other.getSpeakerTag()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -256,8 +281,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; @@ -270,117 +294,126 @@ public int hashCode() { } public static com.google.cloud.speech.v1.SpeakerDiarizationConfig parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1.SpeakerDiarizationConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1.SpeakerDiarizationConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1.SpeakerDiarizationConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1.SpeakerDiarizationConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1.SpeakerDiarizationConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1.SpeakerDiarizationConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1.SpeakerDiarizationConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1.SpeakerDiarizationConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1.SpeakerDiarizationConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1.SpeakerDiarizationConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1.SpeakerDiarizationConfig parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.speech.v1.SpeakerDiarizationConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1.SpeakerDiarizationConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.speech.v1.SpeakerDiarizationConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Config to enable speaker diarization.
    * 
* * Protobuf type {@code google.cloud.speech.v1.SpeakerDiarizationConfig} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1.SpeakerDiarizationConfig) com.google.cloud.speech.v1.SpeakerDiarizationConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_SpeakerDiarizationConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1.SpeechProto + .internal_static_google_cloud_speech_v1_SpeakerDiarizationConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_SpeakerDiarizationConfig_fieldAccessorTable + return com.google.cloud.speech.v1.SpeechProto + .internal_static_google_cloud_speech_v1_SpeakerDiarizationConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1.SpeakerDiarizationConfig.class, com.google.cloud.speech.v1.SpeakerDiarizationConfig.Builder.class); + com.google.cloud.speech.v1.SpeakerDiarizationConfig.class, + com.google.cloud.speech.v1.SpeakerDiarizationConfig.Builder.class); } // Construct using com.google.cloud.speech.v1.SpeakerDiarizationConfig.newBuilder() @@ -388,16 +421,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -413,9 +445,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 @@ -434,7 +466,8 @@ public com.google.cloud.speech.v1.SpeakerDiarizationConfig build() { @java.lang.Override public com.google.cloud.speech.v1.SpeakerDiarizationConfig buildPartial() { - com.google.cloud.speech.v1.SpeakerDiarizationConfig result = new com.google.cloud.speech.v1.SpeakerDiarizationConfig(this); + com.google.cloud.speech.v1.SpeakerDiarizationConfig result = + new com.google.cloud.speech.v1.SpeakerDiarizationConfig(this); result.enableSpeakerDiarization_ = enableSpeakerDiarization_; result.minSpeakerCount_ = minSpeakerCount_; result.maxSpeakerCount_ = maxSpeakerCount_; @@ -447,38 +480,39 @@ public com.google.cloud.speech.v1.SpeakerDiarizationConfig buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.speech.v1.SpeakerDiarizationConfig) { - return mergeFrom((com.google.cloud.speech.v1.SpeakerDiarizationConfig)other); + return mergeFrom((com.google.cloud.speech.v1.SpeakerDiarizationConfig) other); } else { super.mergeFrom(other); return this; @@ -486,7 +520,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()); } @@ -518,7 +553,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.speech.v1.SpeakerDiarizationConfig) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.speech.v1.SpeakerDiarizationConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -528,8 +564,10 @@ public Builder mergeFrom( return this; } - private boolean enableSpeakerDiarization_ ; + private boolean enableSpeakerDiarization_; /** + * + * *
      * If 'true', enables speaker detection for each recognized word in
      * the top alternative of the recognition result using a speaker_tag provided
@@ -537,6 +575,7 @@ public Builder mergeFrom(
      * 
* * bool enable_speaker_diarization = 1; + * * @return The enableSpeakerDiarization. */ @java.lang.Override @@ -544,6 +583,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
@@ -551,16 +592,19 @@ public boolean getEnableSpeakerDiarization() {
      * 
* * bool enable_speaker_diarization = 1; + * * @param value The enableSpeakerDiarization to set. * @return This builder for chaining. */ public Builder setEnableSpeakerDiarization(boolean value) { - + enableSpeakerDiarization_ = value; onChanged(); return this; } /** + * + * *
      * If 'true', enables speaker detection for each recognized word in
      * the top alternative of the recognition result using a speaker_tag provided
@@ -568,17 +612,20 @@ public Builder setEnableSpeakerDiarization(boolean value) {
      * 
* * bool enable_speaker_diarization = 1; + * * @return This builder for chaining. */ public Builder clearEnableSpeakerDiarization() { - + enableSpeakerDiarization_ = false; onChanged(); return this; } - private int minSpeakerCount_ ; + private int minSpeakerCount_; /** + * + * *
      * Minimum number of speakers in the conversation. This range gives you more
      * flexibility by allowing the system to automatically determine the correct
@@ -586,6 +633,7 @@ public Builder clearEnableSpeakerDiarization() {
      * 
* * int32 min_speaker_count = 2; + * * @return The minSpeakerCount. */ @java.lang.Override @@ -593,6 +641,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
@@ -600,16 +650,19 @@ public int getMinSpeakerCount() {
      * 
* * int32 min_speaker_count = 2; + * * @param value The minSpeakerCount to set. * @return This builder for chaining. */ public Builder setMinSpeakerCount(int value) { - + minSpeakerCount_ = value; onChanged(); return this; } /** + * + * *
      * Minimum number of speakers in the conversation. This range gives you more
      * flexibility by allowing the system to automatically determine the correct
@@ -617,17 +670,20 @@ public Builder setMinSpeakerCount(int value) {
      * 
* * int32 min_speaker_count = 2; + * * @return This builder for chaining. */ public Builder clearMinSpeakerCount() { - + minSpeakerCount_ = 0; onChanged(); return this; } - private int maxSpeakerCount_ ; + private int maxSpeakerCount_; /** + * + * *
      * Maximum number of speakers in the conversation. This range gives you more
      * flexibility by allowing the system to automatically determine the correct
@@ -635,6 +691,7 @@ public Builder clearMinSpeakerCount() {
      * 
* * int32 max_speaker_count = 3; + * * @return The maxSpeakerCount. */ @java.lang.Override @@ -642,6 +699,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
@@ -649,16 +708,19 @@ public int getMaxSpeakerCount() {
      * 
* * int32 max_speaker_count = 3; + * * @param value The maxSpeakerCount to set. * @return This builder for chaining. */ public Builder setMaxSpeakerCount(int value) { - + maxSpeakerCount_ = value; onChanged(); return this; } /** + * + * *
      * Maximum number of speakers in the conversation. This range gives you more
      * flexibility by allowing the system to automatically determine the correct
@@ -666,60 +728,76 @@ public Builder setMaxSpeakerCount(int value) {
      * 
* * int32 max_speaker_count = 3; + * * @return This builder for chaining. */ public Builder clearMaxSpeakerCount() { - + maxSpeakerCount_ = 0; onChanged(); return this; } - private int speakerTag_ ; + private int speakerTag_; /** + * + * *
      * Output only. Unused.
      * 
* - * int32 speaker_tag = 5 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * int32 speaker_tag = 5 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @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]; + * + * * @param value The speakerTag to set. * @return This builder for chaining. */ - @java.lang.Deprecated public Builder setSpeakerTag(int value) { - + @java.lang.Deprecated + public Builder setSpeakerTag(int value) { + speakerTag_ = value; onChanged(); return this; } /** + * + * *
      * Output only. Unused.
      * 
* - * int32 speaker_tag = 5 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * int32 speaker_tag = 5 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return This builder for chaining. */ - @java.lang.Deprecated public Builder clearSpeakerTag() { - + @java.lang.Deprecated + public Builder clearSpeakerTag() { + speakerTag_ = 0; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -729,12 +807,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(); } @@ -743,16 +821,16 @@ public static com.google.cloud.speech.v1.SpeakerDiarizationConfig getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SpeakerDiarizationConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SpeakerDiarizationConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SpeakerDiarizationConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SpeakerDiarizationConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -767,6 +845,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1.SpeakerDiarizationConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeakerDiarizationConfigOrBuilder.java b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeakerDiarizationConfigOrBuilder.java similarity index 65% rename from owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeakerDiarizationConfigOrBuilder.java rename to proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeakerDiarizationConfigOrBuilder.java index 962158b1e..9f957fb4a 100644 --- a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeakerDiarizationConfigOrBuilder.java +++ b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeakerDiarizationConfigOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1/cloud_speech.proto package com.google.cloud.speech.v1; -public interface SpeakerDiarizationConfigOrBuilder extends +public interface SpeakerDiarizationConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1.SpeakerDiarizationConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * If 'true', enables speaker detection for each recognized word in
    * the top alternative of the recognition result using a speaker_tag provided
@@ -15,11 +33,14 @@ public interface SpeakerDiarizationConfigOrBuilder extends
    * 
* * bool enable_speaker_diarization = 1; + * * @return The enableSpeakerDiarization. */ boolean getEnableSpeakerDiarization(); /** + * + * *
    * Minimum number of speakers in the conversation. This range gives you more
    * flexibility by allowing the system to automatically determine the correct
@@ -27,11 +48,14 @@ public interface SpeakerDiarizationConfigOrBuilder extends
    * 
* * int32 min_speaker_count = 2; + * * @return The minSpeakerCount. */ int getMinSpeakerCount(); /** + * + * *
    * Maximum number of speakers in the conversation. This range gives you more
    * flexibility by allowing the system to automatically determine the correct
@@ -39,17 +63,23 @@ 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]; + * + * * @return The speakerTag. */ - @java.lang.Deprecated int getSpeakerTag(); + @java.lang.Deprecated + int getSpeakerTag(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechAdaptation.java b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechAdaptation.java similarity index 79% rename from owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechAdaptation.java rename to proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechAdaptation.java index 16878785c..106a91b7e 100644 --- a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechAdaptation.java +++ b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechAdaptation.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1/resource.proto package com.google.cloud.speech.v1; /** + * + * *
  * Speech adaptation configuration.
  * 
* * Protobuf type {@code google.cloud.speech.v1.SpeechAdaptation} */ -public final class SpeechAdaptation extends - com.google.protobuf.GeneratedMessageV3 implements +public final class SpeechAdaptation extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v1.SpeechAdaptation) SpeechAdaptationOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use SpeechAdaptation.newBuilder() to construct. private SpeechAdaptation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private SpeechAdaptation() { phraseSets_ = java.util.Collections.emptyList(); phraseSetReferences_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -27,16 +45,15 @@ private SpeechAdaptation() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new SpeechAdaptation(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private SpeechAdaptation( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -56,47 +73,51 @@ private SpeechAdaptation( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - phraseSets_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + phraseSets_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + phraseSets_.add( + input.readMessage( + com.google.cloud.speech.v1.PhraseSet.parser(), extensionRegistry)); + break; } - phraseSets_.add( - input.readMessage(com.google.cloud.speech.v1.PhraseSet.parser(), extensionRegistry)); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - phraseSetReferences_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + phraseSetReferences_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; + } + phraseSetReferences_.add(s); + break; } - phraseSetReferences_.add(s); - break; - } - case 26: { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - customClasses_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000004; + case 26: + { + if (!((mutable_bitField0_ & 0x00000004) != 0)) { + customClasses_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000004; + } + customClasses_.add( + input.readMessage( + com.google.cloud.speech.v1.CustomClass.parser(), extensionRegistry)); + break; } - customClasses_.add( - input.readMessage(com.google.cloud.speech.v1.CustomClass.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { phraseSets_ = java.util.Collections.unmodifiableList(phraseSets_); @@ -111,22 +132,27 @@ private SpeechAdaptation( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1.SpeechResourceProto.internal_static_google_cloud_speech_v1_SpeechAdaptation_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1.SpeechResourceProto + .internal_static_google_cloud_speech_v1_SpeechAdaptation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1.SpeechResourceProto.internal_static_google_cloud_speech_v1_SpeechAdaptation_fieldAccessorTable + return com.google.cloud.speech.v1.SpeechResourceProto + .internal_static_google_cloud_speech_v1_SpeechAdaptation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1.SpeechAdaptation.class, com.google.cloud.speech.v1.SpeechAdaptation.Builder.class); + com.google.cloud.speech.v1.SpeechAdaptation.class, + com.google.cloud.speech.v1.SpeechAdaptation.Builder.class); } public static final int PHRASE_SETS_FIELD_NUMBER = 1; private java.util.List phraseSets_; /** + * + * *
    * A collection of phrase sets. To specify the hints inline, leave the
    * phrase set's `name` blank and fill in the rest of its fields. Any
@@ -140,6 +166,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
@@ -149,11 +177,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
@@ -167,6 +197,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
@@ -180,6 +212,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
@@ -189,42 +223,52 @@ public com.google.cloud.speech.v1.PhraseSet getPhraseSets(int index) {
    * repeated .google.cloud.speech.v1.PhraseSet phrase_sets = 1;
    */
   @java.lang.Override
-  public com.google.cloud.speech.v1.PhraseSetOrBuilder getPhraseSetsOrBuilder(
-      int index) {
+  public com.google.cloud.speech.v1.PhraseSetOrBuilder getPhraseSetsOrBuilder(int index) {
     return phraseSets_.get(index);
   }
 
   public static final int PHRASE_SET_REFERENCES_FIELD_NUMBER = 2;
   private com.google.protobuf.LazyStringList phraseSetReferences_;
   /**
+   *
+   *
    * 
    * A collection of phrase set resource names to use.
    * 
* - * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } + * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } + * + * * @return A list containing the phraseSetReferences. */ - public com.google.protobuf.ProtocolStringList - getPhraseSetReferencesList() { + public com.google.protobuf.ProtocolStringList getPhraseSetReferencesList() { return phraseSetReferences_; } /** + * + * *
    * A collection of phrase set resource names to use.
    * 
* - * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } + * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } + * + * * @return The count of phraseSetReferences. */ public int getPhraseSetReferencesCount() { return phraseSetReferences_.size(); } /** + * + * *
    * A collection of phrase set resource names to use.
    * 
* - * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } + * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } + * + * * @param index The index of the element to return. * @return The phraseSetReferences at the given index. */ @@ -232,22 +276,27 @@ public java.lang.String getPhraseSetReferences(int index) { return phraseSetReferences_.get(index); } /** + * + * *
    * A collection of phrase set resource names to use.
    * 
* - * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } + * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } + * + * * @param index The index of the value to return. * @return The bytes of the phraseSetReferences at the given index. */ - public com.google.protobuf.ByteString - getPhraseSetReferencesBytes(int index) { + public com.google.protobuf.ByteString getPhraseSetReferencesBytes(int index) { return phraseSetReferences_.getByteString(index); } public static final int CUSTOM_CLASSES_FIELD_NUMBER = 3; private java.util.List customClasses_; /** + * + * *
    * A collection of custom classes. To specify the classes inline, leave the
    * class' `name` blank and fill in the rest of its fields, giving it a unique
@@ -262,6 +311,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
@@ -272,11 +323,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
@@ -291,6 +344,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
@@ -305,6 +360,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
@@ -315,12 +372,12 @@ public com.google.cloud.speech.v1.CustomClass getCustomClasses(int index) {
    * repeated .google.cloud.speech.v1.CustomClass custom_classes = 3;
    */
   @java.lang.Override
-  public com.google.cloud.speech.v1.CustomClassOrBuilder getCustomClassesOrBuilder(
-      int index) {
+  public com.google.cloud.speech.v1.CustomClassOrBuilder getCustomClassesOrBuilder(int index) {
     return customClasses_.get(index);
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -332,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 {
     for (int i = 0; i < phraseSets_.size(); i++) {
       output.writeMessage(1, phraseSets_.get(i));
     }
@@ -353,8 +409,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;
@@ -365,8 +420,7 @@ public int getSerializedSize() {
       size += 1 * getPhraseSetReferencesList().size();
     }
     for (int i = 0; i < customClasses_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(3, customClasses_.get(i));
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, customClasses_.get(i));
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -376,19 +430,17 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.speech.v1.SpeechAdaptation)) {
       return super.equals(obj);
     }
-    com.google.cloud.speech.v1.SpeechAdaptation other = (com.google.cloud.speech.v1.SpeechAdaptation) obj;
+    com.google.cloud.speech.v1.SpeechAdaptation other =
+        (com.google.cloud.speech.v1.SpeechAdaptation) obj;
 
-    if (!getPhraseSetsList()
-        .equals(other.getPhraseSetsList())) return false;
-    if (!getPhraseSetReferencesList()
-        .equals(other.getPhraseSetReferencesList())) return false;
-    if (!getCustomClassesList()
-        .equals(other.getCustomClassesList())) return false;
+    if (!getPhraseSetsList().equals(other.getPhraseSetsList())) return false;
+    if (!getPhraseSetReferencesList().equals(other.getPhraseSetReferencesList())) return false;
+    if (!getCustomClassesList().equals(other.getCustomClassesList())) return false;
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
   }
@@ -417,118 +469,127 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.cloud.speech.v1.SpeechAdaptation parseFrom(
-      java.nio.ByteBuffer data)
+  public static com.google.cloud.speech.v1.SpeechAdaptation parseFrom(java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.speech.v1.SpeechAdaptation parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.speech.v1.SpeechAdaptation parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.speech.v1.SpeechAdaptation parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.speech.v1.SpeechAdaptation parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.speech.v1.SpeechAdaptation parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.speech.v1.SpeechAdaptation parseFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.speech.v1.SpeechAdaptation parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
-  public static com.google.cloud.speech.v1.SpeechAdaptation parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+
+  public static com.google.cloud.speech.v1.SpeechAdaptation parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.speech.v1.SpeechAdaptation parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.speech.v1.SpeechAdaptation parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.speech.v1.SpeechAdaptation parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
+
   public static Builder newBuilder(com.google.cloud.speech.v1.SpeechAdaptation prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * Speech adaptation configuration.
    * 
* * Protobuf type {@code google.cloud.speech.v1.SpeechAdaptation} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1.SpeechAdaptation) com.google.cloud.speech.v1.SpeechAdaptationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1.SpeechResourceProto.internal_static_google_cloud_speech_v1_SpeechAdaptation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1.SpeechResourceProto + .internal_static_google_cloud_speech_v1_SpeechAdaptation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1.SpeechResourceProto.internal_static_google_cloud_speech_v1_SpeechAdaptation_fieldAccessorTable + return com.google.cloud.speech.v1.SpeechResourceProto + .internal_static_google_cloud_speech_v1_SpeechAdaptation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1.SpeechAdaptation.class, com.google.cloud.speech.v1.SpeechAdaptation.Builder.class); + com.google.cloud.speech.v1.SpeechAdaptation.class, + com.google.cloud.speech.v1.SpeechAdaptation.Builder.class); } // Construct using com.google.cloud.speech.v1.SpeechAdaptation.newBuilder() @@ -536,18 +597,18 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getPhraseSetsFieldBuilder(); getCustomClassesFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -569,9 +630,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 @@ -590,7 +651,8 @@ public com.google.cloud.speech.v1.SpeechAdaptation build() { @java.lang.Override public com.google.cloud.speech.v1.SpeechAdaptation buildPartial() { - com.google.cloud.speech.v1.SpeechAdaptation result = new com.google.cloud.speech.v1.SpeechAdaptation(this); + com.google.cloud.speech.v1.SpeechAdaptation result = + new com.google.cloud.speech.v1.SpeechAdaptation(this); int from_bitField0_ = bitField0_; if (phraseSetsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -623,38 +685,39 @@ public com.google.cloud.speech.v1.SpeechAdaptation buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.speech.v1.SpeechAdaptation) { - return mergeFrom((com.google.cloud.speech.v1.SpeechAdaptation)other); + return mergeFrom((com.google.cloud.speech.v1.SpeechAdaptation) other); } else { super.mergeFrom(other); return this; @@ -681,9 +744,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_); } @@ -717,9 +781,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_); } @@ -753,21 +818,28 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.util.List phraseSets_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensurePhraseSetsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { phraseSets_ = new java.util.ArrayList(phraseSets_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.speech.v1.PhraseSet, com.google.cloud.speech.v1.PhraseSet.Builder, com.google.cloud.speech.v1.PhraseSetOrBuilder> phraseSetsBuilder_; + com.google.cloud.speech.v1.PhraseSet, + com.google.cloud.speech.v1.PhraseSet.Builder, + com.google.cloud.speech.v1.PhraseSetOrBuilder> + phraseSetsBuilder_; /** + * + * *
      * A collection of phrase sets. To specify the hints inline, leave the
      * phrase set's `name` blank and fill in the rest of its fields. Any
@@ -784,6 +856,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
@@ -800,6 +874,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
@@ -816,6 +892,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
@@ -824,8 +902,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();
@@ -839,6 +916,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
@@ -859,6 +938,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
@@ -881,6 +962,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
@@ -889,8 +972,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();
@@ -904,6 +986,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
@@ -912,8 +996,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());
@@ -924,6 +1007,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
@@ -944,6 +1029,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
@@ -956,8 +1043,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);
@@ -965,6 +1051,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
@@ -984,6 +1072,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
@@ -1003,6 +1093,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
@@ -1011,11 +1103,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
@@ -1024,14 +1117,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
@@ -1040,8 +1135,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 {
@@ -1049,6 +1144,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
@@ -1058,10 +1155,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
@@ -1070,12 +1169,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
@@ -1084,61 +1184,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. */ @@ -1146,80 +1261,95 @@ public java.lang.String getPhraseSetReferences(int index) { return phraseSetReferences_.get(index); } /** + * + * *
      * A collection of phrase set resource names to use.
      * 
* - * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } + * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } + * + * * @param index The index of the value to return. * @return The bytes of the phraseSetReferences at the given index. */ - public com.google.protobuf.ByteString - getPhraseSetReferencesBytes(int index) { + public com.google.protobuf.ByteString getPhraseSetReferencesBytes(int index) { return phraseSetReferences_.getByteString(index); } /** + * + * *
      * A collection of phrase set resource names to use.
      * 
* - * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } + * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } + * + * * @param index The index to set the value at. * @param value The phraseSetReferences to set. * @return This builder for chaining. */ - public Builder setPhraseSetReferences( - int index, java.lang.String value) { + public Builder setPhraseSetReferences(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensurePhraseSetReferencesIsMutable(); + throw new NullPointerException(); + } + ensurePhraseSetReferencesIsMutable(); phraseSetReferences_.set(index, value); onChanged(); return this; } /** + * + * *
      * A collection of phrase set resource names to use.
      * 
* - * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } + * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } + * + * * @param value The phraseSetReferences to add. * @return This builder for chaining. */ - public Builder addPhraseSetReferences( - java.lang.String value) { + public Builder addPhraseSetReferences(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensurePhraseSetReferencesIsMutable(); + throw new NullPointerException(); + } + ensurePhraseSetReferencesIsMutable(); phraseSetReferences_.add(value); onChanged(); return this; } /** + * + * *
      * A collection of phrase set resource names to use.
      * 
* - * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } + * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } + * + * * @param values The phraseSetReferences to add. * @return This builder for chaining. */ - public Builder addAllPhraseSetReferences( - java.lang.Iterable values) { + public Builder addAllPhraseSetReferences(java.lang.Iterable values) { ensurePhraseSetReferencesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, phraseSetReferences_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, phraseSetReferences_); onChanged(); return this; } /** + * + * *
      * A collection of phrase set resource names to use.
      * 
* - * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } + * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearPhraseSetReferences() { @@ -1229,20 +1359,23 @@ public Builder clearPhraseSetReferences() { return this; } /** + * + * *
      * A collection of phrase set resource names to use.
      * 
* - * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } + * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } + * + * * @param value The bytes of the phraseSetReferences to add. * @return This builder for chaining. */ - public Builder addPhraseSetReferencesBytes( - com.google.protobuf.ByteString value) { + public Builder addPhraseSetReferencesBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensurePhraseSetReferencesIsMutable(); phraseSetReferences_.add(value); onChanged(); @@ -1250,18 +1383,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
@@ -1279,6 +1419,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
@@ -1296,6 +1438,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
@@ -1313,6 +1457,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
@@ -1322,8 +1468,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();
@@ -1337,6 +1482,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
@@ -1358,6 +1505,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
@@ -1381,6 +1530,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
@@ -1390,8 +1541,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();
@@ -1405,6 +1555,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
@@ -1426,6 +1578,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
@@ -1447,6 +1601,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
@@ -1460,8 +1616,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);
@@ -1469,6 +1624,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
@@ -1489,6 +1646,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
@@ -1509,6 +1668,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
@@ -1518,11 +1679,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
@@ -1532,14 +1694,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
@@ -1549,8 +1713,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 {
@@ -1558,6 +1722,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
@@ -1568,10 +1734,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
@@ -1581,12 +1749,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
@@ -1596,16 +1765,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(),
@@ -1614,9 +1789,9 @@ public com.google.cloud.speech.v1.CustomClass.Builder addCustomClassesBuilder(
       }
       return customClassesBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1626,12 +1801,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();
   }
@@ -1640,16 +1815,16 @@ public static com.google.cloud.speech.v1.SpeechAdaptation getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public SpeechAdaptation parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return new SpeechAdaptation(input, extensionRegistry);
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public SpeechAdaptation parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          return new SpeechAdaptation(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1664,6 +1839,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.speech.v1.SpeechAdaptation getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechAdaptationOrBuilder.java b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechAdaptationOrBuilder.java
similarity index 79%
rename from owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechAdaptationOrBuilder.java
rename to proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechAdaptationOrBuilder.java
index b40c4c5a0..7ac546836 100644
--- a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechAdaptationOrBuilder.java
+++ b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechAdaptationOrBuilder.java
@@ -1,13 +1,31 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/speech/v1/resource.proto
 
 package com.google.cloud.speech.v1;
 
-public interface SpeechAdaptationOrBuilder extends
+public interface SpeechAdaptationOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1.SpeechAdaptation)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * A collection of phrase sets. To specify the hints inline, leave the
    * phrase set's `name` blank and fill in the rest of its fields. Any
@@ -16,9 +34,10 @@ public interface SpeechAdaptationOrBuilder extends
    *
    * repeated .google.cloud.speech.v1.PhraseSet phrase_sets = 1;
    */
-  java.util.List 
-      getPhraseSetsList();
+  java.util.List getPhraseSetsList();
   /**
+   *
+   *
    * 
    * A collection of phrase sets. To specify the hints inline, leave the
    * phrase set's `name` blank and fill in the rest of its fields. Any
@@ -29,6 +48,8 @@ public interface SpeechAdaptationOrBuilder extends
    */
   com.google.cloud.speech.v1.PhraseSet getPhraseSets(int index);
   /**
+   *
+   *
    * 
    * A collection of phrase sets. To specify the hints inline, leave the
    * phrase set's `name` blank and fill in the rest of its fields. Any
@@ -39,6 +60,8 @@ public interface SpeechAdaptationOrBuilder extends
    */
   int getPhraseSetsCount();
   /**
+   *
+   *
    * 
    * A collection of phrase sets. To specify the hints inline, leave the
    * phrase set's `name` blank and fill in the rest of its fields. Any
@@ -47,9 +70,11 @@ public interface SpeechAdaptationOrBuilder extends
    *
    * repeated .google.cloud.speech.v1.PhraseSet phrase_sets = 1;
    */
-  java.util.List 
+  java.util.List
       getPhraseSetsOrBuilderList();
   /**
+   *
+   *
    * 
    * A collection of phrase sets. To specify the hints inline, leave the
    * phrase set's `name` blank and fill in the rest of its fields. Any
@@ -58,51 +83,66 @@ public interface SpeechAdaptationOrBuilder extends
    *
    * repeated .google.cloud.speech.v1.PhraseSet phrase_sets = 1;
    */
-  com.google.cloud.speech.v1.PhraseSetOrBuilder getPhraseSetsOrBuilder(
-      int index);
+  com.google.cloud.speech.v1.PhraseSetOrBuilder getPhraseSetsOrBuilder(int index);
 
   /**
+   *
+   *
    * 
    * A collection of phrase set resource names to use.
    * 
* - * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } + * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } + * + * * @return A list containing the phraseSetReferences. */ - java.util.List - getPhraseSetReferencesList(); + java.util.List getPhraseSetReferencesList(); /** + * + * *
    * A collection of phrase set resource names to use.
    * 
* - * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } + * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } + * + * * @return The count of phraseSetReferences. */ int getPhraseSetReferencesCount(); /** + * + * *
    * A collection of phrase set resource names to use.
    * 
* - * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } + * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } + * + * * @param index The index of the element to return. * @return The phraseSetReferences at the given index. */ java.lang.String getPhraseSetReferences(int index); /** + * + * *
    * A collection of phrase set resource names to use.
    * 
* - * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } + * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } + * + * * @param index The index of the value to return. * @return The bytes of the phraseSetReferences at the given index. */ - com.google.protobuf.ByteString - getPhraseSetReferencesBytes(int index); + com.google.protobuf.ByteString getPhraseSetReferencesBytes(int index); /** + * + * *
    * A collection of custom classes. To specify the classes inline, leave the
    * class' `name` blank and fill in the rest of its fields, giving it a unique
@@ -112,9 +152,10 @@ com.google.cloud.speech.v1.PhraseSetOrBuilder getPhraseSetsOrBuilder(
    *
    * repeated .google.cloud.speech.v1.CustomClass custom_classes = 3;
    */
-  java.util.List 
-      getCustomClassesList();
+  java.util.List getCustomClassesList();
   /**
+   *
+   *
    * 
    * A collection of custom classes. To specify the classes inline, leave the
    * class' `name` blank and fill in the rest of its fields, giving it a unique
@@ -126,6 +167,8 @@ com.google.cloud.speech.v1.PhraseSetOrBuilder getPhraseSetsOrBuilder(
    */
   com.google.cloud.speech.v1.CustomClass getCustomClasses(int index);
   /**
+   *
+   *
    * 
    * A collection of custom classes. To specify the classes inline, leave the
    * class' `name` blank and fill in the rest of its fields, giving it a unique
@@ -137,6 +180,8 @@ com.google.cloud.speech.v1.PhraseSetOrBuilder getPhraseSetsOrBuilder(
    */
   int getCustomClassesCount();
   /**
+   *
+   *
    * 
    * A collection of custom classes. To specify the classes inline, leave the
    * class' `name` blank and fill in the rest of its fields, giving it a unique
@@ -146,9 +191,11 @@ com.google.cloud.speech.v1.PhraseSetOrBuilder getPhraseSetsOrBuilder(
    *
    * repeated .google.cloud.speech.v1.CustomClass custom_classes = 3;
    */
-  java.util.List 
+  java.util.List
       getCustomClassesOrBuilderList();
   /**
+   *
+   *
    * 
    * A collection of custom classes. To specify the classes inline, leave the
    * class' `name` blank and fill in the rest of its fields, giving it a unique
@@ -158,6 +205,5 @@ com.google.cloud.speech.v1.PhraseSetOrBuilder getPhraseSetsOrBuilder(
    *
    * repeated .google.cloud.speech.v1.CustomClass custom_classes = 3;
    */
-  com.google.cloud.speech.v1.CustomClassOrBuilder getCustomClassesOrBuilder(
-      int index);
+  com.google.cloud.speech.v1.CustomClassOrBuilder getCustomClassesOrBuilder(int index);
 }
diff --git a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechContext.java b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechContext.java
similarity index 80%
rename from owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechContext.java
rename to proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechContext.java
index b410dda75..38e2523de 100644
--- a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechContext.java
+++ b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/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/v1/cloud_speech.proto
 
 package com.google.cloud.speech.v1;
 
 /**
+ *
+ *
  * 
  * Provides "hints" to the speech recognizer to favor specific words and phrases
  * in the results.
@@ -11,31 +28,31 @@
  *
  * Protobuf type {@code google.cloud.speech.v1.SpeechContext}
  */
-public final class SpeechContext extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class SpeechContext extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.speech.v1.SpeechContext)
     SpeechContextOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use SpeechContext.newBuilder() to construct.
   private SpeechContext(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private SpeechContext() {
     phrases_ = com.google.protobuf.LazyStringArrayList.EMPTY;
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new SpeechContext();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private SpeechContext(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -55,34 +72,34 @@ private SpeechContext(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              phrases_ = new com.google.protobuf.LazyStringArrayList();
-              mutable_bitField0_ |= 0x00000001;
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                phrases_ = new com.google.protobuf.LazyStringArrayList();
+                mutable_bitField0_ |= 0x00000001;
+              }
+              phrases_.add(s);
+              break;
             }
-            phrases_.add(s);
-            break;
-          }
-          case 37: {
-
-            boost_ = input.readFloat();
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          case 37:
+            {
+              boost_ = input.readFloat();
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         phrases_ = phrases_.getUnmodifiableView();
@@ -91,22 +108,27 @@ private SpeechContext(
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_SpeechContext_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.speech.v1.SpeechProto
+        .internal_static_google_cloud_speech_v1_SpeechContext_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_SpeechContext_fieldAccessorTable
+    return com.google.cloud.speech.v1.SpeechProto
+        .internal_static_google_cloud_speech_v1_SpeechContext_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v1.SpeechContext.class, com.google.cloud.speech.v1.SpeechContext.Builder.class);
+            com.google.cloud.speech.v1.SpeechContext.class,
+            com.google.cloud.speech.v1.SpeechContext.Builder.class);
   }
 
   public static final int PHRASES_FIELD_NUMBER = 1;
   private com.google.protobuf.LazyStringList phrases_;
   /**
+   *
+   *
    * 
    * A list of strings containing words and phrases "hints" so that
    * the speech recognition is more likely to recognize them. This can be used
@@ -122,13 +144,15 @@ private SpeechContext(
    * 
* * repeated string phrases = 1; + * * @return A list containing the phrases. */ - public com.google.protobuf.ProtocolStringList - getPhrasesList() { + public com.google.protobuf.ProtocolStringList getPhrasesList() { return phrases_; } /** + * + * *
    * A list of strings containing words and phrases "hints" so that
    * the speech recognition is more likely to recognize them. This can be used
@@ -144,12 +168,15 @@ private SpeechContext(
    * 
* * repeated string phrases = 1; + * * @return The count of phrases. */ public int getPhrasesCount() { return phrases_.size(); } /** + * + * *
    * A list of strings containing words and phrases "hints" so that
    * the speech recognition is more likely to recognize them. This can be used
@@ -165,6 +192,7 @@ public int getPhrasesCount() {
    * 
* * repeated string phrases = 1; + * * @param index The index of the element to return. * @return The phrases at the given index. */ @@ -172,6 +200,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
@@ -187,17 +217,19 @@ public java.lang.String getPhrases(int index) {
    * 
* * repeated string phrases = 1; + * * @param index The index of the value to return. * @return The bytes of the phrases at the given index. */ - public com.google.protobuf.ByteString - getPhrasesBytes(int index) { + public com.google.protobuf.ByteString getPhrasesBytes(int index) { return phrases_.getByteString(index); } public static final int BOOST_FIELD_NUMBER = 4; private float boost_; /** + * + * *
    * Hint Boost. Positive value will increase the probability that a specific
    * phrase will be recognized over other similar sounding phrases. The higher
@@ -210,6 +242,7 @@ public java.lang.String getPhrases(int index) {
    * 
* * float boost = 4; + * * @return The boost. */ @java.lang.Override @@ -218,6 +251,7 @@ public float getBoost() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -229,8 +263,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < phrases_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, phrases_.getRaw(i)); } @@ -255,8 +288,7 @@ public int getSerializedSize() { size += 1 * getPhrasesList().size(); } if (boost_ != 0F) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(4, boost_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(4, boost_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -266,18 +298,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1.SpeechContext)) { return super.equals(obj); } com.google.cloud.speech.v1.SpeechContext other = (com.google.cloud.speech.v1.SpeechContext) obj; - if (!getPhrasesList() - .equals(other.getPhrasesList())) return false; + if (!getPhrasesList().equals(other.getPhrasesList())) return false; if (java.lang.Float.floatToIntBits(getBoost()) - != java.lang.Float.floatToIntBits( - other.getBoost())) return false; + != java.lang.Float.floatToIntBits(other.getBoost())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -294,104 +324,110 @@ public int hashCode() { hash = (53 * hash) + getPhrasesList().hashCode(); } hash = (37 * hash) + BOOST_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getBoost()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getBoost()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.speech.v1.SpeechContext parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.speech.v1.SpeechContext parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1.SpeechContext parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1.SpeechContext parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1.SpeechContext parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1.SpeechContext parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1.SpeechContext parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1.SpeechContext parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1.SpeechContext parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1.SpeechContext parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1.SpeechContext parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1.SpeechContext parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.speech.v1.SpeechContext parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1.SpeechContext parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.speech.v1.SpeechContext prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Provides "hints" to the speech recognizer to favor specific words and phrases
    * in the results.
@@ -399,21 +435,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.speech.v1.SpeechContext}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1.SpeechContext)
       com.google.cloud.speech.v1.SpeechContextOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_SpeechContext_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.speech.v1.SpeechProto
+          .internal_static_google_cloud_speech_v1_SpeechContext_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_SpeechContext_fieldAccessorTable
+      return com.google.cloud.speech.v1.SpeechProto
+          .internal_static_google_cloud_speech_v1_SpeechContext_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v1.SpeechContext.class, com.google.cloud.speech.v1.SpeechContext.Builder.class);
+              com.google.cloud.speech.v1.SpeechContext.class,
+              com.google.cloud.speech.v1.SpeechContext.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v1.SpeechContext.newBuilder()
@@ -421,16 +459,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -442,9 +479,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_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
@@ -463,7 +500,8 @@ public com.google.cloud.speech.v1.SpeechContext build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v1.SpeechContext buildPartial() {
-      com.google.cloud.speech.v1.SpeechContext result = new com.google.cloud.speech.v1.SpeechContext(this);
+      com.google.cloud.speech.v1.SpeechContext result =
+          new com.google.cloud.speech.v1.SpeechContext(this);
       int from_bitField0_ = bitField0_;
       if (((bitField0_ & 0x00000001) != 0)) {
         phrases_ = phrases_.getUnmodifiableView();
@@ -479,38 +517,39 @@ public com.google.cloud.speech.v1.SpeechContext buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.speech.v1.SpeechContext) {
-        return mergeFrom((com.google.cloud.speech.v1.SpeechContext)other);
+        return mergeFrom((com.google.cloud.speech.v1.SpeechContext) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -560,16 +599,21 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
-    private com.google.protobuf.LazyStringList phrases_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+    private com.google.protobuf.LazyStringList phrases_ =
+        com.google.protobuf.LazyStringArrayList.EMPTY;
+
     private void ensurePhrasesIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
         phrases_ = new com.google.protobuf.LazyStringArrayList(phrases_);
         bitField0_ |= 0x00000001;
-       }
+      }
     }
     /**
+     *
+     *
      * 
      * A list of strings containing words and phrases "hints" so that
      * the speech recognition is more likely to recognize them. This can be used
@@ -585,13 +629,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
@@ -607,12 +653,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
@@ -628,6 +677,7 @@ public int getPhrasesCount() {
      * 
* * repeated string phrases = 1; + * * @param index The index of the element to return. * @return The phrases at the given index. */ @@ -635,6 +685,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
@@ -650,14 +702,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
@@ -673,21 +727,23 @@ public java.lang.String getPhrases(int index) {
      * 
* * repeated string phrases = 1; + * * @param index The index to set the value at. * @param value The phrases to set. * @return This builder for chaining. */ - public Builder setPhrases( - int index, java.lang.String value) { + public Builder setPhrases(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensurePhrasesIsMutable(); + throw new NullPointerException(); + } + ensurePhrasesIsMutable(); phrases_.set(index, value); onChanged(); return this; } /** + * + * *
      * A list of strings containing words and phrases "hints" so that
      * the speech recognition is more likely to recognize them. This can be used
@@ -703,20 +759,22 @@ public Builder setPhrases(
      * 
* * repeated string phrases = 1; + * * @param value The phrases to add. * @return This builder for chaining. */ - public Builder addPhrases( - java.lang.String value) { + public Builder addPhrases(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensurePhrasesIsMutable(); + throw new NullPointerException(); + } + ensurePhrasesIsMutable(); phrases_.add(value); onChanged(); return this; } /** + * + * *
      * A list of strings containing words and phrases "hints" so that
      * the speech recognition is more likely to recognize them. This can be used
@@ -732,18 +790,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
@@ -759,6 +818,7 @@ public Builder addAllPhrases(
      * 
* * repeated string phrases = 1; + * * @return This builder for chaining. */ public Builder clearPhrases() { @@ -768,6 +828,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
@@ -783,23 +845,25 @@ public Builder clearPhrases() {
      * 
* * repeated string phrases = 1; + * * @param value The bytes of the phrases to add. * @return This builder for chaining. */ - public Builder addPhrasesBytes( - com.google.protobuf.ByteString value) { + public Builder addPhrasesBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensurePhrasesIsMutable(); phrases_.add(value); onChanged(); return this; } - private float boost_ ; + private float boost_; /** + * + * *
      * Hint Boost. Positive value will increase the probability that a specific
      * phrase will be recognized over other similar sounding phrases. The higher
@@ -812,6 +876,7 @@ public Builder addPhrasesBytes(
      * 
* * float boost = 4; + * * @return The boost. */ @java.lang.Override @@ -819,6 +884,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
@@ -831,16 +898,19 @@ public float getBoost() {
      * 
* * float boost = 4; + * * @param value The boost to set. * @return This builder for chaining. */ public Builder setBoost(float value) { - + boost_ = value; onChanged(); return this; } /** + * + * *
      * Hint Boost. Positive value will increase the probability that a specific
      * phrase will be recognized over other similar sounding phrases. The higher
@@ -853,17 +923,18 @@ public Builder setBoost(float value) {
      * 
* * float boost = 4; + * * @return This builder for chaining. */ public Builder clearBoost() { - + boost_ = 0F; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -873,12 +944,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(); } @@ -887,16 +958,16 @@ public static com.google.cloud.speech.v1.SpeechContext getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SpeechContext parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SpeechContext(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SpeechContext parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SpeechContext(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -911,6 +982,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1.SpeechContext getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechContextOrBuilder.java b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechContextOrBuilder.java similarity index 85% rename from owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechContextOrBuilder.java rename to proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechContextOrBuilder.java index 97fbd87c3..a529f0428 100644 --- a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechContextOrBuilder.java +++ b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechContextOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1/cloud_speech.proto package com.google.cloud.speech.v1; -public interface SpeechContextOrBuilder extends +public interface SpeechContextOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1.SpeechContext) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * A list of strings containing words and phrases "hints" so that
    * the speech recognition is more likely to recognize them. This can be used
@@ -23,11 +41,13 @@ public interface SpeechContextOrBuilder extends
    * 
* * repeated string phrases = 1; + * * @return A list containing the phrases. */ - java.util.List - getPhrasesList(); + java.util.List getPhrasesList(); /** + * + * *
    * A list of strings containing words and phrases "hints" so that
    * the speech recognition is more likely to recognize them. This can be used
@@ -43,10 +63,13 @@ public interface SpeechContextOrBuilder extends
    * 
* * repeated string phrases = 1; + * * @return The count of phrases. */ int getPhrasesCount(); /** + * + * *
    * A list of strings containing words and phrases "hints" so that
    * the speech recognition is more likely to recognize them. This can be used
@@ -62,11 +85,14 @@ public interface SpeechContextOrBuilder extends
    * 
* * repeated string phrases = 1; + * * @param index The index of the element to return. * @return The phrases at the given index. */ java.lang.String getPhrases(int index); /** + * + * *
    * A list of strings containing words and phrases "hints" so that
    * the speech recognition is more likely to recognize them. This can be used
@@ -82,13 +108,15 @@ public interface SpeechContextOrBuilder extends
    * 
* * repeated string phrases = 1; + * * @param index The index of the value to return. * @return The bytes of the phrases at the given index. */ - com.google.protobuf.ByteString - getPhrasesBytes(int index); + com.google.protobuf.ByteString getPhrasesBytes(int index); /** + * + * *
    * Hint Boost. Positive value will increase the probability that a specific
    * phrase will be recognized over other similar sounding phrases. The higher
@@ -101,6 +129,7 @@ public interface SpeechContextOrBuilder extends
    * 
* * float boost = 4; + * * @return The boost. */ float getBoost(); diff --git a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechProto.java b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechProto.java new file mode 100644 index 000000000..3fa71d021 --- /dev/null +++ b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechProto.java @@ -0,0 +1,463 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/speech/v1/cloud_speech.proto + +package com.google.cloud.speech.v1; + +public final class SpeechProto { + private SpeechProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1_RecognizeRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1_RecognizeRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1_LongRunningRecognizeRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1_LongRunningRecognizeRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1_TranscriptOutputConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1_TranscriptOutputConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1_StreamingRecognizeRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1_StreamingRecognizeRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1_StreamingRecognitionConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1_StreamingRecognitionConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1_RecognitionConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1_RecognitionConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1_SpeakerDiarizationConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1_SpeakerDiarizationConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1_RecognitionMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1_RecognitionMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1_SpeechContext_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1_SpeechContext_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1_RecognitionAudio_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1_RecognitionAudio_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1_RecognizeResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1_RecognizeResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1_LongRunningRecognizeResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1_LongRunningRecognizeResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1_LongRunningRecognizeMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1_LongRunningRecognizeMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1_StreamingRecognizeResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1_StreamingRecognizeResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1_StreamingRecognitionResult_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1_StreamingRecognitionResult_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1_SpeechRecognitionResult_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1_SpeechRecognitionResult_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1_SpeechRecognitionAlternative_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1_SpeechRecognitionAlternative_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1_WordInfo_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1_WordInfo_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n)google/cloud/speech/v1/cloud_speech.pr" + + "oto\022\026google.cloud.speech.v1\032\034google/api/" + + "annotations.proto\032\027google/api/client.pro" + + "to\032\037google/api/field_behavior.proto\032%goo" + + "gle/cloud/speech/v1/resource.proto\032#goog" + + "le/longrunning/operations.proto\032\036google/" + + "protobuf/duration.proto\032\037google/protobuf" + + "/timestamp.proto\032\036google/protobuf/wrappe" + + "rs.proto\032\027google/rpc/status.proto\"\220\001\n\020Re" + + "cognizeRequest\022>\n\006config\030\001 \001(\0132).google." + + "cloud.speech.v1.RecognitionConfigB\003\340A\002\022<" + + "\n\005audio\030\002 \001(\0132(.google.cloud.speech.v1.R" + + "ecognitionAudioB\003\340A\002\"\347\001\n\033LongRunningReco" + + "gnizeRequest\022>\n\006config\030\001 \001(\0132).google.cl" + + "oud.speech.v1.RecognitionConfigB\003\340A\002\022<\n\005" + + "audio\030\002 \001(\0132(.google.cloud.speech.v1.Rec" + + "ognitionAudioB\003\340A\002\022J\n\routput_config\030\004 \001(" + + "\0132..google.cloud.speech.v1.TranscriptOut" + + "putConfigB\003\340A\001\":\n\026TranscriptOutputConfig" + + "\022\021\n\007gcs_uri\030\001 \001(\tH\000B\r\n\013output_type\"\231\001\n\031S" + + "treamingRecognizeRequest\022N\n\020streaming_co" + + "nfig\030\001 \001(\01322.google.cloud.speech.v1.Stre" + + "amingRecognitionConfigH\000\022\027\n\raudio_conten" + + "t\030\002 \001(\014H\000B\023\n\021streaming_request\"\217\001\n\032Strea" + + "mingRecognitionConfig\022>\n\006config\030\001 \001(\0132)." + + "google.cloud.speech.v1.RecognitionConfig" + + "B\003\340A\002\022\030\n\020single_utterance\030\002 \001(\010\022\027\n\017inter" + + "im_results\030\003 \001(\010\"\351\007\n\021RecognitionConfig\022I" + + "\n\010encoding\030\001 \001(\01627.google.cloud.speech.v" + + "1.RecognitionConfig.AudioEncoding\022\031\n\021sam" + + "ple_rate_hertz\030\002 \001(\005\022\033\n\023audio_channel_co" + + "unt\030\007 \001(\005\022/\n\'enable_separate_recognition" + + "_per_channel\030\014 \001(\010\022\032\n\rlanguage_code\030\003 \001(" + + "\tB\003\340A\002\022\"\n\032alternative_language_codes\030\022 \003" + + "(\t\022\030\n\020max_alternatives\030\004 \001(\005\022\030\n\020profanit" + + "y_filter\030\005 \001(\010\022<\n\nadaptation\030\024 \001(\0132(.goo" + + "gle.cloud.speech.v1.SpeechAdaptation\022>\n\017" + + "speech_contexts\030\006 \003(\0132%.google.cloud.spe" + + "ech.v1.SpeechContext\022 \n\030enable_word_time" + + "_offsets\030\010 \001(\010\022\036\n\026enable_word_confidence" + + "\030\017 \001(\010\022$\n\034enable_automatic_punctuation\030\013" + + " \001(\010\022=\n\031enable_spoken_punctuation\030\026 \001(\0132" + + "\032.google.protobuf.BoolValue\0228\n\024enable_sp" + + "oken_emojis\030\027 \001(\0132\032.google.protobuf.Bool" + + "Value\022L\n\022diarization_config\030\023 \001(\01320.goog" + + "le.cloud.speech.v1.SpeakerDiarizationCon" + + "fig\022=\n\010metadata\030\t \001(\0132+.google.cloud.spe" + + "ech.v1.RecognitionMetadata\022\r\n\005model\030\r \001(" + + "\t\022\024\n\014use_enhanced\030\016 \001(\010\"\232\001\n\rAudioEncodin" + + "g\022\030\n\024ENCODING_UNSPECIFIED\020\000\022\014\n\010LINEAR16\020" + + "\001\022\010\n\004FLAC\020\002\022\t\n\005MULAW\020\003\022\007\n\003AMR\020\004\022\n\n\006AMR_W" + + "B\020\005\022\014\n\010OGG_OPUS\020\006\022\032\n\026SPEEX_WITH_HEADER_B" + + "YTE\020\007\022\r\n\tWEBM_OPUS\020\t\"\220\001\n\030SpeakerDiarizat" + + "ionConfig\022\"\n\032enable_speaker_diarization\030" + + "\001 \001(\010\022\031\n\021min_speaker_count\030\002 \001(\005\022\031\n\021max_" + + "speaker_count\030\003 \001(\005\022\032\n\013speaker_tag\030\005 \001(\005" + + "B\005\030\001\340A\003\"\240\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\"/\n\rSpeechCont" + + "ext\022\017\n\007phrases\030\001 \003(\t\022\r\n\005boost\030\004 \001(\002\"D\n\020R" + + "ecognitionAudio\022\021\n\007content\030\001 \001(\014H\000\022\r\n\003ur" + + "i\030\002 \001(\tH\000B\016\n\014audio_source\"\213\001\n\021RecognizeR" + + "esponse\022@\n\007results\030\002 \003(\0132/.google.cloud." + + "speech.v1.SpeechRecognitionResult\0224\n\021tot" + + "al_billed_time\030\003 \001(\0132\031.google.protobuf.D" + + "uration\"\207\002\n\034LongRunningRecognizeResponse" + + "\022@\n\007results\030\002 \003(\0132/.google.cloud.speech." + + "v1.SpeechRecognitionResult\0224\n\021total_bill" + + "ed_time\030\003 \001(\0132\031.google.protobuf.Duration" + + "\022E\n\routput_config\030\006 \001(\0132..google.cloud.s" + + "peech.v1.TranscriptOutputConfig\022(\n\014outpu" + + "t_error\030\007 \001(\0132\022.google.rpc.Status\"\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\"\347\002\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\"L\n\017SpeechEventType\022\034\n\030S" + + "PEECH_EVENT_UNSPECIFIED\020\000\022\033\n\027END_OF_SING" + + "LE_UTTERANCE\020\001\"\362\001\n\032StreamingRecognitionR" + + "esult\022J\n\014alternatives\030\001 \003(\01324.google.clo" + + "ud.speech.v1.SpeechRecognitionAlternativ" + + "e\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.protobu" + + "f.Duration\022\023\n\013channel_tag\030\005 \001(\005\022\032\n\rlangu" + + "age_code\030\006 \001(\tB\003\340A\003\"\312\001\n\027SpeechRecognitio" + + "nResult\022J\n\014alternatives\030\001 \003(\01324.google.c" + + "loud.speech.v1.SpeechRecognitionAlternat" + + "ive\022\023\n\013channel_tag\030\002 \001(\005\0222\n\017result_end_t" + + "ime\030\004 \001(\0132\031.google.protobuf.Duration\022\032\n\r" + + "language_code\030\005 \001(\tB\003\340A\003\"w\n\034SpeechRecogn" + + "itionAlternative\022\022\n\ntranscript\030\001 \001(\t\022\022\n\n" + + "confidence\030\002 \001(\002\022/\n\005words\030\003 \003(\0132 .google" + + ".cloud.speech.v1.WordInfo\"\242\001\n\010WordInfo\022-" + + "\n\nstart_time\030\001 \001(\0132\031.google.protobuf.Dur" + + "ation\022+\n\010end_time\030\002 \001(\0132\031.google.protobu" + + "f.Duration\022\014\n\004word\030\003 \001(\t\022\022\n\nconfidence\030\004" + + " \001(\002\022\030\n\013speaker_tag\030\005 \001(\005B\003\340A\0032\321\004\n\006Speec" + + "h\022\220\001\n\tRecognize\022(.google.cloud.speech.v1" + + ".RecognizeRequest\032).google.cloud.speech." + + "v1.RecognizeResponse\".\202\323\344\223\002\031\"\024/v1/speech" + + ":recognize:\001*\332A\014config,audio\022\344\001\n\024LongRun" + + "ningRecognize\0223.google.cloud.speech.v1.L" + + "ongRunningRecognizeRequest\032\035.google.long" + + "running.Operation\"x\202\323\344\223\002$\"\037/v1/speech:lo" + + "ngrunningrecognize:\001*\332A\014config,audio\312A<\n" + + "\034LongRunningRecognizeResponse\022\034LongRunni" + + "ngRecognizeMetadata\022\201\001\n\022StreamingRecogni" + + "ze\0221.google.cloud.speech.v1.StreamingRec" + + "ognizeRequest\0322.google.cloud.speech.v1.S" + + "treamingRecognizeResponse\"\000(\0010\001\032I\312A\025spee" + + "ch.googleapis.com\322A.https://www.googleap" + + "is.com/auth/cloud-platformBr\n\032com.google" + + ".cloud.speech.v1B\013SpeechProtoP\001Z * Alternative hypotheses (a.k.a. n-best list). *
* * Protobuf type {@code google.cloud.speech.v1.SpeechRecognitionAlternative} */ -public final class SpeechRecognitionAlternative extends - com.google.protobuf.GeneratedMessageV3 implements +public final class SpeechRecognitionAlternative extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v1.SpeechRecognitionAlternative) SpeechRecognitionAlternativeOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use SpeechRecognitionAlternative.newBuilder() to construct. private SpeechRecognitionAlternative(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private SpeechRecognitionAlternative() { transcript_ = ""; words_ = java.util.Collections.emptyList(); @@ -26,16 +44,15 @@ private SpeechRecognitionAlternative() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new SpeechRecognitionAlternative(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private SpeechRecognitionAlternative( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,40 +72,42 @@ private SpeechRecognitionAlternative( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - transcript_ = s; - break; - } - case 21: { + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - confidence_ = input.readFloat(); - break; - } - case 26: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - words_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + transcript_ = s; + break; } - words_.add( - input.readMessage(com.google.cloud.speech.v1.WordInfo.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 21: + { + confidence_ = input.readFloat(); + break; + } + case 26: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + words_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + words_.add( + input.readMessage( + com.google.cloud.speech.v1.WordInfo.parser(), extensionRegistry)); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { words_ = java.util.Collections.unmodifiableList(words_); @@ -97,27 +116,33 @@ private SpeechRecognitionAlternative( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_SpeechRecognitionAlternative_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1.SpeechProto + .internal_static_google_cloud_speech_v1_SpeechRecognitionAlternative_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_SpeechRecognitionAlternative_fieldAccessorTable + return com.google.cloud.speech.v1.SpeechProto + .internal_static_google_cloud_speech_v1_SpeechRecognitionAlternative_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1.SpeechRecognitionAlternative.class, com.google.cloud.speech.v1.SpeechRecognitionAlternative.Builder.class); + com.google.cloud.speech.v1.SpeechRecognitionAlternative.class, + com.google.cloud.speech.v1.SpeechRecognitionAlternative.Builder.class); } public static final int TRANSCRIPT_FIELD_NUMBER = 1; private volatile java.lang.Object transcript_; /** + * + * *
    * Transcript text representing the words that the user spoke.
    * 
* * string transcript = 1; + * * @return The transcript. */ @java.lang.Override @@ -126,29 +151,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 { @@ -159,6 +184,8 @@ public java.lang.String getTranscript() { public static final int CONFIDENCE_FIELD_NUMBER = 2; private float confidence_; /** + * + * *
    * The confidence estimate between 0.0 and 1.0. A higher number
    * indicates an estimated greater likelihood that the recognized words are
@@ -170,6 +197,7 @@ public java.lang.String getTranscript() {
    * 
* * float confidence = 2; + * * @return The confidence. */ @java.lang.Override @@ -180,6 +208,8 @@ public float getConfidence() { public static final int WORDS_FIELD_NUMBER = 3; private java.util.List words_; /** + * + * *
    * A list of word-specific information for each recognized word.
    * Note: When `enable_speaker_diarization` is true, you will see all the words
@@ -193,6 +223,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
@@ -202,11 +234,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
@@ -220,6 +254,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
@@ -233,6 +269,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
@@ -242,12 +280,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;
@@ -259,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 {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(transcript_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, transcript_);
     }
@@ -283,12 +320,10 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, transcript_);
     }
     if (confidence_ != 0F) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeFloatSize(2, confidence_);
+      size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, confidence_);
     }
     for (int i = 0; i < words_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(3, words_.get(i));
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, words_.get(i));
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -298,20 +333,18 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.speech.v1.SpeechRecognitionAlternative)) {
       return super.equals(obj);
     }
-    com.google.cloud.speech.v1.SpeechRecognitionAlternative other = (com.google.cloud.speech.v1.SpeechRecognitionAlternative) obj;
+    com.google.cloud.speech.v1.SpeechRecognitionAlternative other =
+        (com.google.cloud.speech.v1.SpeechRecognitionAlternative) obj;
 
-    if (!getTranscript()
-        .equals(other.getTranscript())) return false;
+    if (!getTranscript().equals(other.getTranscript())) return false;
     if (java.lang.Float.floatToIntBits(getConfidence())
-        != java.lang.Float.floatToIntBits(
-            other.getConfidence())) return false;
-    if (!getWordsList()
-        .equals(other.getWordsList())) return false;
+        != java.lang.Float.floatToIntBits(other.getConfidence())) return false;
+    if (!getWordsList().equals(other.getWordsList())) return false;
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
   }
@@ -326,8 +359,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();
@@ -338,117 +370,127 @@ public int hashCode() {
   }
 
   public static com.google.cloud.speech.v1.SpeechRecognitionAlternative parseFrom(
-      java.nio.ByteBuffer data)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.speech.v1.SpeechRecognitionAlternative parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.speech.v1.SpeechRecognitionAlternative parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.speech.v1.SpeechRecognitionAlternative parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.speech.v1.SpeechRecognitionAlternative parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.speech.v1.SpeechRecognitionAlternative parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.speech.v1.SpeechRecognitionAlternative parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.speech.v1.SpeechRecognitionAlternative parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.speech.v1.SpeechRecognitionAlternative parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
-  public static com.google.cloud.speech.v1.SpeechRecognitionAlternative parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+
+  public static com.google.cloud.speech.v1.SpeechRecognitionAlternative parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.speech.v1.SpeechRecognitionAlternative parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.speech.v1.SpeechRecognitionAlternative parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.speech.v1.SpeechRecognitionAlternative parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-  public static Builder newBuilder(com.google.cloud.speech.v1.SpeechRecognitionAlternative prototype) {
+
+  public static Builder newBuilder(
+      com.google.cloud.speech.v1.SpeechRecognitionAlternative prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * Alternative hypotheses (a.k.a. n-best list).
    * 
* * Protobuf type {@code google.cloud.speech.v1.SpeechRecognitionAlternative} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1.SpeechRecognitionAlternative) com.google.cloud.speech.v1.SpeechRecognitionAlternativeOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_SpeechRecognitionAlternative_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1.SpeechProto + .internal_static_google_cloud_speech_v1_SpeechRecognitionAlternative_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_SpeechRecognitionAlternative_fieldAccessorTable + return com.google.cloud.speech.v1.SpeechProto + .internal_static_google_cloud_speech_v1_SpeechRecognitionAlternative_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1.SpeechRecognitionAlternative.class, com.google.cloud.speech.v1.SpeechRecognitionAlternative.Builder.class); + com.google.cloud.speech.v1.SpeechRecognitionAlternative.class, + com.google.cloud.speech.v1.SpeechRecognitionAlternative.Builder.class); } // Construct using com.google.cloud.speech.v1.SpeechRecognitionAlternative.newBuilder() @@ -456,17 +498,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getWordsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -484,9 +526,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 @@ -505,7 +547,8 @@ public com.google.cloud.speech.v1.SpeechRecognitionAlternative build() { @java.lang.Override public com.google.cloud.speech.v1.SpeechRecognitionAlternative buildPartial() { - com.google.cloud.speech.v1.SpeechRecognitionAlternative result = new com.google.cloud.speech.v1.SpeechRecognitionAlternative(this); + com.google.cloud.speech.v1.SpeechRecognitionAlternative result = + new com.google.cloud.speech.v1.SpeechRecognitionAlternative(this); int from_bitField0_ = bitField0_; result.transcript_ = transcript_; result.confidence_ = confidence_; @@ -526,38 +569,39 @@ public com.google.cloud.speech.v1.SpeechRecognitionAlternative buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.speech.v1.SpeechRecognitionAlternative) { - return mergeFrom((com.google.cloud.speech.v1.SpeechRecognitionAlternative)other); + return mergeFrom((com.google.cloud.speech.v1.SpeechRecognitionAlternative) other); } else { super.mergeFrom(other); return this; @@ -565,7 +609,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.speech.v1.SpeechRecognitionAlternative other) { - if (other == com.google.cloud.speech.v1.SpeechRecognitionAlternative.getDefaultInstance()) return this; + if (other == com.google.cloud.speech.v1.SpeechRecognitionAlternative.getDefaultInstance()) + return this; if (!other.getTranscript().isEmpty()) { transcript_ = other.transcript_; onChanged(); @@ -591,9 +636,10 @@ public Builder mergeFrom(com.google.cloud.speech.v1.SpeechRecognitionAlternative wordsBuilder_ = null; words_ = other.words_; bitField0_ = (bitField0_ & ~0x00000001); - wordsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getWordsFieldBuilder() : null; + wordsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getWordsFieldBuilder() + : null; } else { wordsBuilder_.addAllMessages(other.words_); } @@ -618,7 +664,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.speech.v1.SpeechRecognitionAlternative) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.speech.v1.SpeechRecognitionAlternative) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -627,22 +674,25 @@ public Builder mergeFrom( } 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; @@ -651,20 +701,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 { @@ -672,61 +723,70 @@ 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) { + public Builder setTranscript(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + transcript_ = value; onChanged(); return this; } /** + * + * *
      * Transcript text representing the words that the user spoke.
      * 
* * string transcript = 1; + * * @return This builder for chaining. */ public Builder clearTranscript() { - + transcript_ = getDefaultInstance().getTranscript(); onChanged(); return this; } /** + * + * *
      * Transcript text representing the words that the user spoke.
      * 
* * string transcript = 1; + * * @param value The bytes for transcript to set. * @return This builder for chaining. */ - public Builder setTranscriptBytes( - com.google.protobuf.ByteString value) { + public Builder setTranscriptBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + transcript_ = value; onChanged(); return this; } - private float confidence_ ; + private float confidence_; /** + * + * *
      * The confidence estimate between 0.0 and 1.0. A higher number
      * indicates an estimated greater likelihood that the recognized words are
@@ -738,6 +798,7 @@ public Builder setTranscriptBytes(
      * 
* * float confidence = 2; + * * @return The confidence. */ @java.lang.Override @@ -745,6 +806,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
@@ -756,16 +819,19 @@ public float getConfidence() {
      * 
* * float confidence = 2; + * * @param value The confidence to set. * @return This builder for chaining. */ public Builder setConfidence(float value) { - + confidence_ = value; onChanged(); return this; } /** + * + * *
      * The confidence estimate between 0.0 and 1.0. A higher number
      * indicates an estimated greater likelihood that the recognized words are
@@ -777,28 +843,35 @@ public Builder setConfidence(float value) {
      * 
* * float confidence = 2; + * * @return This builder for chaining. */ public Builder clearConfidence() { - + confidence_ = 0F; onChanged(); return this; } private java.util.List words_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureWordsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { words_ = new java.util.ArrayList(words_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.speech.v1.WordInfo, com.google.cloud.speech.v1.WordInfo.Builder, com.google.cloud.speech.v1.WordInfoOrBuilder> wordsBuilder_; + com.google.cloud.speech.v1.WordInfo, + com.google.cloud.speech.v1.WordInfo.Builder, + com.google.cloud.speech.v1.WordInfoOrBuilder> + wordsBuilder_; /** + * + * *
      * A list of word-specific information for each recognized word.
      * Note: When `enable_speaker_diarization` is true, you will see all the words
@@ -815,6 +888,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
@@ -831,6 +906,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
@@ -847,6 +924,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
@@ -855,8 +934,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();
@@ -870,6 +948,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
@@ -890,6 +970,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
@@ -912,6 +994,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
@@ -920,8 +1004,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();
@@ -935,6 +1018,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
@@ -943,8 +1028,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());
@@ -955,6 +1039,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
@@ -975,6 +1061,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
@@ -987,8 +1075,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 +1083,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
@@ -1015,6 +1104,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
@@ -1034,6 +1125,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
@@ -1042,11 +1135,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
@@ -1055,14 +1149,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
@@ -1071,8 +1167,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 {
@@ -1080,6 +1176,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
@@ -1089,10 +1187,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
@@ -1101,12 +1201,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
@@ -1115,27 +1216,29 @@ public com.google.cloud.speech.v1.WordInfo.Builder addWordsBuilder(
      *
      * repeated .google.cloud.speech.v1.WordInfo words = 3;
      */
-    public java.util.List 
-         getWordsBuilderList() {
+    public java.util.List getWordsBuilderList() {
       return getWordsFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.speech.v1.WordInfo, com.google.cloud.speech.v1.WordInfo.Builder, com.google.cloud.speech.v1.WordInfoOrBuilder> 
+            com.google.cloud.speech.v1.WordInfo,
+            com.google.cloud.speech.v1.WordInfo.Builder,
+            com.google.cloud.speech.v1.WordInfoOrBuilder>
         getWordsFieldBuilder() {
       if (wordsBuilder_ == null) {
-        wordsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.speech.v1.WordInfo, com.google.cloud.speech.v1.WordInfo.Builder, com.google.cloud.speech.v1.WordInfoOrBuilder>(
-                words_,
-                ((bitField0_ & 0x00000001) != 0),
-                getParentForChildren(),
-                isClean());
+        wordsBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.cloud.speech.v1.WordInfo,
+                com.google.cloud.speech.v1.WordInfo.Builder,
+                com.google.cloud.speech.v1.WordInfoOrBuilder>(
+                words_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
         words_ = null;
       }
       return wordsBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1145,12 +1248,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();
   }
@@ -1159,16 +1262,16 @@ public static com.google.cloud.speech.v1.SpeechRecognitionAlternative getDefault
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public SpeechRecognitionAlternative parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return new SpeechRecognitionAlternative(input, extensionRegistry);
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public SpeechRecognitionAlternative parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          return new SpeechRecognitionAlternative(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1183,6 +1286,4 @@ public com.google.protobuf.Parser getParserForType
   public com.google.cloud.speech.v1.SpeechRecognitionAlternative getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechRecognitionAlternativeOrBuilder.java b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechRecognitionAlternativeOrBuilder.java
similarity index 76%
rename from owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechRecognitionAlternativeOrBuilder.java
rename to proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechRecognitionAlternativeOrBuilder.java
index 1a8cbc08f..fba8255dd 100644
--- a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechRecognitionAlternativeOrBuilder.java
+++ b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechRecognitionAlternativeOrBuilder.java
@@ -1,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/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.
    * 
* * 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
@@ -39,11 +62,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
@@ -52,9 +78,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
@@ -65,6 +92,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
@@ -75,6 +104,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
@@ -83,9 +114,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
@@ -94,6 +126,5 @@ public interface SpeechRecognitionAlternativeOrBuilder extends
    *
    * repeated .google.cloud.speech.v1.WordInfo words = 3;
    */
-  com.google.cloud.speech.v1.WordInfoOrBuilder getWordsOrBuilder(
-      int index);
+  com.google.cloud.speech.v1.WordInfoOrBuilder getWordsOrBuilder(int index);
 }
diff --git a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechRecognitionResult.java b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechRecognitionResult.java
similarity index 76%
rename from owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechRecognitionResult.java
rename to proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechRecognitionResult.java
index 24da9952e..6b55b9514 100644
--- a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechRecognitionResult.java
+++ b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechRecognitionResult.java
@@ -1,24 +1,42 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/speech/v1/cloud_speech.proto
 
 package com.google.cloud.speech.v1;
 
 /**
+ *
+ *
  * 
  * A speech recognition result corresponding to a portion of the audio.
  * 
* * Protobuf type {@code google.cloud.speech.v1.SpeechRecognitionResult} */ -public final class SpeechRecognitionResult extends - com.google.protobuf.GeneratedMessageV3 implements +public final class SpeechRecognitionResult extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v1.SpeechRecognitionResult) SpeechRecognitionResultOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use SpeechRecognitionResult.newBuilder() to construct. private SpeechRecognitionResult(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private SpeechRecognitionResult() { alternatives_ = java.util.Collections.emptyList(); languageCode_ = ""; @@ -26,16 +44,15 @@ private SpeechRecognitionResult() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new SpeechRecognitionResult(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private SpeechRecognitionResult( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,53 +72,60 @@ private SpeechRecognitionResult( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - alternatives_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + alternatives_ = + new java.util.ArrayList< + com.google.cloud.speech.v1.SpeechRecognitionAlternative>(); + mutable_bitField0_ |= 0x00000001; + } + alternatives_.add( + input.readMessage( + com.google.cloud.speech.v1.SpeechRecognitionAlternative.parser(), + extensionRegistry)); + break; } - alternatives_.add( - input.readMessage(com.google.cloud.speech.v1.SpeechRecognitionAlternative.parser(), extensionRegistry)); - break; - } - case 16: { - - channelTag_ = input.readInt32(); - break; - } - case 34: { - com.google.protobuf.Duration.Builder subBuilder = null; - if (resultEndTime_ != null) { - subBuilder = resultEndTime_.toBuilder(); - } - resultEndTime_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(resultEndTime_); - resultEndTime_ = subBuilder.buildPartial(); + case 16: + { + channelTag_ = input.readInt32(); + break; } + case 34: + { + com.google.protobuf.Duration.Builder subBuilder = null; + if (resultEndTime_ != null) { + subBuilder = resultEndTime_.toBuilder(); + } + resultEndTime_ = + input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(resultEndTime_); + resultEndTime_ = subBuilder.buildPartial(); + } - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); - languageCode_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + languageCode_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { alternatives_ = java.util.Collections.unmodifiableList(alternatives_); @@ -110,22 +134,27 @@ private SpeechRecognitionResult( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_SpeechRecognitionResult_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1.SpeechProto + .internal_static_google_cloud_speech_v1_SpeechRecognitionResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_SpeechRecognitionResult_fieldAccessorTable + return com.google.cloud.speech.v1.SpeechProto + .internal_static_google_cloud_speech_v1_SpeechRecognitionResult_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1.SpeechRecognitionResult.class, com.google.cloud.speech.v1.SpeechRecognitionResult.Builder.class); + com.google.cloud.speech.v1.SpeechRecognitionResult.class, + com.google.cloud.speech.v1.SpeechRecognitionResult.Builder.class); } public static final int ALTERNATIVES_FIELD_NUMBER = 1; private java.util.List alternatives_; /** + * + * *
    * May contain one or more recognition hypotheses (up to the
    * maximum specified in `max_alternatives`).
@@ -136,10 +165,13 @@ private SpeechRecognitionResult(
    * repeated .google.cloud.speech.v1.SpeechRecognitionAlternative alternatives = 1;
    */
   @java.lang.Override
-  public java.util.List getAlternativesList() {
+  public java.util.List
+      getAlternativesList() {
     return alternatives_;
   }
   /**
+   *
+   *
    * 
    * May contain one or more recognition hypotheses (up to the
    * maximum specified in `max_alternatives`).
@@ -150,11 +182,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`).
@@ -169,6 +203,8 @@ public int getAlternativesCount() {
     return alternatives_.size();
   }
   /**
+   *
+   *
    * 
    * May contain one or more recognition hypotheses (up to the
    * maximum specified in `max_alternatives`).
@@ -183,6 +219,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`).
@@ -201,6 +239,8 @@ public com.google.cloud.speech.v1.SpeechRecognitionAlternativeOrBuilder getAlter
   public static final int CHANNEL_TAG_FIELD_NUMBER = 2;
   private int channelTag_;
   /**
+   *
+   *
    * 
    * For multi-channel audio, this is the channel number corresponding to the
    * recognized result for the audio from that channel.
@@ -208,6 +248,7 @@ public com.google.cloud.speech.v1.SpeechRecognitionAlternativeOrBuilder getAlter
    * 
* * int32 channel_tag = 2; + * * @return The channelTag. */ @java.lang.Override @@ -218,12 +259,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 @@ -231,19 +275,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.
@@ -259,6 +310,8 @@ public com.google.protobuf.DurationOrBuilder getResultEndTimeOrBuilder() {
   public static final int LANGUAGE_CODE_FIELD_NUMBER = 5;
   private volatile java.lang.Object languageCode_;
   /**
+   *
+   *
    * 
    * Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag
    * of the language in this result. This language code was detected to have
@@ -266,6 +319,7 @@ public com.google.protobuf.DurationOrBuilder getResultEndTimeOrBuilder() {
    * 
* * string language_code = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The languageCode. */ @java.lang.Override @@ -274,14 +328,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
@@ -289,16 +344,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 { @@ -307,6 +361,7 @@ public java.lang.String getLanguageCode() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -318,8 +373,7 @@ public final boolean isInitialized() { } @java.lang.Override - 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)); } @@ -342,16 +396,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_); @@ -364,24 +415,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1.SpeechRecognitionResult)) { return super.equals(obj); } - com.google.cloud.speech.v1.SpeechRecognitionResult other = (com.google.cloud.speech.v1.SpeechRecognitionResult) obj; + com.google.cloud.speech.v1.SpeechRecognitionResult other = + (com.google.cloud.speech.v1.SpeechRecognitionResult) obj; - if (!getAlternativesList() - .equals(other.getAlternativesList())) return false; - if (getChannelTag() - != other.getChannelTag()) return false; + if (!getAlternativesList().equals(other.getAlternativesList())) return false; + if (getChannelTag() != other.getChannelTag()) return false; if (hasResultEndTime() != other.hasResultEndTime()) return false; if (hasResultEndTime()) { - if (!getResultEndTime() - .equals(other.getResultEndTime())) return false; + if (!getResultEndTime().equals(other.getResultEndTime())) return false; } - if (!getLanguageCode() - .equals(other.getLanguageCode())) return false; + if (!getLanguageCode().equals(other.getLanguageCode())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -411,117 +459,126 @@ public int hashCode() { } public static com.google.cloud.speech.v1.SpeechRecognitionResult parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1.SpeechRecognitionResult parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1.SpeechRecognitionResult parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1.SpeechRecognitionResult parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1.SpeechRecognitionResult parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1.SpeechRecognitionResult parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1.SpeechRecognitionResult parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1.SpeechRecognitionResult parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1.SpeechRecognitionResult parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1.SpeechRecognitionResult parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1.SpeechRecognitionResult parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1.SpeechRecognitionResult parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.speech.v1.SpeechRecognitionResult parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1.SpeechRecognitionResult parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.speech.v1.SpeechRecognitionResult prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A speech recognition result corresponding to a portion of the audio.
    * 
* * Protobuf type {@code google.cloud.speech.v1.SpeechRecognitionResult} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1.SpeechRecognitionResult) com.google.cloud.speech.v1.SpeechRecognitionResultOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_SpeechRecognitionResult_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1.SpeechProto + .internal_static_google_cloud_speech_v1_SpeechRecognitionResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_SpeechRecognitionResult_fieldAccessorTable + return com.google.cloud.speech.v1.SpeechProto + .internal_static_google_cloud_speech_v1_SpeechRecognitionResult_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1.SpeechRecognitionResult.class, com.google.cloud.speech.v1.SpeechRecognitionResult.Builder.class); + com.google.cloud.speech.v1.SpeechRecognitionResult.class, + com.google.cloud.speech.v1.SpeechRecognitionResult.Builder.class); } // Construct using com.google.cloud.speech.v1.SpeechRecognitionResult.newBuilder() @@ -529,17 +586,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getAlternativesFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -563,9 +620,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 @@ -584,7 +641,8 @@ public com.google.cloud.speech.v1.SpeechRecognitionResult build() { @java.lang.Override public com.google.cloud.speech.v1.SpeechRecognitionResult buildPartial() { - com.google.cloud.speech.v1.SpeechRecognitionResult result = new com.google.cloud.speech.v1.SpeechRecognitionResult(this); + com.google.cloud.speech.v1.SpeechRecognitionResult result = + new com.google.cloud.speech.v1.SpeechRecognitionResult(this); int from_bitField0_ = bitField0_; if (alternativesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -610,38 +668,39 @@ public com.google.cloud.speech.v1.SpeechRecognitionResult buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.speech.v1.SpeechRecognitionResult) { - return mergeFrom((com.google.cloud.speech.v1.SpeechRecognitionResult)other); + return mergeFrom((com.google.cloud.speech.v1.SpeechRecognitionResult) other); } else { super.mergeFrom(other); return this; @@ -649,7 +708,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()) { @@ -668,9 +728,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_); } @@ -705,7 +766,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.speech.v1.SpeechRecognitionResult) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.speech.v1.SpeechRecognitionResult) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -714,21 +776,30 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.util.List alternatives_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureAlternativesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - alternatives_ = new java.util.ArrayList(alternatives_); + alternatives_ = + new java.util.ArrayList( + alternatives_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.speech.v1.SpeechRecognitionAlternative, com.google.cloud.speech.v1.SpeechRecognitionAlternative.Builder, com.google.cloud.speech.v1.SpeechRecognitionAlternativeOrBuilder> alternativesBuilder_; + com.google.cloud.speech.v1.SpeechRecognitionAlternative, + com.google.cloud.speech.v1.SpeechRecognitionAlternative.Builder, + com.google.cloud.speech.v1.SpeechRecognitionAlternativeOrBuilder> + alternativesBuilder_; /** + * + * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -738,7 +809,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 {
@@ -746,6 +818,8 @@ public java.util.List g
       }
     }
     /**
+     *
+     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -763,6 +837,8 @@ public int getAlternativesCount() {
       }
     }
     /**
+     *
+     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -780,6 +856,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`).
@@ -804,6 +882,8 @@ public Builder setAlternatives(
       return this;
     }
     /**
+     *
+     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -814,7 +894,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());
@@ -825,6 +906,8 @@ public Builder setAlternatives(
       return this;
     }
     /**
+     *
+     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -848,6 +931,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`).
@@ -872,6 +957,8 @@ public Builder addAlternatives(
       return this;
     }
     /**
+     *
+     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -893,6 +980,8 @@ public Builder addAlternatives(
       return this;
     }
     /**
+     *
+     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -903,7 +992,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());
@@ -914,6 +1004,8 @@ public Builder addAlternatives(
       return this;
     }
     /**
+     *
+     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -924,11 +1016,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);
@@ -936,6 +1028,8 @@ public Builder addAllAlternatives(
       return this;
     }
     /**
+     *
+     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -956,6 +1050,8 @@ public Builder clearAlternatives() {
       return this;
     }
     /**
+     *
+     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -976,6 +1072,8 @@ public Builder removeAlternatives(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -990,6 +1088,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`).
@@ -999,14 +1099,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`).
@@ -1016,8 +1119,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 {
@@ -1025,6 +1129,8 @@ public com.google.cloud.speech.v1.SpeechRecognitionAlternativeOrBuilder getAlter
       }
     }
     /**
+     *
+     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -1034,11 +1140,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`).
@@ -1050,10 +1159,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`).
@@ -1063,27 +1175,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.
@@ -1091,6 +1208,7 @@ public com.google.cloud.speech.v1.SpeechRecognitionAlternative.Builder addAltern
      * 
* * int32 channel_tag = 2; + * * @return The channelTag. */ @java.lang.Override @@ -1098,6 +1216,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.
@@ -1105,16 +1225,19 @@ public int getChannelTag() {
      * 
* * int32 channel_tag = 2; + * * @param value The channelTag to set. * @return This builder for chaining. */ public Builder setChannelTag(int value) { - + channelTag_ = value; onChanged(); return this; } /** + * + * *
      * For multi-channel audio, this is the channel number corresponding to the
      * recognized result for the audio from that channel.
@@ -1122,10 +1245,11 @@ public Builder setChannelTag(int value) {
      * 
* * int32 channel_tag = 2; + * * @return This builder for chaining. */ public Builder clearChannelTag() { - + channelTag_ = 0; onChanged(); return this; @@ -1133,36 +1257,49 @@ public Builder clearChannelTag() { private com.google.protobuf.Duration resultEndTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> resultEndTimeBuilder_; + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + resultEndTimeBuilder_; /** + * + * *
      * Time offset of the end of this result relative to the
      * beginning of the audio.
      * 
* * .google.protobuf.Duration result_end_time = 4; + * * @return Whether the resultEndTime field is set. */ public boolean hasResultEndTime() { return resultEndTimeBuilder_ != null || resultEndTime_ != null; } /** + * + * *
      * Time offset of the end of this result relative to the
      * beginning of the audio.
      * 
* * .google.protobuf.Duration result_end_time = 4; + * * @return The resultEndTime. */ public com.google.protobuf.Duration getResultEndTime() { if (resultEndTimeBuilder_ == null) { - return resultEndTime_ == null ? com.google.protobuf.Duration.getDefaultInstance() : resultEndTime_; + return resultEndTime_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : resultEndTime_; } else { return resultEndTimeBuilder_.getMessage(); } } /** + * + * *
      * Time offset of the end of this result relative to the
      * beginning of the audio.
@@ -1184,6 +1321,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.
@@ -1191,8 +1330,7 @@ public Builder setResultEndTime(com.google.protobuf.Duration value) {
      *
      * .google.protobuf.Duration result_end_time = 4;
      */
-    public Builder setResultEndTime(
-        com.google.protobuf.Duration.Builder builderForValue) {
+    public Builder setResultEndTime(com.google.protobuf.Duration.Builder builderForValue) {
       if (resultEndTimeBuilder_ == null) {
         resultEndTime_ = builderForValue.build();
         onChanged();
@@ -1203,6 +1341,8 @@ public Builder setResultEndTime(
       return this;
     }
     /**
+     *
+     *
      * 
      * Time offset of the end of this result relative to the
      * beginning of the audio.
@@ -1214,7 +1354,9 @@ public Builder mergeResultEndTime(com.google.protobuf.Duration value) {
       if (resultEndTimeBuilder_ == null) {
         if (resultEndTime_ != null) {
           resultEndTime_ =
-            com.google.protobuf.Duration.newBuilder(resultEndTime_).mergeFrom(value).buildPartial();
+              com.google.protobuf.Duration.newBuilder(resultEndTime_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           resultEndTime_ = value;
         }
@@ -1226,6 +1368,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.
@@ -1245,6 +1389,8 @@ public Builder clearResultEndTime() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Time offset of the end of this result relative to the
      * beginning of the audio.
@@ -1253,11 +1399,13 @@ public Builder clearResultEndTime() {
      * .google.protobuf.Duration result_end_time = 4;
      */
     public com.google.protobuf.Duration.Builder getResultEndTimeBuilder() {
-      
+
       onChanged();
       return getResultEndTimeFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Time offset of the end of this result relative to the
      * beginning of the audio.
@@ -1269,11 +1417,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.
@@ -1282,14 +1433,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_;
@@ -1297,6 +1451,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
@@ -1304,13 +1460,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; @@ -1319,6 +1475,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
@@ -1326,15 +1484,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 { @@ -1342,6 +1499,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
@@ -1349,20 +1508,22 @@ public java.lang.String getLanguageCode() {
      * 
* * string language_code = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCode( - java.lang.String value) { + public Builder setLanguageCode(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + languageCode_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag
      * of the language in this result. This language code was detected to have
@@ -1370,15 +1531,18 @@ public Builder setLanguageCode(
      * 
* * string language_code = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearLanguageCode() { - + languageCode_ = getDefaultInstance().getLanguageCode(); onChanged(); return this; } /** + * + * *
      * Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag
      * of the language in this result. This language code was detected to have
@@ -1386,23 +1550,23 @@ public Builder clearLanguageCode() {
      * 
* * string language_code = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCodeBytes( - com.google.protobuf.ByteString value) { + public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + languageCode_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1412,12 +1576,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(); } @@ -1426,16 +1590,16 @@ public static com.google.cloud.speech.v1.SpeechRecognitionResult getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SpeechRecognitionResult parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SpeechRecognitionResult(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SpeechRecognitionResult parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SpeechRecognitionResult(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1450,6 +1614,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1.SpeechRecognitionResult getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechRecognitionResultOrBuilder.java b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechRecognitionResultOrBuilder.java similarity index 83% rename from owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechRecognitionResultOrBuilder.java rename to proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechRecognitionResultOrBuilder.java index aa2bef7b6..50085b974 100644 --- a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechRecognitionResultOrBuilder.java +++ b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechRecognitionResultOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1/cloud_speech.proto package com.google.cloud.speech.v1; -public interface SpeechRecognitionResultOrBuilder extends +public interface SpeechRecognitionResultOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1.SpeechRecognitionResult) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * May contain one or more recognition hypotheses (up to the
    * maximum specified in `max_alternatives`).
@@ -17,9 +35,10 @@ public interface SpeechRecognitionResultOrBuilder extends
    *
    * repeated .google.cloud.speech.v1.SpeechRecognitionAlternative alternatives = 1;
    */
-  java.util.List 
-      getAlternativesList();
+  java.util.List getAlternativesList();
   /**
+   *
+   *
    * 
    * May contain one or more recognition hypotheses (up to the
    * maximum specified in `max_alternatives`).
@@ -31,6 +50,8 @@ public interface SpeechRecognitionResultOrBuilder extends
    */
   com.google.cloud.speech.v1.SpeechRecognitionAlternative getAlternatives(int index);
   /**
+   *
+   *
    * 
    * May contain one or more recognition hypotheses (up to the
    * maximum specified in `max_alternatives`).
@@ -42,6 +63,8 @@ public interface SpeechRecognitionResultOrBuilder extends
    */
   int getAlternativesCount();
   /**
+   *
+   *
    * 
    * May contain one or more recognition hypotheses (up to the
    * maximum specified in `max_alternatives`).
@@ -51,9 +74,11 @@ public interface SpeechRecognitionResultOrBuilder extends
    *
    * repeated .google.cloud.speech.v1.SpeechRecognitionAlternative alternatives = 1;
    */
-  java.util.List 
+  java.util.List
       getAlternativesOrBuilderList();
   /**
+   *
+   *
    * 
    * May contain one or more recognition hypotheses (up to the
    * maximum specified in `max_alternatives`).
@@ -67,6 +92,8 @@ com.google.cloud.speech.v1.SpeechRecognitionAlternativeOrBuilder getAlternatives
       int index);
 
   /**
+   *
+   *
    * 
    * For multi-channel audio, this is the channel number corresponding to the
    * recognized result for the audio from that channel.
@@ -74,31 +101,40 @@ com.google.cloud.speech.v1.SpeechRecognitionAlternativeOrBuilder getAlternatives
    * 
* * int32 channel_tag = 2; + * * @return The channelTag. */ int getChannelTag(); /** + * + * *
    * Time offset of the end of this result relative to the
    * beginning of the audio.
    * 
* * .google.protobuf.Duration result_end_time = 4; + * * @return Whether the resultEndTime field is set. */ boolean hasResultEndTime(); /** + * + * *
    * Time offset of the end of this result relative to the
    * beginning of the audio.
    * 
* * .google.protobuf.Duration result_end_time = 4; + * * @return The resultEndTime. */ com.google.protobuf.Duration getResultEndTime(); /** + * + * *
    * Time offset of the end of this result relative to the
    * beginning of the audio.
@@ -109,6 +145,8 @@ com.google.cloud.speech.v1.SpeechRecognitionAlternativeOrBuilder getAlternatives
   com.google.protobuf.DurationOrBuilder getResultEndTimeOrBuilder();
 
   /**
+   *
+   *
    * 
    * Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag
    * of the language in this result. This language code was detected to have
@@ -116,10 +154,13 @@ com.google.cloud.speech.v1.SpeechRecognitionAlternativeOrBuilder getAlternatives
    * 
* * string language_code = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The languageCode. */ java.lang.String getLanguageCode(); /** + * + * *
    * Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag
    * of the language in this result. This language code was detected to have
@@ -127,8 +168,8 @@ com.google.cloud.speech.v1.SpeechRecognitionAlternativeOrBuilder getAlternatives
    * 
* * string language_code = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for languageCode. */ - com.google.protobuf.ByteString - getLanguageCodeBytes(); + com.google.protobuf.ByteString getLanguageCodeBytes(); } diff --git a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechResourceProto.java b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechResourceProto.java new file mode 100644 index 000000000..0eeef5bbd --- /dev/null +++ b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechResourceProto.java @@ -0,0 +1,140 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/speech/v1/resource.proto + +package com.google.cloud.speech.v1; + +public final class SpeechResourceProto { + private SpeechResourceProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1_CustomClass_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1_CustomClass_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1_CustomClass_ClassItem_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1_CustomClass_ClassItem_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1_PhraseSet_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1_PhraseSet_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1_PhraseSet_Phrase_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1_PhraseSet_Phrase_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1_SpeechAdaptation_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1_SpeechAdaptation_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n%google/cloud/speech/v1/resource.proto\022" + + "\026google.cloud.speech.v1\032\031google/api/reso" + + "urce.proto\"\374\001\n\013CustomClass\022\014\n\004name\030\001 \001(\t" + + "\022\027\n\017custom_class_id\030\002 \001(\t\022<\n\005items\030\003 \003(\013" + + "2-.google.cloud.speech.v1.CustomClass.Cl" + + "assItem\032\032\n\tClassItem\022\r\n\005value\030\001 \001(\t:l\352Ai" + + "\n!speech.googleapis.com/CustomClass\022Dpro" + + "jects/{project}/locations/{location}/cus" + + "tomClasses/{custom_class}\"\362\001\n\tPhraseSet\022" + + "\014\n\004name\030\001 \001(\t\0229\n\007phrases\030\002 \003(\0132(.google." + + "cloud.speech.v1.PhraseSet.Phrase\022\r\n\005boos" + + "t\030\004 \001(\002\032&\n\006Phrase\022\r\n\005value\030\001 \001(\t\022\r\n\005boos" + + "t\030\002 \001(\002:e\352Ab\n\037speech.googleapis.com/Phra" + + "seSet\022?projects/{project}/locations/{loc" + + "ation}/phraseSets/{phrase_set}\"\314\001\n\020Speec" + + "hAdaptation\0226\n\013phrase_sets\030\001 \003(\0132!.googl" + + "e.cloud.speech.v1.PhraseSet\022C\n\025phrase_se" + + "t_references\030\002 \003(\tB$\372A!\n\037speech.googleap" + + "is.com/PhraseSet\022;\n\016custom_classes\030\003 \003(\013" + + "2#.google.cloud.speech.v1.CustomClassBz\n" + + "\032com.google.cloud.speech.v1B\023SpeechResou" + + "rceProtoP\001Z * Provides information to the recognizer that specifies how to process the * request. @@ -11,30 +28,29 @@ * * Protobuf type {@code google.cloud.speech.v1.StreamingRecognitionConfig} */ -public final class StreamingRecognitionConfig extends - com.google.protobuf.GeneratedMessageV3 implements +public final class StreamingRecognitionConfig extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v1.StreamingRecognitionConfig) StreamingRecognitionConfigOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use StreamingRecognitionConfig.newBuilder() to construct. private StreamingRecognitionConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private StreamingRecognitionConfig() { - } + + private StreamingRecognitionConfig() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new StreamingRecognitionConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private StreamingRecognitionConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,70 +69,80 @@ private StreamingRecognitionConfig( case 0: done = true; break; - case 10: { - com.google.cloud.speech.v1.RecognitionConfig.Builder subBuilder = null; - if (config_ != null) { - subBuilder = config_.toBuilder(); + case 10: + { + com.google.cloud.speech.v1.RecognitionConfig.Builder subBuilder = null; + if (config_ != null) { + subBuilder = config_.toBuilder(); + } + config_ = + input.readMessage( + com.google.cloud.speech.v1.RecognitionConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(config_); + config_ = subBuilder.buildPartial(); + } + + break; } - config_ = input.readMessage(com.google.cloud.speech.v1.RecognitionConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(config_); - config_ = subBuilder.buildPartial(); + case 16: + { + singleUtterance_ = input.readBool(); + break; } - - break; - } - case 16: { - - singleUtterance_ = input.readBool(); - break; - } - case 24: { - - interimResults_ = input.readBool(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 24: + { + interimResults_ = input.readBool(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_StreamingRecognitionConfig_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1.SpeechProto + .internal_static_google_cloud_speech_v1_StreamingRecognitionConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_StreamingRecognitionConfig_fieldAccessorTable + return com.google.cloud.speech.v1.SpeechProto + .internal_static_google_cloud_speech_v1_StreamingRecognitionConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1.StreamingRecognitionConfig.class, com.google.cloud.speech.v1.StreamingRecognitionConfig.Builder.class); + com.google.cloud.speech.v1.StreamingRecognitionConfig.class, + com.google.cloud.speech.v1.StreamingRecognitionConfig.Builder.class); } public static final int CONFIG_FIELD_NUMBER = 1; private com.google.cloud.speech.v1.RecognitionConfig config_; /** + * + * *
    * Required. Provides information to the recognizer that specifies how to
    * process the request.
    * 
* - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the config field is set. */ @java.lang.Override @@ -124,25 +150,36 @@ public boolean hasConfig() { return config_ != null; } /** + * + * *
    * Required. Provides information to the recognizer that specifies how to
    * process the request.
    * 
* - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The config. */ @java.lang.Override public com.google.cloud.speech.v1.RecognitionConfig getConfig() { - return config_ == null ? com.google.cloud.speech.v1.RecognitionConfig.getDefaultInstance() : config_; + return config_ == null + ? com.google.cloud.speech.v1.RecognitionConfig.getDefaultInstance() + : config_; } /** + * + * *
    * Required. Provides information to the recognizer that specifies how to
    * process the request.
    * 
* - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.speech.v1.RecognitionConfigOrBuilder getConfigOrBuilder() { @@ -152,6 +189,8 @@ public com.google.cloud.speech.v1.RecognitionConfigOrBuilder getConfigOrBuilder( public static final int SINGLE_UTTERANCE_FIELD_NUMBER = 2; private boolean singleUtterance_; /** + * + * *
    * If `false` or omitted, the recognizer will perform continuous
    * recognition (continuing to wait for and process audio even if the user
@@ -174,6 +213,7 @@ public com.google.cloud.speech.v1.RecognitionConfigOrBuilder getConfigOrBuilder(
    * 
* * bool single_utterance = 2; + * * @return The singleUtterance. */ @java.lang.Override @@ -184,6 +224,8 @@ public boolean getSingleUtterance() { public static final int INTERIM_RESULTS_FIELD_NUMBER = 3; private boolean interimResults_; /** + * + * *
    * If `true`, interim results (tentative hypotheses) may be
    * returned as they become available (these interim results are indicated with
@@ -192,6 +234,7 @@ public boolean getSingleUtterance() {
    * 
* * bool interim_results = 3; + * * @return The interimResults. */ @java.lang.Override @@ -200,6 +243,7 @@ public boolean getInterimResults() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -211,8 +255,7 @@ public final boolean isInitialized() { } @java.lang.Override - public 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()); } @@ -232,16 +275,13 @@ public int getSerializedSize() { size = 0; if (config_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getConfig()); } if (singleUtterance_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, singleUtterance_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, singleUtterance_); } if (interimResults_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(3, interimResults_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, interimResults_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -251,22 +291,20 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1.StreamingRecognitionConfig)) { return super.equals(obj); } - com.google.cloud.speech.v1.StreamingRecognitionConfig other = (com.google.cloud.speech.v1.StreamingRecognitionConfig) obj; + com.google.cloud.speech.v1.StreamingRecognitionConfig other = + (com.google.cloud.speech.v1.StreamingRecognitionConfig) obj; if (hasConfig() != other.hasConfig()) return false; if (hasConfig()) { - if (!getConfig() - .equals(other.getConfig())) return false; + if (!getConfig().equals(other.getConfig())) return false; } - if (getSingleUtterance() - != other.getSingleUtterance()) return false; - if (getInterimResults() - != other.getInterimResults()) return false; + if (getSingleUtterance() != other.getSingleUtterance()) return false; + if (getInterimResults() != other.getInterimResults()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -283,107 +321,113 @@ public int hashCode() { hash = (53 * hash) + getConfig().hashCode(); } hash = (37 * hash) + SINGLE_UTTERANCE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getSingleUtterance()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSingleUtterance()); hash = (37 * hash) + INTERIM_RESULTS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getInterimResults()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getInterimResults()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.speech.v1.StreamingRecognitionConfig parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1.StreamingRecognitionConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1.StreamingRecognitionConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1.StreamingRecognitionConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1.StreamingRecognitionConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1.StreamingRecognitionConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1.StreamingRecognitionConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1.StreamingRecognitionConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1.StreamingRecognitionConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1.StreamingRecognitionConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1.StreamingRecognitionConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1.StreamingRecognitionConfig parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.speech.v1.StreamingRecognitionConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1.StreamingRecognitionConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.speech.v1.StreamingRecognitionConfig prototype) { + + public static Builder newBuilder( + com.google.cloud.speech.v1.StreamingRecognitionConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Provides information to the recognizer that specifies how to process the
    * request.
@@ -391,21 +435,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.speech.v1.StreamingRecognitionConfig}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1.StreamingRecognitionConfig)
       com.google.cloud.speech.v1.StreamingRecognitionConfigOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_StreamingRecognitionConfig_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.speech.v1.SpeechProto
+          .internal_static_google_cloud_speech_v1_StreamingRecognitionConfig_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_StreamingRecognitionConfig_fieldAccessorTable
+      return com.google.cloud.speech.v1.SpeechProto
+          .internal_static_google_cloud_speech_v1_StreamingRecognitionConfig_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v1.StreamingRecognitionConfig.class, com.google.cloud.speech.v1.StreamingRecognitionConfig.Builder.class);
+              com.google.cloud.speech.v1.StreamingRecognitionConfig.class,
+              com.google.cloud.speech.v1.StreamingRecognitionConfig.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v1.StreamingRecognitionConfig.newBuilder()
@@ -413,16 +459,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -440,9 +485,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
@@ -461,7 +506,8 @@ public com.google.cloud.speech.v1.StreamingRecognitionConfig build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v1.StreamingRecognitionConfig buildPartial() {
-      com.google.cloud.speech.v1.StreamingRecognitionConfig result = new com.google.cloud.speech.v1.StreamingRecognitionConfig(this);
+      com.google.cloud.speech.v1.StreamingRecognitionConfig result =
+          new com.google.cloud.speech.v1.StreamingRecognitionConfig(this);
       if (configBuilder_ == null) {
         result.config_ = config_;
       } else {
@@ -477,38 +523,39 @@ public com.google.cloud.speech.v1.StreamingRecognitionConfig buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.speech.v1.StreamingRecognitionConfig) {
-        return mergeFrom((com.google.cloud.speech.v1.StreamingRecognitionConfig)other);
+        return mergeFrom((com.google.cloud.speech.v1.StreamingRecognitionConfig) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -516,7 +563,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());
       }
@@ -545,7 +593,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.speech.v1.StreamingRecognitionConfig) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.speech.v1.StreamingRecognitionConfig) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -557,42 +606,61 @@ public Builder mergeFrom(
 
     private com.google.cloud.speech.v1.RecognitionConfig config_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.speech.v1.RecognitionConfig, com.google.cloud.speech.v1.RecognitionConfig.Builder, com.google.cloud.speech.v1.RecognitionConfigOrBuilder> configBuilder_;
+            com.google.cloud.speech.v1.RecognitionConfig,
+            com.google.cloud.speech.v1.RecognitionConfig.Builder,
+            com.google.cloud.speech.v1.RecognitionConfigOrBuilder>
+        configBuilder_;
     /**
+     *
+     *
      * 
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the config field is set. */ public boolean hasConfig() { return configBuilder_ != null || config_ != null; } /** + * + * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The config. */ public com.google.cloud.speech.v1.RecognitionConfig getConfig() { if (configBuilder_ == null) { - return config_ == null ? com.google.cloud.speech.v1.RecognitionConfig.getDefaultInstance() : config_; + return config_ == null + ? com.google.cloud.speech.v1.RecognitionConfig.getDefaultInstance() + : config_; } else { return configBuilder_.getMessage(); } } /** + * + * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setConfig(com.google.cloud.speech.v1.RecognitionConfig value) { if (configBuilder_ == null) { @@ -608,15 +676,18 @@ public Builder setConfig(com.google.cloud.speech.v1.RecognitionConfig value) { return this; } /** + * + * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setConfig( - com.google.cloud.speech.v1.RecognitionConfig.Builder builderForValue) { + public Builder setConfig(com.google.cloud.speech.v1.RecognitionConfig.Builder builderForValue) { if (configBuilder_ == null) { config_ = builderForValue.build(); onChanged(); @@ -627,18 +698,24 @@ public Builder setConfig( return this; } /** + * + * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeConfig(com.google.cloud.speech.v1.RecognitionConfig value) { if (configBuilder_ == null) { if (config_ != null) { config_ = - com.google.cloud.speech.v1.RecognitionConfig.newBuilder(config_).mergeFrom(value).buildPartial(); + com.google.cloud.speech.v1.RecognitionConfig.newBuilder(config_) + .mergeFrom(value) + .buildPartial(); } else { config_ = value; } @@ -650,12 +727,16 @@ public Builder mergeConfig(com.google.cloud.speech.v1.RecognitionConfig value) { return this; } /** + * + * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearConfig() { if (configBuilder_ == null) { @@ -669,58 +750,76 @@ public Builder clearConfig() { return this; } /** + * + * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.speech.v1.RecognitionConfig.Builder getConfigBuilder() { - + onChanged(); return getConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.speech.v1.RecognitionConfigOrBuilder getConfigOrBuilder() { if (configBuilder_ != null) { return configBuilder_.getMessageOrBuilder(); } else { - return config_ == null ? - com.google.cloud.speech.v1.RecognitionConfig.getDefaultInstance() : config_; + return config_ == null + ? com.google.cloud.speech.v1.RecognitionConfig.getDefaultInstance() + : config_; } } /** + * + * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1.RecognitionConfig, com.google.cloud.speech.v1.RecognitionConfig.Builder, com.google.cloud.speech.v1.RecognitionConfigOrBuilder> + com.google.cloud.speech.v1.RecognitionConfig, + com.google.cloud.speech.v1.RecognitionConfig.Builder, + com.google.cloud.speech.v1.RecognitionConfigOrBuilder> getConfigFieldBuilder() { if (configBuilder_ == null) { - configBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1.RecognitionConfig, com.google.cloud.speech.v1.RecognitionConfig.Builder, com.google.cloud.speech.v1.RecognitionConfigOrBuilder>( - getConfig(), - getParentForChildren(), - isClean()); + configBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v1.RecognitionConfig, + com.google.cloud.speech.v1.RecognitionConfig.Builder, + com.google.cloud.speech.v1.RecognitionConfigOrBuilder>( + getConfig(), getParentForChildren(), isClean()); config_ = null; } return configBuilder_; } - private boolean singleUtterance_ ; + private boolean singleUtterance_; /** + * + * *
      * If `false` or omitted, the recognizer will perform continuous
      * recognition (continuing to wait for and process audio even if the user
@@ -743,6 +842,7 @@ public com.google.cloud.speech.v1.RecognitionConfigOrBuilder getConfigOrBuilder(
      * 
* * bool single_utterance = 2; + * * @return The singleUtterance. */ @java.lang.Override @@ -750,6 +850,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
@@ -772,16 +874,19 @@ public boolean getSingleUtterance() {
      * 
* * bool single_utterance = 2; + * * @param value The singleUtterance to set. * @return This builder for chaining. */ public Builder setSingleUtterance(boolean value) { - + singleUtterance_ = value; onChanged(); return this; } /** + * + * *
      * If `false` or omitted, the recognizer will perform continuous
      * recognition (continuing to wait for and process audio even if the user
@@ -804,17 +909,20 @@ public Builder setSingleUtterance(boolean value) {
      * 
* * bool single_utterance = 2; + * * @return This builder for chaining. */ public Builder clearSingleUtterance() { - + singleUtterance_ = false; onChanged(); return this; } - private boolean interimResults_ ; + private boolean interimResults_; /** + * + * *
      * If `true`, interim results (tentative hypotheses) may be
      * returned as they become available (these interim results are indicated with
@@ -823,6 +931,7 @@ public Builder clearSingleUtterance() {
      * 
* * bool interim_results = 3; + * * @return The interimResults. */ @java.lang.Override @@ -830,6 +939,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
@@ -838,16 +949,19 @@ public boolean getInterimResults() {
      * 
* * bool interim_results = 3; + * * @param value The interimResults to set. * @return This builder for chaining. */ public Builder setInterimResults(boolean value) { - + interimResults_ = value; onChanged(); return this; } /** + * + * *
      * If `true`, interim results (tentative hypotheses) may be
      * returned as they become available (these interim results are indicated with
@@ -856,17 +970,18 @@ public Builder setInterimResults(boolean value) {
      * 
* * bool interim_results = 3; + * * @return This builder for chaining. */ public Builder clearInterimResults() { - + interimResults_ = false; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -876,12 +991,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(); } @@ -890,16 +1005,16 @@ public static com.google.cloud.speech.v1.StreamingRecognitionConfig getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StreamingRecognitionConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new StreamingRecognitionConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StreamingRecognitionConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new StreamingRecognitionConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -914,6 +1029,4 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.speech.v1.StreamingRecognitionConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognitionConfigOrBuilder.java b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognitionConfigOrBuilder.java similarity index 70% rename from owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognitionConfigOrBuilder.java rename to proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognitionConfigOrBuilder.java index 8c5cfecdc..7b3064599 100644 --- a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognitionConfigOrBuilder.java +++ b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognitionConfigOrBuilder.java @@ -1,43 +1,75 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1/cloud_speech.proto package com.google.cloud.speech.v1; -public interface StreamingRecognitionConfigOrBuilder extends +public interface StreamingRecognitionConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1.StreamingRecognitionConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Provides information to the recognizer that specifies how to
    * process the request.
    * 
* - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the config field is set. */ boolean hasConfig(); /** + * + * *
    * Required. Provides information to the recognizer that specifies how to
    * process the request.
    * 
* - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The config. */ com.google.cloud.speech.v1.RecognitionConfig getConfig(); /** + * + * *
    * Required. Provides information to the recognizer that specifies how to
    * process the request.
    * 
* - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.speech.v1.RecognitionConfigOrBuilder getConfigOrBuilder(); /** + * + * *
    * If `false` or omitted, the recognizer will perform continuous
    * recognition (continuing to wait for and process audio even if the user
@@ -60,11 +92,14 @@ public interface StreamingRecognitionConfigOrBuilder extends
    * 
* * bool single_utterance = 2; + * * @return The singleUtterance. */ boolean getSingleUtterance(); /** + * + * *
    * If `true`, interim results (tentative hypotheses) may be
    * returned as they become available (these interim results are indicated with
@@ -73,6 +108,7 @@ public interface StreamingRecognitionConfigOrBuilder extends
    * 
* * bool interim_results = 3; + * * @return The interimResults. */ boolean getInterimResults(); diff --git a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognitionResult.java b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognitionResult.java similarity index 77% rename from owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognitionResult.java rename to proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognitionResult.java index 88500e3ba..974140f81 100644 --- a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognitionResult.java +++ b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognitionResult.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1/cloud_speech.proto package com.google.cloud.speech.v1; /** + * + * *
  * A streaming speech recognition result corresponding to a portion of the audio
  * that is currently being processed.
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.cloud.speech.v1.StreamingRecognitionResult}
  */
-public final class StreamingRecognitionResult extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class StreamingRecognitionResult extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.speech.v1.StreamingRecognitionResult)
     StreamingRecognitionResultOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use StreamingRecognitionResult.newBuilder() to construct.
   private StreamingRecognitionResult(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private StreamingRecognitionResult() {
     alternatives_ = java.util.Collections.emptyList();
     languageCode_ = "";
@@ -27,16 +45,15 @@ private StreamingRecognitionResult() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new StreamingRecognitionResult();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private StreamingRecognitionResult(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -56,63 +73,70 @@ private StreamingRecognitionResult(
           case 0:
             done = true;
             break;
-          case 10: {
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              alternatives_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000001;
+          case 10:
+            {
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                alternatives_ =
+                    new java.util.ArrayList<
+                        com.google.cloud.speech.v1.SpeechRecognitionAlternative>();
+                mutable_bitField0_ |= 0x00000001;
+              }
+              alternatives_.add(
+                  input.readMessage(
+                      com.google.cloud.speech.v1.SpeechRecognitionAlternative.parser(),
+                      extensionRegistry));
+              break;
             }
-            alternatives_.add(
-                input.readMessage(com.google.cloud.speech.v1.SpeechRecognitionAlternative.parser(), extensionRegistry));
-            break;
-          }
-          case 16: {
-
-            isFinal_ = input.readBool();
-            break;
-          }
-          case 29: {
-
-            stability_ = input.readFloat();
-            break;
-          }
-          case 34: {
-            com.google.protobuf.Duration.Builder subBuilder = null;
-            if (resultEndTime_ != null) {
-              subBuilder = resultEndTime_.toBuilder();
+          case 16:
+            {
+              isFinal_ = input.readBool();
+              break;
             }
-            resultEndTime_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(resultEndTime_);
-              resultEndTime_ = subBuilder.buildPartial();
+          case 29:
+            {
+              stability_ = input.readFloat();
+              break;
             }
+          case 34:
+            {
+              com.google.protobuf.Duration.Builder subBuilder = null;
+              if (resultEndTime_ != null) {
+                subBuilder = resultEndTime_.toBuilder();
+              }
+              resultEndTime_ =
+                  input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(resultEndTime_);
+                resultEndTime_ = subBuilder.buildPartial();
+              }
+
+              break;
+            }
+          case 40:
+            {
+              channelTag_ = input.readInt32();
+              break;
+            }
+          case 50:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            break;
-          }
-          case 40: {
-
-            channelTag_ = input.readInt32();
-            break;
-          }
-          case 50: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            languageCode_ = s;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              languageCode_ = s;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         alternatives_ = java.util.Collections.unmodifiableList(alternatives_);
@@ -121,22 +145,27 @@ private StreamingRecognitionResult(
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_StreamingRecognitionResult_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.speech.v1.SpeechProto
+        .internal_static_google_cloud_speech_v1_StreamingRecognitionResult_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_StreamingRecognitionResult_fieldAccessorTable
+    return com.google.cloud.speech.v1.SpeechProto
+        .internal_static_google_cloud_speech_v1_StreamingRecognitionResult_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v1.StreamingRecognitionResult.class, com.google.cloud.speech.v1.StreamingRecognitionResult.Builder.class);
+            com.google.cloud.speech.v1.StreamingRecognitionResult.class,
+            com.google.cloud.speech.v1.StreamingRecognitionResult.Builder.class);
   }
 
   public static final int ALTERNATIVES_FIELD_NUMBER = 1;
   private java.util.List alternatives_;
   /**
+   *
+   *
    * 
    * May contain one or more recognition hypotheses (up to the
    * maximum specified in `max_alternatives`).
@@ -147,10 +176,13 @@ private StreamingRecognitionResult(
    * repeated .google.cloud.speech.v1.SpeechRecognitionAlternative alternatives = 1;
    */
   @java.lang.Override
-  public java.util.List getAlternativesList() {
+  public java.util.List
+      getAlternativesList() {
     return alternatives_;
   }
   /**
+   *
+   *
    * 
    * May contain one or more recognition hypotheses (up to the
    * maximum specified in `max_alternatives`).
@@ -161,11 +193,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`).
@@ -180,6 +214,8 @@ public int getAlternativesCount() {
     return alternatives_.size();
   }
   /**
+   *
+   *
    * 
    * May contain one or more recognition hypotheses (up to the
    * maximum specified in `max_alternatives`).
@@ -194,6 +230,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`).
@@ -212,6 +250,8 @@ public com.google.cloud.speech.v1.SpeechRecognitionAlternativeOrBuilder getAlter
   public static final int IS_FINAL_FIELD_NUMBER = 2;
   private boolean isFinal_;
   /**
+   *
+   *
    * 
    * If `false`, this `StreamingRecognitionResult` represents an
    * interim result that may change. If `true`, this is the final time the
@@ -221,6 +261,7 @@ public com.google.cloud.speech.v1.SpeechRecognitionAlternativeOrBuilder getAlter
    * 
* * bool is_final = 2; + * * @return The isFinal. */ @java.lang.Override @@ -231,6 +272,8 @@ public boolean getIsFinal() { public static final int STABILITY_FIELD_NUMBER = 3; private float stability_; /** + * + * *
    * An estimate of the likelihood that the recognizer will not
    * change its guess about this interim result. Values range from 0.0
@@ -240,6 +283,7 @@ public boolean getIsFinal() {
    * 
* * float stability = 3; + * * @return The stability. */ @java.lang.Override @@ -250,12 +294,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 @@ -263,19 +310,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.
@@ -291,6 +345,8 @@ public com.google.protobuf.DurationOrBuilder getResultEndTimeOrBuilder() {
   public static final int CHANNEL_TAG_FIELD_NUMBER = 5;
   private int channelTag_;
   /**
+   *
+   *
    * 
    * For multi-channel audio, this is the channel number corresponding to the
    * recognized result for the audio from that channel.
@@ -298,6 +354,7 @@ public com.google.protobuf.DurationOrBuilder getResultEndTimeOrBuilder() {
    * 
* * int32 channel_tag = 5; + * * @return The channelTag. */ @java.lang.Override @@ -308,6 +365,8 @@ public int getChannelTag() { public static final int LANGUAGE_CODE_FIELD_NUMBER = 6; private volatile java.lang.Object languageCode_; /** + * + * *
    * Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag
    * of the language in this result. This language code was detected to have
@@ -315,6 +374,7 @@ public int getChannelTag() {
    * 
* * string language_code = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The languageCode. */ @java.lang.Override @@ -323,14 +383,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
@@ -338,16 +399,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 { @@ -356,6 +416,7 @@ public java.lang.String getLanguageCode() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -367,8 +428,7 @@ public final boolean isInitialized() { } @java.lang.Override - 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)); } @@ -397,24 +457,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 (stability_ != 0F) { - 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_); @@ -427,29 +482,24 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1.StreamingRecognitionResult)) { return super.equals(obj); } - com.google.cloud.speech.v1.StreamingRecognitionResult other = (com.google.cloud.speech.v1.StreamingRecognitionResult) obj; + com.google.cloud.speech.v1.StreamingRecognitionResult other = + (com.google.cloud.speech.v1.StreamingRecognitionResult) obj; - if (!getAlternativesList() - .equals(other.getAlternativesList())) return false; - if (getIsFinal() - != other.getIsFinal()) return false; + if (!getAlternativesList().equals(other.getAlternativesList())) return false; + if (getIsFinal() != other.getIsFinal()) return false; if (java.lang.Float.floatToIntBits(getStability()) - != java.lang.Float.floatToIntBits( - other.getStability())) return false; + != java.lang.Float.floatToIntBits(other.getStability())) return false; if (hasResultEndTime() != other.hasResultEndTime()) return false; if (hasResultEndTime()) { - if (!getResultEndTime() - .equals(other.getResultEndTime())) return false; + if (!getResultEndTime().equals(other.getResultEndTime())) return false; } - if (getChannelTag() - != other.getChannelTag()) return false; - if (!getLanguageCode() - .equals(other.getLanguageCode())) return false; + if (getChannelTag() != other.getChannelTag()) return false; + if (!getLanguageCode().equals(other.getLanguageCode())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -466,11 +516,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(); @@ -485,96 +533,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.
@@ -582,21 +638,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.speech.v1.StreamingRecognitionResult}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1.StreamingRecognitionResult)
       com.google.cloud.speech.v1.StreamingRecognitionResultOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_StreamingRecognitionResult_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.speech.v1.SpeechProto
+          .internal_static_google_cloud_speech_v1_StreamingRecognitionResult_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_StreamingRecognitionResult_fieldAccessorTable
+      return com.google.cloud.speech.v1.SpeechProto
+          .internal_static_google_cloud_speech_v1_StreamingRecognitionResult_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v1.StreamingRecognitionResult.class, com.google.cloud.speech.v1.StreamingRecognitionResult.Builder.class);
+              com.google.cloud.speech.v1.StreamingRecognitionResult.class,
+              com.google.cloud.speech.v1.StreamingRecognitionResult.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v1.StreamingRecognitionResult.newBuilder()
@@ -604,17 +662,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
         getAlternativesFieldBuilder();
       }
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -642,9 +700,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
@@ -663,7 +721,8 @@ public com.google.cloud.speech.v1.StreamingRecognitionResult build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v1.StreamingRecognitionResult buildPartial() {
-      com.google.cloud.speech.v1.StreamingRecognitionResult result = new com.google.cloud.speech.v1.StreamingRecognitionResult(this);
+      com.google.cloud.speech.v1.StreamingRecognitionResult result =
+          new com.google.cloud.speech.v1.StreamingRecognitionResult(this);
       int from_bitField0_ = bitField0_;
       if (alternativesBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
@@ -691,38 +750,39 @@ public com.google.cloud.speech.v1.StreamingRecognitionResult buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.speech.v1.StreamingRecognitionResult) {
-        return mergeFrom((com.google.cloud.speech.v1.StreamingRecognitionResult)other);
+        return mergeFrom((com.google.cloud.speech.v1.StreamingRecognitionResult) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -730,7 +790,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()) {
@@ -749,9 +810,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_);
           }
@@ -792,7 +854,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.speech.v1.StreamingRecognitionResult) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.speech.v1.StreamingRecognitionResult) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -801,21 +864,30 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
     private java.util.List alternatives_ =
-      java.util.Collections.emptyList();
+        java.util.Collections.emptyList();
+
     private void ensureAlternativesIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
-        alternatives_ = new java.util.ArrayList(alternatives_);
+        alternatives_ =
+            new java.util.ArrayList(
+                alternatives_);
         bitField0_ |= 0x00000001;
-       }
+      }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.speech.v1.SpeechRecognitionAlternative, com.google.cloud.speech.v1.SpeechRecognitionAlternative.Builder, com.google.cloud.speech.v1.SpeechRecognitionAlternativeOrBuilder> alternativesBuilder_;
+            com.google.cloud.speech.v1.SpeechRecognitionAlternative,
+            com.google.cloud.speech.v1.SpeechRecognitionAlternative.Builder,
+            com.google.cloud.speech.v1.SpeechRecognitionAlternativeOrBuilder>
+        alternativesBuilder_;
 
     /**
+     *
+     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -825,7 +897,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 {
@@ -833,6 +906,8 @@ public java.util.List g
       }
     }
     /**
+     *
+     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -850,6 +925,8 @@ public int getAlternativesCount() {
       }
     }
     /**
+     *
+     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -867,6 +944,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`).
@@ -891,6 +970,8 @@ public Builder setAlternatives(
       return this;
     }
     /**
+     *
+     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -901,7 +982,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());
@@ -912,6 +994,8 @@ public Builder setAlternatives(
       return this;
     }
     /**
+     *
+     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -935,6 +1019,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`).
@@ -959,6 +1045,8 @@ public Builder addAlternatives(
       return this;
     }
     /**
+     *
+     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -980,6 +1068,8 @@ public Builder addAlternatives(
       return this;
     }
     /**
+     *
+     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -990,7 +1080,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());
@@ -1001,6 +1092,8 @@ public Builder addAlternatives(
       return this;
     }
     /**
+     *
+     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -1011,11 +1104,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);
@@ -1023,6 +1116,8 @@ public Builder addAllAlternatives(
       return this;
     }
     /**
+     *
+     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -1043,6 +1138,8 @@ public Builder clearAlternatives() {
       return this;
     }
     /**
+     *
+     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -1063,6 +1160,8 @@ public Builder removeAlternatives(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -1077,6 +1176,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`).
@@ -1086,14 +1187,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`).
@@ -1103,8 +1207,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 {
@@ -1112,6 +1217,8 @@ public com.google.cloud.speech.v1.SpeechRecognitionAlternativeOrBuilder getAlter
       }
     }
     /**
+     *
+     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -1121,11 +1228,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`).
@@ -1137,10 +1247,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`).
@@ -1150,27 +1263,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
@@ -1180,6 +1298,7 @@ public com.google.cloud.speech.v1.SpeechRecognitionAlternative.Builder addAltern
      * 
* * bool is_final = 2; + * * @return The isFinal. */ @java.lang.Override @@ -1187,6 +1306,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
@@ -1196,16 +1317,19 @@ public boolean getIsFinal() {
      * 
* * bool is_final = 2; + * * @param value The isFinal to set. * @return This builder for chaining. */ public Builder setIsFinal(boolean value) { - + isFinal_ = value; onChanged(); return this; } /** + * + * *
      * If `false`, this `StreamingRecognitionResult` represents an
      * interim result that may change. If `true`, this is the final time the
@@ -1215,17 +1339,20 @@ public Builder setIsFinal(boolean value) {
      * 
* * bool is_final = 2; + * * @return This builder for chaining. */ public Builder clearIsFinal() { - + isFinal_ = false; onChanged(); return this; } - private float stability_ ; + private float stability_; /** + * + * *
      * An estimate of the likelihood that the recognizer will not
      * change its guess about this interim result. Values range from 0.0
@@ -1235,6 +1362,7 @@ public Builder clearIsFinal() {
      * 
* * float stability = 3; + * * @return The stability. */ @java.lang.Override @@ -1242,6 +1370,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
@@ -1251,16 +1381,19 @@ public float getStability() {
      * 
* * float stability = 3; + * * @param value The stability to set. * @return This builder for chaining. */ public Builder setStability(float value) { - + stability_ = value; onChanged(); return this; } /** + * + * *
      * An estimate of the likelihood that the recognizer will not
      * change its guess about this interim result. Values range from 0.0
@@ -1270,10 +1403,11 @@ public Builder setStability(float value) {
      * 
* * float stability = 3; + * * @return This builder for chaining. */ public Builder clearStability() { - + stability_ = 0F; onChanged(); return this; @@ -1281,36 +1415,49 @@ public Builder clearStability() { private com.google.protobuf.Duration resultEndTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> resultEndTimeBuilder_; + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + resultEndTimeBuilder_; /** + * + * *
      * Time offset of the end of this result relative to the
      * beginning of the audio.
      * 
* * .google.protobuf.Duration result_end_time = 4; + * * @return Whether the resultEndTime field is set. */ public boolean hasResultEndTime() { return resultEndTimeBuilder_ != null || resultEndTime_ != null; } /** + * + * *
      * Time offset of the end of this result relative to the
      * beginning of the audio.
      * 
* * .google.protobuf.Duration result_end_time = 4; + * * @return The resultEndTime. */ public com.google.protobuf.Duration getResultEndTime() { if (resultEndTimeBuilder_ == null) { - return resultEndTime_ == null ? com.google.protobuf.Duration.getDefaultInstance() : resultEndTime_; + return resultEndTime_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : resultEndTime_; } else { return resultEndTimeBuilder_.getMessage(); } } /** + * + * *
      * Time offset of the end of this result relative to the
      * beginning of the audio.
@@ -1332,6 +1479,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.
@@ -1339,8 +1488,7 @@ public Builder setResultEndTime(com.google.protobuf.Duration value) {
      *
      * .google.protobuf.Duration result_end_time = 4;
      */
-    public Builder setResultEndTime(
-        com.google.protobuf.Duration.Builder builderForValue) {
+    public Builder setResultEndTime(com.google.protobuf.Duration.Builder builderForValue) {
       if (resultEndTimeBuilder_ == null) {
         resultEndTime_ = builderForValue.build();
         onChanged();
@@ -1351,6 +1499,8 @@ public Builder setResultEndTime(
       return this;
     }
     /**
+     *
+     *
      * 
      * Time offset of the end of this result relative to the
      * beginning of the audio.
@@ -1362,7 +1512,9 @@ public Builder mergeResultEndTime(com.google.protobuf.Duration value) {
       if (resultEndTimeBuilder_ == null) {
         if (resultEndTime_ != null) {
           resultEndTime_ =
-            com.google.protobuf.Duration.newBuilder(resultEndTime_).mergeFrom(value).buildPartial();
+              com.google.protobuf.Duration.newBuilder(resultEndTime_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           resultEndTime_ = value;
         }
@@ -1374,6 +1526,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.
@@ -1393,6 +1547,8 @@ public Builder clearResultEndTime() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Time offset of the end of this result relative to the
      * beginning of the audio.
@@ -1401,11 +1557,13 @@ public Builder clearResultEndTime() {
      * .google.protobuf.Duration result_end_time = 4;
      */
     public com.google.protobuf.Duration.Builder getResultEndTimeBuilder() {
-      
+
       onChanged();
       return getResultEndTimeFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Time offset of the end of this result relative to the
      * beginning of the audio.
@@ -1417,11 +1575,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.
@@ -1430,21 +1591,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.
@@ -1452,6 +1618,7 @@ public com.google.protobuf.DurationOrBuilder getResultEndTimeOrBuilder() {
      * 
* * int32 channel_tag = 5; + * * @return The channelTag. */ @java.lang.Override @@ -1459,6 +1626,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.
@@ -1466,16 +1635,19 @@ public int getChannelTag() {
      * 
* * int32 channel_tag = 5; + * * @param value The channelTag to set. * @return This builder for chaining. */ public Builder setChannelTag(int value) { - + channelTag_ = value; onChanged(); return this; } /** + * + * *
      * For multi-channel audio, this is the channel number corresponding to the
      * recognized result for the audio from that channel.
@@ -1483,10 +1655,11 @@ public Builder setChannelTag(int value) {
      * 
* * int32 channel_tag = 5; + * * @return This builder for chaining. */ public Builder clearChannelTag() { - + channelTag_ = 0; onChanged(); return this; @@ -1494,6 +1667,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
@@ -1501,13 +1676,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; @@ -1516,6 +1691,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
@@ -1523,15 +1700,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 { @@ -1539,6 +1715,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
@@ -1546,20 +1724,22 @@ public java.lang.String getLanguageCode() {
      * 
* * string language_code = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCode( - java.lang.String value) { + public Builder setLanguageCode(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + languageCode_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag
      * of the language in this result. This language code was detected to have
@@ -1567,15 +1747,18 @@ public Builder setLanguageCode(
      * 
* * string language_code = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearLanguageCode() { - + languageCode_ = getDefaultInstance().getLanguageCode(); onChanged(); return this; } /** + * + * *
      * Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag
      * of the language in this result. This language code was detected to have
@@ -1583,23 +1766,23 @@ public Builder clearLanguageCode() {
      * 
* * string language_code = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCodeBytes( - com.google.protobuf.ByteString value) { + public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + languageCode_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1609,12 +1792,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(); } @@ -1623,16 +1806,16 @@ public static com.google.cloud.speech.v1.StreamingRecognitionResult getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StreamingRecognitionResult parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new StreamingRecognitionResult(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StreamingRecognitionResult parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new StreamingRecognitionResult(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1647,6 +1830,4 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.speech.v1.StreamingRecognitionResult getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognitionResultOrBuilder.java b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognitionResultOrBuilder.java similarity index 85% rename from owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognitionResultOrBuilder.java rename to proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognitionResultOrBuilder.java index c44aa1077..21ef917f1 100644 --- a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognitionResultOrBuilder.java +++ b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognitionResultOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1/cloud_speech.proto package com.google.cloud.speech.v1; -public interface StreamingRecognitionResultOrBuilder extends +public interface StreamingRecognitionResultOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1.StreamingRecognitionResult) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * May contain one or more recognition hypotheses (up to the
    * maximum specified in `max_alternatives`).
@@ -17,9 +35,10 @@ public interface StreamingRecognitionResultOrBuilder extends
    *
    * repeated .google.cloud.speech.v1.SpeechRecognitionAlternative alternatives = 1;
    */
-  java.util.List 
-      getAlternativesList();
+  java.util.List getAlternativesList();
   /**
+   *
+   *
    * 
    * May contain one or more recognition hypotheses (up to the
    * maximum specified in `max_alternatives`).
@@ -31,6 +50,8 @@ public interface StreamingRecognitionResultOrBuilder extends
    */
   com.google.cloud.speech.v1.SpeechRecognitionAlternative getAlternatives(int index);
   /**
+   *
+   *
    * 
    * May contain one or more recognition hypotheses (up to the
    * maximum specified in `max_alternatives`).
@@ -42,6 +63,8 @@ public interface StreamingRecognitionResultOrBuilder extends
    */
   int getAlternativesCount();
   /**
+   *
+   *
    * 
    * May contain one or more recognition hypotheses (up to the
    * maximum specified in `max_alternatives`).
@@ -51,9 +74,11 @@ public interface StreamingRecognitionResultOrBuilder extends
    *
    * repeated .google.cloud.speech.v1.SpeechRecognitionAlternative alternatives = 1;
    */
-  java.util.List 
+  java.util.List
       getAlternativesOrBuilderList();
   /**
+   *
+   *
    * 
    * May contain one or more recognition hypotheses (up to the
    * maximum specified in `max_alternatives`).
@@ -67,6 +92,8 @@ com.google.cloud.speech.v1.SpeechRecognitionAlternativeOrBuilder getAlternatives
       int index);
 
   /**
+   *
+   *
    * 
    * If `false`, this `StreamingRecognitionResult` represents an
    * interim result that may change. If `true`, this is the final time the
@@ -76,11 +103,14 @@ com.google.cloud.speech.v1.SpeechRecognitionAlternativeOrBuilder getAlternatives
    * 
* * bool is_final = 2; + * * @return The isFinal. */ boolean getIsFinal(); /** + * + * *
    * An estimate of the likelihood that the recognizer will not
    * change its guess about this interim result. Values range from 0.0
@@ -90,31 +120,40 @@ com.google.cloud.speech.v1.SpeechRecognitionAlternativeOrBuilder getAlternatives
    * 
* * float stability = 3; + * * @return The stability. */ float getStability(); /** + * + * *
    * Time offset of the end of this result relative to the
    * beginning of the audio.
    * 
* * .google.protobuf.Duration result_end_time = 4; + * * @return Whether the resultEndTime field is set. */ boolean hasResultEndTime(); /** + * + * *
    * Time offset of the end of this result relative to the
    * beginning of the audio.
    * 
* * .google.protobuf.Duration result_end_time = 4; + * * @return The resultEndTime. */ com.google.protobuf.Duration getResultEndTime(); /** + * + * *
    * Time offset of the end of this result relative to the
    * beginning of the audio.
@@ -125,6 +164,8 @@ com.google.cloud.speech.v1.SpeechRecognitionAlternativeOrBuilder getAlternatives
   com.google.protobuf.DurationOrBuilder getResultEndTimeOrBuilder();
 
   /**
+   *
+   *
    * 
    * For multi-channel audio, this is the channel number corresponding to the
    * recognized result for the audio from that channel.
@@ -132,11 +173,14 @@ com.google.cloud.speech.v1.SpeechRecognitionAlternativeOrBuilder getAlternatives
    * 
* * int32 channel_tag = 5; + * * @return The channelTag. */ int getChannelTag(); /** + * + * *
    * Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag
    * of the language in this result. This language code was detected to have
@@ -144,10 +188,13 @@ com.google.cloud.speech.v1.SpeechRecognitionAlternativeOrBuilder getAlternatives
    * 
* * string language_code = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The languageCode. */ java.lang.String getLanguageCode(); /** + * + * *
    * Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag
    * of the language in this result. This language code was detected to have
@@ -155,8 +202,8 @@ com.google.cloud.speech.v1.SpeechRecognitionAlternativeOrBuilder getAlternatives
    * 
* * string language_code = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for languageCode. */ - com.google.protobuf.ByteString - getLanguageCodeBytes(); + com.google.protobuf.ByteString getLanguageCodeBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeRequest.java b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeRequest.java similarity index 73% rename from owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeRequest.java rename to proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeRequest.java index 993690496..da898b89e 100644 --- a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeRequest.java +++ b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeRequest.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1/cloud_speech.proto package com.google.cloud.speech.v1; /** + * + * *
  * The top-level message sent by the client for the `StreamingRecognize` method.
  * Multiple `StreamingRecognizeRequest` messages are sent. The first message
@@ -14,30 +31,29 @@
  *
  * Protobuf type {@code google.cloud.speech.v1.StreamingRecognizeRequest}
  */
-public final class StreamingRecognizeRequest extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class StreamingRecognizeRequest extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.speech.v1.StreamingRecognizeRequest)
     StreamingRecognizeRequestOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use StreamingRecognizeRequest.newBuilder() to construct.
   private StreamingRecognizeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-  private StreamingRecognizeRequest() {
-  }
+
+  private StreamingRecognizeRequest() {}
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new StreamingRecognizeRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private StreamingRecognizeRequest(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -56,66 +72,78 @@ private StreamingRecognizeRequest(
           case 0:
             done = true;
             break;
-          case 10: {
-            com.google.cloud.speech.v1.StreamingRecognitionConfig.Builder subBuilder = null;
-            if (streamingRequestCase_ == 1) {
-              subBuilder = ((com.google.cloud.speech.v1.StreamingRecognitionConfig) streamingRequest_).toBuilder();
+          case 10:
+            {
+              com.google.cloud.speech.v1.StreamingRecognitionConfig.Builder subBuilder = null;
+              if (streamingRequestCase_ == 1) {
+                subBuilder =
+                    ((com.google.cloud.speech.v1.StreamingRecognitionConfig) streamingRequest_)
+                        .toBuilder();
+              }
+              streamingRequest_ =
+                  input.readMessage(
+                      com.google.cloud.speech.v1.StreamingRecognitionConfig.parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(
+                    (com.google.cloud.speech.v1.StreamingRecognitionConfig) streamingRequest_);
+                streamingRequest_ = subBuilder.buildPartial();
+              }
+              streamingRequestCase_ = 1;
+              break;
             }
-            streamingRequest_ =
-                input.readMessage(com.google.cloud.speech.v1.StreamingRecognitionConfig.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom((com.google.cloud.speech.v1.StreamingRecognitionConfig) streamingRequest_);
-              streamingRequest_ = subBuilder.buildPartial();
+          case 18:
+            {
+              streamingRequestCase_ = 2;
+              streamingRequest_ = input.readBytes();
+              break;
             }
-            streamingRequestCase_ = 1;
-            break;
-          }
-          case 18: {
-            streamingRequestCase_ = 2;
-            streamingRequest_ = input.readBytes();
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_StreamingRecognizeRequest_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.speech.v1.SpeechProto
+        .internal_static_google_cloud_speech_v1_StreamingRecognizeRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_StreamingRecognizeRequest_fieldAccessorTable
+    return com.google.cloud.speech.v1.SpeechProto
+        .internal_static_google_cloud_speech_v1_StreamingRecognizeRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v1.StreamingRecognizeRequest.class, com.google.cloud.speech.v1.StreamingRecognizeRequest.Builder.class);
+            com.google.cloud.speech.v1.StreamingRecognizeRequest.class,
+            com.google.cloud.speech.v1.StreamingRecognizeRequest.Builder.class);
   }
 
   private int streamingRequestCase_ = 0;
   private java.lang.Object streamingRequest_;
+
   public enum StreamingRequestCase
-      implements com.google.protobuf.Internal.EnumLite,
+      implements
+          com.google.protobuf.Internal.EnumLite,
           com.google.protobuf.AbstractMessage.InternalOneOfEnum {
     STREAMING_CONFIG(1),
     AUDIO_CONTENT(2),
     STREAMINGREQUEST_NOT_SET(0);
     private final int value;
+
     private StreamingRequestCase(int value) {
       this.value = value;
     }
@@ -131,25 +159,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
@@ -157,6 +190,7 @@ public int getNumber() {
    * 
* * .google.cloud.speech.v1.StreamingRecognitionConfig streaming_config = 1; + * * @return Whether the streamingConfig field is set. */ @java.lang.Override @@ -164,6 +198,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
@@ -171,16 +207,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
@@ -190,15 +229,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
@@ -211,6 +253,7 @@ public com.google.cloud.speech.v1.StreamingRecognitionConfigOrBuilder getStreami
    * 
* * bytes audio_content = 2; + * * @return Whether the audioContent field is set. */ @java.lang.Override @@ -218,6 +261,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
@@ -230,6 +275,7 @@ public boolean hasAudioContent() {
    * 
* * bytes audio_content = 2; + * * @return The audioContent. */ @java.lang.Override @@ -241,6 +287,7 @@ public com.google.protobuf.ByteString getAudioContent() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -252,14 +299,13 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (streamingRequestCase_ == 1) { - output.writeMessage(1, (com.google.cloud.speech.v1.StreamingRecognitionConfig) streamingRequest_); + output.writeMessage( + 1, (com.google.cloud.speech.v1.StreamingRecognitionConfig) streamingRequest_); } if (streamingRequestCase_ == 2) { - output.writeBytes( - 2, (com.google.protobuf.ByteString) streamingRequest_); + output.writeBytes(2, (com.google.protobuf.ByteString) streamingRequest_); } unknownFields.writeTo(output); } @@ -271,13 +317,14 @@ public int getSerializedSize() { size = 0; if (streamingRequestCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, (com.google.cloud.speech.v1.StreamingRecognitionConfig) streamingRequest_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, (com.google.cloud.speech.v1.StreamingRecognitionConfig) streamingRequest_); } if (streamingRequestCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize( - 2, (com.google.protobuf.ByteString) streamingRequest_); + size += + com.google.protobuf.CodedOutputStream.computeBytesSize( + 2, (com.google.protobuf.ByteString) streamingRequest_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -287,22 +334,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: @@ -336,96 +382,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
@@ -436,21 +489,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.speech.v1.StreamingRecognizeRequest}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1.StreamingRecognizeRequest)
       com.google.cloud.speech.v1.StreamingRecognizeRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_StreamingRecognizeRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.speech.v1.SpeechProto
+          .internal_static_google_cloud_speech_v1_StreamingRecognizeRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_StreamingRecognizeRequest_fieldAccessorTable
+      return com.google.cloud.speech.v1.SpeechProto
+          .internal_static_google_cloud_speech_v1_StreamingRecognizeRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v1.StreamingRecognizeRequest.class, com.google.cloud.speech.v1.StreamingRecognizeRequest.Builder.class);
+              com.google.cloud.speech.v1.StreamingRecognizeRequest.class,
+              com.google.cloud.speech.v1.StreamingRecognizeRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v1.StreamingRecognizeRequest.newBuilder()
@@ -458,16 +513,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -477,9 +531,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
@@ -498,7 +552,8 @@ public com.google.cloud.speech.v1.StreamingRecognizeRequest build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v1.StreamingRecognizeRequest buildPartial() {
-      com.google.cloud.speech.v1.StreamingRecognizeRequest result = new com.google.cloud.speech.v1.StreamingRecognizeRequest(this);
+      com.google.cloud.speech.v1.StreamingRecognizeRequest result =
+          new com.google.cloud.speech.v1.StreamingRecognizeRequest(this);
       if (streamingRequestCase_ == 1) {
         if (streamingConfigBuilder_ == null) {
           result.streamingRequest_ = streamingRequest_;
@@ -518,38 +573,39 @@ public com.google.cloud.speech.v1.StreamingRecognizeRequest buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.speech.v1.StreamingRecognizeRequest) {
-        return mergeFrom((com.google.cloud.speech.v1.StreamingRecognizeRequest)other);
+        return mergeFrom((com.google.cloud.speech.v1.StreamingRecognizeRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -557,19 +613,23 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.speech.v1.StreamingRecognizeRequest other) {
-      if (other == com.google.cloud.speech.v1.StreamingRecognizeRequest.getDefaultInstance()) return this;
+      if (other == com.google.cloud.speech.v1.StreamingRecognizeRequest.getDefaultInstance())
+        return this;
       switch (other.getStreamingRequestCase()) {
-        case STREAMING_CONFIG: {
-          mergeStreamingConfig(other.getStreamingConfig());
-          break;
-        }
-        case AUDIO_CONTENT: {
-          setAudioContent(other.getAudioContent());
-          break;
-        }
-        case STREAMINGREQUEST_NOT_SET: {
-          break;
-        }
+        case STREAMING_CONFIG:
+          {
+            mergeStreamingConfig(other.getStreamingConfig());
+            break;
+          }
+        case AUDIO_CONTENT:
+          {
+            setAudioContent(other.getAudioContent());
+            break;
+          }
+        case STREAMINGREQUEST_NOT_SET:
+          {
+            break;
+          }
       }
       this.mergeUnknownFields(other.unknownFields);
       onChanged();
@@ -590,7 +650,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.speech.v1.StreamingRecognizeRequest) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.speech.v1.StreamingRecognizeRequest) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -599,12 +660,12 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int streamingRequestCase_ = 0;
     private java.lang.Object streamingRequest_;
-    public StreamingRequestCase
-        getStreamingRequestCase() {
-      return StreamingRequestCase.forNumber(
-          streamingRequestCase_);
+
+    public StreamingRequestCase getStreamingRequestCase() {
+      return StreamingRequestCase.forNumber(streamingRequestCase_);
     }
 
     public Builder clearStreamingRequest() {
@@ -614,10 +675,14 @@ public Builder clearStreamingRequest() {
       return this;
     }
 
-
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.speech.v1.StreamingRecognitionConfig, com.google.cloud.speech.v1.StreamingRecognitionConfig.Builder, com.google.cloud.speech.v1.StreamingRecognitionConfigOrBuilder> streamingConfigBuilder_;
+            com.google.cloud.speech.v1.StreamingRecognitionConfig,
+            com.google.cloud.speech.v1.StreamingRecognitionConfig.Builder,
+            com.google.cloud.speech.v1.StreamingRecognitionConfigOrBuilder>
+        streamingConfigBuilder_;
     /**
+     *
+     *
      * 
      * Provides information to the recognizer that specifies how to process the
      * request. The first `StreamingRecognizeRequest` message must contain a
@@ -625,6 +690,7 @@ public Builder clearStreamingRequest() {
      * 
* * .google.cloud.speech.v1.StreamingRecognitionConfig streaming_config = 1; + * * @return Whether the streamingConfig field is set. */ @java.lang.Override @@ -632,6 +698,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
@@ -639,6 +707,7 @@ public boolean hasStreamingConfig() {
      * 
* * .google.cloud.speech.v1.StreamingRecognitionConfig streaming_config = 1; + * * @return The streamingConfig. */ @java.lang.Override @@ -656,6 +725,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
@@ -678,6 +749,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
@@ -698,6 +771,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
@@ -706,12 +781,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;
         }
@@ -726,6 +806,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
@@ -751,6 +833,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
@@ -759,10 +843,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
@@ -772,7 +859,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 {
@@ -783,6 +871,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
@@ -792,25 +882,34 @@ public com.google.cloud.speech.v1.StreamingRecognitionConfigOrBuilder getStreami
      * .google.cloud.speech.v1.StreamingRecognitionConfig streaming_config = 1;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.speech.v1.StreamingRecognitionConfig, com.google.cloud.speech.v1.StreamingRecognitionConfig.Builder, com.google.cloud.speech.v1.StreamingRecognitionConfigOrBuilder> 
+            com.google.cloud.speech.v1.StreamingRecognitionConfig,
+            com.google.cloud.speech.v1.StreamingRecognitionConfig.Builder,
+            com.google.cloud.speech.v1.StreamingRecognitionConfigOrBuilder>
         getStreamingConfigFieldBuilder() {
       if (streamingConfigBuilder_ == null) {
         if (!(streamingRequestCase_ == 1)) {
-          streamingRequest_ = com.google.cloud.speech.v1.StreamingRecognitionConfig.getDefaultInstance();
+          streamingRequest_ =
+              com.google.cloud.speech.v1.StreamingRecognitionConfig.getDefaultInstance();
         }
-        streamingConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.speech.v1.StreamingRecognitionConfig, com.google.cloud.speech.v1.StreamingRecognitionConfig.Builder, com.google.cloud.speech.v1.StreamingRecognitionConfigOrBuilder>(
+        streamingConfigBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.speech.v1.StreamingRecognitionConfig,
+                com.google.cloud.speech.v1.StreamingRecognitionConfig.Builder,
+                com.google.cloud.speech.v1.StreamingRecognitionConfigOrBuilder>(
                 (com.google.cloud.speech.v1.StreamingRecognitionConfig) streamingRequest_,
                 getParentForChildren(),
                 isClean());
         streamingRequest_ = null;
       }
       streamingRequestCase_ = 1;
-      onChanged();;
+      onChanged();
+      ;
       return streamingConfigBuilder_;
     }
 
     /**
+     *
+     *
      * 
      * The audio data to be recognized. Sequential chunks of audio data are sent
      * in sequential `StreamingRecognizeRequest` messages. The first
@@ -823,12 +922,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
@@ -841,6 +943,7 @@ public boolean hasAudioContent() {
      * 
* * bytes audio_content = 2; + * * @return The audioContent. */ public com.google.protobuf.ByteString getAudioContent() { @@ -850,6 +953,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
@@ -862,19 +967,22 @@ public com.google.protobuf.ByteString getAudioContent() {
      * 
* * bytes audio_content = 2; + * * @param value The audioContent to set. * @return This builder for chaining. */ public Builder setAudioContent(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - streamingRequestCase_ = 2; + throw new NullPointerException(); + } + streamingRequestCase_ = 2; streamingRequest_ = value; onChanged(); return this; } /** + * + * *
      * The audio data to be recognized. Sequential chunks of audio data are sent
      * in sequential `StreamingRecognizeRequest` messages. The first
@@ -887,6 +995,7 @@ public Builder setAudioContent(com.google.protobuf.ByteString value) {
      * 
* * bytes audio_content = 2; + * * @return This builder for chaining. */ public Builder clearAudioContent() { @@ -897,9 +1006,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); } @@ -909,12 +1018,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(); } @@ -923,16 +1032,16 @@ public static com.google.cloud.speech.v1.StreamingRecognizeRequest getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StreamingRecognizeRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new StreamingRecognizeRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StreamingRecognizeRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new StreamingRecognizeRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -947,6 +1056,4 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.speech.v1.StreamingRecognizeRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeRequestOrBuilder.java b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeRequestOrBuilder.java similarity index 79% rename from owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeRequestOrBuilder.java rename to proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeRequestOrBuilder.java index 28ed92b15..13fc461c9 100644 --- a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeRequestOrBuilder.java +++ b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeRequestOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1/cloud_speech.proto package com.google.cloud.speech.v1; -public interface StreamingRecognizeRequestOrBuilder extends +public interface StreamingRecognizeRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1.StreamingRecognizeRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Provides information to the recognizer that specifies how to process the
    * request. The first `StreamingRecognizeRequest` message must contain a
@@ -15,10 +33,13 @@ public interface StreamingRecognizeRequestOrBuilder extends
    * 
* * .google.cloud.speech.v1.StreamingRecognitionConfig streaming_config = 1; + * * @return Whether the streamingConfig field is set. */ boolean hasStreamingConfig(); /** + * + * *
    * Provides information to the recognizer that specifies how to process the
    * request. The first `StreamingRecognizeRequest` message must contain a
@@ -26,10 +47,13 @@ public interface StreamingRecognizeRequestOrBuilder extends
    * 
* * .google.cloud.speech.v1.StreamingRecognitionConfig streaming_config = 1; + * * @return The streamingConfig. */ com.google.cloud.speech.v1.StreamingRecognitionConfig getStreamingConfig(); /** + * + * *
    * Provides information to the recognizer that specifies how to process the
    * request. The first `StreamingRecognizeRequest` message must contain a
@@ -41,6 +65,8 @@ public interface StreamingRecognizeRequestOrBuilder extends
   com.google.cloud.speech.v1.StreamingRecognitionConfigOrBuilder getStreamingConfigOrBuilder();
 
   /**
+   *
+   *
    * 
    * The audio data to be recognized. Sequential chunks of audio data are sent
    * in sequential `StreamingRecognizeRequest` messages. The first
@@ -53,10 +79,13 @@ public interface StreamingRecognizeRequestOrBuilder extends
    * 
* * bytes audio_content = 2; + * * @return Whether the audioContent field is set. */ boolean hasAudioContent(); /** + * + * *
    * The audio data to be recognized. Sequential chunks of audio data are sent
    * in sequential `StreamingRecognizeRequest` messages. The first
@@ -69,9 +98,11 @@ public interface StreamingRecognizeRequestOrBuilder extends
    * 
* * bytes audio_content = 2; + * * @return The audioContent. */ com.google.protobuf.ByteString getAudioContent(); - public com.google.cloud.speech.v1.StreamingRecognizeRequest.StreamingRequestCase getStreamingRequestCase(); + public com.google.cloud.speech.v1.StreamingRecognizeRequest.StreamingRequestCase + getStreamingRequestCase(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeResponse.java b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeResponse.java similarity index 77% rename from owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeResponse.java rename to proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeResponse.java index 4ad45bf54..dc980f5a4 100644 --- a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeResponse.java +++ b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeResponse.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1/cloud_speech.proto package com.google.cloud.speech.v1; /** + * + * *
  * `StreamingRecognizeResponse` is the only message returned to the client by
  * `StreamingRecognize`. A series of zero or more `StreamingRecognizeResponse`
@@ -45,15 +62,16 @@
  *
  * Protobuf type {@code google.cloud.speech.v1.StreamingRecognizeResponse}
  */
-public final class StreamingRecognizeResponse extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class StreamingRecognizeResponse extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.speech.v1.StreamingRecognizeResponse)
     StreamingRecognizeResponseOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use StreamingRecognizeResponse.newBuilder() to construct.
   private StreamingRecognizeResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private StreamingRecognizeResponse() {
     results_ = java.util.Collections.emptyList();
     speechEventType_ = 0;
@@ -61,16 +79,15 @@ private StreamingRecognizeResponse() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new StreamingRecognizeResponse();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private StreamingRecognizeResponse(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -90,61 +107,69 @@ private StreamingRecognizeResponse(
           case 0:
             done = true;
             break;
-          case 10: {
-            com.google.rpc.Status.Builder subBuilder = null;
-            if (error_ != null) {
-              subBuilder = error_.toBuilder();
+          case 10:
+            {
+              com.google.rpc.Status.Builder subBuilder = null;
+              if (error_ != null) {
+                subBuilder = error_.toBuilder();
+              }
+              error_ = input.readMessage(com.google.rpc.Status.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(error_);
+                error_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
-            error_ = input.readMessage(com.google.rpc.Status.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(error_);
-              error_ = subBuilder.buildPartial();
+          case 18:
+            {
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                results_ =
+                    new java.util.ArrayList<
+                        com.google.cloud.speech.v1.StreamingRecognitionResult>();
+                mutable_bitField0_ |= 0x00000001;
+              }
+              results_.add(
+                  input.readMessage(
+                      com.google.cloud.speech.v1.StreamingRecognitionResult.parser(),
+                      extensionRegistry));
+              break;
             }
+          case 32:
+            {
+              int rawValue = input.readEnum();
 
-            break;
-          }
-          case 18: {
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              results_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000001;
+              speechEventType_ = rawValue;
+              break;
             }
-            results_.add(
-                input.readMessage(com.google.cloud.speech.v1.StreamingRecognitionResult.parser(), extensionRegistry));
-            break;
-          }
-          case 32: {
-            int rawValue = input.readEnum();
-
-            speechEventType_ = rawValue;
-            break;
-          }
-          case 42: {
-            com.google.protobuf.Duration.Builder subBuilder = null;
-            if (totalBilledTime_ != null) {
-              subBuilder = totalBilledTime_.toBuilder();
+          case 42:
+            {
+              com.google.protobuf.Duration.Builder subBuilder = null;
+              if (totalBilledTime_ != null) {
+                subBuilder = totalBilledTime_.toBuilder();
+              }
+              totalBilledTime_ =
+                  input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(totalBilledTime_);
+                totalBilledTime_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
-            totalBilledTime_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(totalBilledTime_);
-              totalBilledTime_ = subBuilder.buildPartial();
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
-            }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         results_ = java.util.Collections.unmodifiableList(results_);
@@ -153,29 +178,35 @@ private StreamingRecognizeResponse(
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_StreamingRecognizeResponse_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.speech.v1.SpeechProto
+        .internal_static_google_cloud_speech_v1_StreamingRecognizeResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_StreamingRecognizeResponse_fieldAccessorTable
+    return com.google.cloud.speech.v1.SpeechProto
+        .internal_static_google_cloud_speech_v1_StreamingRecognizeResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v1.StreamingRecognizeResponse.class, com.google.cloud.speech.v1.StreamingRecognizeResponse.Builder.class);
+            com.google.cloud.speech.v1.StreamingRecognizeResponse.class,
+            com.google.cloud.speech.v1.StreamingRecognizeResponse.Builder.class);
   }
 
   /**
+   *
+   *
    * 
    * Indicates the type of speech event.
    * 
* * Protobuf enum {@code google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType} */ - public enum SpeechEventType - implements com.google.protobuf.ProtocolMessageEnum { + public enum SpeechEventType implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * No speech event specified.
      * 
@@ -184,6 +215,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
@@ -201,6 +234,8 @@ public enum SpeechEventType
     ;
 
     /**
+     *
+     *
      * 
      * No speech event specified.
      * 
@@ -209,6 +244,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
@@ -223,7 +260,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(
@@ -248,39 +284,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();
@@ -288,8 +328,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;
@@ -309,12 +348,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 @@ -322,12 +364,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 @@ -335,6 +380,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.
@@ -350,6 +397,8 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() {
   public static final int RESULTS_FIELD_NUMBER = 2;
   private java.util.List results_;
   /**
+   *
+   *
    * 
    * This repeated list contains zero or more results that
    * correspond to consecutive portions of the audio currently being processed.
@@ -364,6 +413,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.
@@ -374,11 +425,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.
@@ -393,6 +446,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.
@@ -407,6 +462,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.
@@ -425,39 +482,57 @@ public com.google.cloud.speech.v1.StreamingRecognitionResultOrBuilder getResults
   public static final int SPEECH_EVENT_TYPE_FIELD_NUMBER = 4;
   private int speechEventType_;
   /**
+   *
+   *
    * 
    * Indicates the type of speech event.
    * 
* - * .google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType speech_event_type = 4; + * .google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType speech_event_type = 4; + * + * * @return The enum numeric value on the wire for speechEventType. */ - @java.lang.Override public int getSpeechEventTypeValue() { + @java.lang.Override + public int getSpeechEventTypeValue() { return speechEventType_; } /** + * + * *
    * Indicates the type of speech event.
    * 
* - * .google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType speech_event_type = 4; + * .google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType speech_event_type = 4; + * + * * @return The speechEventType. */ - @java.lang.Override public com.google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType getSpeechEventType() { + @java.lang.Override + public com.google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType + getSpeechEventType() { @SuppressWarnings("deprecation") - com.google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType result = com.google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType.valueOf(speechEventType_); - return result == null ? com.google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType.UNRECOGNIZED : result; + com.google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType result = + com.google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType.valueOf( + speechEventType_); + return result == null + ? com.google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType.UNRECOGNIZED + : result; } public static final int TOTAL_BILLED_TIME_FIELD_NUMBER = 5; private com.google.protobuf.Duration totalBilledTime_; /** + * + * *
    * When available, billed audio seconds for the stream.
    * Set only if this is the last response in the stream.
    * 
* * .google.protobuf.Duration total_billed_time = 5; + * * @return Whether the totalBilledTime field is set. */ @java.lang.Override @@ -465,19 +540,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.
@@ -491,6 +573,7 @@ public com.google.protobuf.DurationOrBuilder getTotalBilledTimeOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -502,15 +585,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) {
@@ -526,20 +611,19 @@ public int getSerializedSize() {
 
     size = 0;
     if (error_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(1, getError());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getError());
     }
     for (int i = 0; i < results_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(2, results_.get(i));
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, results_.get(i));
     }
-    if (speechEventType_ != com.google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType.SPEECH_EVENT_UNSPECIFIED.getNumber()) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeEnumSize(4, speechEventType_);
+    if (speechEventType_
+        != com.google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType
+            .SPEECH_EVENT_UNSPECIFIED
+            .getNumber()) {
+      size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, speechEventType_);
     }
     if (totalBilledTime_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(5, getTotalBilledTime());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getTotalBilledTime());
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -549,25 +633,23 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.speech.v1.StreamingRecognizeResponse)) {
       return super.equals(obj);
     }
-    com.google.cloud.speech.v1.StreamingRecognizeResponse other = (com.google.cloud.speech.v1.StreamingRecognizeResponse) obj;
+    com.google.cloud.speech.v1.StreamingRecognizeResponse other =
+        (com.google.cloud.speech.v1.StreamingRecognizeResponse) obj;
 
     if (hasError() != other.hasError()) return false;
     if (hasError()) {
-      if (!getError()
-          .equals(other.getError())) return false;
+      if (!getError().equals(other.getError())) return false;
     }
-    if (!getResultsList()
-        .equals(other.getResultsList())) return false;
+    if (!getResultsList().equals(other.getResultsList())) return false;
     if (speechEventType_ != other.speechEventType_) return false;
     if (hasTotalBilledTime() != other.hasTotalBilledTime()) return false;
     if (hasTotalBilledTime()) {
-      if (!getTotalBilledTime()
-          .equals(other.getTotalBilledTime())) return false;
+      if (!getTotalBilledTime().equals(other.getTotalBilledTime())) return false;
     }
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
@@ -600,96 +682,104 @@ public int hashCode() {
   }
 
   public static com.google.cloud.speech.v1.StreamingRecognizeResponse parseFrom(
-      java.nio.ByteBuffer data)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.speech.v1.StreamingRecognizeResponse parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.speech.v1.StreamingRecognizeResponse parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.speech.v1.StreamingRecognizeResponse parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.speech.v1.StreamingRecognizeResponse parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.speech.v1.StreamingRecognizeResponse parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.speech.v1.StreamingRecognizeResponse parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.speech.v1.StreamingRecognizeResponse parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.speech.v1.StreamingRecognizeResponse parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
-  public static com.google.cloud.speech.v1.StreamingRecognizeResponse parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+
+  public static com.google.cloud.speech.v1.StreamingRecognizeResponse parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.speech.v1.StreamingRecognizeResponse parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.speech.v1.StreamingRecognizeResponse parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.speech.v1.StreamingRecognizeResponse parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-  public static Builder newBuilder(com.google.cloud.speech.v1.StreamingRecognizeResponse prototype) {
+
+  public static Builder newBuilder(
+      com.google.cloud.speech.v1.StreamingRecognizeResponse prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * `StreamingRecognizeResponse` is the only message returned to the client by
    * `StreamingRecognize`. A series of zero or more `StreamingRecognizeResponse`
@@ -731,21 +821,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.speech.v1.StreamingRecognizeResponse}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1.StreamingRecognizeResponse)
       com.google.cloud.speech.v1.StreamingRecognizeResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_StreamingRecognizeResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.speech.v1.SpeechProto
+          .internal_static_google_cloud_speech_v1_StreamingRecognizeResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_StreamingRecognizeResponse_fieldAccessorTable
+      return com.google.cloud.speech.v1.SpeechProto
+          .internal_static_google_cloud_speech_v1_StreamingRecognizeResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v1.StreamingRecognizeResponse.class, com.google.cloud.speech.v1.StreamingRecognizeResponse.Builder.class);
+              com.google.cloud.speech.v1.StreamingRecognizeResponse.class,
+              com.google.cloud.speech.v1.StreamingRecognizeResponse.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v1.StreamingRecognizeResponse.newBuilder()
@@ -753,17 +845,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
         getResultsFieldBuilder();
       }
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -791,9 +883,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
@@ -812,7 +904,8 @@ public com.google.cloud.speech.v1.StreamingRecognizeResponse build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v1.StreamingRecognizeResponse buildPartial() {
-      com.google.cloud.speech.v1.StreamingRecognizeResponse result = new com.google.cloud.speech.v1.StreamingRecognizeResponse(this);
+      com.google.cloud.speech.v1.StreamingRecognizeResponse result =
+          new com.google.cloud.speech.v1.StreamingRecognizeResponse(this);
       int from_bitField0_ = bitField0_;
       if (errorBuilder_ == null) {
         result.error_ = error_;
@@ -842,38 +935,39 @@ public com.google.cloud.speech.v1.StreamingRecognizeResponse buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.speech.v1.StreamingRecognizeResponse) {
-        return mergeFrom((com.google.cloud.speech.v1.StreamingRecognizeResponse)other);
+        return mergeFrom((com.google.cloud.speech.v1.StreamingRecognizeResponse) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -881,7 +975,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());
       }
@@ -903,9 +998,10 @@ public Builder mergeFrom(com.google.cloud.speech.v1.StreamingRecognizeResponse o
             resultsBuilder_ = null;
             results_ = other.results_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            resultsBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getResultsFieldBuilder() : null;
+            resultsBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getResultsFieldBuilder()
+                    : null;
           } else {
             resultsBuilder_.addAllMessages(other.results_);
           }
@@ -936,7 +1032,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.speech.v1.StreamingRecognizeResponse) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.speech.v1.StreamingRecognizeResponse) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -945,30 +1042,38 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
     private com.google.rpc.Status error_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> errorBuilder_;
+            com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>
+        errorBuilder_;
     /**
+     *
+     *
      * 
      * If set, returns a [google.rpc.Status][google.rpc.Status] message that
      * specifies the error for the operation.
      * 
* * .google.rpc.Status error = 1; + * * @return Whether the error field is set. */ public boolean hasError() { return errorBuilder_ != null || error_ != null; } /** + * + * *
      * If set, returns a [google.rpc.Status][google.rpc.Status] message that
      * specifies the error for the operation.
      * 
* * .google.rpc.Status error = 1; + * * @return The error. */ public com.google.rpc.Status getError() { @@ -979,6 +1084,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.
@@ -1000,6 +1107,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.
@@ -1007,8 +1116,7 @@ public Builder setError(com.google.rpc.Status value) {
      *
      * .google.rpc.Status error = 1;
      */
-    public Builder setError(
-        com.google.rpc.Status.Builder builderForValue) {
+    public Builder setError(com.google.rpc.Status.Builder builderForValue) {
       if (errorBuilder_ == null) {
         error_ = builderForValue.build();
         onChanged();
@@ -1019,6 +1127,8 @@ public Builder setError(
       return this;
     }
     /**
+     *
+     *
      * 
      * If set, returns a [google.rpc.Status][google.rpc.Status] message that
      * specifies the error for the operation.
@@ -1029,8 +1139,7 @@ public Builder setError(
     public Builder mergeError(com.google.rpc.Status value) {
       if (errorBuilder_ == null) {
         if (error_ != null) {
-          error_ =
-            com.google.rpc.Status.newBuilder(error_).mergeFrom(value).buildPartial();
+          error_ = com.google.rpc.Status.newBuilder(error_).mergeFrom(value).buildPartial();
         } else {
           error_ = value;
         }
@@ -1042,6 +1151,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.
@@ -1061,6 +1172,8 @@ public Builder clearError() {
       return this;
     }
     /**
+     *
+     *
      * 
      * If set, returns a [google.rpc.Status][google.rpc.Status] message that
      * specifies the error for the operation.
@@ -1069,11 +1182,13 @@ public Builder clearError() {
      * .google.rpc.Status error = 1;
      */
     public com.google.rpc.Status.Builder getErrorBuilder() {
-      
+
       onChanged();
       return getErrorFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * If set, returns a [google.rpc.Status][google.rpc.Status] message that
      * specifies the error for the operation.
@@ -1085,11 +1200,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.
@@ -1098,32 +1214,40 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() {
      * .google.rpc.Status error = 1;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> 
+            com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>
         getErrorFieldBuilder() {
       if (errorBuilder_ == null) {
-        errorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>(
-                getError(),
-                getParentForChildren(),
-                isClean());
+        errorBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.rpc.Status,
+                com.google.rpc.Status.Builder,
+                com.google.rpc.StatusOrBuilder>(getError(), getParentForChildren(), isClean());
         error_ = null;
       }
       return errorBuilder_;
     }
 
     private java.util.List results_ =
-      java.util.Collections.emptyList();
+        java.util.Collections.emptyList();
+
     private void ensureResultsIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
-        results_ = new java.util.ArrayList(results_);
+        results_ =
+            new java.util.ArrayList(
+                results_);
         bitField0_ |= 0x00000001;
-       }
+      }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.speech.v1.StreamingRecognitionResult, com.google.cloud.speech.v1.StreamingRecognitionResult.Builder, com.google.cloud.speech.v1.StreamingRecognitionResultOrBuilder> resultsBuilder_;
+            com.google.cloud.speech.v1.StreamingRecognitionResult,
+            com.google.cloud.speech.v1.StreamingRecognitionResult.Builder,
+            com.google.cloud.speech.v1.StreamingRecognitionResultOrBuilder>
+        resultsBuilder_;
 
     /**
+     *
+     *
      * 
      * This repeated list contains zero or more results that
      * correspond to consecutive portions of the audio currently being processed.
@@ -1141,6 +1265,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.
@@ -1158,6 +1284,8 @@ public int getResultsCount() {
       }
     }
     /**
+     *
+     *
      * 
      * This repeated list contains zero or more results that
      * correspond to consecutive portions of the audio currently being processed.
@@ -1175,6 +1303,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.
@@ -1199,6 +1329,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.
@@ -1220,6 +1352,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.
@@ -1243,6 +1377,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.
@@ -1267,6 +1403,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.
@@ -1288,6 +1426,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.
@@ -1309,6 +1449,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.
@@ -1319,11 +1461,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);
@@ -1331,6 +1473,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.
@@ -1351,6 +1495,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.
@@ -1371,6 +1517,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.
@@ -1385,6 +1533,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.
@@ -1397,11 +1547,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.
@@ -1411,8 +1564,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 {
@@ -1420,6 +1573,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.
@@ -1430,10 +1585,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.
@@ -1445,10 +1602,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.
@@ -1458,20 +1618,23 @@ public com.google.cloud.speech.v1.StreamingRecognitionResult.Builder addResultsB
      *
      * repeated .google.cloud.speech.v1.StreamingRecognitionResult results = 2;
      */
-    public java.util.List 
-         getResultsBuilderList() {
+    public java.util.List
+        getResultsBuilderList() {
       return getResultsFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.speech.v1.StreamingRecognitionResult, com.google.cloud.speech.v1.StreamingRecognitionResult.Builder, com.google.cloud.speech.v1.StreamingRecognitionResultOrBuilder> 
+            com.google.cloud.speech.v1.StreamingRecognitionResult,
+            com.google.cloud.speech.v1.StreamingRecognitionResult.Builder,
+            com.google.cloud.speech.v1.StreamingRecognitionResultOrBuilder>
         getResultsFieldBuilder() {
       if (resultsBuilder_ == null) {
-        resultsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.speech.v1.StreamingRecognitionResult, com.google.cloud.speech.v1.StreamingRecognitionResult.Builder, com.google.cloud.speech.v1.StreamingRecognitionResultOrBuilder>(
-                results_,
-                ((bitField0_ & 0x00000001) != 0),
-                getParentForChildren(),
-                isClean());
+        resultsBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.cloud.speech.v1.StreamingRecognitionResult,
+                com.google.cloud.speech.v1.StreamingRecognitionResult.Builder,
+                com.google.cloud.speech.v1.StreamingRecognitionResultOrBuilder>(
+                results_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
         results_ = null;
       }
       return resultsBuilder_;
@@ -1479,73 +1642,105 @@ public com.google.cloud.speech.v1.StreamingRecognitionResult.Builder addResultsB
 
     private int speechEventType_ = 0;
     /**
+     *
+     *
      * 
      * Indicates the type of speech event.
      * 
* - * .google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType speech_event_type = 4; + * + * .google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType speech_event_type = 4; + * + * * @return The enum numeric value on the wire for speechEventType. */ - @java.lang.Override public int getSpeechEventTypeValue() { + @java.lang.Override + public int getSpeechEventTypeValue() { return speechEventType_; } /** + * + * *
      * Indicates the type of speech event.
      * 
* - * .google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType speech_event_type = 4; + * + * .google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType speech_event_type = 4; + * + * * @param value The enum numeric value on the wire for speechEventType to set. * @return This builder for chaining. */ public Builder setSpeechEventTypeValue(int value) { - + speechEventType_ = value; onChanged(); return this; } /** + * + * *
      * Indicates the type of speech event.
      * 
* - * .google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType speech_event_type = 4; + * + * .google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType speech_event_type = 4; + * + * * @return The speechEventType. */ @java.lang.Override - public com.google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType getSpeechEventType() { + public com.google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType + getSpeechEventType() { @SuppressWarnings("deprecation") - com.google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType result = com.google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType.valueOf(speechEventType_); - return result == null ? com.google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType.UNRECOGNIZED : result; + com.google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType result = + com.google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType.valueOf( + speechEventType_); + return result == null + ? com.google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType.UNRECOGNIZED + : result; } /** + * + * *
      * Indicates the type of speech event.
      * 
* - * .google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType speech_event_type = 4; + * + * .google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType speech_event_type = 4; + * + * * @param value The speechEventType to set. * @return This builder for chaining. */ - public Builder setSpeechEventType(com.google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType value) { + public Builder setSpeechEventType( + com.google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType value) { if (value == null) { throw new NullPointerException(); } - + speechEventType_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Indicates the type of speech event.
      * 
* - * .google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType speech_event_type = 4; + * + * .google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType speech_event_type = 4; + * + * * @return This builder for chaining. */ public Builder clearSpeechEventType() { - + speechEventType_ = 0; onChanged(); return this; @@ -1553,36 +1748,49 @@ public Builder clearSpeechEventType() { private com.google.protobuf.Duration totalBilledTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> totalBilledTimeBuilder_; + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + totalBilledTimeBuilder_; /** + * + * *
      * When available, billed audio seconds for the stream.
      * Set only if this is the last response in the stream.
      * 
* * .google.protobuf.Duration total_billed_time = 5; + * * @return Whether the totalBilledTime field is set. */ public boolean hasTotalBilledTime() { return totalBilledTimeBuilder_ != null || totalBilledTime_ != null; } /** + * + * *
      * When available, billed audio seconds for the stream.
      * Set only if this is the last response in the stream.
      * 
* * .google.protobuf.Duration total_billed_time = 5; + * * @return The totalBilledTime. */ public com.google.protobuf.Duration getTotalBilledTime() { if (totalBilledTimeBuilder_ == null) { - return totalBilledTime_ == null ? com.google.protobuf.Duration.getDefaultInstance() : totalBilledTime_; + return totalBilledTime_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : totalBilledTime_; } else { return totalBilledTimeBuilder_.getMessage(); } } /** + * + * *
      * When available, billed audio seconds for the stream.
      * Set only if this is the last response in the stream.
@@ -1604,6 +1812,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.
@@ -1611,8 +1821,7 @@ public Builder setTotalBilledTime(com.google.protobuf.Duration value) {
      *
      * .google.protobuf.Duration total_billed_time = 5;
      */
-    public Builder setTotalBilledTime(
-        com.google.protobuf.Duration.Builder builderForValue) {
+    public Builder setTotalBilledTime(com.google.protobuf.Duration.Builder builderForValue) {
       if (totalBilledTimeBuilder_ == null) {
         totalBilledTime_ = builderForValue.build();
         onChanged();
@@ -1623,6 +1832,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.
@@ -1634,7 +1845,9 @@ public Builder mergeTotalBilledTime(com.google.protobuf.Duration value) {
       if (totalBilledTimeBuilder_ == null) {
         if (totalBilledTime_ != null) {
           totalBilledTime_ =
-            com.google.protobuf.Duration.newBuilder(totalBilledTime_).mergeFrom(value).buildPartial();
+              com.google.protobuf.Duration.newBuilder(totalBilledTime_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           totalBilledTime_ = value;
         }
@@ -1646,6 +1859,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.
@@ -1665,6 +1880,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.
@@ -1673,11 +1890,13 @@ public Builder clearTotalBilledTime() {
      * .google.protobuf.Duration total_billed_time = 5;
      */
     public com.google.protobuf.Duration.Builder getTotalBilledTimeBuilder() {
-      
+
       onChanged();
       return getTotalBilledTimeFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * When available, billed audio seconds for the stream.
      * Set only if this is the last response in the stream.
@@ -1689,11 +1908,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.
@@ -1702,21 +1924,24 @@ public com.google.protobuf.DurationOrBuilder getTotalBilledTimeOrBuilder() {
      * .google.protobuf.Duration total_billed_time = 5;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> 
+            com.google.protobuf.Duration,
+            com.google.protobuf.Duration.Builder,
+            com.google.protobuf.DurationOrBuilder>
         getTotalBilledTimeFieldBuilder() {
       if (totalBilledTimeBuilder_ == null) {
-        totalBilledTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
-                getTotalBilledTime(),
-                getParentForChildren(),
-                isClean());
+        totalBilledTimeBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.Duration,
+                com.google.protobuf.Duration.Builder,
+                com.google.protobuf.DurationOrBuilder>(
+                getTotalBilledTime(), getParentForChildren(), isClean());
         totalBilledTime_ = null;
       }
       return totalBilledTimeBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1726,12 +1951,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();
   }
@@ -1740,16 +1965,16 @@ public static com.google.cloud.speech.v1.StreamingRecognizeResponse getDefaultIn
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public StreamingRecognizeResponse parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return new StreamingRecognizeResponse(input, extensionRegistry);
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public StreamingRecognizeResponse parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          return new StreamingRecognizeResponse(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1764,6 +1989,4 @@ public com.google.protobuf.Parser getParserForType()
   public com.google.cloud.speech.v1.StreamingRecognizeResponse getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeResponseOrBuilder.java b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeResponseOrBuilder.java
similarity index 83%
rename from owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeResponseOrBuilder.java
rename to proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeResponseOrBuilder.java
index 1a3c3b062..2c285ed9f 100644
--- a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeResponseOrBuilder.java
+++ b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeResponseOrBuilder.java
@@ -1,33 +1,57 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/speech/v1/cloud_speech.proto
 
 package com.google.cloud.speech.v1;
 
-public interface StreamingRecognizeResponseOrBuilder extends
+public interface StreamingRecognizeResponseOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1.StreamingRecognizeResponse)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * If set, returns a [google.rpc.Status][google.rpc.Status] message that
    * specifies the error for the operation.
    * 
* * .google.rpc.Status error = 1; + * * @return Whether the error field is set. */ boolean hasError(); /** + * + * *
    * If set, returns a [google.rpc.Status][google.rpc.Status] message that
    * specifies the error for the operation.
    * 
* * .google.rpc.Status error = 1; + * * @return The error. */ com.google.rpc.Status getError(); /** + * + * *
    * If set, returns a [google.rpc.Status][google.rpc.Status] message that
    * specifies the error for the operation.
@@ -38,6 +62,8 @@ public interface StreamingRecognizeResponseOrBuilder extends
   com.google.rpc.StatusOrBuilder getErrorOrBuilder();
 
   /**
+   *
+   *
    * 
    * This repeated list contains zero or more results that
    * correspond to consecutive portions of the audio currently being processed.
@@ -47,9 +73,10 @@ public interface StreamingRecognizeResponseOrBuilder extends
    *
    * repeated .google.cloud.speech.v1.StreamingRecognitionResult results = 2;
    */
-  java.util.List 
-      getResultsList();
+  java.util.List getResultsList();
   /**
+   *
+   *
    * 
    * This repeated list contains zero or more results that
    * correspond to consecutive portions of the audio currently being processed.
@@ -61,6 +88,8 @@ public interface StreamingRecognizeResponseOrBuilder extends
    */
   com.google.cloud.speech.v1.StreamingRecognitionResult getResults(int index);
   /**
+   *
+   *
    * 
    * This repeated list contains zero or more results that
    * correspond to consecutive portions of the audio currently being processed.
@@ -72,6 +101,8 @@ public interface StreamingRecognizeResponseOrBuilder extends
    */
   int getResultsCount();
   /**
+   *
+   *
    * 
    * This repeated list contains zero or more results that
    * correspond to consecutive portions of the audio currently being processed.
@@ -81,9 +112,11 @@ public interface StreamingRecognizeResponseOrBuilder extends
    *
    * repeated .google.cloud.speech.v1.StreamingRecognitionResult results = 2;
    */
-  java.util.List 
+  java.util.List
       getResultsOrBuilderList();
   /**
+   *
+   *
    * 
    * This repeated list contains zero or more results that
    * correspond to consecutive portions of the audio currently being processed.
@@ -93,49 +126,64 @@ public interface StreamingRecognizeResponseOrBuilder extends
    *
    * repeated .google.cloud.speech.v1.StreamingRecognitionResult results = 2;
    */
-  com.google.cloud.speech.v1.StreamingRecognitionResultOrBuilder getResultsOrBuilder(
-      int index);
+  com.google.cloud.speech.v1.StreamingRecognitionResultOrBuilder getResultsOrBuilder(int index);
 
   /**
+   *
+   *
    * 
    * Indicates the type of speech event.
    * 
* - * .google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType speech_event_type = 4; + * .google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType speech_event_type = 4; + * + * * @return The enum numeric value on the wire for speechEventType. */ int getSpeechEventTypeValue(); /** + * + * *
    * Indicates the type of speech event.
    * 
* - * .google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType speech_event_type = 4; + * .google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType speech_event_type = 4; + * + * * @return The speechEventType. */ com.google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType getSpeechEventType(); /** + * + * *
    * When available, billed audio seconds for the stream.
    * Set only if this is the last response in the stream.
    * 
* * .google.protobuf.Duration total_billed_time = 5; + * * @return Whether the totalBilledTime field is set. */ boolean hasTotalBilledTime(); /** + * + * *
    * When available, billed audio seconds for the stream.
    * Set only if this is the last response in the stream.
    * 
* * .google.protobuf.Duration total_billed_time = 5; + * * @return The totalBilledTime. */ com.google.protobuf.Duration getTotalBilledTime(); /** + * + * *
    * When available, billed audio seconds for the stream.
    * Set only if this is the last response in the stream.
diff --git a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/TranscriptOutputConfig.java b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/TranscriptOutputConfig.java
similarity index 70%
rename from owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/TranscriptOutputConfig.java
rename to proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/TranscriptOutputConfig.java
index 765850ebb..93ce8b9db 100644
--- a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/TranscriptOutputConfig.java
+++ b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/TranscriptOutputConfig.java
@@ -1,39 +1,55 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/speech/v1/cloud_speech.proto
 
 package com.google.cloud.speech.v1;
 
 /**
+ *
+ *
  * 
  * Specifies an optional destination for the recognition results.
  * 
* * Protobuf type {@code google.cloud.speech.v1.TranscriptOutputConfig} */ -public final class TranscriptOutputConfig extends - com.google.protobuf.GeneratedMessageV3 implements +public final class TranscriptOutputConfig extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v1.TranscriptOutputConfig) TranscriptOutputConfigOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use TranscriptOutputConfig.newBuilder() to construct. private TranscriptOutputConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private TranscriptOutputConfig() { - } + + private TranscriptOutputConfig() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new TranscriptOutputConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private TranscriptOutputConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,52 +68,58 @@ private TranscriptOutputConfig( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - outputTypeCase_ = 1; - outputType_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + outputTypeCase_ = 1; + outputType_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_TranscriptOutputConfig_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1.SpeechProto + .internal_static_google_cloud_speech_v1_TranscriptOutputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_TranscriptOutputConfig_fieldAccessorTable + return com.google.cloud.speech.v1.SpeechProto + .internal_static_google_cloud_speech_v1_TranscriptOutputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1.TranscriptOutputConfig.class, com.google.cloud.speech.v1.TranscriptOutputConfig.Builder.class); + com.google.cloud.speech.v1.TranscriptOutputConfig.class, + com.google.cloud.speech.v1.TranscriptOutputConfig.Builder.class); } private int outputTypeCase_ = 0; private java.lang.Object outputType_; + public enum OutputTypeCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { GCS_URI(1), OUTPUTTYPE_NOT_SET(0); private final int value; + private OutputTypeCase(int value) { this.value = value; } @@ -113,24 +135,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
@@ -138,12 +164,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
@@ -151,6 +180,7 @@ public boolean hasGcsUri() {
    * 
* * string gcs_uri = 1; + * * @return The gcsUri. */ public java.lang.String getGcsUri() { @@ -161,8 +191,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; @@ -171,6 +200,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
@@ -178,18 +209,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; } @@ -200,6 +230,7 @@ public java.lang.String getGcsUri() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -211,8 +242,7 @@ public final boolean isInitialized() { } @java.lang.Override - public 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_); } @@ -236,18 +266,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: @@ -277,117 +307,126 @@ public int hashCode() { } public static com.google.cloud.speech.v1.TranscriptOutputConfig parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1.TranscriptOutputConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1.TranscriptOutputConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1.TranscriptOutputConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1.TranscriptOutputConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1.TranscriptOutputConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1.TranscriptOutputConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1.TranscriptOutputConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1.TranscriptOutputConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1.TranscriptOutputConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1.TranscriptOutputConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1.TranscriptOutputConfig parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.speech.v1.TranscriptOutputConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1.TranscriptOutputConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.speech.v1.TranscriptOutputConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Specifies an optional destination for the recognition results.
    * 
* * Protobuf type {@code google.cloud.speech.v1.TranscriptOutputConfig} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1.TranscriptOutputConfig) com.google.cloud.speech.v1.TranscriptOutputConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_TranscriptOutputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1.SpeechProto + .internal_static_google_cloud_speech_v1_TranscriptOutputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_TranscriptOutputConfig_fieldAccessorTable + return com.google.cloud.speech.v1.SpeechProto + .internal_static_google_cloud_speech_v1_TranscriptOutputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1.TranscriptOutputConfig.class, com.google.cloud.speech.v1.TranscriptOutputConfig.Builder.class); + com.google.cloud.speech.v1.TranscriptOutputConfig.class, + com.google.cloud.speech.v1.TranscriptOutputConfig.Builder.class); } // Construct using com.google.cloud.speech.v1.TranscriptOutputConfig.newBuilder() @@ -395,16 +434,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -414,9 +452,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_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 @@ -435,7 +473,8 @@ public com.google.cloud.speech.v1.TranscriptOutputConfig build() { @java.lang.Override public com.google.cloud.speech.v1.TranscriptOutputConfig buildPartial() { - com.google.cloud.speech.v1.TranscriptOutputConfig result = new com.google.cloud.speech.v1.TranscriptOutputConfig(this); + com.google.cloud.speech.v1.TranscriptOutputConfig result = + new com.google.cloud.speech.v1.TranscriptOutputConfig(this); if (outputTypeCase_ == 1) { result.outputType_ = outputType_; } @@ -448,38 +487,39 @@ public com.google.cloud.speech.v1.TranscriptOutputConfig buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.speech.v1.TranscriptOutputConfig) { - return mergeFrom((com.google.cloud.speech.v1.TranscriptOutputConfig)other); + return mergeFrom((com.google.cloud.speech.v1.TranscriptOutputConfig) other); } else { super.mergeFrom(other); return this; @@ -487,17 +527,20 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.speech.v1.TranscriptOutputConfig other) { - if (other == com.google.cloud.speech.v1.TranscriptOutputConfig.getDefaultInstance()) return this; + if (other == com.google.cloud.speech.v1.TranscriptOutputConfig.getDefaultInstance()) + return this; switch (other.getOutputTypeCase()) { - case GCS_URI: { - outputTypeCase_ = 1; - outputType_ = other.outputType_; - onChanged(); - break; - } - case OUTPUTTYPE_NOT_SET: { - break; - } + case GCS_URI: + { + outputTypeCase_ = 1; + outputType_ = other.outputType_; + onChanged(); + break; + } + case OUTPUTTYPE_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -518,7 +561,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.speech.v1.TranscriptOutputConfig) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.speech.v1.TranscriptOutputConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -527,12 +571,12 @@ public Builder mergeFrom( } return this; } + private int outputTypeCase_ = 0; private java.lang.Object outputType_; - public OutputTypeCase - getOutputTypeCase() { - return OutputTypeCase.forNumber( - outputTypeCase_); + + public OutputTypeCase getOutputTypeCase() { + return OutputTypeCase.forNumber(outputTypeCase_); } public Builder clearOutputType() { @@ -542,8 +586,9 @@ public Builder clearOutputType() { return this; } - /** + * + * *
      * Specifies a Cloud Storage URI for the recognition results. Must be
      * specified in the format: `gs://bucket_name/object_name`, and the bucket
@@ -551,6 +596,7 @@ public Builder clearOutputType() {
      * 
* * string gcs_uri = 1; + * * @return Whether the gcsUri field is set. */ @java.lang.Override @@ -558,6 +604,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
@@ -565,6 +613,7 @@ public boolean hasGcsUri() {
      * 
* * string gcs_uri = 1; + * * @return The gcsUri. */ @java.lang.Override @@ -574,8 +623,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; @@ -586,6 +634,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
@@ -593,19 +643,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; } @@ -615,6 +664,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
@@ -622,20 +673,22 @@ public java.lang.String getGcsUri() {
      * 
* * string gcs_uri = 1; + * * @param value The gcsUri to set. * @return This builder for chaining. */ - public Builder setGcsUri( - java.lang.String value) { + public Builder setGcsUri(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - outputTypeCase_ = 1; + throw new NullPointerException(); + } + outputTypeCase_ = 1; outputType_ = value; onChanged(); return this; } /** + * + * *
      * Specifies a Cloud Storage URI for the recognition results. Must be
      * specified in the format: `gs://bucket_name/object_name`, and the bucket
@@ -643,6 +696,7 @@ public Builder setGcsUri(
      * 
* * string gcs_uri = 1; + * * @return This builder for chaining. */ public Builder clearGcsUri() { @@ -654,6 +708,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
@@ -661,23 +717,23 @@ public Builder clearGcsUri() {
      * 
* * string gcs_uri = 1; + * * @param value The bytes for gcsUri to set. * @return This builder for chaining. */ - public Builder setGcsUriBytes( - com.google.protobuf.ByteString value) { + public Builder setGcsUriBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); outputTypeCase_ = 1; outputType_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -687,12 +743,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(); } @@ -701,16 +757,16 @@ public static com.google.cloud.speech.v1.TranscriptOutputConfig getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TranscriptOutputConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TranscriptOutputConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TranscriptOutputConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TranscriptOutputConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -725,6 +781,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1.TranscriptOutputConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/TranscriptOutputConfigOrBuilder.java b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/TranscriptOutputConfigOrBuilder.java similarity index 63% rename from owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/TranscriptOutputConfigOrBuilder.java rename to proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/TranscriptOutputConfigOrBuilder.java index 5ce9fd833..c5255ae75 100644 --- a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/TranscriptOutputConfigOrBuilder.java +++ b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/TranscriptOutputConfigOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1/cloud_speech.proto package com.google.cloud.speech.v1; -public interface TranscriptOutputConfigOrBuilder extends +public interface TranscriptOutputConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1.TranscriptOutputConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Specifies a Cloud Storage URI for the recognition results. Must be
    * specified in the format: `gs://bucket_name/object_name`, and the bucket
@@ -15,10 +33,13 @@ public interface TranscriptOutputConfigOrBuilder extends
    * 
* * string gcs_uri = 1; + * * @return Whether the gcsUri field is set. */ boolean hasGcsUri(); /** + * + * *
    * Specifies a Cloud Storage URI for the recognition results. Must be
    * specified in the format: `gs://bucket_name/object_name`, and the bucket
@@ -26,10 +47,13 @@ public interface TranscriptOutputConfigOrBuilder extends
    * 
* * string gcs_uri = 1; + * * @return The gcsUri. */ java.lang.String getGcsUri(); /** + * + * *
    * Specifies a Cloud Storage URI for the recognition results. Must be
    * specified in the format: `gs://bucket_name/object_name`, and the bucket
@@ -37,10 +61,10 @@ public interface TranscriptOutputConfigOrBuilder extends
    * 
* * string gcs_uri = 1; + * * @return The bytes for gcsUri. */ - com.google.protobuf.ByteString - getGcsUriBytes(); + com.google.protobuf.ByteString getGcsUriBytes(); public com.google.cloud.speech.v1.TranscriptOutputConfig.OutputTypeCase getOutputTypeCase(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/WordInfo.java b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/WordInfo.java similarity index 77% rename from owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/WordInfo.java rename to proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/WordInfo.java index a4d0777b6..0acf4170a 100644 --- a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/WordInfo.java +++ b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/WordInfo.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1/cloud_speech.proto package com.google.cloud.speech.v1; /** + * + * *
  * Word-specific information for recognized words.
  * 
* * Protobuf type {@code google.cloud.speech.v1.WordInfo} */ -public final class WordInfo extends - com.google.protobuf.GeneratedMessageV3 implements +public final class WordInfo extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v1.WordInfo) WordInfoOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use WordInfo.newBuilder() to construct. private WordInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private WordInfo() { word_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new WordInfo(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private WordInfo( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,83 +70,92 @@ private WordInfo( case 0: done = true; break; - case 10: { - com.google.protobuf.Duration.Builder subBuilder = null; - if (startTime_ != null) { - subBuilder = startTime_.toBuilder(); + case 10: + { + com.google.protobuf.Duration.Builder subBuilder = null; + if (startTime_ != null) { + subBuilder = startTime_.toBuilder(); + } + startTime_ = + input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(startTime_); + startTime_ = subBuilder.buildPartial(); + } + + break; } - startTime_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(startTime_); - startTime_ = subBuilder.buildPartial(); + case 18: + { + com.google.protobuf.Duration.Builder subBuilder = null; + if (endTime_ != null) { + subBuilder = endTime_.toBuilder(); + } + endTime_ = + input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(endTime_); + endTime_ = subBuilder.buildPartial(); + } + + break; } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - break; - } - case 18: { - com.google.protobuf.Duration.Builder subBuilder = null; - if (endTime_ != null) { - subBuilder = endTime_.toBuilder(); + word_ = s; + break; } - endTime_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(endTime_); - endTime_ = subBuilder.buildPartial(); + case 37: + { + confidence_ = input.readFloat(); + break; } - - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - word_ = s; - break; - } - case 37: { - - confidence_ = input.readFloat(); - break; - } - case 40: { - - speakerTag_ = input.readInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 40: + { + speakerTag_ = input.readInt32(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_WordInfo_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1.SpeechProto + .internal_static_google_cloud_speech_v1_WordInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_WordInfo_fieldAccessorTable + return com.google.cloud.speech.v1.SpeechProto + .internal_static_google_cloud_speech_v1_WordInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1.WordInfo.class, com.google.cloud.speech.v1.WordInfo.Builder.class); + com.google.cloud.speech.v1.WordInfo.class, + com.google.cloud.speech.v1.WordInfo.Builder.class); } public static final int START_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Duration startTime_; /** + * + * *
    * Time offset relative to the beginning of the audio,
    * and corresponding to the start of the spoken word.
@@ -140,6 +166,7 @@ private WordInfo(
    * 
* * .google.protobuf.Duration start_time = 1; + * * @return Whether the startTime field is set. */ @java.lang.Override @@ -147,6 +174,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.
@@ -157,6 +186,7 @@ public boolean hasStartTime() {
    * 
* * .google.protobuf.Duration start_time = 1; + * * @return The startTime. */ @java.lang.Override @@ -164,6 +194,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.
@@ -183,6 +215,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.
@@ -193,6 +227,7 @@ public com.google.protobuf.DurationOrBuilder getStartTimeOrBuilder() {
    * 
* * .google.protobuf.Duration end_time = 2; + * * @return Whether the endTime field is set. */ @java.lang.Override @@ -200,6 +235,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.
@@ -210,6 +247,7 @@ public boolean hasEndTime() {
    * 
* * .google.protobuf.Duration end_time = 2; + * * @return The endTime. */ @java.lang.Override @@ -217,6 +255,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.
@@ -236,11 +276,14 @@ public com.google.protobuf.DurationOrBuilder getEndTimeOrBuilder() {
   public static final int WORD_FIELD_NUMBER = 3;
   private volatile java.lang.Object word_;
   /**
+   *
+   *
    * 
    * The word corresponding to this set of information.
    * 
* * string word = 3; + * * @return The word. */ @java.lang.Override @@ -249,29 +292,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 { @@ -282,6 +325,8 @@ public java.lang.String getWord() { public static final int CONFIDENCE_FIELD_NUMBER = 4; private float confidence_; /** + * + * *
    * The confidence estimate between 0.0 and 1.0. A higher number
    * indicates an estimated greater likelihood that the recognized words are
@@ -293,6 +338,7 @@ public java.lang.String getWord() {
    * 
* * float confidence = 4; + * * @return The confidence. */ @java.lang.Override @@ -303,6 +349,8 @@ public float getConfidence() { public static final int SPEAKER_TAG_FIELD_NUMBER = 5; private int speakerTag_; /** + * + * *
    * Output only. A distinct integer value is assigned for every speaker within
    * the audio. This field specifies which one of those speakers was detected to
@@ -312,6 +360,7 @@ public float getConfidence() {
    * 
* * int32 speaker_tag = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The speakerTag. */ @java.lang.Override @@ -320,6 +369,7 @@ public int getSpeakerTag() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -331,8 +381,7 @@ public final boolean isInitialized() { } @java.lang.Override - public 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()); } @@ -358,23 +407,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 (confidence_ != 0F) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(4, confidence_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(4, confidence_); } if (speakerTag_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(5, speakerTag_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, speakerTag_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -384,7 +429,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); @@ -393,21 +438,16 @@ public boolean equals(final java.lang.Object obj) { if (hasStartTime() != other.hasStartTime()) return false; if (hasStartTime()) { - if (!getStartTime() - .equals(other.getStartTime())) return false; + if (!getStartTime().equals(other.getStartTime())) return false; } if (hasEndTime() != other.hasEndTime()) return false; if (hasEndTime()) { - if (!getEndTime() - .equals(other.getEndTime())) return false; + if (!getEndTime().equals(other.getEndTime())) return false; } - if (!getWord() - .equals(other.getWord())) return false; + if (!getWord().equals(other.getWord())) return false; if (java.lang.Float.floatToIntBits(getConfidence()) - != java.lang.Float.floatToIntBits( - other.getConfidence())) return false; - if (getSpeakerTag() - != other.getSpeakerTag()) return false; + != java.lang.Float.floatToIntBits(other.getConfidence())) return false; + if (getSpeakerTag() != other.getSpeakerTag()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -430,8 +470,7 @@ public int hashCode() { hash = (37 * hash) + WORD_FIELD_NUMBER; hash = (53 * hash) + getWord().hashCode(); hash = (37 * hash) + CONFIDENCE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getConfidence()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getConfidence()); hash = (37 * hash) + SPEAKER_TAG_FIELD_NUMBER; hash = (53 * hash) + getSpeakerTag(); hash = (29 * hash) + unknownFields.hashCode(); @@ -439,118 +478,126 @@ public int hashCode() { return hash; } - public static com.google.cloud.speech.v1.WordInfo parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.speech.v1.WordInfo parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1.WordInfo parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1.WordInfo parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.cloud.speech.v1.WordInfo parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1.WordInfo parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1.WordInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1.WordInfo parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1.WordInfo parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1.WordInfo parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.speech.v1.WordInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1.WordInfo parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.speech.v1.WordInfo parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1.WordInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.speech.v1.WordInfo prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Word-specific information for recognized words.
    * 
* * Protobuf type {@code google.cloud.speech.v1.WordInfo} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1.WordInfo) com.google.cloud.speech.v1.WordInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_WordInfo_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1.SpeechProto + .internal_static_google_cloud_speech_v1_WordInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_WordInfo_fieldAccessorTable + return com.google.cloud.speech.v1.SpeechProto + .internal_static_google_cloud_speech_v1_WordInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1.WordInfo.class, com.google.cloud.speech.v1.WordInfo.Builder.class); + com.google.cloud.speech.v1.WordInfo.class, + com.google.cloud.speech.v1.WordInfo.Builder.class); } // Construct using com.google.cloud.speech.v1.WordInfo.newBuilder() @@ -558,16 +605,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -593,9 +639,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 @@ -636,38 +682,39 @@ public com.google.cloud.speech.v1.WordInfo buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.speech.v1.WordInfo) { - return mergeFrom((com.google.cloud.speech.v1.WordInfo)other); + return mergeFrom((com.google.cloud.speech.v1.WordInfo) other); } else { super.mergeFrom(other); return this; @@ -723,8 +770,13 @@ public Builder mergeFrom( private com.google.protobuf.Duration startTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> startTimeBuilder_; + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + startTimeBuilder_; /** + * + * *
      * Time offset relative to the beginning of the audio,
      * and corresponding to the start of the spoken word.
@@ -735,12 +787,15 @@ public Builder mergeFrom(
      * 
* * .google.protobuf.Duration start_time = 1; + * * @return Whether the startTime field is set. */ public boolean hasStartTime() { return startTimeBuilder_ != null || startTime_ != null; } /** + * + * *
      * Time offset relative to the beginning of the audio,
      * and corresponding to the start of the spoken word.
@@ -751,6 +806,7 @@ public boolean hasStartTime() {
      * 
* * .google.protobuf.Duration start_time = 1; + * * @return The startTime. */ public com.google.protobuf.Duration getStartTime() { @@ -761,6 +817,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.
@@ -786,6 +844,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.
@@ -797,8 +857,7 @@ public Builder setStartTime(com.google.protobuf.Duration value) {
      *
      * .google.protobuf.Duration start_time = 1;
      */
-    public Builder setStartTime(
-        com.google.protobuf.Duration.Builder builderForValue) {
+    public Builder setStartTime(com.google.protobuf.Duration.Builder builderForValue) {
       if (startTimeBuilder_ == null) {
         startTime_ = builderForValue.build();
         onChanged();
@@ -809,6 +868,8 @@ public Builder setStartTime(
       return this;
     }
     /**
+     *
+     *
      * 
      * Time offset relative to the beginning of the audio,
      * and corresponding to the start of the spoken word.
@@ -824,7 +885,7 @@ public Builder mergeStartTime(com.google.protobuf.Duration value) {
       if (startTimeBuilder_ == null) {
         if (startTime_ != null) {
           startTime_ =
-            com.google.protobuf.Duration.newBuilder(startTime_).mergeFrom(value).buildPartial();
+              com.google.protobuf.Duration.newBuilder(startTime_).mergeFrom(value).buildPartial();
         } else {
           startTime_ = value;
         }
@@ -836,6 +897,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.
@@ -859,6 +922,8 @@ public Builder clearStartTime() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Time offset relative to the beginning of the audio,
      * and corresponding to the start of the spoken word.
@@ -871,11 +936,13 @@ public Builder clearStartTime() {
      * .google.protobuf.Duration start_time = 1;
      */
     public com.google.protobuf.Duration.Builder getStartTimeBuilder() {
-      
+
       onChanged();
       return getStartTimeFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Time offset relative to the beginning of the audio,
      * and corresponding to the start of the spoken word.
@@ -891,11 +958,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.
@@ -908,14 +976,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_;
@@ -923,8 +994,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.
@@ -935,12 +1011,15 @@ public com.google.protobuf.DurationOrBuilder getStartTimeOrBuilder() {
      * 
* * .google.protobuf.Duration end_time = 2; + * * @return Whether the endTime field is set. */ public boolean hasEndTime() { return endTimeBuilder_ != null || endTime_ != null; } /** + * + * *
      * Time offset relative to the beginning of the audio,
      * and corresponding to the end of the spoken word.
@@ -951,6 +1030,7 @@ public boolean hasEndTime() {
      * 
* * .google.protobuf.Duration end_time = 2; + * * @return The endTime. */ public com.google.protobuf.Duration getEndTime() { @@ -961,6 +1041,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.
@@ -986,6 +1068,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.
@@ -997,8 +1081,7 @@ public Builder setEndTime(com.google.protobuf.Duration value) {
      *
      * .google.protobuf.Duration end_time = 2;
      */
-    public Builder setEndTime(
-        com.google.protobuf.Duration.Builder builderForValue) {
+    public Builder setEndTime(com.google.protobuf.Duration.Builder builderForValue) {
       if (endTimeBuilder_ == null) {
         endTime_ = builderForValue.build();
         onChanged();
@@ -1009,6 +1092,8 @@ public Builder setEndTime(
       return this;
     }
     /**
+     *
+     *
      * 
      * Time offset relative to the beginning of the audio,
      * and corresponding to the end of the spoken word.
@@ -1024,7 +1109,7 @@ public Builder mergeEndTime(com.google.protobuf.Duration value) {
       if (endTimeBuilder_ == null) {
         if (endTime_ != null) {
           endTime_ =
-            com.google.protobuf.Duration.newBuilder(endTime_).mergeFrom(value).buildPartial();
+              com.google.protobuf.Duration.newBuilder(endTime_).mergeFrom(value).buildPartial();
         } else {
           endTime_ = value;
         }
@@ -1036,6 +1121,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.
@@ -1059,6 +1146,8 @@ public Builder clearEndTime() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Time offset relative to the beginning of the audio,
      * and corresponding to the end of the spoken word.
@@ -1071,11 +1160,13 @@ public Builder clearEndTime() {
      * .google.protobuf.Duration end_time = 2;
      */
     public com.google.protobuf.Duration.Builder getEndTimeBuilder() {
-      
+
       onChanged();
       return getEndTimeFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Time offset relative to the beginning of the audio,
      * and corresponding to the end of the spoken word.
@@ -1091,11 +1182,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.
@@ -1108,14 +1200,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_;
@@ -1123,18 +1218,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; @@ -1143,20 +1240,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 { @@ -1164,61 +1262,70 @@ public java.lang.String getWord() { } } /** + * + * *
      * The word corresponding to this set of information.
      * 
* * string word = 3; + * * @param value The word to set. * @return This builder for chaining. */ - public Builder setWord( - java.lang.String value) { + public Builder setWord(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + word_ = value; onChanged(); return this; } /** + * + * *
      * The word corresponding to this set of information.
      * 
* * string word = 3; + * * @return This builder for chaining. */ public Builder clearWord() { - + word_ = getDefaultInstance().getWord(); onChanged(); return this; } /** + * + * *
      * The word corresponding to this set of information.
      * 
* * string word = 3; + * * @param value The bytes for word to set. * @return This builder for chaining. */ - public Builder setWordBytes( - com.google.protobuf.ByteString value) { + public Builder setWordBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + word_ = value; onChanged(); return this; } - private float confidence_ ; + private float confidence_; /** + * + * *
      * The confidence estimate between 0.0 and 1.0. A higher number
      * indicates an estimated greater likelihood that the recognized words are
@@ -1230,6 +1337,7 @@ public Builder setWordBytes(
      * 
* * float confidence = 4; + * * @return The confidence. */ @java.lang.Override @@ -1237,6 +1345,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
@@ -1248,16 +1358,19 @@ public float getConfidence() {
      * 
* * float confidence = 4; + * * @param value The confidence to set. * @return This builder for chaining. */ public Builder setConfidence(float value) { - + confidence_ = value; onChanged(); return this; } /** + * + * *
      * The confidence estimate between 0.0 and 1.0. A higher number
      * indicates an estimated greater likelihood that the recognized words are
@@ -1269,17 +1382,20 @@ public Builder setConfidence(float value) {
      * 
* * float confidence = 4; + * * @return This builder for chaining. */ public Builder clearConfidence() { - + confidence_ = 0F; onChanged(); return this; } - private int speakerTag_ ; + private int speakerTag_; /** + * + * *
      * Output only. A distinct integer value is assigned for every speaker within
      * the audio. This field specifies which one of those speakers was detected to
@@ -1289,6 +1405,7 @@ public Builder clearConfidence() {
      * 
* * int32 speaker_tag = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The speakerTag. */ @java.lang.Override @@ -1296,6 +1413,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
@@ -1305,16 +1424,19 @@ public int getSpeakerTag() {
      * 
* * int32 speaker_tag = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The speakerTag to set. * @return This builder for chaining. */ public Builder setSpeakerTag(int value) { - + speakerTag_ = value; onChanged(); return this; } /** + * + * *
      * Output only. A distinct integer value is assigned for every speaker within
      * the audio. This field specifies which one of those speakers was detected to
@@ -1324,17 +1446,18 @@ public Builder setSpeakerTag(int value) {
      * 
* * int32 speaker_tag = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearSpeakerTag() { - + speakerTag_ = 0; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1344,12 +1467,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(); } @@ -1358,16 +1481,16 @@ public static com.google.cloud.speech.v1.WordInfo getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WordInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new WordInfo(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WordInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WordInfo(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1382,6 +1505,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1.WordInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/WordInfoOrBuilder.java b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/WordInfoOrBuilder.java similarity index 84% rename from owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/WordInfoOrBuilder.java rename to proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/WordInfoOrBuilder.java index f8e889216..45ed38fc6 100644 --- a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/WordInfoOrBuilder.java +++ b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/WordInfoOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1/cloud_speech.proto package com.google.cloud.speech.v1; -public interface WordInfoOrBuilder extends +public interface WordInfoOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1.WordInfo) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Time offset relative to the beginning of the audio,
    * and corresponding to the start of the spoken word.
@@ -18,10 +36,13 @@ public interface WordInfoOrBuilder extends
    * 
* * .google.protobuf.Duration start_time = 1; + * * @return Whether the startTime field is set. */ boolean hasStartTime(); /** + * + * *
    * Time offset relative to the beginning of the audio,
    * and corresponding to the start of the spoken word.
@@ -32,10 +53,13 @@ public interface WordInfoOrBuilder extends
    * 
* * .google.protobuf.Duration start_time = 1; + * * @return The startTime. */ com.google.protobuf.Duration getStartTime(); /** + * + * *
    * Time offset relative to the beginning of the audio,
    * and corresponding to the start of the spoken word.
@@ -50,6 +74,8 @@ public interface WordInfoOrBuilder extends
   com.google.protobuf.DurationOrBuilder getStartTimeOrBuilder();
 
   /**
+   *
+   *
    * 
    * Time offset relative to the beginning of the audio,
    * and corresponding to the end of the spoken word.
@@ -60,10 +86,13 @@ public interface WordInfoOrBuilder extends
    * 
* * .google.protobuf.Duration end_time = 2; + * * @return Whether the endTime field is set. */ boolean hasEndTime(); /** + * + * *
    * Time offset relative to the beginning of the audio,
    * and corresponding to the end of the spoken word.
@@ -74,10 +103,13 @@ public interface WordInfoOrBuilder extends
    * 
* * .google.protobuf.Duration end_time = 2; + * * @return The endTime. */ com.google.protobuf.Duration getEndTime(); /** + * + * *
    * Time offset relative to the beginning of the audio,
    * and corresponding to the end of the spoken word.
@@ -92,26 +124,33 @@ public interface WordInfoOrBuilder extends
   com.google.protobuf.DurationOrBuilder getEndTimeOrBuilder();
 
   /**
+   *
+   *
    * 
    * The word corresponding to this set of information.
    * 
* * string word = 3; + * * @return The word. */ java.lang.String getWord(); /** + * + * *
    * The word corresponding to this set of information.
    * 
* * string word = 3; + * * @return The bytes for word. */ - com.google.protobuf.ByteString - getWordBytes(); + com.google.protobuf.ByteString getWordBytes(); /** + * + * *
    * The confidence estimate between 0.0 and 1.0. A higher number
    * indicates an estimated greater likelihood that the recognized words are
@@ -123,11 +162,14 @@ public interface WordInfoOrBuilder extends
    * 
* * float confidence = 4; + * * @return The confidence. */ float getConfidence(); /** + * + * *
    * Output only. A distinct integer value is assigned for every speaker within
    * the audio. This field specifies which one of those speakers was detected to
@@ -137,6 +179,7 @@ public interface WordInfoOrBuilder extends
    * 
* * int32 speaker_tag = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The speakerTag. */ int getSpeakerTag(); diff --git a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/proto/google/cloud/speech/v1/cloud_speech.proto b/proto-google-cloud-speech-v1/src/main/proto/google/cloud/speech/v1/cloud_speech.proto similarity index 100% rename from owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/proto/google/cloud/speech/v1/cloud_speech.proto rename to proto-google-cloud-speech-v1/src/main/proto/google/cloud/speech/v1/cloud_speech.proto diff --git a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/proto/google/cloud/speech/v1/resource.proto b/proto-google-cloud-speech-v1/src/main/proto/google/cloud/speech/v1/resource.proto similarity index 100% rename from owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/proto/google/cloud/speech/v1/resource.proto rename to proto-google-cloud-speech-v1/src/main/proto/google/cloud/speech/v1/resource.proto diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreateCustomClassRequest.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreateCustomClassRequest.java similarity index 68% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreateCustomClassRequest.java rename to proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreateCustomClassRequest.java index 4f3543180..6b427baeb 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreateCustomClassRequest.java +++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreateCustomClassRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech_adaptation.proto package com.google.cloud.speech.v1p1beta1; /** + * + * *
  * Message sent by the client for the `CreateCustomClass` method.
  * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.CreateCustomClassRequest} */ -public final class CreateCustomClassRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CreateCustomClassRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v1p1beta1.CreateCustomClassRequest) CreateCustomClassRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CreateCustomClassRequest.newBuilder() to construct. private CreateCustomClassRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CreateCustomClassRequest() { parent_ = ""; customClassId_ = ""; @@ -26,16 +44,15 @@ private CreateCustomClassRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreateCustomClassRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private CreateCustomClassRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,66 +71,75 @@ private CreateCustomClassRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - customClassId_ = s; - break; - } - case 26: { - com.google.cloud.speech.v1p1beta1.CustomClass.Builder subBuilder = null; - if (customClass_ != null) { - subBuilder = customClass_.toBuilder(); + parent_ = s; + break; } - customClass_ = input.readMessage(com.google.cloud.speech.v1p1beta1.CustomClass.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(customClass_); - customClass_ = subBuilder.buildPartial(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + customClassId_ = s; + break; } + case 26: + { + com.google.cloud.speech.v1p1beta1.CustomClass.Builder subBuilder = null; + if (customClass_ != null) { + subBuilder = customClass_.toBuilder(); + } + customClass_ = + input.readMessage( + com.google.cloud.speech.v1p1beta1.CustomClass.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(customClass_); + customClass_ = subBuilder.buildPartial(); + } - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_CreateCustomClassRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1p1beta1_CreateCustomClassRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_CreateCustomClassRequest_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1p1beta1_CreateCustomClassRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest.class, com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest.Builder.class); + com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest.class, + com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. The parent resource where this custom class will be created.
    * Format:
@@ -125,7 +151,10 @@ private CreateCustomClassRequest(
    * with matching `us` or `eu` location value.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -134,14 +163,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:
@@ -153,17 +183,18 @@ public java.lang.String getParent() {
    * with matching `us` or `eu` location value.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -174,6 +205,8 @@ public java.lang.String getParent() { public static final int CUSTOM_CLASS_ID_FIELD_NUMBER = 2; private volatile java.lang.Object customClassId_; /** + * + * *
    * Required. The ID to use for the custom class, which will become the final
    * component of the custom class' resource name.
@@ -182,6 +215,7 @@ public java.lang.String getParent() {
    * 
* * string custom_class_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The customClassId. */ @java.lang.Override @@ -190,14 +224,15 @@ public java.lang.String getCustomClassId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); customClassId_ = s; return s; } } /** + * + * *
    * Required. The ID to use for the custom class, which will become the final
    * component of the custom class' resource name.
@@ -206,16 +241,15 @@ public java.lang.String getCustomClassId() {
    * 
* * string custom_class_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for customClassId. */ @java.lang.Override - public com.google.protobuf.ByteString - getCustomClassIdBytes() { + public com.google.protobuf.ByteString getCustomClassIdBytes() { java.lang.Object ref = customClassId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); customClassId_ = b; return b; } else { @@ -226,11 +260,16 @@ public java.lang.String getCustomClassId() { public static final int CUSTOM_CLASS_FIELD_NUMBER = 3; private com.google.cloud.speech.v1p1beta1.CustomClass customClass_; /** + * + * *
    * Required. The custom class to create.
    * 
* - * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the customClass field is set. */ @java.lang.Override @@ -238,23 +277,34 @@ public boolean hasCustomClass() { return customClass_ != null; } /** + * + * *
    * Required. The custom class to create.
    * 
* - * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The customClass. */ @java.lang.Override public com.google.cloud.speech.v1p1beta1.CustomClass getCustomClass() { - return customClass_ == null ? com.google.cloud.speech.v1p1beta1.CustomClass.getDefaultInstance() : customClass_; + return customClass_ == null + ? com.google.cloud.speech.v1p1beta1.CustomClass.getDefaultInstance() + : customClass_; } /** + * + * *
    * Required. The custom class to create.
    * 
* - * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.speech.v1p1beta1.CustomClassOrBuilder getCustomClassOrBuilder() { @@ -262,6 +312,7 @@ public com.google.cloud.speech.v1p1beta1.CustomClassOrBuilder getCustomClassOrBu } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -273,8 +324,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -300,8 +350,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, customClassId_); } if (customClass_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getCustomClass()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCustomClass()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -311,21 +360,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest)) { return super.equals(obj); } - com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest other = (com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest) obj; + com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest other = + (com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (!getCustomClassId() - .equals(other.getCustomClassId())) return false; + if (!getParent().equals(other.getParent())) return false; + if (!getCustomClassId().equals(other.getCustomClassId())) return false; if (hasCustomClass() != other.hasCustomClass()) return false; if (hasCustomClass()) { - if (!getCustomClass() - .equals(other.getCustomClass())) return false; + if (!getCustomClass().equals(other.getCustomClass())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -352,117 +399,127 @@ public int hashCode() { } public static com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Message sent by the client for the `CreateCustomClass` method.
    * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.CreateCustomClassRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1p1beta1.CreateCustomClassRequest) com.google.cloud.speech.v1p1beta1.CreateCustomClassRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_CreateCustomClassRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1p1beta1_CreateCustomClassRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_CreateCustomClassRequest_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1p1beta1_CreateCustomClassRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest.class, com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest.Builder.class); + com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest.class, + com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest.Builder.class); } // Construct using com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest.newBuilder() @@ -470,16 +527,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -497,9 +553,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_CreateCustomClassRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1p1beta1_CreateCustomClassRequest_descriptor; } @java.lang.Override @@ -518,7 +574,8 @@ public com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest build() { @java.lang.Override public com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest buildPartial() { - com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest result = new com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest(this); + com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest result = + new com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest(this); result.parent_ = parent_; result.customClassId_ = customClassId_; if (customClassBuilder_ == null) { @@ -534,38 +591,39 @@ public com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest buildPartial() public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest) { - return mergeFrom((com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest)other); + return mergeFrom((com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest) other); } else { super.mergeFrom(other); return this; @@ -573,7 +631,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest other) { - if (other == com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -604,7 +663,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -616,6 +676,8 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The parent resource where this custom class will be created.
      * Format:
@@ -627,14 +689,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; @@ -643,6 +707,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent resource where this custom class will be created.
      * Format:
@@ -654,16 +720,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 { @@ -671,6 +738,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent resource where this custom class will be created.
      * Format:
@@ -682,21 +751,25 @@ public java.lang.String getParent() {
      * with matching `us` or `eu` location value.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * Required. The parent resource where this custom class will be created.
      * Format:
@@ -708,16 +781,21 @@ public Builder setParent(
      * with matching `us` or `eu` location value.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * Required. The parent resource where this custom class will be created.
      * Format:
@@ -729,17 +807,19 @@ public Builder clearParent() {
      * with matching `us` or `eu` location value.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -747,6 +827,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.
@@ -755,13 +837,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; @@ -770,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.
@@ -778,15 +862,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 { @@ -794,6 +877,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.
@@ -802,20 +887,22 @@ public java.lang.String getCustomClassId() {
      * 
* * string custom_class_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The customClassId to set. * @return This builder for chaining. */ - public Builder setCustomClassId( - java.lang.String value) { + public Builder setCustomClassId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + customClassId_ = value; onChanged(); return this; } /** + * + * *
      * Required. The ID to use for the custom class, which will become the final
      * component of the custom class' resource name.
@@ -824,15 +911,18 @@ public Builder setCustomClassId(
      * 
* * string custom_class_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearCustomClassId() { - + customClassId_ = getDefaultInstance().getCustomClassId(); onChanged(); return this; } /** + * + * *
      * Required. The ID to use for the custom class, which will become the final
      * component of the custom class' resource name.
@@ -841,16 +931,16 @@ public Builder clearCustomClassId() {
      * 
* * string custom_class_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for customClassId to set. * @return This builder for chaining. */ - public Builder setCustomClassIdBytes( - com.google.protobuf.ByteString value) { + public Builder setCustomClassIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + customClassId_ = value; onChanged(); return this; @@ -858,39 +948,58 @@ public Builder setCustomClassIdBytes( private com.google.cloud.speech.v1p1beta1.CustomClass customClass_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.CustomClass, com.google.cloud.speech.v1p1beta1.CustomClass.Builder, com.google.cloud.speech.v1p1beta1.CustomClassOrBuilder> customClassBuilder_; + com.google.cloud.speech.v1p1beta1.CustomClass, + com.google.cloud.speech.v1p1beta1.CustomClass.Builder, + com.google.cloud.speech.v1p1beta1.CustomClassOrBuilder> + customClassBuilder_; /** + * + * *
      * Required. The custom class to create.
      * 
* - * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the customClass field is set. */ public boolean hasCustomClass() { return customClassBuilder_ != null || customClass_ != null; } /** + * + * *
      * Required. The custom class to create.
      * 
* - * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The customClass. */ public com.google.cloud.speech.v1p1beta1.CustomClass getCustomClass() { if (customClassBuilder_ == null) { - return customClass_ == null ? com.google.cloud.speech.v1p1beta1.CustomClass.getDefaultInstance() : customClass_; + return customClass_ == null + ? com.google.cloud.speech.v1p1beta1.CustomClass.getDefaultInstance() + : customClass_; } else { return customClassBuilder_.getMessage(); } } /** + * + * *
      * Required. The custom class to create.
      * 
* - * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setCustomClass(com.google.cloud.speech.v1p1beta1.CustomClass value) { if (customClassBuilder_ == null) { @@ -906,11 +1015,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) { @@ -924,17 +1037,23 @@ public Builder setCustomClass( return this; } /** + * + * *
      * Required. The custom class to create.
      * 
* - * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeCustomClass(com.google.cloud.speech.v1p1beta1.CustomClass value) { if (customClassBuilder_ == null) { if (customClass_ != null) { customClass_ = - com.google.cloud.speech.v1p1beta1.CustomClass.newBuilder(customClass_).mergeFrom(value).buildPartial(); + com.google.cloud.speech.v1p1beta1.CustomClass.newBuilder(customClass_) + .mergeFrom(value) + .buildPartial(); } else { customClass_ = value; } @@ -946,11 +1065,15 @@ public Builder mergeCustomClass(com.google.cloud.speech.v1p1beta1.CustomClass va return this; } /** + * + * *
      * Required. The custom class to create.
      * 
* - * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearCustomClass() { if (customClassBuilder_ == null) { @@ -964,55 +1087,71 @@ public Builder clearCustomClass() { return this; } /** + * + * *
      * Required. The custom class to create.
      * 
* - * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.speech.v1p1beta1.CustomClass.Builder getCustomClassBuilder() { - + onChanged(); return getCustomClassFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The custom class to create.
      * 
* - * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.speech.v1p1beta1.CustomClassOrBuilder getCustomClassOrBuilder() { if (customClassBuilder_ != null) { return customClassBuilder_.getMessageOrBuilder(); } else { - return customClass_ == null ? - com.google.cloud.speech.v1p1beta1.CustomClass.getDefaultInstance() : customClass_; + return customClass_ == null + ? com.google.cloud.speech.v1p1beta1.CustomClass.getDefaultInstance() + : customClass_; } } /** + * + * *
      * Required. The custom class to create.
      * 
* - * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.CustomClass, com.google.cloud.speech.v1p1beta1.CustomClass.Builder, com.google.cloud.speech.v1p1beta1.CustomClassOrBuilder> + com.google.cloud.speech.v1p1beta1.CustomClass, + com.google.cloud.speech.v1p1beta1.CustomClass.Builder, + com.google.cloud.speech.v1p1beta1.CustomClassOrBuilder> getCustomClassFieldBuilder() { if (customClassBuilder_ == null) { - customClassBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.CustomClass, com.google.cloud.speech.v1p1beta1.CustomClass.Builder, com.google.cloud.speech.v1p1beta1.CustomClassOrBuilder>( - getCustomClass(), - getParentForChildren(), - isClean()); + customClassBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v1p1beta1.CustomClass, + com.google.cloud.speech.v1p1beta1.CustomClass.Builder, + com.google.cloud.speech.v1p1beta1.CustomClassOrBuilder>( + getCustomClass(), getParentForChildren(), isClean()); customClass_ = null; } return customClassBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1022,12 +1161,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(); } @@ -1036,16 +1175,16 @@ public static com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateCustomClassRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateCustomClassRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateCustomClassRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateCustomClassRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1060,6 +1199,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreateCustomClassRequestOrBuilder.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreateCustomClassRequestOrBuilder.java similarity index 64% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreateCustomClassRequestOrBuilder.java rename to proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreateCustomClassRequestOrBuilder.java index 9052226ab..f86f6921c 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreateCustomClassRequestOrBuilder.java +++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreateCustomClassRequestOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech_adaptation.proto package com.google.cloud.speech.v1p1beta1; -public interface CreateCustomClassRequestOrBuilder extends +public interface CreateCustomClassRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1p1beta1.CreateCustomClassRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The parent resource where this custom class will be created.
    * Format:
@@ -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/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreatePhraseSetRequest.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreatePhraseSetRequest.java similarity index 68% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreatePhraseSetRequest.java rename to proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreatePhraseSetRequest.java index 3ca0a6e05..58268e2f4 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreatePhraseSetRequest.java +++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreatePhraseSetRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech_adaptation.proto package com.google.cloud.speech.v1p1beta1; /** + * + * *
  * Message sent by the client for the `CreatePhraseSet` method.
  * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.CreatePhraseSetRequest} */ -public final class CreatePhraseSetRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CreatePhraseSetRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v1p1beta1.CreatePhraseSetRequest) CreatePhraseSetRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CreatePhraseSetRequest.newBuilder() to construct. private CreatePhraseSetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CreatePhraseSetRequest() { parent_ = ""; phraseSetId_ = ""; @@ -26,16 +44,15 @@ private CreatePhraseSetRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreatePhraseSetRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private CreatePhraseSetRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,66 +71,75 @@ private CreatePhraseSetRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - phraseSetId_ = s; - break; - } - case 26: { - com.google.cloud.speech.v1p1beta1.PhraseSet.Builder subBuilder = null; - if (phraseSet_ != null) { - subBuilder = phraseSet_.toBuilder(); + parent_ = s; + break; } - phraseSet_ = input.readMessage(com.google.cloud.speech.v1p1beta1.PhraseSet.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(phraseSet_); - phraseSet_ = subBuilder.buildPartial(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + phraseSetId_ = s; + break; } + case 26: + { + com.google.cloud.speech.v1p1beta1.PhraseSet.Builder subBuilder = null; + if (phraseSet_ != null) { + subBuilder = phraseSet_.toBuilder(); + } + phraseSet_ = + input.readMessage( + com.google.cloud.speech.v1p1beta1.PhraseSet.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(phraseSet_); + phraseSet_ = subBuilder.buildPartial(); + } - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_CreatePhraseSetRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1p1beta1_CreatePhraseSetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_CreatePhraseSetRequest_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1p1beta1_CreatePhraseSetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest.class, com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest.Builder.class); + com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest.class, + com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. The parent resource where this phrase set will be created.
    * Format:
@@ -125,7 +151,10 @@ private CreatePhraseSetRequest(
    * with matching `us` or `eu` location value.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -134,14 +163,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:
@@ -153,17 +183,18 @@ public java.lang.String getParent() {
    * with matching `us` or `eu` location value.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -174,6 +205,8 @@ public java.lang.String getParent() { public static final int PHRASE_SET_ID_FIELD_NUMBER = 2; private volatile java.lang.Object phraseSetId_; /** + * + * *
    * Required. The ID to use for the phrase set, which will become the final
    * component of the phrase set's resource name.
@@ -182,6 +215,7 @@ public java.lang.String getParent() {
    * 
* * string phrase_set_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The phraseSetId. */ @java.lang.Override @@ -190,14 +224,15 @@ public java.lang.String getPhraseSetId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); phraseSetId_ = s; return s; } } /** + * + * *
    * Required. The ID to use for the phrase set, which will become the final
    * component of the phrase set's resource name.
@@ -206,16 +241,15 @@ public java.lang.String getPhraseSetId() {
    * 
* * string phrase_set_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for phraseSetId. */ @java.lang.Override - public com.google.protobuf.ByteString - getPhraseSetIdBytes() { + public com.google.protobuf.ByteString getPhraseSetIdBytes() { java.lang.Object ref = phraseSetId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); phraseSetId_ = b; return b; } else { @@ -226,11 +260,16 @@ public java.lang.String getPhraseSetId() { public static final int PHRASE_SET_FIELD_NUMBER = 3; private com.google.cloud.speech.v1p1beta1.PhraseSet phraseSet_; /** + * + * *
    * Required. The phrase set to create.
    * 
* - * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the phraseSet field is set. */ @java.lang.Override @@ -238,23 +277,34 @@ public boolean hasPhraseSet() { return phraseSet_ != null; } /** + * + * *
    * Required. The phrase set to create.
    * 
* - * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The phraseSet. */ @java.lang.Override public com.google.cloud.speech.v1p1beta1.PhraseSet getPhraseSet() { - return phraseSet_ == null ? com.google.cloud.speech.v1p1beta1.PhraseSet.getDefaultInstance() : phraseSet_; + return phraseSet_ == null + ? com.google.cloud.speech.v1p1beta1.PhraseSet.getDefaultInstance() + : phraseSet_; } /** + * + * *
    * Required. The phrase set to create.
    * 
* - * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.speech.v1p1beta1.PhraseSetOrBuilder getPhraseSetOrBuilder() { @@ -262,6 +312,7 @@ public com.google.cloud.speech.v1p1beta1.PhraseSetOrBuilder getPhraseSetOrBuilde } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -273,8 +324,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -300,8 +350,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, phraseSetId_); } if (phraseSet_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getPhraseSet()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getPhraseSet()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -311,21 +360,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest)) { return super.equals(obj); } - com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest other = (com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest) obj; + com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest other = + (com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (!getPhraseSetId() - .equals(other.getPhraseSetId())) return false; + if (!getParent().equals(other.getParent())) return false; + if (!getPhraseSetId().equals(other.getPhraseSetId())) return false; if (hasPhraseSet() != other.hasPhraseSet()) return false; if (hasPhraseSet()) { - if (!getPhraseSet() - .equals(other.getPhraseSet())) return false; + if (!getPhraseSet().equals(other.getPhraseSet())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -352,117 +399,127 @@ public int hashCode() { } public static com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Message sent by the client for the `CreatePhraseSet` method.
    * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.CreatePhraseSetRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1p1beta1.CreatePhraseSetRequest) com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_CreatePhraseSetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1p1beta1_CreatePhraseSetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_CreatePhraseSetRequest_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1p1beta1_CreatePhraseSetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest.class, com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest.Builder.class); + com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest.class, + com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest.Builder.class); } // Construct using com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest.newBuilder() @@ -470,16 +527,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -497,9 +553,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_CreatePhraseSetRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1p1beta1_CreatePhraseSetRequest_descriptor; } @java.lang.Override @@ -518,7 +574,8 @@ public com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest build() { @java.lang.Override public com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest buildPartial() { - com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest result = new com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest(this); + com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest result = + new com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest(this); result.parent_ = parent_; result.phraseSetId_ = phraseSetId_; if (phraseSetBuilder_ == null) { @@ -534,38 +591,39 @@ public com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest) { - return mergeFrom((com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest)other); + return mergeFrom((com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest) other); } else { super.mergeFrom(other); return this; @@ -573,7 +631,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest other) { - if (other == com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -604,7 +663,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -616,6 +676,8 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The parent resource where this phrase set will be created.
      * Format:
@@ -627,14 +689,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; @@ -643,6 +707,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent resource where this phrase set will be created.
      * Format:
@@ -654,16 +720,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 { @@ -671,6 +738,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent resource where this phrase set will be created.
      * Format:
@@ -682,21 +751,25 @@ public java.lang.String getParent() {
      * with matching `us` or `eu` location value.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * Required. The parent resource where this phrase set will be created.
      * Format:
@@ -708,16 +781,21 @@ public Builder setParent(
      * with matching `us` or `eu` location value.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * Required. The parent resource where this phrase set will be created.
      * Format:
@@ -729,17 +807,19 @@ public Builder clearParent() {
      * with matching `us` or `eu` location value.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -747,6 +827,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.
@@ -755,13 +837,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; @@ -770,6 +852,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.
@@ -778,15 +862,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 { @@ -794,6 +877,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.
@@ -802,20 +887,22 @@ public java.lang.String getPhraseSetId() {
      * 
* * string phrase_set_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The phraseSetId to set. * @return This builder for chaining. */ - public Builder setPhraseSetId( - java.lang.String value) { + public Builder setPhraseSetId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + phraseSetId_ = value; onChanged(); return this; } /** + * + * *
      * Required. The ID to use for the phrase set, which will become the final
      * component of the phrase set's resource name.
@@ -824,15 +911,18 @@ public Builder setPhraseSetId(
      * 
* * string phrase_set_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearPhraseSetId() { - + phraseSetId_ = getDefaultInstance().getPhraseSetId(); onChanged(); return this; } /** + * + * *
      * Required. The ID to use for the phrase set, which will become the final
      * component of the phrase set's resource name.
@@ -841,16 +931,16 @@ public Builder clearPhraseSetId() {
      * 
* * string phrase_set_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for phraseSetId to set. * @return This builder for chaining. */ - public Builder setPhraseSetIdBytes( - com.google.protobuf.ByteString value) { + public Builder setPhraseSetIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + phraseSetId_ = value; onChanged(); return this; @@ -858,39 +948,58 @@ public Builder setPhraseSetIdBytes( private com.google.cloud.speech.v1p1beta1.PhraseSet phraseSet_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.PhraseSet, com.google.cloud.speech.v1p1beta1.PhraseSet.Builder, com.google.cloud.speech.v1p1beta1.PhraseSetOrBuilder> phraseSetBuilder_; + com.google.cloud.speech.v1p1beta1.PhraseSet, + com.google.cloud.speech.v1p1beta1.PhraseSet.Builder, + com.google.cloud.speech.v1p1beta1.PhraseSetOrBuilder> + phraseSetBuilder_; /** + * + * *
      * Required. The phrase set to create.
      * 
* - * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the phraseSet field is set. */ public boolean hasPhraseSet() { return phraseSetBuilder_ != null || phraseSet_ != null; } /** + * + * *
      * Required. The phrase set to create.
      * 
* - * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The phraseSet. */ public com.google.cloud.speech.v1p1beta1.PhraseSet getPhraseSet() { if (phraseSetBuilder_ == null) { - return phraseSet_ == null ? com.google.cloud.speech.v1p1beta1.PhraseSet.getDefaultInstance() : phraseSet_; + return phraseSet_ == null + ? com.google.cloud.speech.v1p1beta1.PhraseSet.getDefaultInstance() + : phraseSet_; } else { return phraseSetBuilder_.getMessage(); } } /** + * + * *
      * Required. The phrase set to create.
      * 
* - * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setPhraseSet(com.google.cloud.speech.v1p1beta1.PhraseSet value) { if (phraseSetBuilder_ == null) { @@ -906,11 +1015,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) { @@ -924,17 +1037,23 @@ public Builder setPhraseSet( return this; } /** + * + * *
      * Required. The phrase set to create.
      * 
* - * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergePhraseSet(com.google.cloud.speech.v1p1beta1.PhraseSet value) { if (phraseSetBuilder_ == null) { if (phraseSet_ != null) { phraseSet_ = - com.google.cloud.speech.v1p1beta1.PhraseSet.newBuilder(phraseSet_).mergeFrom(value).buildPartial(); + com.google.cloud.speech.v1p1beta1.PhraseSet.newBuilder(phraseSet_) + .mergeFrom(value) + .buildPartial(); } else { phraseSet_ = value; } @@ -946,11 +1065,15 @@ public Builder mergePhraseSet(com.google.cloud.speech.v1p1beta1.PhraseSet value) return this; } /** + * + * *
      * Required. The phrase set to create.
      * 
* - * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearPhraseSet() { if (phraseSetBuilder_ == null) { @@ -964,55 +1087,71 @@ public Builder clearPhraseSet() { return this; } /** + * + * *
      * Required. The phrase set to create.
      * 
* - * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.speech.v1p1beta1.PhraseSet.Builder getPhraseSetBuilder() { - + onChanged(); return getPhraseSetFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The phrase set to create.
      * 
* - * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.speech.v1p1beta1.PhraseSetOrBuilder getPhraseSetOrBuilder() { if (phraseSetBuilder_ != null) { return phraseSetBuilder_.getMessageOrBuilder(); } else { - return phraseSet_ == null ? - com.google.cloud.speech.v1p1beta1.PhraseSet.getDefaultInstance() : phraseSet_; + return phraseSet_ == null + ? com.google.cloud.speech.v1p1beta1.PhraseSet.getDefaultInstance() + : phraseSet_; } } /** + * + * *
      * Required. The phrase set to create.
      * 
* - * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.PhraseSet, com.google.cloud.speech.v1p1beta1.PhraseSet.Builder, com.google.cloud.speech.v1p1beta1.PhraseSetOrBuilder> + com.google.cloud.speech.v1p1beta1.PhraseSet, + com.google.cloud.speech.v1p1beta1.PhraseSet.Builder, + com.google.cloud.speech.v1p1beta1.PhraseSetOrBuilder> getPhraseSetFieldBuilder() { if (phraseSetBuilder_ == null) { - phraseSetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.PhraseSet, com.google.cloud.speech.v1p1beta1.PhraseSet.Builder, com.google.cloud.speech.v1p1beta1.PhraseSetOrBuilder>( - getPhraseSet(), - getParentForChildren(), - isClean()); + phraseSetBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v1p1beta1.PhraseSet, + com.google.cloud.speech.v1p1beta1.PhraseSet.Builder, + com.google.cloud.speech.v1p1beta1.PhraseSetOrBuilder>( + getPhraseSet(), getParentForChildren(), isClean()); phraseSet_ = null; } return phraseSetBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1022,12 +1161,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(); } @@ -1036,16 +1175,16 @@ public static com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreatePhraseSetRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreatePhraseSetRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreatePhraseSetRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreatePhraseSetRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1060,6 +1199,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreatePhraseSetRequestOrBuilder.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreatePhraseSetRequestOrBuilder.java similarity index 64% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreatePhraseSetRequestOrBuilder.java rename to proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreatePhraseSetRequestOrBuilder.java index 70540b9c8..9f9da18ba 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreatePhraseSetRequestOrBuilder.java +++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreatePhraseSetRequestOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech_adaptation.proto package com.google.cloud.speech.v1p1beta1; -public interface CreatePhraseSetRequestOrBuilder extends +public interface CreatePhraseSetRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1p1beta1.CreatePhraseSetRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The parent resource where this phrase set will be created.
    * Format:
@@ -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/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CustomClass.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CustomClass.java similarity index 74% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CustomClass.java rename to proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CustomClass.java index 81c2dec7e..cd805e892 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CustomClass.java +++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CustomClass.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/resource.proto package com.google.cloud.speech.v1p1beta1; /** + * + * *
  * A set of words or phrases that represents a common concept likely to appear
  * in your audio, for example a list of passenger ship names. CustomClass items
@@ -12,15 +29,16 @@
  *
  * Protobuf type {@code google.cloud.speech.v1p1beta1.CustomClass}
  */
-public final class CustomClass extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class CustomClass extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.speech.v1p1beta1.CustomClass)
     CustomClassOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use CustomClass.newBuilder() to construct.
   private CustomClass(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private CustomClass() {
     name_ = "";
     customClassId_ = "";
@@ -29,16 +47,15 @@ private CustomClass() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new CustomClass();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private CustomClass(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -58,41 +75,47 @@ private CustomClass(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            name_ = s;
-            break;
-          }
-          case 18: {
-            java.lang.String s = input.readStringRequireUtf8();
+              name_ = s;
+              break;
+            }
+          case 18:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            customClassId_ = s;
-            break;
-          }
-          case 26: {
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              items_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000001;
+              customClassId_ = s;
+              break;
             }
-            items_.add(
-                input.readMessage(com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem.parser(), extensionRegistry));
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          case 26:
+            {
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                items_ =
+                    new java.util.ArrayList<
+                        com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem>();
+                mutable_bitField0_ |= 0x00000001;
+              }
+              items_.add(
+                  input.readMessage(
+                      com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem.parser(),
+                      extensionRegistry));
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         items_ = java.util.Collections.unmodifiableList(items_);
@@ -101,75 +124,86 @@ private CustomClass(
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.speech.v1p1beta1.SpeechResourceProto.internal_static_google_cloud_speech_v1p1beta1_CustomClass_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.speech.v1p1beta1.SpeechResourceProto
+        .internal_static_google_cloud_speech_v1p1beta1_CustomClass_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v1p1beta1.SpeechResourceProto.internal_static_google_cloud_speech_v1p1beta1_CustomClass_fieldAccessorTable
+    return com.google.cloud.speech.v1p1beta1.SpeechResourceProto
+        .internal_static_google_cloud_speech_v1p1beta1_CustomClass_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v1p1beta1.CustomClass.class, com.google.cloud.speech.v1p1beta1.CustomClass.Builder.class);
+            com.google.cloud.speech.v1p1beta1.CustomClass.class,
+            com.google.cloud.speech.v1p1beta1.CustomClass.Builder.class);
   }
 
-  public interface ClassItemOrBuilder extends
+  public interface ClassItemOrBuilder
+      extends
       // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1p1beta1.CustomClass.ClassItem)
       com.google.protobuf.MessageOrBuilder {
 
     /**
+     *
+     *
      * 
      * The class item's value.
      * 
* * string value = 1; + * * @return The value. */ java.lang.String getValue(); /** + * + * *
      * The class item's value.
      * 
* * string value = 1; + * * @return The bytes for value. */ - com.google.protobuf.ByteString - getValueBytes(); + com.google.protobuf.ByteString getValueBytes(); } /** + * + * *
    * An item of the class.
    * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.CustomClass.ClassItem} */ - public static final class ClassItem extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class ClassItem extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v1p1beta1.CustomClass.ClassItem) ClassItemOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ClassItem.newBuilder() to construct. private ClassItem(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ClassItem() { value_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ClassItem(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ClassItem( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -188,52 +222,58 @@ private ClassItem( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - value_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + value_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechResourceProto.internal_static_google_cloud_speech_v1p1beta1_CustomClass_ClassItem_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechResourceProto + .internal_static_google_cloud_speech_v1p1beta1_CustomClass_ClassItem_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechResourceProto.internal_static_google_cloud_speech_v1p1beta1_CustomClass_ClassItem_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechResourceProto + .internal_static_google_cloud_speech_v1p1beta1_CustomClass_ClassItem_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem.class, com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem.Builder.class); + com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem.class, + com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem.Builder.class); } public static final int VALUE_FIELD_NUMBER = 1; private volatile java.lang.Object value_; /** + * + * *
      * The class item's value.
      * 
* * string value = 1; + * * @return The value. */ @java.lang.Override @@ -242,29 +282,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 { @@ -273,6 +313,7 @@ public java.lang.String getValue() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -284,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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(value_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, value_); } @@ -309,15 +349,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem)) { return super.equals(obj); } - com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem other = (com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem) obj; + com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem other = + (com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem) obj; - if (!getValue() - .equals(other.getValue())) return false; + if (!getValue().equals(other.getValue())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -337,87 +377,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 @@ -427,27 +474,32 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * An item of the class.
      * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.CustomClass.ClassItem} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1p1beta1.CustomClass.ClassItem) com.google.cloud.speech.v1p1beta1.CustomClass.ClassItemOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechResourceProto.internal_static_google_cloud_speech_v1p1beta1_CustomClass_ClassItem_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechResourceProto + .internal_static_google_cloud_speech_v1p1beta1_CustomClass_ClassItem_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechResourceProto.internal_static_google_cloud_speech_v1p1beta1_CustomClass_ClassItem_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechResourceProto + .internal_static_google_cloud_speech_v1p1beta1_CustomClass_ClassItem_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem.class, com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem.Builder.class); + com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem.class, + com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem.Builder.class); } // Construct using com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem.newBuilder() @@ -455,16 +507,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -474,9 +525,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 @@ -495,7 +546,8 @@ public com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem build() { @java.lang.Override public com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem buildPartial() { - com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem result = new com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem(this); + com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem result = + new com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem(this); result.value_ = value_; onBuilt(); return result; @@ -505,38 +557,41 @@ public com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem) { - return mergeFrom((com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem)other); + return mergeFrom((com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem) other); } else { super.mergeFrom(other); return this; @@ -544,7 +599,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem other) { - if (other == com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem.getDefaultInstance()) return this; + if (other == com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem.getDefaultInstance()) + return this; if (!other.getValue().isEmpty()) { value_ = other.value_; onChanged(); @@ -568,7 +624,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -580,18 +637,20 @@ public Builder mergeFrom( private java.lang.Object value_ = ""; /** + * + * *
        * The class item's value.
        * 
* * string value = 1; + * * @return The value. */ public java.lang.String getValue() { java.lang.Object ref = value_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); value_ = s; return s; @@ -600,20 +659,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 { @@ -621,58 +681,66 @@ public java.lang.String getValue() { } } /** + * + * *
        * The class item's value.
        * 
* * string value = 1; + * * @param value The value to set. * @return This builder for chaining. */ - public Builder setValue( - java.lang.String value) { + public Builder setValue(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + value_ = value; onChanged(); return this; } /** + * + * *
        * The class item's value.
        * 
* * string value = 1; + * * @return This builder for chaining. */ public Builder clearValue() { - + value_ = getDefaultInstance().getValue(); onChanged(); return this; } /** + * + * *
        * The class item's value.
        * 
* * string value = 1; + * * @param value The bytes for value to set. * @return This builder for chaining. */ - public Builder setValueBytes( - com.google.protobuf.ByteString value) { + public Builder setValueBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + value_ = value; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -685,12 +753,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(); } @@ -699,16 +767,16 @@ public static com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ClassItem parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ClassItem(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ClassItem parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ClassItem(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -723,17 +791,19 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * The resource name of the custom class.
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -742,29 +812,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 { @@ -775,12 +845,15 @@ public java.lang.String getName() { public static final int CUSTOM_CLASS_ID_FIELD_NUMBER = 2; private volatile java.lang.Object customClassId_; /** + * + * *
    * If this custom class is a resource, the custom_class_id is the resource id
    * of the CustomClass. Case sensitive.
    * 
* * string custom_class_id = 2; + * * @return The customClassId. */ @java.lang.Override @@ -789,30 +862,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,6 +896,8 @@ public java.lang.String getCustomClassId() { public static final int ITEMS_FIELD_NUMBER = 3; private java.util.List items_; /** + * + * *
    * A collection of class items.
    * 
@@ -834,6 +909,8 @@ public java.util.List g return items_; } /** + * + * *
    * A collection of class items.
    * 
@@ -841,11 +918,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.
    * 
@@ -857,6 +936,8 @@ public int getItemsCount() { return items_.size(); } /** + * + * *
    * A collection of class items.
    * 
@@ -868,6 +949,8 @@ public com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem getItems(int inde return items_.get(index); } /** + * + * *
    * A collection of class items.
    * 
@@ -881,6 +964,7 @@ public com.google.cloud.speech.v1p1beta1.CustomClass.ClassItemOrBuilder getItems } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -892,8 +976,7 @@ public final boolean isInitialized() { } @java.lang.Override - public 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_); } @@ -919,8 +1002,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, customClassId_); } for (int i = 0; i < items_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, items_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, items_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -930,19 +1012,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1p1beta1.CustomClass)) { return super.equals(obj); } - com.google.cloud.speech.v1p1beta1.CustomClass other = (com.google.cloud.speech.v1p1beta1.CustomClass) obj; + com.google.cloud.speech.v1p1beta1.CustomClass other = + (com.google.cloud.speech.v1p1beta1.CustomClass) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getCustomClassId() - .equals(other.getCustomClassId())) return false; - if (!getItemsList() - .equals(other.getItemsList())) return false; + if (!getName().equals(other.getName())) return false; + if (!getCustomClassId().equals(other.getCustomClassId())) return false; + if (!getItemsList().equals(other.getItemsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -967,97 +1047,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
@@ -1066,21 +1153,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.speech.v1p1beta1.CustomClass}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1p1beta1.CustomClass)
       com.google.cloud.speech.v1p1beta1.CustomClassOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.speech.v1p1beta1.SpeechResourceProto.internal_static_google_cloud_speech_v1p1beta1_CustomClass_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.speech.v1p1beta1.SpeechResourceProto
+          .internal_static_google_cloud_speech_v1p1beta1_CustomClass_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v1p1beta1.SpeechResourceProto.internal_static_google_cloud_speech_v1p1beta1_CustomClass_fieldAccessorTable
+      return com.google.cloud.speech.v1p1beta1.SpeechResourceProto
+          .internal_static_google_cloud_speech_v1p1beta1_CustomClass_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v1p1beta1.CustomClass.class, com.google.cloud.speech.v1p1beta1.CustomClass.Builder.class);
+              com.google.cloud.speech.v1p1beta1.CustomClass.class,
+              com.google.cloud.speech.v1p1beta1.CustomClass.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v1p1beta1.CustomClass.newBuilder()
@@ -1088,17 +1177,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
         getItemsFieldBuilder();
       }
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1116,9 +1205,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
@@ -1137,7 +1226,8 @@ public com.google.cloud.speech.v1p1beta1.CustomClass build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v1p1beta1.CustomClass buildPartial() {
-      com.google.cloud.speech.v1p1beta1.CustomClass result = new com.google.cloud.speech.v1p1beta1.CustomClass(this);
+      com.google.cloud.speech.v1p1beta1.CustomClass result =
+          new com.google.cloud.speech.v1p1beta1.CustomClass(this);
       int from_bitField0_ = bitField0_;
       result.name_ = name_;
       result.customClassId_ = customClassId_;
@@ -1158,38 +1248,39 @@ public com.google.cloud.speech.v1p1beta1.CustomClass buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.speech.v1p1beta1.CustomClass) {
-        return mergeFrom((com.google.cloud.speech.v1p1beta1.CustomClass)other);
+        return mergeFrom((com.google.cloud.speech.v1p1beta1.CustomClass) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1224,9 +1315,10 @@ public Builder mergeFrom(com.google.cloud.speech.v1p1beta1.CustomClass other) {
             itemsBuilder_ = null;
             items_ = other.items_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            itemsBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getItemsFieldBuilder() : null;
+            itemsBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getItemsFieldBuilder()
+                    : null;
           } else {
             itemsBuilder_.addAllMessages(other.items_);
           }
@@ -1260,22 +1352,25 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * The resource name of the custom class.
      * 
* * string name = 1; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1284,20 +1379,21 @@ public java.lang.String getName() { } } /** + * + * *
      * The resource name of the custom class.
      * 
* * string name = 1; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -1305,54 +1401,61 @@ public java.lang.String getName() { } } /** + * + * *
      * The resource name of the custom class.
      * 
* * string name = 1; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * The resource name of the custom class.
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * The resource name of the custom class.
      * 
* * string name = 1; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -1360,19 +1463,21 @@ public Builder setNameBytes( private java.lang.Object customClassId_ = ""; /** + * + * *
      * If this custom class is a resource, the custom_class_id is the resource id
      * of the CustomClass. Case sensitive.
      * 
* * string custom_class_id = 2; + * * @return The customClassId. */ public java.lang.String getCustomClassId() { java.lang.Object ref = customClassId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); customClassId_ = s; return s; @@ -1381,21 +1486,22 @@ public java.lang.String getCustomClassId() { } } /** + * + * *
      * If this custom class is a resource, the custom_class_id is the resource id
      * of the CustomClass. Case sensitive.
      * 
* * string custom_class_id = 2; + * * @return The bytes for customClassId. */ - public com.google.protobuf.ByteString - getCustomClassIdBytes() { + public com.google.protobuf.ByteString getCustomClassIdBytes() { java.lang.Object ref = customClassId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); customClassId_ = b; return b; } else { @@ -1403,75 +1509,90 @@ public java.lang.String getCustomClassId() { } } /** + * + * *
      * If this custom class is a resource, the custom_class_id is the resource id
      * of the CustomClass. Case sensitive.
      * 
* * string custom_class_id = 2; + * * @param value The customClassId to set. * @return This builder for chaining. */ - public Builder setCustomClassId( - java.lang.String value) { + public Builder setCustomClassId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + customClassId_ = value; onChanged(); return this; } /** + * + * *
      * If this custom class is a resource, the custom_class_id is the resource id
      * of the CustomClass. Case sensitive.
      * 
* * string custom_class_id = 2; + * * @return This builder for chaining. */ public Builder clearCustomClassId() { - + customClassId_ = getDefaultInstance().getCustomClassId(); onChanged(); return this; } /** + * + * *
      * If this custom class is a resource, the custom_class_id is the resource id
      * of the CustomClass. Case sensitive.
      * 
* * string custom_class_id = 2; + * * @param value The bytes for customClassId to set. * @return This builder for chaining. */ - public Builder setCustomClassIdBytes( - com.google.protobuf.ByteString value) { + public Builder setCustomClassIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + customClassId_ = value; onChanged(); return this; } private java.util.List items_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureItemsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - items_ = new java.util.ArrayList(items_); + items_ = + new java.util.ArrayList( + items_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem, com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem.Builder, com.google.cloud.speech.v1p1beta1.CustomClass.ClassItemOrBuilder> itemsBuilder_; + com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem, + com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem.Builder, + com.google.cloud.speech.v1p1beta1.CustomClass.ClassItemOrBuilder> + itemsBuilder_; /** + * + * *
      * A collection of class items.
      * 
@@ -1486,6 +1607,8 @@ public java.util.List g } } /** + * + * *
      * A collection of class items.
      * 
@@ -1500,6 +1623,8 @@ public int getItemsCount() { } } /** + * + * *
      * A collection of class items.
      * 
@@ -1514,6 +1639,8 @@ public com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem getItems(int inde } } /** + * + * *
      * A collection of class items.
      * 
@@ -1535,6 +1662,8 @@ public Builder setItems( return this; } /** + * + * *
      * A collection of class items.
      * 
@@ -1542,7 +1671,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()); @@ -1553,6 +1683,8 @@ public Builder setItems( return this; } /** + * + * *
      * A collection of class items.
      * 
@@ -1573,6 +1705,8 @@ public Builder addItems(com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem return this; } /** + * + * *
      * A collection of class items.
      * 
@@ -1594,6 +1728,8 @@ public Builder addItems( return this; } /** + * + * *
      * A collection of class items.
      * 
@@ -1612,6 +1748,8 @@ public Builder addItems( return this; } /** + * + * *
      * A collection of class items.
      * 
@@ -1619,7 +1757,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()); @@ -1630,6 +1769,8 @@ public Builder addItems( return this; } /** + * + * *
      * A collection of class items.
      * 
@@ -1637,11 +1778,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); @@ -1649,6 +1790,8 @@ public Builder addAllItems( return this; } /** + * + * *
      * A collection of class items.
      * 
@@ -1666,6 +1809,8 @@ public Builder clearItems() { return this; } /** + * + * *
      * A collection of class items.
      * 
@@ -1683,6 +1828,8 @@ public Builder removeItems(int index) { return this; } /** + * + * *
      * A collection of class items.
      * 
@@ -1694,6 +1841,8 @@ public com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem.Builder getItemsB return getItemsFieldBuilder().getBuilder(index); } /** + * + * *
      * A collection of class items.
      * 
@@ -1703,19 +1852,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 { @@ -1723,6 +1876,8 @@ public com.google.cloud.speech.v1p1beta1.CustomClass.ClassItemOrBuilder getItems } } /** + * + * *
      * A collection of class items.
      * 
@@ -1730,10 +1885,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.
      * 
@@ -1742,37 +1899,43 @@ public com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem.Builder addItemsB */ public com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem.Builder addItemsBuilder( int index) { - return getItemsFieldBuilder().addBuilder( - index, com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem.getDefaultInstance()); + return getItemsFieldBuilder() + .addBuilder( + index, com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem.getDefaultInstance()); } /** + * + * *
      * A collection of class items.
      * 
* * repeated .google.cloud.speech.v1p1beta1.CustomClass.ClassItem items = 3; */ - public java.util.List - getItemsBuilderList() { + public java.util.List + getItemsBuilderList() { return getItemsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem, com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem.Builder, com.google.cloud.speech.v1p1beta1.CustomClass.ClassItemOrBuilder> + com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem, + com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem.Builder, + com.google.cloud.speech.v1p1beta1.CustomClass.ClassItemOrBuilder> getItemsFieldBuilder() { if (itemsBuilder_ == null) { - itemsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem, com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem.Builder, com.google.cloud.speech.v1p1beta1.CustomClass.ClassItemOrBuilder>( - items_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + itemsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem, + com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem.Builder, + com.google.cloud.speech.v1p1beta1.CustomClass.ClassItemOrBuilder>( + items_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); items_ = null; } return itemsBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1782,12 +1945,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(); } @@ -1796,16 +1959,16 @@ public static com.google.cloud.speech.v1p1beta1.CustomClass getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CustomClass parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CustomClass(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CustomClass parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CustomClass(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1820,6 +1983,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.CustomClass getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CustomClassName.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CustomClassName.java similarity index 100% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CustomClassName.java rename to proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CustomClassName.java diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CustomClassOrBuilder.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CustomClassOrBuilder.java similarity index 70% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CustomClassOrBuilder.java rename to proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CustomClassOrBuilder.java index 5a2383a9c..494362336 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CustomClassOrBuilder.java +++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CustomClassOrBuilder.java @@ -1,64 +1,93 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/resource.proto package com.google.cloud.speech.v1p1beta1; -public interface CustomClassOrBuilder extends +public interface CustomClassOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1p1beta1.CustomClass) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The resource name of the custom class.
    * 
* * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * The resource name of the custom class.
    * 
* * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * If this custom class is a resource, the custom_class_id is the resource id
    * of the CustomClass. Case sensitive.
    * 
* * string custom_class_id = 2; + * * @return The customClassId. */ java.lang.String getCustomClassId(); /** + * + * *
    * If this custom class is a resource, the custom_class_id is the resource id
    * of the CustomClass. Case sensitive.
    * 
* * string custom_class_id = 2; + * * @return The bytes for customClassId. */ - com.google.protobuf.ByteString - getCustomClassIdBytes(); + com.google.protobuf.ByteString getCustomClassIdBytes(); /** + * + * *
    * A collection of class items.
    * 
* * repeated .google.cloud.speech.v1p1beta1.CustomClass.ClassItem items = 3; */ - java.util.List - getItemsList(); + java.util.List getItemsList(); /** + * + * *
    * A collection of class items.
    * 
@@ -67,6 +96,8 @@ public interface CustomClassOrBuilder extends */ com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem getItems(int index); /** + * + * *
    * A collection of class items.
    * 
@@ -75,21 +106,24 @@ public interface CustomClassOrBuilder extends */ int getItemsCount(); /** + * + * *
    * A collection of class items.
    * 
* * repeated .google.cloud.speech.v1p1beta1.CustomClass.ClassItem items = 3; */ - java.util.List + java.util.List getItemsOrBuilderList(); /** + * + * *
    * A collection of class items.
    * 
* * repeated .google.cloud.speech.v1p1beta1.CustomClass.ClassItem items = 3; */ - com.google.cloud.speech.v1p1beta1.CustomClass.ClassItemOrBuilder getItemsOrBuilder( - int index); + com.google.cloud.speech.v1p1beta1.CustomClass.ClassItemOrBuilder getItemsOrBuilder(int index); } diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeleteCustomClassRequest.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeleteCustomClassRequest.java similarity index 69% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeleteCustomClassRequest.java rename to proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeleteCustomClassRequest.java index c50330b25..fd974e693 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeleteCustomClassRequest.java +++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeleteCustomClassRequest.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech_adaptation.proto package com.google.cloud.speech.v1p1beta1; /** + * + * *
  * Message sent by the client for the `DeleteCustomClass` method.
  * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.DeleteCustomClassRequest} */ -public final class DeleteCustomClassRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DeleteCustomClassRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v1p1beta1.DeleteCustomClassRequest) DeleteCustomClassRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DeleteCustomClassRequest.newBuilder() to construct. private DeleteCustomClassRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DeleteCustomClassRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DeleteCustomClassRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private DeleteCustomClassRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,47 +70,52 @@ private DeleteCustomClassRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_DeleteCustomClassRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1p1beta1_DeleteCustomClassRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_DeleteCustomClassRequest_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1p1beta1_DeleteCustomClassRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest.class, com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest.Builder.class); + com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest.class, + com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. The name of the custom class to delete. Format:
    * `projects/{project}/locations/{location}/customClasses/{custom_class}`
@@ -104,7 +126,10 @@ private DeleteCustomClassRequest(
    * with matching `us` or `eu` location value.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -113,14 +138,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}`
@@ -131,17 +157,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 { @@ -150,6 +177,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -161,8 +189,7 @@ public final boolean isInitialized() { } @java.lang.Override - public 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_); } @@ -186,15 +213,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest)) { return super.equals(obj); } - com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest other = (com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest) obj; + com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest other = + (com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -214,117 +241,127 @@ public int hashCode() { } public static com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Message sent by the client for the `DeleteCustomClass` method.
    * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.DeleteCustomClassRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1p1beta1.DeleteCustomClassRequest) com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_DeleteCustomClassRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1p1beta1_DeleteCustomClassRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_DeleteCustomClassRequest_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1p1beta1_DeleteCustomClassRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest.class, com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest.Builder.class); + com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest.class, + com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest.Builder.class); } // Construct using com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest.newBuilder() @@ -332,16 +369,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -351,9 +387,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 @@ -372,7 +408,8 @@ public com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest build() { @java.lang.Override public com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest buildPartial() { - com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest result = new com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest(this); + com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest result = + new com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest(this); result.name_ = name_; onBuilt(); return result; @@ -382,38 +419,39 @@ public com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest buildPartial() public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest) { - return mergeFrom((com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest)other); + return mergeFrom((com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest) other); } else { super.mergeFrom(other); return this; @@ -421,7 +459,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest other) { - if (other == com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -445,7 +484,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -457,6 +497,8 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. The name of the custom class to delete. Format:
      * `projects/{project}/locations/{location}/customClasses/{custom_class}`
@@ -467,14 +509,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; @@ -483,6 +527,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the custom class to delete. Format:
      * `projects/{project}/locations/{location}/customClasses/{custom_class}`
@@ -493,16 +539,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 { @@ -510,6 +557,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the custom class to delete. Format:
      * `projects/{project}/locations/{location}/customClasses/{custom_class}`
@@ -520,21 +569,25 @@ public java.lang.String getName() {
      * with matching `us` or `eu` location value.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. The name of the custom class to delete. Format:
      * `projects/{project}/locations/{location}/customClasses/{custom_class}`
@@ -545,16 +598,21 @@ public Builder setName(
      * with matching `us` or `eu` location value.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. The name of the custom class to delete. Format:
      * `projects/{project}/locations/{location}/customClasses/{custom_class}`
@@ -565,24 +623,26 @@ public Builder clearName() {
      * with matching `us` or `eu` location value.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -592,12 +652,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(); } @@ -606,16 +666,16 @@ public static com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteCustomClassRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteCustomClassRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteCustomClassRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteCustomClassRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -630,6 +690,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeleteCustomClassRequestOrBuilder.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeleteCustomClassRequestOrBuilder.java similarity index 59% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeleteCustomClassRequestOrBuilder.java rename to proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeleteCustomClassRequestOrBuilder.java index 477f46c0e..21121096e 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeleteCustomClassRequestOrBuilder.java +++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeleteCustomClassRequestOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech_adaptation.proto package com.google.cloud.speech.v1p1beta1; -public interface DeleteCustomClassRequestOrBuilder extends +public interface DeleteCustomClassRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1p1beta1.DeleteCustomClassRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The name of the custom class to delete. Format:
    * `projects/{project}/locations/{location}/customClasses/{custom_class}`
@@ -18,11 +36,16 @@ public interface DeleteCustomClassRequestOrBuilder extends
    * with matching `us` or `eu` location value.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. The name of the custom class to delete. Format:
    * `projects/{project}/locations/{location}/customClasses/{custom_class}`
@@ -33,9 +56,11 @@ public interface DeleteCustomClassRequestOrBuilder extends
    * with matching `us` or `eu` location value.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); } diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeletePhraseSetRequest.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeletePhraseSetRequest.java similarity index 66% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeletePhraseSetRequest.java rename to proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeletePhraseSetRequest.java index b866a39b9..19d61461d 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeletePhraseSetRequest.java +++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeletePhraseSetRequest.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech_adaptation.proto package com.google.cloud.speech.v1p1beta1; /** + * + * *
  * Message sent by the client for the `DeletePhraseSet` method.
  * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.DeletePhraseSetRequest} */ -public final class DeletePhraseSetRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DeletePhraseSetRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v1p1beta1.DeletePhraseSetRequest) DeletePhraseSetRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DeletePhraseSetRequest.newBuilder() to construct. private DeletePhraseSetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DeletePhraseSetRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DeletePhraseSetRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private DeletePhraseSetRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,53 +70,61 @@ private DeletePhraseSetRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_DeletePhraseSetRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1p1beta1_DeletePhraseSetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_DeletePhraseSetRequest_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1p1beta1_DeletePhraseSetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest.class, com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest.Builder.class); + com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest.class, + com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. The name of the phrase set to delete. Format:
    * `projects/{project}/locations/{location}/phraseSets/{phrase_set}`
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -108,30 +133,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 { @@ -140,6 +167,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -151,8 +179,7 @@ public final boolean isInitialized() { } @java.lang.Override - public 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_); } @@ -176,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.v1p1beta1.DeletePhraseSetRequest)) { return super.equals(obj); } - com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest other = (com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest) obj; + com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest other = + (com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -204,117 +231,127 @@ public int hashCode() { } public static com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Message sent by the client for the `DeletePhraseSet` method.
    * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.DeletePhraseSetRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1p1beta1.DeletePhraseSetRequest) com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_DeletePhraseSetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1p1beta1_DeletePhraseSetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_DeletePhraseSetRequest_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1p1beta1_DeletePhraseSetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest.class, com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest.Builder.class); + com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest.class, + com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest.Builder.class); } // Construct using com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest.newBuilder() @@ -322,16 +359,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -341,9 +377,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 @@ -362,7 +398,8 @@ public com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest build() { @java.lang.Override public com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest buildPartial() { - com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest result = new com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest(this); + com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest result = + new com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest(this); result.name_ = name_; onBuilt(); return result; @@ -372,38 +409,39 @@ public com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest) { - return mergeFrom((com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest)other); + return mergeFrom((com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest) other); } else { super.mergeFrom(other); return this; @@ -411,7 +449,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest other) { - if (other == com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -435,7 +474,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -447,19 +487,23 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. The name of the phrase set to delete. Format:
      * `projects/{project}/locations/{location}/phraseSets/{phrase_set}`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -468,21 +512,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 { @@ -490,64 +537,77 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the phrase set to delete. Format:
      * `projects/{project}/locations/{location}/phraseSets/{phrase_set}`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. The name of the phrase set to delete. Format:
      * `projects/{project}/locations/{location}/phraseSets/{phrase_set}`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. The name of the phrase set to delete. Format:
      * `projects/{project}/locations/{location}/phraseSets/{phrase_set}`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -557,12 +617,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(); } @@ -571,16 +631,16 @@ public static com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeletePhraseSetRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeletePhraseSetRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeletePhraseSetRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeletePhraseSetRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -595,6 +655,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeletePhraseSetRequestOrBuilder.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeletePhraseSetRequestOrBuilder.java new file mode 100644 index 000000000..f6228f5da --- /dev/null +++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeletePhraseSetRequestOrBuilder.java @@ -0,0 +1,56 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/speech/v1p1beta1/cloud_speech_adaptation.proto + +package com.google.cloud.speech.v1p1beta1; + +public interface DeletePhraseSetRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1p1beta1.DeletePhraseSetRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the phrase set to delete. Format:
+   * `projects/{project}/locations/{location}/phraseSets/{phrase_set}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the phrase set to delete. Format:
+   * `projects/{project}/locations/{location}/phraseSets/{phrase_set}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetCustomClassRequest.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetCustomClassRequest.java similarity index 66% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetCustomClassRequest.java rename to proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetCustomClassRequest.java index 54a6bdf5b..fe9c530e9 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetCustomClassRequest.java +++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetCustomClassRequest.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech_adaptation.proto package com.google.cloud.speech.v1p1beta1; /** + * + * *
  * Message sent by the client for the `GetCustomClass` method.
  * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.GetCustomClassRequest} */ -public final class GetCustomClassRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetCustomClassRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v1p1beta1.GetCustomClassRequest) GetCustomClassRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetCustomClassRequest.newBuilder() to construct. private GetCustomClassRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetCustomClassRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetCustomClassRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GetCustomClassRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,53 +70,61 @@ private GetCustomClassRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_GetCustomClassRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1p1beta1_GetCustomClassRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_GetCustomClassRequest_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1p1beta1_GetCustomClassRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.GetCustomClassRequest.class, com.google.cloud.speech.v1p1beta1.GetCustomClassRequest.Builder.class); + com.google.cloud.speech.v1p1beta1.GetCustomClassRequest.class, + com.google.cloud.speech.v1p1beta1.GetCustomClassRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. The name of the custom class to retrieve. Format:
    * `projects/{project}/locations/{location}/customClasses/{custom_class}`
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -108,30 +133,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 { @@ -140,6 +167,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -151,8 +179,7 @@ public final boolean isInitialized() { } @java.lang.Override - public 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_); } @@ -176,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.v1p1beta1.GetCustomClassRequest)) { return super.equals(obj); } - com.google.cloud.speech.v1p1beta1.GetCustomClassRequest other = (com.google.cloud.speech.v1p1beta1.GetCustomClassRequest) obj; + com.google.cloud.speech.v1p1beta1.GetCustomClassRequest other = + (com.google.cloud.speech.v1p1beta1.GetCustomClassRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -204,117 +231,127 @@ public int hashCode() { } public static com.google.cloud.speech.v1p1beta1.GetCustomClassRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.GetCustomClassRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.GetCustomClassRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.GetCustomClassRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.GetCustomClassRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.GetCustomClassRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.GetCustomClassRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1p1beta1.GetCustomClassRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.GetCustomClassRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.GetCustomClassRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1p1beta1.GetCustomClassRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.GetCustomClassRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.GetCustomClassRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.GetCustomClassRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.speech.v1p1beta1.GetCustomClassRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.speech.v1p1beta1.GetCustomClassRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Message sent by the client for the `GetCustomClass` method.
    * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.GetCustomClassRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1p1beta1.GetCustomClassRequest) com.google.cloud.speech.v1p1beta1.GetCustomClassRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_GetCustomClassRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1p1beta1_GetCustomClassRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_GetCustomClassRequest_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1p1beta1_GetCustomClassRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.GetCustomClassRequest.class, com.google.cloud.speech.v1p1beta1.GetCustomClassRequest.Builder.class); + com.google.cloud.speech.v1p1beta1.GetCustomClassRequest.class, + com.google.cloud.speech.v1p1beta1.GetCustomClassRequest.Builder.class); } // Construct using com.google.cloud.speech.v1p1beta1.GetCustomClassRequest.newBuilder() @@ -322,16 +359,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -341,9 +377,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 @@ -362,7 +398,8 @@ public com.google.cloud.speech.v1p1beta1.GetCustomClassRequest build() { @java.lang.Override public com.google.cloud.speech.v1p1beta1.GetCustomClassRequest buildPartial() { - com.google.cloud.speech.v1p1beta1.GetCustomClassRequest result = new com.google.cloud.speech.v1p1beta1.GetCustomClassRequest(this); + com.google.cloud.speech.v1p1beta1.GetCustomClassRequest result = + new com.google.cloud.speech.v1p1beta1.GetCustomClassRequest(this); result.name_ = name_; onBuilt(); return result; @@ -372,38 +409,39 @@ public com.google.cloud.speech.v1p1beta1.GetCustomClassRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.speech.v1p1beta1.GetCustomClassRequest) { - return mergeFrom((com.google.cloud.speech.v1p1beta1.GetCustomClassRequest)other); + return mergeFrom((com.google.cloud.speech.v1p1beta1.GetCustomClassRequest) other); } else { super.mergeFrom(other); return this; @@ -411,7 +449,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.speech.v1p1beta1.GetCustomClassRequest other) { - if (other == com.google.cloud.speech.v1p1beta1.GetCustomClassRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.speech.v1p1beta1.GetCustomClassRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -435,7 +474,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.speech.v1p1beta1.GetCustomClassRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.speech.v1p1beta1.GetCustomClassRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -447,19 +487,23 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. The name of the custom class to retrieve. Format:
      * `projects/{project}/locations/{location}/customClasses/{custom_class}`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -468,21 +512,24 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the custom class to retrieve. Format:
      * `projects/{project}/locations/{location}/customClasses/{custom_class}`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -490,64 +537,77 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the custom class to retrieve. Format:
      * `projects/{project}/locations/{location}/customClasses/{custom_class}`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. The name of the custom class to retrieve. Format:
      * `projects/{project}/locations/{location}/customClasses/{custom_class}`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. The name of the custom class to retrieve. Format:
      * `projects/{project}/locations/{location}/customClasses/{custom_class}`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -557,12 +617,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(); } @@ -571,16 +631,16 @@ public static com.google.cloud.speech.v1p1beta1.GetCustomClassRequest getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetCustomClassRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetCustomClassRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetCustomClassRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetCustomClassRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -595,6 +655,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.GetCustomClassRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetCustomClassRequestOrBuilder.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetCustomClassRequestOrBuilder.java new file mode 100644 index 000000000..05350941a --- /dev/null +++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetCustomClassRequestOrBuilder.java @@ -0,0 +1,56 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/speech/v1p1beta1/cloud_speech_adaptation.proto + +package com.google.cloud.speech.v1p1beta1; + +public interface GetCustomClassRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1p1beta1.GetCustomClassRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the custom class to retrieve. Format:
+   * `projects/{project}/locations/{location}/customClasses/{custom_class}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the custom class to retrieve. Format:
+   * `projects/{project}/locations/{location}/customClasses/{custom_class}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetPhraseSetRequest.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetPhraseSetRequest.java similarity index 69% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetPhraseSetRequest.java rename to proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetPhraseSetRequest.java index 0c86e65a4..d281a26a7 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetPhraseSetRequest.java +++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetPhraseSetRequest.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech_adaptation.proto package com.google.cloud.speech.v1p1beta1; /** + * + * *
  * Message sent by the client for the `GetPhraseSet` method.
  * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.GetPhraseSetRequest} */ -public final class GetPhraseSetRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetPhraseSetRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v1p1beta1.GetPhraseSetRequest) GetPhraseSetRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetPhraseSetRequest.newBuilder() to construct. private GetPhraseSetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetPhraseSetRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetPhraseSetRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GetPhraseSetRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,47 +70,52 @@ private GetPhraseSetRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_GetPhraseSetRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1p1beta1_GetPhraseSetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_GetPhraseSetRequest_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1p1beta1_GetPhraseSetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest.class, com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest.Builder.class); + com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest.class, + com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. The name of the phrase set to retrieve. Format:
    * `projects/{project}/locations/{location}/phraseSets/{phrase_set}`
@@ -104,7 +126,10 @@ private GetPhraseSetRequest(
    * with matching `us` or `eu` location value.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -113,14 +138,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}`
@@ -131,17 +157,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 { @@ -150,6 +177,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -161,8 +189,7 @@ public final boolean isInitialized() { } @java.lang.Override - public 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_); } @@ -186,15 +213,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest)) { return super.equals(obj); } - com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest other = (com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest) obj; + com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest other = + (com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -214,117 +241,127 @@ public int hashCode() { } public static com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Message sent by the client for the `GetPhraseSet` method.
    * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.GetPhraseSetRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1p1beta1.GetPhraseSetRequest) com.google.cloud.speech.v1p1beta1.GetPhraseSetRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_GetPhraseSetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1p1beta1_GetPhraseSetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_GetPhraseSetRequest_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1p1beta1_GetPhraseSetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest.class, com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest.Builder.class); + com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest.class, + com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest.Builder.class); } // Construct using com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest.newBuilder() @@ -332,16 +369,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -351,9 +387,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 @@ -372,7 +408,8 @@ public com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest build() { @java.lang.Override public com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest buildPartial() { - com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest result = new com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest(this); + com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest result = + new com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest(this); result.name_ = name_; onBuilt(); return result; @@ -382,38 +419,39 @@ public com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest) { - return mergeFrom((com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest)other); + return mergeFrom((com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest) other); } else { super.mergeFrom(other); return this; @@ -421,7 +459,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest other) { - if (other == com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -445,7 +484,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -457,6 +497,8 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. The name of the phrase set to retrieve. Format:
      * `projects/{project}/locations/{location}/phraseSets/{phrase_set}`
@@ -467,14 +509,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; @@ -483,6 +527,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the phrase set to retrieve. Format:
      * `projects/{project}/locations/{location}/phraseSets/{phrase_set}`
@@ -493,16 +539,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 { @@ -510,6 +557,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the phrase set to retrieve. Format:
      * `projects/{project}/locations/{location}/phraseSets/{phrase_set}`
@@ -520,21 +569,25 @@ public java.lang.String getName() {
      * with matching `us` or `eu` location value.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. The name of the phrase set to retrieve. Format:
      * `projects/{project}/locations/{location}/phraseSets/{phrase_set}`
@@ -545,16 +598,21 @@ public Builder setName(
      * with matching `us` or `eu` location value.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. The name of the phrase set to retrieve. Format:
      * `projects/{project}/locations/{location}/phraseSets/{phrase_set}`
@@ -565,24 +623,26 @@ public Builder clearName() {
      * with matching `us` or `eu` location value.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -592,12 +652,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(); } @@ -606,16 +666,16 @@ public static com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetPhraseSetRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetPhraseSetRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetPhraseSetRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetPhraseSetRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -630,6 +690,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetPhraseSetRequestOrBuilder.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetPhraseSetRequestOrBuilder.java similarity index 59% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetPhraseSetRequestOrBuilder.java rename to proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetPhraseSetRequestOrBuilder.java index b5ad6ae00..fb9fa55ec 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetPhraseSetRequestOrBuilder.java +++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetPhraseSetRequestOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech_adaptation.proto package com.google.cloud.speech.v1p1beta1; -public interface GetPhraseSetRequestOrBuilder extends +public interface GetPhraseSetRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1p1beta1.GetPhraseSetRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The name of the phrase set to retrieve. Format:
    * `projects/{project}/locations/{location}/phraseSets/{phrase_set}`
@@ -18,11 +36,16 @@ public interface GetPhraseSetRequestOrBuilder extends
    * with matching `us` or `eu` location value.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. The name of the phrase set to retrieve. Format:
    * `projects/{project}/locations/{location}/phraseSets/{phrase_set}`
@@ -33,9 +56,11 @@ public interface GetPhraseSetRequestOrBuilder extends
    * with matching `us` or `eu` location value.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); } diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesRequest.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesRequest.java similarity index 73% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesRequest.java rename to proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesRequest.java index 5e13802d3..722611208 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesRequest.java +++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech_adaptation.proto package com.google.cloud.speech.v1p1beta1; /** + * + * *
  * Message sent by the client for the `ListCustomClasses` method.
  * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.ListCustomClassesRequest} */ -public final class ListCustomClassesRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListCustomClassesRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v1p1beta1.ListCustomClassesRequest) ListCustomClassesRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListCustomClassesRequest.newBuilder() to construct. private ListCustomClassesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListCustomClassesRequest() { parent_ = ""; pageToken_ = ""; @@ -26,16 +44,15 @@ private ListCustomClassesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListCustomClassesRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListCustomClassesRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,58 +71,64 @@ private ListCustomClassesRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 16: { + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - pageSize_ = input.readInt32(); - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 16: + { + pageSize_ = input.readInt32(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - pageToken_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + pageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_ListCustomClassesRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1p1beta1_ListCustomClassesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_ListCustomClassesRequest_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1p1beta1_ListCustomClassesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest.class, com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest.Builder.class); + com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest.class, + com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. The parent, which owns this collection of custom classes. Format:
    * `projects/{project}/locations/{location}/customClasses`
@@ -116,7 +139,10 @@ private ListCustomClassesRequest(
    * with matching `us` or `eu` location value.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -125,14 +151,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`
@@ -143,17 +170,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 { @@ -164,6 +192,8 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** + * + * *
    * The maximum number of custom classes to return. The service may return
    * fewer than this value. If unspecified, at most 50 custom classes will be
@@ -172,6 +202,7 @@ public java.lang.String getParent() {
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -182,6 +213,8 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** + * + * *
    * A page token, received from a previous `ListCustomClass` call.
    * Provide this to retrieve the subsequent page.
@@ -190,6 +223,7 @@ public int getPageSize() {
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -198,14 +232,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.
@@ -214,16 +249,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 { @@ -232,6 +266,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -243,8 +278,7 @@ public final boolean isInitialized() { } @java.lang.Override - public 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_); } @@ -267,8 +301,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_); @@ -281,19 +314,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest)) { return super.equals(obj); } - com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest other = (com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest) obj; + com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest other = + (com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -317,117 +348,127 @@ public int hashCode() { } public static com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Message sent by the client for the `ListCustomClasses` method.
    * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.ListCustomClassesRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1p1beta1.ListCustomClassesRequest) com.google.cloud.speech.v1p1beta1.ListCustomClassesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_ListCustomClassesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1p1beta1_ListCustomClassesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_ListCustomClassesRequest_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1p1beta1_ListCustomClassesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest.class, com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest.Builder.class); + com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest.class, + com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest.Builder.class); } // Construct using com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest.newBuilder() @@ -435,16 +476,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -458,9 +498,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 @@ -479,7 +519,8 @@ public com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest build() { @java.lang.Override public com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest buildPartial() { - com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest result = new com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest(this); + com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest result = + new com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -491,38 +532,39 @@ public com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest buildPartial() public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest) { - return mergeFrom((com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest)other); + return mergeFrom((com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest) other); } else { super.mergeFrom(other); return this; @@ -530,7 +572,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest other) { - if (other == com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -561,7 +604,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -573,6 +617,8 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The parent, which owns this collection of custom classes. Format:
      * `projects/{project}/locations/{location}/customClasses`
@@ -583,14 +629,16 @@ public Builder mergeFrom(
      * with matching `us` or `eu` location value.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -599,6 +647,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent, which owns this collection of custom classes. Format:
      * `projects/{project}/locations/{location}/customClasses`
@@ -609,16 +659,17 @@ public java.lang.String getParent() {
      * with matching `us` or `eu` location value.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -626,6 +677,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent, which owns this collection of custom classes. Format:
      * `projects/{project}/locations/{location}/customClasses`
@@ -636,21 +689,25 @@ public java.lang.String getParent() {
      * with matching `us` or `eu` location value.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * Required. The parent, which owns this collection of custom classes. Format:
      * `projects/{project}/locations/{location}/customClasses`
@@ -661,16 +718,21 @@ public Builder setParent(
      * with matching `us` or `eu` location value.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * Required. The parent, which owns this collection of custom classes. Format:
      * `projects/{project}/locations/{location}/customClasses`
@@ -681,24 +743,28 @@ public Builder clearParent() {
      * with matching `us` or `eu` location value.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * The maximum number of custom classes to return. The service may return
      * fewer than this value. If unspecified, at most 50 custom classes will be
@@ -707,6 +773,7 @@ public Builder setParentBytes(
      * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -714,6 +781,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
@@ -722,16 +791,19 @@ public int getPageSize() {
      * 
* * int32 page_size = 2; + * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** + * + * *
      * The maximum number of custom classes to return. The service may return
      * fewer than this value. If unspecified, at most 50 custom classes will be
@@ -740,10 +812,11 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2; + * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -751,6 +824,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.
@@ -759,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; @@ -774,6 +849,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A page token, received from a previous `ListCustomClass` call.
      * Provide this to retrieve the subsequent page.
@@ -782,15 +859,14 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -798,6 +874,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A page token, received from a previous `ListCustomClass` call.
      * Provide this to retrieve the subsequent page.
@@ -806,20 +884,22 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { + public Builder setPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** + * + * *
      * A page token, received from a previous `ListCustomClass` call.
      * Provide this to retrieve the subsequent page.
@@ -828,15 +908,18 @@ public Builder setPageToken(
      * 
* * string page_token = 3; + * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** + * + * *
      * A page token, received from a previous `ListCustomClass` call.
      * Provide this to retrieve the subsequent page.
@@ -845,23 +928,23 @@ public Builder clearPageToken() {
      * 
* * string page_token = 3; + * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -871,12 +954,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(); } @@ -885,16 +968,16 @@ public static com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListCustomClassesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListCustomClassesRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListCustomClassesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListCustomClassesRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -909,6 +992,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesRequestOrBuilder.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesRequestOrBuilder.java similarity index 70% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesRequestOrBuilder.java rename to proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesRequestOrBuilder.java index e83c2e601..de9020900 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesRequestOrBuilder.java +++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesRequestOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech_adaptation.proto package com.google.cloud.speech.v1p1beta1; -public interface ListCustomClassesRequestOrBuilder extends +public interface ListCustomClassesRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1p1beta1.ListCustomClassesRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The parent, which owns this collection of custom classes. Format:
    * `projects/{project}/locations/{location}/customClasses`
@@ -18,11 +36,16 @@ public interface ListCustomClassesRequestOrBuilder extends
    * with matching `us` or `eu` location value.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. The parent, which owns this collection of custom classes. Format:
    * `projects/{project}/locations/{location}/customClasses`
@@ -33,13 +56,17 @@ public interface ListCustomClassesRequestOrBuilder extends
    * with matching `us` or `eu` location value.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * The maximum number of custom classes to return. The service may return
    * fewer than this value. If unspecified, at most 50 custom classes will be
@@ -48,11 +75,14 @@ public interface ListCustomClassesRequestOrBuilder extends
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * A page token, received from a previous `ListCustomClass` call.
    * Provide this to retrieve the subsequent page.
@@ -61,10 +91,13 @@ public interface ListCustomClassesRequestOrBuilder extends
    * 
* * string page_token = 3; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * A page token, received from a previous `ListCustomClass` call.
    * Provide this to retrieve the subsequent page.
@@ -73,8 +106,8 @@ public interface ListCustomClassesRequestOrBuilder extends
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); } diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesResponse.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesResponse.java similarity index 75% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesResponse.java rename to proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesResponse.java index a84e608fa..e8a09d56c 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesResponse.java +++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesResponse.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech_adaptation.proto package com.google.cloud.speech.v1p1beta1; /** + * + * *
  * Message returned to the client by the `ListCustomClasses` method.
  * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.ListCustomClassesResponse} */ -public final class ListCustomClassesResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListCustomClassesResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v1p1beta1.ListCustomClassesResponse) ListCustomClassesResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListCustomClassesResponse.newBuilder() to construct. private ListCustomClassesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListCustomClassesResponse() { customClasses_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -26,16 +44,15 @@ private ListCustomClassesResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListCustomClassesResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListCustomClassesResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,35 +72,38 @@ private ListCustomClassesResponse( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - customClasses_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + customClasses_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + customClasses_.add( + input.readMessage( + com.google.cloud.speech.v1p1beta1.CustomClass.parser(), extensionRegistry)); + break; } - customClasses_.add( - input.readMessage(com.google.cloud.speech.v1p1beta1.CustomClass.parser(), extensionRegistry)); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + nextPageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { customClasses_ = java.util.Collections.unmodifiableList(customClasses_); @@ -92,22 +112,27 @@ private ListCustomClassesResponse( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_ListCustomClassesResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1p1beta1_ListCustomClassesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_ListCustomClassesResponse_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1p1beta1_ListCustomClassesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse.class, com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse.Builder.class); + com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse.class, + com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse.Builder.class); } public static final int CUSTOM_CLASSES_FIELD_NUMBER = 1; private java.util.List customClasses_; /** + * + * *
    * The custom classes.
    * 
@@ -119,6 +144,8 @@ public java.util.List getCustomCl return customClasses_; } /** + * + * *
    * The custom classes.
    * 
@@ -126,11 +153,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.
    * 
@@ -142,6 +171,8 @@ public int getCustomClassesCount() { return customClasses_.size(); } /** + * + * *
    * The custom classes.
    * 
@@ -153,6 +184,8 @@ public com.google.cloud.speech.v1p1beta1.CustomClass getCustomClasses(int index) return customClasses_.get(index); } /** + * + * *
    * The custom classes.
    * 
@@ -168,12 +201,15 @@ public com.google.cloud.speech.v1p1beta1.CustomClassOrBuilder getCustomClassesOr public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** + * + * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -182,30 +218,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -214,6 +250,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -225,8 +262,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < customClasses_.size(); i++) { output.writeMessage(1, customClasses_.get(i)); } @@ -243,8 +279,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < customClasses_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, customClasses_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, customClasses_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -257,17 +292,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse)) { return super.equals(obj); } - com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse other = (com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse) obj; + com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse other = + (com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse) obj; - if (!getCustomClassesList() - .equals(other.getCustomClassesList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; + if (!getCustomClassesList().equals(other.getCustomClassesList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -291,117 +325,127 @@ public int hashCode() { } public static com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Message returned to the client by the `ListCustomClasses` method.
    * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.ListCustomClassesResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1p1beta1.ListCustomClassesResponse) com.google.cloud.speech.v1p1beta1.ListCustomClassesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_ListCustomClassesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1p1beta1_ListCustomClassesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_ListCustomClassesResponse_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1p1beta1_ListCustomClassesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse.class, com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse.Builder.class); + com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse.class, + com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse.Builder.class); } // Construct using com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse.newBuilder() @@ -409,17 +453,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getCustomClassesFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -435,9 +479,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 @@ -456,7 +500,8 @@ public com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse build() { @java.lang.Override public com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse buildPartial() { - com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse result = new com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse(this); + com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse result = + new com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse(this); int from_bitField0_ = bitField0_; if (customClassesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -476,38 +521,39 @@ public com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse buildPartial( public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse) { - return mergeFrom((com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse)other); + return mergeFrom((com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse) other); } else { super.mergeFrom(other); return this; @@ -515,7 +561,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()) { @@ -534,9 +581,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_); } @@ -565,7 +613,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -574,21 +623,29 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.util.List customClasses_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureCustomClassesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - customClasses_ = new java.util.ArrayList(customClasses_); + customClasses_ = + new java.util.ArrayList(customClasses_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.CustomClass, com.google.cloud.speech.v1p1beta1.CustomClass.Builder, com.google.cloud.speech.v1p1beta1.CustomClassOrBuilder> customClassesBuilder_; + com.google.cloud.speech.v1p1beta1.CustomClass, + com.google.cloud.speech.v1p1beta1.CustomClass.Builder, + com.google.cloud.speech.v1p1beta1.CustomClassOrBuilder> + customClassesBuilder_; /** + * + * *
      * The custom classes.
      * 
@@ -603,6 +660,8 @@ public java.util.List getCustomCl } } /** + * + * *
      * The custom classes.
      * 
@@ -617,6 +676,8 @@ public int getCustomClassesCount() { } } /** + * + * *
      * The custom classes.
      * 
@@ -631,6 +692,8 @@ public com.google.cloud.speech.v1p1beta1.CustomClass getCustomClasses(int index) } } /** + * + * *
      * The custom classes.
      * 
@@ -652,6 +715,8 @@ public Builder setCustomClasses( return this; } /** + * + * *
      * The custom classes.
      * 
@@ -670,6 +735,8 @@ public Builder setCustomClasses( return this; } /** + * + * *
      * The custom classes.
      * 
@@ -690,6 +757,8 @@ public Builder addCustomClasses(com.google.cloud.speech.v1p1beta1.CustomClass va return this; } /** + * + * *
      * The custom classes.
      * 
@@ -711,6 +780,8 @@ public Builder addCustomClasses( return this; } /** + * + * *
      * The custom classes.
      * 
@@ -729,6 +800,8 @@ public Builder addCustomClasses( return this; } /** + * + * *
      * The custom classes.
      * 
@@ -747,6 +820,8 @@ public Builder addCustomClasses( return this; } /** + * + * *
      * The custom classes.
      * 
@@ -757,8 +832,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); @@ -766,6 +840,8 @@ public Builder addAllCustomClasses( return this; } /** + * + * *
      * The custom classes.
      * 
@@ -783,6 +859,8 @@ public Builder clearCustomClasses() { return this; } /** + * + * *
      * The custom classes.
      * 
@@ -800,6 +878,8 @@ public Builder removeCustomClasses(int index) { return this; } /** + * + * *
      * The custom classes.
      * 
@@ -811,6 +891,8 @@ public com.google.cloud.speech.v1p1beta1.CustomClass.Builder getCustomClassesBui return getCustomClassesFieldBuilder().getBuilder(index); } /** + * + * *
      * The custom classes.
      * 
@@ -820,19 +902,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 { @@ -840,6 +925,8 @@ public com.google.cloud.speech.v1p1beta1.CustomClassOrBuilder getCustomClassesOr } } /** + * + * *
      * The custom classes.
      * 
@@ -847,10 +934,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.
      * 
@@ -859,26 +948,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(), @@ -890,19 +987,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; @@ -911,21 +1010,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 { @@ -933,64 +1033,71 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { + public Builder setNextPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** + * + * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** + * + * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1000,12 +1107,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(); } @@ -1014,16 +1121,16 @@ public static com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListCustomClassesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListCustomClassesResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListCustomClassesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListCustomClassesResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1038,6 +1145,4 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesResponseOrBuilder.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesResponseOrBuilder.java similarity index 69% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesResponseOrBuilder.java rename to proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesResponseOrBuilder.java index bb845e981..ba426471d 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesResponseOrBuilder.java +++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesResponseOrBuilder.java @@ -1,22 +1,41 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech_adaptation.proto package com.google.cloud.speech.v1p1beta1; -public interface ListCustomClassesResponseOrBuilder extends +public interface ListCustomClassesResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1p1beta1.ListCustomClassesResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The custom classes.
    * 
* * repeated .google.cloud.speech.v1p1beta1.CustomClass custom_classes = 1; */ - java.util.List - getCustomClassesList(); + java.util.List getCustomClassesList(); /** + * + * *
    * The custom classes.
    * 
@@ -25,6 +44,8 @@ public interface ListCustomClassesResponseOrBuilder extends */ com.google.cloud.speech.v1p1beta1.CustomClass getCustomClasses(int index); /** + * + * *
    * The custom classes.
    * 
@@ -33,43 +54,51 @@ public interface ListCustomClassesResponseOrBuilder extends */ int getCustomClassesCount(); /** + * + * *
    * The custom classes.
    * 
* * repeated .google.cloud.speech.v1p1beta1.CustomClass custom_classes = 1; */ - java.util.List + java.util.List getCustomClassesOrBuilderList(); /** + * + * *
    * The custom classes.
    * 
* * repeated .google.cloud.speech.v1p1beta1.CustomClass custom_classes = 1; */ - com.google.cloud.speech.v1p1beta1.CustomClassOrBuilder getCustomClassesOrBuilder( - int index); + com.google.cloud.speech.v1p1beta1.CustomClassOrBuilder getCustomClassesOrBuilder(int index); /** + * + * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); } diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetRequest.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetRequest.java similarity index 73% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetRequest.java rename to proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetRequest.java index c3aa38744..a1c1a14f4 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetRequest.java +++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech_adaptation.proto package com.google.cloud.speech.v1p1beta1; /** + * + * *
  * Message sent by the client for the `ListPhraseSet` method.
  * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.ListPhraseSetRequest} */ -public final class ListPhraseSetRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListPhraseSetRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v1p1beta1.ListPhraseSetRequest) ListPhraseSetRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListPhraseSetRequest.newBuilder() to construct. private ListPhraseSetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListPhraseSetRequest() { parent_ = ""; pageToken_ = ""; @@ -26,16 +44,15 @@ private ListPhraseSetRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListPhraseSetRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListPhraseSetRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,58 +71,64 @@ private ListPhraseSetRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 16: { + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - pageSize_ = input.readInt32(); - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 16: + { + pageSize_ = input.readInt32(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - pageToken_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + pageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_ListPhraseSetRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1p1beta1_ListPhraseSetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_ListPhraseSetRequest_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1p1beta1_ListPhraseSetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest.class, com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest.Builder.class); + com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest.class, + com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. The parent, which owns this collection of phrase set. Format:
    * `projects/{project}/locations/{location}`
@@ -116,7 +139,10 @@ private ListPhraseSetRequest(
    * with matching `us` or `eu` location value.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -125,14 +151,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}`
@@ -143,17 +170,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 { @@ -164,6 +192,8 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** + * + * *
    * The maximum number of phrase sets to return. The service may return
    * fewer than this value. If unspecified, at most 50 phrase sets will be
@@ -172,6 +202,7 @@ public java.lang.String getParent() {
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -182,6 +213,8 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** + * + * *
    * A page token, received from a previous `ListPhraseSet` call.
    * Provide this to retrieve the subsequent page.
@@ -190,6 +223,7 @@ public int getPageSize() {
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -198,14 +232,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.
@@ -214,16 +249,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 { @@ -232,6 +266,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -243,8 +278,7 @@ public final boolean isInitialized() { } @java.lang.Override - public 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_); } @@ -267,8 +301,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_); @@ -281,19 +314,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest)) { return super.equals(obj); } - com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest other = (com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest) obj; + com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest other = + (com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -317,117 +348,127 @@ public int hashCode() { } public static com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Message sent by the client for the `ListPhraseSet` method.
    * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.ListPhraseSetRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1p1beta1.ListPhraseSetRequest) com.google.cloud.speech.v1p1beta1.ListPhraseSetRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_ListPhraseSetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1p1beta1_ListPhraseSetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_ListPhraseSetRequest_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1p1beta1_ListPhraseSetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest.class, com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest.Builder.class); + com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest.class, + com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest.Builder.class); } // Construct using com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest.newBuilder() @@ -435,16 +476,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -458,9 +498,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 @@ -479,7 +519,8 @@ public com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest build() { @java.lang.Override public com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest buildPartial() { - com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest result = new com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest(this); + com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest result = + new com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -491,38 +532,39 @@ public com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest) { - return mergeFrom((com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest)other); + return mergeFrom((com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest) other); } else { super.mergeFrom(other); return this; @@ -530,7 +572,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest other) { - if (other == com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -561,7 +604,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -573,6 +617,8 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The parent, which owns this collection of phrase set. Format:
      * `projects/{project}/locations/{location}`
@@ -583,14 +629,16 @@ public Builder mergeFrom(
      * with matching `us` or `eu` location value.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -599,6 +647,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent, which owns this collection of phrase set. Format:
      * `projects/{project}/locations/{location}`
@@ -609,16 +659,17 @@ public java.lang.String getParent() {
      * with matching `us` or `eu` location value.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -626,6 +677,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent, which owns this collection of phrase set. Format:
      * `projects/{project}/locations/{location}`
@@ -636,21 +689,25 @@ public java.lang.String getParent() {
      * with matching `us` or `eu` location value.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * Required. The parent, which owns this collection of phrase set. Format:
      * `projects/{project}/locations/{location}`
@@ -661,16 +718,21 @@ public Builder setParent(
      * with matching `us` or `eu` location value.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * Required. The parent, which owns this collection of phrase set. Format:
      * `projects/{project}/locations/{location}`
@@ -681,24 +743,28 @@ public Builder clearParent() {
      * with matching `us` or `eu` location value.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * The maximum number of phrase sets to return. The service may return
      * fewer than this value. If unspecified, at most 50 phrase sets will be
@@ -707,6 +773,7 @@ public Builder setParentBytes(
      * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -714,6 +781,8 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * The maximum number of phrase sets to return. The service may return
      * fewer than this value. If unspecified, at most 50 phrase sets will be
@@ -722,16 +791,19 @@ public int getPageSize() {
      * 
* * int32 page_size = 2; + * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** + * + * *
      * The maximum number of phrase sets to return. The service may return
      * fewer than this value. If unspecified, at most 50 phrase sets will be
@@ -740,10 +812,11 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2; + * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -751,6 +824,8 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * A page token, received from a previous `ListPhraseSet` call.
      * Provide this to retrieve the subsequent page.
@@ -759,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; @@ -774,6 +849,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A page token, received from a previous `ListPhraseSet` call.
      * Provide this to retrieve the subsequent page.
@@ -782,15 +859,14 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -798,6 +874,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A page token, received from a previous `ListPhraseSet` call.
      * Provide this to retrieve the subsequent page.
@@ -806,20 +884,22 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { + public Builder setPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** + * + * *
      * A page token, received from a previous `ListPhraseSet` call.
      * Provide this to retrieve the subsequent page.
@@ -828,15 +908,18 @@ public Builder setPageToken(
      * 
* * string page_token = 3; + * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** + * + * *
      * A page token, received from a previous `ListPhraseSet` call.
      * Provide this to retrieve the subsequent page.
@@ -845,23 +928,23 @@ public Builder clearPageToken() {
      * 
* * string page_token = 3; + * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -871,12 +954,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(); } @@ -885,16 +968,16 @@ public static com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListPhraseSetRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListPhraseSetRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListPhraseSetRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListPhraseSetRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -909,6 +992,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetRequestOrBuilder.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetRequestOrBuilder.java similarity index 69% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetRequestOrBuilder.java rename to proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetRequestOrBuilder.java index 1f93fa365..51f535258 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetRequestOrBuilder.java +++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetRequestOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech_adaptation.proto package com.google.cloud.speech.v1p1beta1; -public interface ListPhraseSetRequestOrBuilder extends +public interface ListPhraseSetRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1p1beta1.ListPhraseSetRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The parent, which owns this collection of phrase set. Format:
    * `projects/{project}/locations/{location}`
@@ -18,11 +36,16 @@ public interface ListPhraseSetRequestOrBuilder extends
    * with matching `us` or `eu` location value.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. The parent, which owns this collection of phrase set. Format:
    * `projects/{project}/locations/{location}`
@@ -33,13 +56,17 @@ public interface ListPhraseSetRequestOrBuilder extends
    * with matching `us` or `eu` location value.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * The maximum number of phrase sets to return. The service may return
    * fewer than this value. If unspecified, at most 50 phrase sets will be
@@ -48,11 +75,14 @@ public interface ListPhraseSetRequestOrBuilder extends
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * A page token, received from a previous `ListPhraseSet` call.
    * Provide this to retrieve the subsequent page.
@@ -61,10 +91,13 @@ public interface ListPhraseSetRequestOrBuilder extends
    * 
* * string page_token = 3; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * A page token, received from a previous `ListPhraseSet` call.
    * Provide this to retrieve the subsequent page.
@@ -73,8 +106,8 @@ public interface ListPhraseSetRequestOrBuilder extends
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); } diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetResponse.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetResponse.java similarity index 73% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetResponse.java rename to proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetResponse.java index 83716c395..be6be5a26 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetResponse.java +++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetResponse.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech_adaptation.proto package com.google.cloud.speech.v1p1beta1; /** + * + * *
  * Message returned to the client by the `ListPhraseSet` method.
  * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.ListPhraseSetResponse} */ -public final class ListPhraseSetResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListPhraseSetResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v1p1beta1.ListPhraseSetResponse) ListPhraseSetResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListPhraseSetResponse.newBuilder() to construct. private ListPhraseSetResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListPhraseSetResponse() { phraseSets_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -26,16 +44,15 @@ private ListPhraseSetResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListPhraseSetResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListPhraseSetResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,35 +72,38 @@ private ListPhraseSetResponse( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - phraseSets_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + phraseSets_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + phraseSets_.add( + input.readMessage( + com.google.cloud.speech.v1p1beta1.PhraseSet.parser(), extensionRegistry)); + break; } - phraseSets_.add( - input.readMessage(com.google.cloud.speech.v1p1beta1.PhraseSet.parser(), extensionRegistry)); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + nextPageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { phraseSets_ = java.util.Collections.unmodifiableList(phraseSets_); @@ -92,22 +112,27 @@ private ListPhraseSetResponse( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_ListPhraseSetResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1p1beta1_ListPhraseSetResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_ListPhraseSetResponse_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1p1beta1_ListPhraseSetResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse.class, com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse.Builder.class); + com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse.class, + com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse.Builder.class); } public static final int PHRASE_SETS_FIELD_NUMBER = 1; private java.util.List phraseSets_; /** + * + * *
    * The phrase set.
    * 
@@ -119,6 +144,8 @@ public java.util.List getPhraseSets return phraseSets_; } /** + * + * *
    * The phrase set.
    * 
@@ -126,11 +153,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.
    * 
@@ -142,6 +171,8 @@ public int getPhraseSetsCount() { return phraseSets_.size(); } /** + * + * *
    * The phrase set.
    * 
@@ -153,6 +184,8 @@ public com.google.cloud.speech.v1p1beta1.PhraseSet getPhraseSets(int index) { return phraseSets_.get(index); } /** + * + * *
    * The phrase set.
    * 
@@ -160,20 +193,22 @@ public com.google.cloud.speech.v1p1beta1.PhraseSet getPhraseSets(int index) { * repeated .google.cloud.speech.v1p1beta1.PhraseSet phrase_sets = 1; */ @java.lang.Override - public com.google.cloud.speech.v1p1beta1.PhraseSetOrBuilder getPhraseSetsOrBuilder( - int index) { + public com.google.cloud.speech.v1p1beta1.PhraseSetOrBuilder getPhraseSetsOrBuilder(int index) { return phraseSets_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** + * + * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -182,30 +217,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 { @@ -214,6 +249,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -225,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 { for (int i = 0; i < phraseSets_.size(); i++) { output.writeMessage(1, phraseSets_.get(i)); } @@ -243,8 +278,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_); @@ -257,17 +291,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse)) { return super.equals(obj); } - com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse other = (com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse) obj; + com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse other = + (com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse) obj; - if (!getPhraseSetsList() - .equals(other.getPhraseSetsList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; + if (!getPhraseSetsList().equals(other.getPhraseSetsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -291,117 +324,127 @@ public int hashCode() { } public static com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Message returned to the client by the `ListPhraseSet` method.
    * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.ListPhraseSetResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1p1beta1.ListPhraseSetResponse) com.google.cloud.speech.v1p1beta1.ListPhraseSetResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_ListPhraseSetResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1p1beta1_ListPhraseSetResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_ListPhraseSetResponse_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1p1beta1_ListPhraseSetResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse.class, com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse.Builder.class); + com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse.class, + com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse.Builder.class); } // Construct using com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse.newBuilder() @@ -409,17 +452,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getPhraseSetsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -435,9 +478,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 @@ -456,7 +499,8 @@ public com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse build() { @java.lang.Override public com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse buildPartial() { - com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse result = new com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse(this); + com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse result = + new com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse(this); int from_bitField0_ = bitField0_; if (phraseSetsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -476,38 +520,39 @@ public com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse) { - return mergeFrom((com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse)other); + return mergeFrom((com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse) other); } else { super.mergeFrom(other); return this; @@ -515,7 +560,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()) { @@ -534,9 +580,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_); } @@ -565,7 +612,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -574,21 +622,29 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.util.List phraseSets_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensurePhraseSetsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - phraseSets_ = new java.util.ArrayList(phraseSets_); + phraseSets_ = + new java.util.ArrayList(phraseSets_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.PhraseSet, com.google.cloud.speech.v1p1beta1.PhraseSet.Builder, com.google.cloud.speech.v1p1beta1.PhraseSetOrBuilder> phraseSetsBuilder_; + com.google.cloud.speech.v1p1beta1.PhraseSet, + com.google.cloud.speech.v1p1beta1.PhraseSet.Builder, + com.google.cloud.speech.v1p1beta1.PhraseSetOrBuilder> + phraseSetsBuilder_; /** + * + * *
      * The phrase set.
      * 
@@ -603,6 +659,8 @@ public java.util.List getPhraseSets } } /** + * + * *
      * The phrase set.
      * 
@@ -617,6 +675,8 @@ public int getPhraseSetsCount() { } } /** + * + * *
      * The phrase set.
      * 
@@ -631,14 +691,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(); @@ -652,6 +713,8 @@ public Builder setPhraseSets( return this; } /** + * + * *
      * The phrase set.
      * 
@@ -670,6 +733,8 @@ public Builder setPhraseSets( return this; } /** + * + * *
      * The phrase set.
      * 
@@ -690,14 +755,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(); @@ -711,6 +777,8 @@ public Builder addPhraseSets( return this; } /** + * + * *
      * The phrase set.
      * 
@@ -729,6 +797,8 @@ public Builder addPhraseSets( return this; } /** + * + * *
      * The phrase set.
      * 
@@ -747,6 +817,8 @@ public Builder addPhraseSets( return this; } /** + * + * *
      * The phrase set.
      * 
@@ -757,8 +829,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); @@ -766,6 +837,8 @@ public Builder addAllPhraseSets( return this; } /** + * + * *
      * The phrase set.
      * 
@@ -783,6 +856,8 @@ public Builder clearPhraseSets() { return this; } /** + * + * *
      * The phrase set.
      * 
@@ -800,39 +875,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 { @@ -840,6 +920,8 @@ public com.google.cloud.speech.v1p1beta1.PhraseSetOrBuilder getPhraseSetsOrBuild } } /** + * + * *
      * The phrase set.
      * 
@@ -847,42 +929,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_; @@ -890,19 +978,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; @@ -911,21 +1001,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 { @@ -933,64 +1024,71 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { + public Builder setNextPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** + * + * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** + * + * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1000,12 +1098,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(); } @@ -1014,16 +1112,16 @@ public static com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListPhraseSetResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListPhraseSetResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListPhraseSetResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListPhraseSetResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1038,6 +1136,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetResponseOrBuilder.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetResponseOrBuilder.java similarity index 67% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetResponseOrBuilder.java rename to proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetResponseOrBuilder.java index 7a24d1b77..319d29f4f 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetResponseOrBuilder.java +++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetResponseOrBuilder.java @@ -1,22 +1,41 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech_adaptation.proto package com.google.cloud.speech.v1p1beta1; -public interface ListPhraseSetResponseOrBuilder extends +public interface ListPhraseSetResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1p1beta1.ListPhraseSetResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The phrase set.
    * 
* * repeated .google.cloud.speech.v1p1beta1.PhraseSet phrase_sets = 1; */ - java.util.List - getPhraseSetsList(); + java.util.List getPhraseSetsList(); /** + * + * *
    * The phrase set.
    * 
@@ -25,6 +44,8 @@ public interface ListPhraseSetResponseOrBuilder extends */ com.google.cloud.speech.v1p1beta1.PhraseSet getPhraseSets(int index); /** + * + * *
    * The phrase set.
    * 
@@ -33,43 +54,51 @@ public interface ListPhraseSetResponseOrBuilder extends */ int getPhraseSetsCount(); /** + * + * *
    * The phrase set.
    * 
* * repeated .google.cloud.speech.v1p1beta1.PhraseSet phrase_sets = 1; */ - java.util.List + java.util.List getPhraseSetsOrBuilderList(); /** + * + * *
    * The phrase set.
    * 
* * repeated .google.cloud.speech.v1p1beta1.PhraseSet phrase_sets = 1; */ - com.google.cloud.speech.v1p1beta1.PhraseSetOrBuilder getPhraseSetsOrBuilder( - int index); + com.google.cloud.speech.v1p1beta1.PhraseSetOrBuilder getPhraseSetsOrBuilder(int index); /** + * + * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); } diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LocationName.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LocationName.java similarity index 100% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LocationName.java rename to proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LocationName.java diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeMetadata.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeMetadata.java similarity index 68% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeMetadata.java rename to proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeMetadata.java index 77f6b5c37..e3e8d3fdf 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeMetadata.java +++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeMetadata.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech.proto package com.google.cloud.speech.v1p1beta1; /** + * + * *
  * Describes the progress of a long-running `LongRunningRecognize` call. It is
  * included in the `metadata` field of the `Operation` returned by the
@@ -12,31 +29,31 @@
  *
  * Protobuf type {@code google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata}
  */
-public final class LongRunningRecognizeMetadata extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class LongRunningRecognizeMetadata extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata)
     LongRunningRecognizeMetadataOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use LongRunningRecognizeMetadata.newBuilder() to construct.
   private LongRunningRecognizeMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private LongRunningRecognizeMetadata() {
     uri_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new LongRunningRecognizeMetadata();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private LongRunningRecognizeMetadata(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -55,97 +72,111 @@ private LongRunningRecognizeMetadata(
           case 0:
             done = true;
             break;
-          case 8: {
-
-            progressPercent_ = input.readInt32();
-            break;
-          }
-          case 18: {
-            com.google.protobuf.Timestamp.Builder subBuilder = null;
-            if (startTime_ != null) {
-              subBuilder = startTime_.toBuilder();
+          case 8:
+            {
+              progressPercent_ = input.readInt32();
+              break;
             }
-            startTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(startTime_);
-              startTime_ = subBuilder.buildPartial();
-            }
-
-            break;
-          }
-          case 26: {
-            com.google.protobuf.Timestamp.Builder subBuilder = null;
-            if (lastUpdateTime_ != null) {
-              subBuilder = lastUpdateTime_.toBuilder();
+          case 18:
+            {
+              com.google.protobuf.Timestamp.Builder subBuilder = null;
+              if (startTime_ != null) {
+                subBuilder = startTime_.toBuilder();
+              }
+              startTime_ =
+                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(startTime_);
+                startTime_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
-            lastUpdateTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(lastUpdateTime_);
-              lastUpdateTime_ = subBuilder.buildPartial();
+          case 26:
+            {
+              com.google.protobuf.Timestamp.Builder subBuilder = null;
+              if (lastUpdateTime_ != null) {
+                subBuilder = lastUpdateTime_.toBuilder();
+              }
+              lastUpdateTime_ =
+                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(lastUpdateTime_);
+                lastUpdateTime_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
+          case 34:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            break;
-          }
-          case 34: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            uri_ = s;
-            break;
-          }
-          case 42: {
-            com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.Builder subBuilder = null;
-            if (outputConfig_ != null) {
-              subBuilder = outputConfig_.toBuilder();
+              uri_ = s;
+              break;
             }
-            outputConfig_ = input.readMessage(com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(outputConfig_);
-              outputConfig_ = subBuilder.buildPartial();
+          case 42:
+            {
+              com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.Builder subBuilder = null;
+              if (outputConfig_ != null) {
+                subBuilder = outputConfig_.toBuilder();
+              }
+              outputConfig_ =
+                  input.readMessage(
+                      com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(outputConfig_);
+                outputConfig_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
-
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeMetadata_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.speech.v1p1beta1.SpeechProto
+        .internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeMetadata_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeMetadata_fieldAccessorTable
+    return com.google.cloud.speech.v1p1beta1.SpeechProto
+        .internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeMetadata_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata.class, com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata.Builder.class);
+            com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata.class,
+            com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata.Builder.class);
   }
 
   public static final int PROGRESS_PERCENT_FIELD_NUMBER = 1;
   private int progressPercent_;
   /**
+   *
+   *
    * 
    * Approximate percentage of audio processed thus far. Guaranteed to be 100
    * when the audio is fully processed and the results are available.
    * 
* * int32 progress_percent = 1; + * * @return The progressPercent. */ @java.lang.Override @@ -156,11 +187,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 @@ -168,11 +202,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 @@ -180,6 +217,8 @@ public com.google.protobuf.Timestamp getStartTime() { return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } /** + * + * *
    * Time when the request was received.
    * 
@@ -194,11 +233,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 @@ -206,18 +248,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.
    * 
@@ -232,12 +281,15 @@ public com.google.protobuf.TimestampOrBuilder getLastUpdateTimeOrBuilder() { public static final int URI_FIELD_NUMBER = 4; private volatile java.lang.Object uri_; /** + * + * *
    * Output only. The URI of the audio file being transcribed. Empty if the audio was sent
    * as byte content.
    * 
* * string uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The uri. */ @java.lang.Override @@ -246,30 +298,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 { @@ -280,11 +332,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 @@ -292,30 +349,43 @@ public boolean hasOutputConfig() { return outputConfig_ != null; } /** + * + * *
    * Output only. A copy of the TranscriptOutputConfig if it was set in the request.
    * 
* - * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The outputConfig. */ @java.lang.Override public com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig getOutputConfig() { - return outputConfig_ == null ? com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.getDefaultInstance() : outputConfig_; + return outputConfig_ == null + ? com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.getDefaultInstance() + : outputConfig_; } /** + * + * *
    * Output only. A copy of the TranscriptOutputConfig if it was set in the request.
    * 
* - * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public com.google.cloud.speech.v1p1beta1.TranscriptOutputConfigOrBuilder getOutputConfigOrBuilder() { + public com.google.cloud.speech.v1p1beta1.TranscriptOutputConfigOrBuilder + getOutputConfigOrBuilder() { return getOutputConfig(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -327,8 +397,7 @@ public final boolean isInitialized() { } @java.lang.Override - public 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_); } @@ -354,23 +423,19 @@ public int getSerializedSize() { size = 0; if (progressPercent_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, progressPercent_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, progressPercent_); } if (startTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getStartTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getStartTime()); } if (lastUpdateTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getLastUpdateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getLastUpdateTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, uri_); } if (outputConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getOutputConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getOutputConfig()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -380,31 +445,27 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata)) { return super.equals(obj); } - com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata other = (com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata) obj; + com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata other = + (com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata) obj; - if (getProgressPercent() - != other.getProgressPercent()) return false; + if (getProgressPercent() != other.getProgressPercent()) return false; if (hasStartTime() != other.hasStartTime()) return false; if (hasStartTime()) { - if (!getStartTime() - .equals(other.getStartTime())) return false; + if (!getStartTime().equals(other.getStartTime())) return false; } if (hasLastUpdateTime() != other.hasLastUpdateTime()) return false; if (hasLastUpdateTime()) { - if (!getLastUpdateTime() - .equals(other.getLastUpdateTime())) return false; + if (!getLastUpdateTime().equals(other.getLastUpdateTime())) return false; } - if (!getUri() - .equals(other.getUri())) return false; + if (!getUri().equals(other.getUri())) return false; if (hasOutputConfig() != other.hasOutputConfig()) return false; if (hasOutputConfig()) { - if (!getOutputConfig() - .equals(other.getOutputConfig())) return false; + if (!getOutputConfig().equals(other.getOutputConfig())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -439,96 +500,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
@@ -537,21 +606,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata)
       com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadataOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeMetadata_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.speech.v1p1beta1.SpeechProto
+          .internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeMetadata_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeMetadata_fieldAccessorTable
+      return com.google.cloud.speech.v1p1beta1.SpeechProto
+          .internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeMetadata_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata.class, com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata.Builder.class);
+              com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata.class,
+              com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata.newBuilder()
@@ -559,16 +630,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -598,13 +668,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();
     }
 
@@ -619,7 +690,8 @@ public com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata buildPartial() {
-      com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata result = new com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata(this);
+      com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata result =
+          new com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata(this);
       result.progressPercent_ = progressPercent_;
       if (startTimeBuilder_ == null) {
         result.startTime_ = startTime_;
@@ -645,38 +717,39 @@ public com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata buildParti
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata) {
-        return mergeFrom((com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata)other);
+        return mergeFrom((com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -684,7 +757,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());
       }
@@ -720,7 +795,9 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata)
+                e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -730,14 +807,17 @@ public Builder mergeFrom(
       return this;
     }
 
-    private int progressPercent_ ;
+    private int progressPercent_;
     /**
+     *
+     *
      * 
      * Approximate percentage of audio processed thus far. Guaranteed to be 100
      * when the audio is fully processed and the results are available.
      * 
* * int32 progress_percent = 1; + * * @return The progressPercent. */ @java.lang.Override @@ -745,32 +825,38 @@ public int getProgressPercent() { return progressPercent_; } /** + * + * *
      * Approximate percentage of audio processed thus far. Guaranteed to be 100
      * when the audio is fully processed and the results are available.
      * 
* * int32 progress_percent = 1; + * * @param value The progressPercent to set. * @return This builder for chaining. */ public Builder setProgressPercent(int value) { - + progressPercent_ = value; onChanged(); return this; } /** + * + * *
      * Approximate percentage of audio processed thus far. Guaranteed to be 100
      * when the audio is fully processed and the results are available.
      * 
* * int32 progress_percent = 1; + * * @return This builder for chaining. */ public Builder clearProgressPercent() { - + progressPercent_ = 0; onChanged(); return this; @@ -778,24 +864,33 @@ public Builder clearProgressPercent() { private com.google.protobuf.Timestamp startTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> startTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + startTimeBuilder_; /** + * + * *
      * Time when the request was received.
      * 
* * .google.protobuf.Timestamp start_time = 2; + * * @return Whether the startTime field is set. */ public boolean hasStartTime() { return startTimeBuilder_ != null || startTime_ != null; } /** + * + * *
      * Time when the request was received.
      * 
* * .google.protobuf.Timestamp start_time = 2; + * * @return The startTime. */ public com.google.protobuf.Timestamp getStartTime() { @@ -806,6 +901,8 @@ public com.google.protobuf.Timestamp getStartTime() { } } /** + * + * *
      * Time when the request was received.
      * 
@@ -826,14 +923,15 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Time when the request was received.
      * 
* * .google.protobuf.Timestamp start_time = 2; */ - public Builder setStartTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (startTimeBuilder_ == null) { startTime_ = builderForValue.build(); onChanged(); @@ -844,6 +942,8 @@ public Builder setStartTime( return this; } /** + * + * *
      * Time when the request was received.
      * 
@@ -854,7 +954,7 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { if (startTimeBuilder_ == null) { if (startTime_ != null) { startTime_ = - com.google.protobuf.Timestamp.newBuilder(startTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(startTime_).mergeFrom(value).buildPartial(); } else { startTime_ = value; } @@ -866,6 +966,8 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Time when the request was received.
      * 
@@ -884,6 +986,8 @@ public Builder clearStartTime() { return this; } /** + * + * *
      * Time when the request was received.
      * 
@@ -891,11 +995,13 @@ public Builder clearStartTime() { * .google.protobuf.Timestamp start_time = 2; */ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { - + onChanged(); return getStartTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Time when the request was received.
      * 
@@ -906,11 +1012,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.
      * 
@@ -918,14 +1025,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_; @@ -933,34 +1043,47 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { private com.google.protobuf.Timestamp lastUpdateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> lastUpdateTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + lastUpdateTimeBuilder_; /** + * + * *
      * Time of the most recent processing update.
      * 
* * .google.protobuf.Timestamp last_update_time = 3; + * * @return Whether the lastUpdateTime field is set. */ public boolean hasLastUpdateTime() { return lastUpdateTimeBuilder_ != null || lastUpdateTime_ != null; } /** + * + * *
      * Time of the most recent processing update.
      * 
* * .google.protobuf.Timestamp last_update_time = 3; + * * @return The lastUpdateTime. */ public com.google.protobuf.Timestamp getLastUpdateTime() { if (lastUpdateTimeBuilder_ == null) { - return lastUpdateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastUpdateTime_; + return lastUpdateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : lastUpdateTime_; } else { return lastUpdateTimeBuilder_.getMessage(); } } /** + * + * *
      * Time of the most recent processing update.
      * 
@@ -981,14 +1104,15 @@ public Builder setLastUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Time of the most recent processing update.
      * 
* * .google.protobuf.Timestamp last_update_time = 3; */ - public Builder setLastUpdateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setLastUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (lastUpdateTimeBuilder_ == null) { lastUpdateTime_ = builderForValue.build(); onChanged(); @@ -999,6 +1123,8 @@ public Builder setLastUpdateTime( return this; } /** + * + * *
      * Time of the most recent processing update.
      * 
@@ -1009,7 +1135,9 @@ public Builder mergeLastUpdateTime(com.google.protobuf.Timestamp value) { if (lastUpdateTimeBuilder_ == null) { if (lastUpdateTime_ != null) { lastUpdateTime_ = - com.google.protobuf.Timestamp.newBuilder(lastUpdateTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(lastUpdateTime_) + .mergeFrom(value) + .buildPartial(); } else { lastUpdateTime_ = value; } @@ -1021,6 +1149,8 @@ public Builder mergeLastUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Time of the most recent processing update.
      * 
@@ -1039,6 +1169,8 @@ public Builder clearLastUpdateTime() { return this; } /** + * + * *
      * Time of the most recent processing update.
      * 
@@ -1046,11 +1178,13 @@ public Builder clearLastUpdateTime() { * .google.protobuf.Timestamp last_update_time = 3; */ public com.google.protobuf.Timestamp.Builder getLastUpdateTimeBuilder() { - + onChanged(); return getLastUpdateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Time of the most recent processing update.
      * 
@@ -1061,11 +1195,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.
      * 
@@ -1073,14 +1210,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_; @@ -1088,19 +1228,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; @@ -1109,21 +1251,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 { @@ -1131,57 +1274,64 @@ public java.lang.String getUri() { } } /** + * + * *
      * Output only. The URI of the audio file being transcribed. Empty if the audio was sent
      * as byte content.
      * 
* * string uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The uri to set. * @return This builder for chaining. */ - public Builder setUri( - java.lang.String value) { + public Builder setUri(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + uri_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The URI of the audio file being transcribed. Empty if the audio was sent
      * as byte content.
      * 
* * string uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearUri() { - + uri_ = getDefaultInstance().getUri(); onChanged(); return this; } /** + * + * *
      * Output only. The URI of the audio file being transcribed. Empty if the audio was sent
      * as byte content.
      * 
* * string uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for uri to set. * @return This builder for chaining. */ - public Builder setUriBytes( - com.google.protobuf.ByteString value) { + public Builder setUriBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + uri_ = value; onChanged(); return this; @@ -1189,39 +1339,58 @@ public Builder setUriBytes( private com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig outputConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig, com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.Builder, com.google.cloud.speech.v1p1beta1.TranscriptOutputConfigOrBuilder> outputConfigBuilder_; + com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig, + com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.Builder, + com.google.cloud.speech.v1p1beta1.TranscriptOutputConfigOrBuilder> + outputConfigBuilder_; /** + * + * *
      * Output only. A copy of the TranscriptOutputConfig if it was set in the request.
      * 
* - * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the outputConfig field is set. */ public boolean hasOutputConfig() { return outputConfigBuilder_ != null || outputConfig_ != null; } /** + * + * *
      * Output only. A copy of the TranscriptOutputConfig if it was set in the request.
      * 
* - * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The outputConfig. */ public com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig getOutputConfig() { if (outputConfigBuilder_ == null) { - return outputConfig_ == null ? com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.getDefaultInstance() : outputConfig_; + return outputConfig_ == null + ? com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.getDefaultInstance() + : outputConfig_; } else { return outputConfigBuilder_.getMessage(); } } /** + * + * *
      * Output only. A copy of the TranscriptOutputConfig if it was set in the request.
      * 
* - * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setOutputConfig(com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig value) { if (outputConfigBuilder_ == null) { @@ -1237,11 +1406,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) { @@ -1255,17 +1428,24 @@ public Builder setOutputConfig( return this; } /** + * + * *
      * Output only. A copy of the TranscriptOutputConfig if it was set in the request.
      * 
* - * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder mergeOutputConfig(com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig value) { + public Builder mergeOutputConfig( + com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig value) { if (outputConfigBuilder_ == null) { if (outputConfig_ != null) { outputConfig_ = - com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.newBuilder(outputConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.newBuilder(outputConfig_) + .mergeFrom(value) + .buildPartial(); } else { outputConfig_ = value; } @@ -1277,11 +1457,15 @@ public Builder mergeOutputConfig(com.google.cloud.speech.v1p1beta1.TranscriptOut return this; } /** + * + * *
      * Output only. A copy of the TranscriptOutputConfig if it was set in the request.
      * 
* - * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearOutputConfig() { if (outputConfigBuilder_ == null) { @@ -1295,55 +1479,73 @@ public Builder clearOutputConfig() { return this; } /** + * + * *
      * Output only. A copy of the TranscriptOutputConfig if it was set in the request.
      * 
* - * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.Builder getOutputConfigBuilder() { - + public com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.Builder + getOutputConfigBuilder() { + onChanged(); return getOutputConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. A copy of the TranscriptOutputConfig if it was set in the request.
      * 
* - * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.speech.v1p1beta1.TranscriptOutputConfigOrBuilder getOutputConfigOrBuilder() { + public com.google.cloud.speech.v1p1beta1.TranscriptOutputConfigOrBuilder + getOutputConfigOrBuilder() { if (outputConfigBuilder_ != null) { return outputConfigBuilder_.getMessageOrBuilder(); } else { - return outputConfig_ == null ? - com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.getDefaultInstance() : outputConfig_; + return outputConfig_ == null + ? com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.getDefaultInstance() + : outputConfig_; } } /** + * + * *
      * Output only. A copy of the TranscriptOutputConfig if it was set in the request.
      * 
* - * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig, com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.Builder, com.google.cloud.speech.v1p1beta1.TranscriptOutputConfigOrBuilder> + com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig, + com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.Builder, + com.google.cloud.speech.v1p1beta1.TranscriptOutputConfigOrBuilder> getOutputConfigFieldBuilder() { if (outputConfigBuilder_ == null) { - outputConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig, com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.Builder, com.google.cloud.speech.v1p1beta1.TranscriptOutputConfigOrBuilder>( - getOutputConfig(), - getParentForChildren(), - isClean()); + outputConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig, + com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.Builder, + com.google.cloud.speech.v1p1beta1.TranscriptOutputConfigOrBuilder>( + getOutputConfig(), getParentForChildren(), isClean()); outputConfig_ = null; } return outputConfigBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1353,30 +1555,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata) - private static final com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata DEFAULT_INSTANCE; + private static final com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata(); } - public static com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata getDefaultInstance() { + public static com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LongRunningRecognizeMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new LongRunningRecognizeMetadata(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LongRunningRecognizeMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LongRunningRecognizeMetadata(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1388,9 +1592,8 @@ public com.google.protobuf.Parser getParserForType } @java.lang.Override - public com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata getDefaultInstanceForType() { + public com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeMetadataOrBuilder.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeMetadataOrBuilder.java similarity index 70% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeMetadataOrBuilder.java rename to proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeMetadataOrBuilder.java index 2e4b54cbc..0016ab958 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeMetadataOrBuilder.java +++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeMetadataOrBuilder.java @@ -1,42 +1,69 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech.proto package com.google.cloud.speech.v1p1beta1; -public interface LongRunningRecognizeMetadataOrBuilder extends +public interface LongRunningRecognizeMetadataOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Approximate percentage of audio processed thus far. Guaranteed to be 100
    * when the audio is fully processed and the results are available.
    * 
* * int32 progress_percent = 1; + * * @return The progressPercent. */ int getProgressPercent(); /** + * + * *
    * Time when the request was received.
    * 
* * .google.protobuf.Timestamp start_time = 2; + * * @return Whether the startTime field is set. */ boolean hasStartTime(); /** + * + * *
    * Time when the request was received.
    * 
* * .google.protobuf.Timestamp start_time = 2; + * * @return The startTime. */ com.google.protobuf.Timestamp getStartTime(); /** + * + * *
    * Time when the request was received.
    * 
@@ -46,24 +73,32 @@ public interface LongRunningRecognizeMetadataOrBuilder extends com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder(); /** + * + * *
    * Time of the most recent processing update.
    * 
* * .google.protobuf.Timestamp last_update_time = 3; + * * @return Whether the lastUpdateTime field is set. */ boolean hasLastUpdateTime(); /** + * + * *
    * Time of the most recent processing update.
    * 
* * .google.protobuf.Timestamp last_update_time = 3; + * * @return The lastUpdateTime. */ com.google.protobuf.Timestamp getLastUpdateTime(); /** + * + * *
    * Time of the most recent processing update.
    * 
@@ -73,51 +108,70 @@ public interface LongRunningRecognizeMetadataOrBuilder extends com.google.protobuf.TimestampOrBuilder getLastUpdateTimeOrBuilder(); /** + * + * *
    * Output only. The URI of the audio file being transcribed. Empty if the audio was sent
    * as byte content.
    * 
* * string uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The uri. */ java.lang.String getUri(); /** + * + * *
    * Output only. The URI of the audio file being transcribed. Empty if the audio was sent
    * as byte content.
    * 
* * string uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for uri. */ - com.google.protobuf.ByteString - getUriBytes(); + com.google.protobuf.ByteString getUriBytes(); /** + * + * *
    * Output only. A copy of the TranscriptOutputConfig if it was set in the request.
    * 
* - * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the outputConfig field is set. */ boolean hasOutputConfig(); /** + * + * *
    * Output only. A copy of the TranscriptOutputConfig if it was set in the request.
    * 
* - * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The outputConfig. */ com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig getOutputConfig(); /** + * + * *
    * Output only. A copy of the TranscriptOutputConfig if it was set in the request.
    * 
* - * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.cloud.speech.v1p1beta1.TranscriptOutputConfigOrBuilder getOutputConfigOrBuilder(); } diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeRequest.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeRequest.java similarity index 59% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeRequest.java rename to proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeRequest.java index 183355d0c..d05dbda8a 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeRequest.java +++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeRequest.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech.proto package com.google.cloud.speech.v1p1beta1; /** + * + * *
  * The top-level message sent by the client for the `LongRunningRecognize`
  * method.
@@ -11,30 +28,29 @@
  *
  * Protobuf type {@code google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest}
  */
-public final class LongRunningRecognizeRequest extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class LongRunningRecognizeRequest extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest)
     LongRunningRecognizeRequestOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use LongRunningRecognizeRequest.newBuilder() to construct.
   private LongRunningRecognizeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-  private LongRunningRecognizeRequest() {
-  }
+
+  private LongRunningRecognizeRequest() {}
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new LongRunningRecognizeRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private LongRunningRecognizeRequest(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -53,86 +69,105 @@ private LongRunningRecognizeRequest(
           case 0:
             done = true;
             break;
-          case 10: {
-            com.google.cloud.speech.v1p1beta1.RecognitionConfig.Builder subBuilder = null;
-            if (config_ != null) {
-              subBuilder = config_.toBuilder();
-            }
-            config_ = input.readMessage(com.google.cloud.speech.v1p1beta1.RecognitionConfig.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(config_);
-              config_ = subBuilder.buildPartial();
-            }
+          case 10:
+            {
+              com.google.cloud.speech.v1p1beta1.RecognitionConfig.Builder subBuilder = null;
+              if (config_ != null) {
+                subBuilder = config_.toBuilder();
+              }
+              config_ =
+                  input.readMessage(
+                      com.google.cloud.speech.v1p1beta1.RecognitionConfig.parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(config_);
+                config_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          case 18: {
-            com.google.cloud.speech.v1p1beta1.RecognitionAudio.Builder subBuilder = null;
-            if (audio_ != null) {
-              subBuilder = audio_.toBuilder();
-            }
-            audio_ = input.readMessage(com.google.cloud.speech.v1p1beta1.RecognitionAudio.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(audio_);
-              audio_ = subBuilder.buildPartial();
+              break;
             }
+          case 18:
+            {
+              com.google.cloud.speech.v1p1beta1.RecognitionAudio.Builder subBuilder = null;
+              if (audio_ != null) {
+                subBuilder = audio_.toBuilder();
+              }
+              audio_ =
+                  input.readMessage(
+                      com.google.cloud.speech.v1p1beta1.RecognitionAudio.parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(audio_);
+                audio_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          case 34: {
-            com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.Builder subBuilder = null;
-            if (outputConfig_ != null) {
-              subBuilder = outputConfig_.toBuilder();
-            }
-            outputConfig_ = input.readMessage(com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(outputConfig_);
-              outputConfig_ = subBuilder.buildPartial();
+              break;
             }
+          case 34:
+            {
+              com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.Builder subBuilder = null;
+              if (outputConfig_ != null) {
+                subBuilder = outputConfig_.toBuilder();
+              }
+              outputConfig_ =
+                  input.readMessage(
+                      com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(outputConfig_);
+                outputConfig_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeRequest_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.speech.v1p1beta1.SpeechProto
+        .internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeRequest_fieldAccessorTable
+    return com.google.cloud.speech.v1p1beta1.SpeechProto
+        .internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest.class, com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest.Builder.class);
+            com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest.class,
+            com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest.Builder.class);
   }
 
   public static final int CONFIG_FIELD_NUMBER = 1;
   private com.google.cloud.speech.v1p1beta1.RecognitionConfig config_;
   /**
+   *
+   *
    * 
    * Required. Provides information to the recognizer that specifies how to
    * process the request.
    * 
* - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the config field is set. */ @java.lang.Override @@ -140,25 +175,36 @@ public boolean hasConfig() { return config_ != null; } /** + * + * *
    * Required. Provides information to the recognizer that specifies how to
    * process the request.
    * 
* - * .google.cloud.speech.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() { @@ -168,11 +214,16 @@ public com.google.cloud.speech.v1p1beta1.RecognitionConfigOrBuilder getConfigOrB public static final int AUDIO_FIELD_NUMBER = 2; private com.google.cloud.speech.v1p1beta1.RecognitionAudio audio_; /** + * + * *
    * Required. The audio data to be recognized.
    * 
* - * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the audio field is set. */ @java.lang.Override @@ -180,23 +231,34 @@ public boolean hasAudio() { return audio_ != null; } /** + * + * *
    * Required. The audio data to be recognized.
    * 
* - * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The audio. */ @java.lang.Override public com.google.cloud.speech.v1p1beta1.RecognitionAudio getAudio() { - return audio_ == null ? com.google.cloud.speech.v1p1beta1.RecognitionAudio.getDefaultInstance() : audio_; + return audio_ == null + ? com.google.cloud.speech.v1p1beta1.RecognitionAudio.getDefaultInstance() + : audio_; } /** + * + * *
    * Required. The audio data to be recognized.
    * 
* - * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.speech.v1p1beta1.RecognitionAudioOrBuilder getAudioOrBuilder() { @@ -206,11 +268,16 @@ public com.google.cloud.speech.v1p1beta1.RecognitionAudioOrBuilder getAudioOrBui public static final int OUTPUT_CONFIG_FIELD_NUMBER = 4; private com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig outputConfig_; /** + * + * *
    * Optional. Specifies an optional destination for the recognition results.
    * 
* - * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the outputConfig field is set. */ @java.lang.Override @@ -218,30 +285,43 @@ public boolean hasOutputConfig() { return outputConfig_ != null; } /** + * + * *
    * Optional. Specifies an optional destination for the recognition results.
    * 
* - * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The outputConfig. */ @java.lang.Override public com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig getOutputConfig() { - return outputConfig_ == null ? com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.getDefaultInstance() : outputConfig_; + return outputConfig_ == null + ? com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.getDefaultInstance() + : outputConfig_; } /** + * + * *
    * Optional. Specifies an optional destination for the recognition results.
    * 
* - * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.cloud.speech.v1p1beta1.TranscriptOutputConfigOrBuilder getOutputConfigOrBuilder() { + public com.google.cloud.speech.v1p1beta1.TranscriptOutputConfigOrBuilder + getOutputConfigOrBuilder() { return getOutputConfig(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -253,8 +333,7 @@ public final boolean isInitialized() { } @java.lang.Override - public 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()); } @@ -274,16 +353,13 @@ public int getSerializedSize() { size = 0; if (config_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getConfig()); } if (audio_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getAudio()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getAudio()); } if (outputConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getOutputConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getOutputConfig()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -293,27 +369,25 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest)) { return super.equals(obj); } - com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest other = (com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest) obj; + com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest other = + (com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest) obj; if (hasConfig() != other.hasConfig()) return false; if (hasConfig()) { - if (!getConfig() - .equals(other.getConfig())) return false; + if (!getConfig().equals(other.getConfig())) return false; } if (hasAudio() != other.hasAudio()) return false; if (hasAudio()) { - if (!getAudio() - .equals(other.getAudio())) return false; + if (!getAudio().equals(other.getAudio())) return false; } if (hasOutputConfig() != other.hasOutputConfig()) return false; if (hasOutputConfig()) { - if (!getOutputConfig() - .equals(other.getOutputConfig())) return false; + if (!getOutputConfig().equals(other.getOutputConfig())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -344,96 +418,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.
@@ -441,21 +523,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest)
       com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.speech.v1p1beta1.SpeechProto
+          .internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeRequest_fieldAccessorTable
+      return com.google.cloud.speech.v1p1beta1.SpeechProto
+          .internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest.class, com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest.Builder.class);
+              com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest.class,
+              com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest.newBuilder()
@@ -463,16 +547,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -498,13 +581,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();
     }
 
@@ -519,7 +603,8 @@ public com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest buildPartial() {
-      com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest result = new com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest(this);
+      com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest result =
+          new com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest(this);
       if (configBuilder_ == null) {
         result.config_ = config_;
       } else {
@@ -543,38 +628,39 @@ public com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest buildPartia
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest) {
-        return mergeFrom((com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest)other);
+        return mergeFrom((com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -582,7 +668,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());
       }
@@ -611,7 +699,9 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest)
+                e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -623,42 +713,61 @@ public Builder mergeFrom(
 
     private com.google.cloud.speech.v1p1beta1.RecognitionConfig config_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.speech.v1p1beta1.RecognitionConfig, com.google.cloud.speech.v1p1beta1.RecognitionConfig.Builder, com.google.cloud.speech.v1p1beta1.RecognitionConfigOrBuilder> configBuilder_;
+            com.google.cloud.speech.v1p1beta1.RecognitionConfig,
+            com.google.cloud.speech.v1p1beta1.RecognitionConfig.Builder,
+            com.google.cloud.speech.v1p1beta1.RecognitionConfigOrBuilder>
+        configBuilder_;
     /**
+     *
+     *
      * 
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the config field is set. */ public boolean hasConfig() { return configBuilder_ != null || config_ != null; } /** + * + * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The config. */ public com.google.cloud.speech.v1p1beta1.RecognitionConfig getConfig() { if (configBuilder_ == null) { - return config_ == null ? com.google.cloud.speech.v1p1beta1.RecognitionConfig.getDefaultInstance() : config_; + return config_ == null + ? com.google.cloud.speech.v1p1beta1.RecognitionConfig.getDefaultInstance() + : config_; } else { return configBuilder_.getMessage(); } } /** + * + * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setConfig(com.google.cloud.speech.v1p1beta1.RecognitionConfig value) { if (configBuilder_ == null) { @@ -674,12 +783,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) { @@ -693,18 +806,24 @@ public Builder setConfig( return this; } /** + * + * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeConfig(com.google.cloud.speech.v1p1beta1.RecognitionConfig value) { if (configBuilder_ == null) { if (config_ != null) { config_ = - com.google.cloud.speech.v1p1beta1.RecognitionConfig.newBuilder(config_).mergeFrom(value).buildPartial(); + com.google.cloud.speech.v1p1beta1.RecognitionConfig.newBuilder(config_) + .mergeFrom(value) + .buildPartial(); } else { config_ = value; } @@ -716,12 +835,16 @@ public Builder mergeConfig(com.google.cloud.speech.v1p1beta1.RecognitionConfig v return this; } /** + * + * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearConfig() { if (configBuilder_ == null) { @@ -735,51 +858,67 @@ public Builder clearConfig() { return this; } /** + * + * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.speech.v1p1beta1.RecognitionConfig.Builder getConfigBuilder() { - + onChanged(); return getConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.speech.v1p1beta1.RecognitionConfigOrBuilder getConfigOrBuilder() { if (configBuilder_ != null) { return configBuilder_.getMessageOrBuilder(); } else { - return config_ == null ? - com.google.cloud.speech.v1p1beta1.RecognitionConfig.getDefaultInstance() : config_; + return config_ == null + ? com.google.cloud.speech.v1p1beta1.RecognitionConfig.getDefaultInstance() + : config_; } } /** + * + * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.RecognitionConfig, com.google.cloud.speech.v1p1beta1.RecognitionConfig.Builder, com.google.cloud.speech.v1p1beta1.RecognitionConfigOrBuilder> + com.google.cloud.speech.v1p1beta1.RecognitionConfig, + com.google.cloud.speech.v1p1beta1.RecognitionConfig.Builder, + com.google.cloud.speech.v1p1beta1.RecognitionConfigOrBuilder> getConfigFieldBuilder() { if (configBuilder_ == null) { - configBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.RecognitionConfig, com.google.cloud.speech.v1p1beta1.RecognitionConfig.Builder, com.google.cloud.speech.v1p1beta1.RecognitionConfigOrBuilder>( - getConfig(), - getParentForChildren(), - isClean()); + configBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v1p1beta1.RecognitionConfig, + com.google.cloud.speech.v1p1beta1.RecognitionConfig.Builder, + com.google.cloud.speech.v1p1beta1.RecognitionConfigOrBuilder>( + getConfig(), getParentForChildren(), isClean()); config_ = null; } return configBuilder_; @@ -787,39 +926,58 @@ public com.google.cloud.speech.v1p1beta1.RecognitionConfigOrBuilder getConfigOrB private com.google.cloud.speech.v1p1beta1.RecognitionAudio audio_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.RecognitionAudio, com.google.cloud.speech.v1p1beta1.RecognitionAudio.Builder, com.google.cloud.speech.v1p1beta1.RecognitionAudioOrBuilder> audioBuilder_; + com.google.cloud.speech.v1p1beta1.RecognitionAudio, + com.google.cloud.speech.v1p1beta1.RecognitionAudio.Builder, + com.google.cloud.speech.v1p1beta1.RecognitionAudioOrBuilder> + audioBuilder_; /** + * + * *
      * Required. The audio data to be recognized.
      * 
* - * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the audio field is set. */ public boolean hasAudio() { return audioBuilder_ != null || audio_ != null; } /** + * + * *
      * Required. The audio data to be recognized.
      * 
* - * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The audio. */ public com.google.cloud.speech.v1p1beta1.RecognitionAudio getAudio() { if (audioBuilder_ == null) { - return audio_ == null ? com.google.cloud.speech.v1p1beta1.RecognitionAudio.getDefaultInstance() : audio_; + return audio_ == null + ? com.google.cloud.speech.v1p1beta1.RecognitionAudio.getDefaultInstance() + : audio_; } else { return audioBuilder_.getMessage(); } } /** + * + * *
      * Required. The audio data to be recognized.
      * 
* - * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setAudio(com.google.cloud.speech.v1p1beta1.RecognitionAudio value) { if (audioBuilder_ == null) { @@ -835,11 +993,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) { @@ -853,17 +1015,23 @@ public Builder setAudio( return this; } /** + * + * *
      * Required. The audio data to be recognized.
      * 
* - * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeAudio(com.google.cloud.speech.v1p1beta1.RecognitionAudio value) { if (audioBuilder_ == null) { if (audio_ != null) { audio_ = - com.google.cloud.speech.v1p1beta1.RecognitionAudio.newBuilder(audio_).mergeFrom(value).buildPartial(); + com.google.cloud.speech.v1p1beta1.RecognitionAudio.newBuilder(audio_) + .mergeFrom(value) + .buildPartial(); } else { audio_ = value; } @@ -875,11 +1043,15 @@ public Builder mergeAudio(com.google.cloud.speech.v1p1beta1.RecognitionAudio val return this; } /** + * + * *
      * Required. The audio data to be recognized.
      * 
* - * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearAudio() { if (audioBuilder_ == null) { @@ -893,48 +1065,64 @@ public Builder clearAudio() { return this; } /** + * + * *
      * Required. The audio data to be recognized.
      * 
* - * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.speech.v1p1beta1.RecognitionAudio.Builder getAudioBuilder() { - + onChanged(); return getAudioFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The audio data to be recognized.
      * 
* - * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.speech.v1p1beta1.RecognitionAudioOrBuilder getAudioOrBuilder() { if (audioBuilder_ != null) { return audioBuilder_.getMessageOrBuilder(); } else { - return audio_ == null ? - com.google.cloud.speech.v1p1beta1.RecognitionAudio.getDefaultInstance() : audio_; + return audio_ == null + ? com.google.cloud.speech.v1p1beta1.RecognitionAudio.getDefaultInstance() + : audio_; } } /** + * + * *
      * Required. The audio data to be recognized.
      * 
* - * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.RecognitionAudio, com.google.cloud.speech.v1p1beta1.RecognitionAudio.Builder, com.google.cloud.speech.v1p1beta1.RecognitionAudioOrBuilder> + com.google.cloud.speech.v1p1beta1.RecognitionAudio, + com.google.cloud.speech.v1p1beta1.RecognitionAudio.Builder, + com.google.cloud.speech.v1p1beta1.RecognitionAudioOrBuilder> getAudioFieldBuilder() { if (audioBuilder_ == null) { - audioBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.RecognitionAudio, com.google.cloud.speech.v1p1beta1.RecognitionAudio.Builder, com.google.cloud.speech.v1p1beta1.RecognitionAudioOrBuilder>( - getAudio(), - getParentForChildren(), - isClean()); + audioBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v1p1beta1.RecognitionAudio, + com.google.cloud.speech.v1p1beta1.RecognitionAudio.Builder, + com.google.cloud.speech.v1p1beta1.RecognitionAudioOrBuilder>( + getAudio(), getParentForChildren(), isClean()); audio_ = null; } return audioBuilder_; @@ -942,39 +1130,58 @@ public com.google.cloud.speech.v1p1beta1.RecognitionAudioOrBuilder getAudioOrBui private com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig outputConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig, com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.Builder, com.google.cloud.speech.v1p1beta1.TranscriptOutputConfigOrBuilder> outputConfigBuilder_; + com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig, + com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.Builder, + com.google.cloud.speech.v1p1beta1.TranscriptOutputConfigOrBuilder> + outputConfigBuilder_; /** + * + * *
      * Optional. Specifies an optional destination for the recognition results.
      * 
* - * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the outputConfig field is set. */ public boolean hasOutputConfig() { return outputConfigBuilder_ != null || outputConfig_ != null; } /** + * + * *
      * Optional. Specifies an optional destination for the recognition results.
      * 
* - * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The outputConfig. */ public com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig getOutputConfig() { if (outputConfigBuilder_ == null) { - return outputConfig_ == null ? com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.getDefaultInstance() : outputConfig_; + return outputConfig_ == null + ? com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.getDefaultInstance() + : outputConfig_; } else { return outputConfigBuilder_.getMessage(); } } /** + * + * *
      * Optional. Specifies an optional destination for the recognition results.
      * 
* - * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setOutputConfig(com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig value) { if (outputConfigBuilder_ == null) { @@ -990,11 +1197,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) { @@ -1008,17 +1219,24 @@ public Builder setOutputConfig( return this; } /** + * + * *
      * Optional. Specifies an optional destination for the recognition results.
      * 
* - * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder mergeOutputConfig(com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig value) { + public Builder mergeOutputConfig( + com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig value) { if (outputConfigBuilder_ == null) { if (outputConfig_ != null) { outputConfig_ = - com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.newBuilder(outputConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.newBuilder(outputConfig_) + .mergeFrom(value) + .buildPartial(); } else { outputConfig_ = value; } @@ -1030,11 +1248,15 @@ public Builder mergeOutputConfig(com.google.cloud.speech.v1p1beta1.TranscriptOut return this; } /** + * + * *
      * Optional. Specifies an optional destination for the recognition results.
      * 
* - * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearOutputConfig() { if (outputConfigBuilder_ == null) { @@ -1048,55 +1270,73 @@ public Builder clearOutputConfig() { return this; } /** + * + * *
      * Optional. Specifies an optional destination for the recognition results.
      * 
* - * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.Builder getOutputConfigBuilder() { - + public com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.Builder + getOutputConfigBuilder() { + onChanged(); return getOutputConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. Specifies an optional destination for the recognition results.
      * 
* - * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.speech.v1p1beta1.TranscriptOutputConfigOrBuilder getOutputConfigOrBuilder() { + public com.google.cloud.speech.v1p1beta1.TranscriptOutputConfigOrBuilder + getOutputConfigOrBuilder() { if (outputConfigBuilder_ != null) { return outputConfigBuilder_.getMessageOrBuilder(); } else { - return outputConfig_ == null ? - com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.getDefaultInstance() : outputConfig_; + return outputConfig_ == null + ? com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.getDefaultInstance() + : outputConfig_; } } /** + * + * *
      * Optional. Specifies an optional destination for the recognition results.
      * 
* - * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig, com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.Builder, com.google.cloud.speech.v1p1beta1.TranscriptOutputConfigOrBuilder> + com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig, + com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.Builder, + com.google.cloud.speech.v1p1beta1.TranscriptOutputConfigOrBuilder> getOutputConfigFieldBuilder() { if (outputConfigBuilder_ == null) { - outputConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig, com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.Builder, com.google.cloud.speech.v1p1beta1.TranscriptOutputConfigOrBuilder>( - getOutputConfig(), - getParentForChildren(), - isClean()); + outputConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig, + com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.Builder, + com.google.cloud.speech.v1p1beta1.TranscriptOutputConfigOrBuilder>( + getOutputConfig(), getParentForChildren(), isClean()); outputConfig_ = null; } return outputConfigBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1106,12 +1346,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(); } @@ -1120,16 +1361,16 @@ public static com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LongRunningRecognizeRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new LongRunningRecognizeRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LongRunningRecognizeRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LongRunningRecognizeRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1144,6 +1385,4 @@ public com.google.protobuf.Parser getParserForType( public com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeRequestOrBuilder.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeRequestOrBuilder.java similarity index 51% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeRequestOrBuilder.java rename to proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeRequestOrBuilder.java index 5a5a7bb3a..02d21f70f 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeRequestOrBuilder.java +++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeRequestOrBuilder.java @@ -1,93 +1,151 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech.proto package com.google.cloud.speech.v1p1beta1; -public interface LongRunningRecognizeRequestOrBuilder extends +public interface LongRunningRecognizeRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Provides information to the recognizer that specifies how to
    * process the request.
    * 
* - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the config field is set. */ boolean hasConfig(); /** + * + * *
    * Required. Provides information to the recognizer that specifies how to
    * process the request.
    * 
* - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The config. */ com.google.cloud.speech.v1p1beta1.RecognitionConfig getConfig(); /** + * + * *
    * Required. Provides information to the recognizer that specifies how to
    * process the request.
    * 
* - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.speech.v1p1beta1.RecognitionConfigOrBuilder getConfigOrBuilder(); /** + * + * *
    * Required. The audio data to be recognized.
    * 
* - * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the audio field is set. */ boolean hasAudio(); /** + * + * *
    * Required. The audio data to be recognized.
    * 
* - * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The audio. */ com.google.cloud.speech.v1p1beta1.RecognitionAudio getAudio(); /** + * + * *
    * Required. The audio data to be recognized.
    * 
* - * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.speech.v1p1beta1.RecognitionAudioOrBuilder getAudioOrBuilder(); /** + * + * *
    * Optional. Specifies an optional destination for the recognition results.
    * 
* - * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the outputConfig field is set. */ boolean hasOutputConfig(); /** + * + * *
    * Optional. Specifies an optional destination for the recognition results.
    * 
* - * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The outputConfig. */ com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig getOutputConfig(); /** + * + * *
    * Optional. Specifies an optional destination for the recognition results.
    * 
* - * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.speech.v1p1beta1.TranscriptOutputConfigOrBuilder getOutputConfigOrBuilder(); } diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeResponse.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeResponse.java similarity index 73% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeResponse.java rename to proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeResponse.java index 772da0d3f..3d09e7157 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeResponse.java +++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeResponse.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech.proto package com.google.cloud.speech.v1p1beta1; /** + * + * *
  * The only message returned to the client by the `LongRunningRecognize` method.
  * It contains the result as zero or more sequential `SpeechRecognitionResult`
@@ -14,31 +31,31 @@
  *
  * Protobuf type {@code google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse}
  */
-public final class LongRunningRecognizeResponse extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class LongRunningRecognizeResponse extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse)
     LongRunningRecognizeResponseOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use LongRunningRecognizeResponse.newBuilder() to construct.
   private LongRunningRecognizeResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private LongRunningRecognizeResponse() {
     results_ = java.util.Collections.emptyList();
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new LongRunningRecognizeResponse();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private LongRunningRecognizeResponse(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -58,68 +75,79 @@ private LongRunningRecognizeResponse(
           case 0:
             done = true;
             break;
-          case 18: {
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              results_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000001;
-            }
-            results_.add(
-                input.readMessage(com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult.parser(), extensionRegistry));
-            break;
-          }
-          case 26: {
-            com.google.protobuf.Duration.Builder subBuilder = null;
-            if (totalBilledTime_ != null) {
-              subBuilder = totalBilledTime_.toBuilder();
-            }
-            totalBilledTime_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(totalBilledTime_);
-              totalBilledTime_ = subBuilder.buildPartial();
+          case 18:
+            {
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                results_ =
+                    new java.util.ArrayList<
+                        com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult>();
+                mutable_bitField0_ |= 0x00000001;
+              }
+              results_.add(
+                  input.readMessage(
+                      com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult.parser(),
+                      extensionRegistry));
+              break;
             }
+          case 26:
+            {
+              com.google.protobuf.Duration.Builder subBuilder = null;
+              if (totalBilledTime_ != null) {
+                subBuilder = totalBilledTime_.toBuilder();
+              }
+              totalBilledTime_ =
+                  input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(totalBilledTime_);
+                totalBilledTime_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          case 50: {
-            com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.Builder subBuilder = null;
-            if (outputConfig_ != null) {
-              subBuilder = outputConfig_.toBuilder();
-            }
-            outputConfig_ = input.readMessage(com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(outputConfig_);
-              outputConfig_ = subBuilder.buildPartial();
+              break;
             }
+          case 50:
+            {
+              com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.Builder subBuilder = null;
+              if (outputConfig_ != null) {
+                subBuilder = outputConfig_.toBuilder();
+              }
+              outputConfig_ =
+                  input.readMessage(
+                      com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(outputConfig_);
+                outputConfig_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          case 58: {
-            com.google.rpc.Status.Builder subBuilder = null;
-            if (outputError_ != null) {
-              subBuilder = outputError_.toBuilder();
-            }
-            outputError_ = input.readMessage(com.google.rpc.Status.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(outputError_);
-              outputError_ = subBuilder.buildPartial();
+              break;
             }
+          case 58:
+            {
+              com.google.rpc.Status.Builder subBuilder = null;
+              if (outputError_ != null) {
+                subBuilder = outputError_.toBuilder();
+              }
+              outputError_ = input.readMessage(com.google.rpc.Status.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(outputError_);
+                outputError_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         results_ = java.util.Collections.unmodifiableList(results_);
@@ -128,22 +156,27 @@ private LongRunningRecognizeResponse(
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeResponse_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.speech.v1p1beta1.SpeechProto
+        .internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeResponse_fieldAccessorTable
+    return com.google.cloud.speech.v1p1beta1.SpeechProto
+        .internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse.class, com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse.Builder.class);
+            com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse.class,
+            com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse.Builder.class);
   }
 
   public static final int RESULTS_FIELD_NUMBER = 2;
   private java.util.List results_;
   /**
+   *
+   *
    * 
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -152,10 +185,13 @@ private LongRunningRecognizeResponse(
    * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionResult results = 2;
    */
   @java.lang.Override
-  public java.util.List getResultsList() {
+  public java.util.List
+      getResultsList() {
     return results_;
   }
   /**
+   *
+   *
    * 
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -164,11 +200,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.
@@ -181,6 +220,8 @@ public int getResultsCount() {
     return results_.size();
   }
   /**
+   *
+   *
    * 
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -193,6 +234,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.
@@ -209,11 +252,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 @@ -221,18 +267,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.
    * 
@@ -247,11 +300,14 @@ public com.google.protobuf.DurationOrBuilder getTotalBilledTimeOrBuilder() { public static final int OUTPUT_CONFIG_FIELD_NUMBER = 6; private com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig outputConfig_; /** + * + * *
    * Original output config if present in the request.
    * 
* * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 6; + * * @return Whether the outputConfig field is set. */ @java.lang.Override @@ -259,18 +315,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.
    * 
@@ -278,18 +341,22 @@ public com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig getOutputConfig( * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 6; */ @java.lang.Override - public com.google.cloud.speech.v1p1beta1.TranscriptOutputConfigOrBuilder getOutputConfigOrBuilder() { + public com.google.cloud.speech.v1p1beta1.TranscriptOutputConfigOrBuilder + getOutputConfigOrBuilder() { return getOutputConfig(); } public static final int OUTPUT_ERROR_FIELD_NUMBER = 7; private com.google.rpc.Status outputError_; /** + * + * *
    * If the transcript output fails this field contains the relevant error.
    * 
* * .google.rpc.Status output_error = 7; + * * @return Whether the outputError field is set. */ @java.lang.Override @@ -297,11 +364,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 @@ -309,6 +379,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.
    * 
@@ -321,6 +393,7 @@ public com.google.rpc.StatusOrBuilder getOutputErrorOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -332,8 +405,7 @@ public final boolean isInitialized() { } @java.lang.Override - 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)); } @@ -356,20 +428,16 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < results_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, results_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, results_.get(i)); } if (totalBilledTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getTotalBilledTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getTotalBilledTime()); } if (outputConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getOutputConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getOutputConfig()); } if (outputError_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, getOutputError()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getOutputError()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -379,29 +447,26 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse)) { return super.equals(obj); } - com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse other = (com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse) obj; + com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse other = + (com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse) obj; - if (!getResultsList() - .equals(other.getResultsList())) return false; + if (!getResultsList().equals(other.getResultsList())) return false; if (hasTotalBilledTime() != other.hasTotalBilledTime()) return false; if (hasTotalBilledTime()) { - if (!getTotalBilledTime() - .equals(other.getTotalBilledTime())) return false; + if (!getTotalBilledTime().equals(other.getTotalBilledTime())) return false; } if (hasOutputConfig() != other.hasOutputConfig()) return false; if (hasOutputConfig()) { - if (!getOutputConfig() - .equals(other.getOutputConfig())) return false; + if (!getOutputConfig().equals(other.getOutputConfig())) return false; } if (hasOutputError() != other.hasOutputError()) return false; if (hasOutputError()) { - if (!getOutputError() - .equals(other.getOutputError())) return false; + if (!getOutputError().equals(other.getOutputError())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -436,96 +501,104 @@ public int hashCode() { } public static com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The only message returned to the client by the `LongRunningRecognize` method.
    * It contains the result as zero or more sequential `SpeechRecognitionResult`
@@ -536,21 +609,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse)
       com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.speech.v1p1beta1.SpeechProto
+          .internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeResponse_fieldAccessorTable
+      return com.google.cloud.speech.v1p1beta1.SpeechProto
+          .internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse.class, com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse.Builder.class);
+              com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse.class,
+              com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse.newBuilder()
@@ -558,17 +633,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
         getResultsFieldBuilder();
       }
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -600,13 +675,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();
     }
 
@@ -621,7 +697,8 @@ public com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse buildPartial() {
-      com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse result = new com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse(this);
+      com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse result =
+          new com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse(this);
       int from_bitField0_ = bitField0_;
       if (resultsBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
@@ -655,38 +732,39 @@ public com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse buildParti
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse) {
-        return mergeFrom((com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse)other);
+        return mergeFrom((com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -694,7 +772,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()) {
@@ -713,9 +793,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_);
           }
@@ -749,7 +830,9 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse)
+                e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -758,21 +841,30 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
     private java.util.List results_ =
-      java.util.Collections.emptyList();
+        java.util.Collections.emptyList();
+
     private void ensureResultsIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
-        results_ = new java.util.ArrayList(results_);
+        results_ =
+            new java.util.ArrayList(
+                results_);
         bitField0_ |= 0x00000001;
-       }
+      }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult, com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult.Builder, com.google.cloud.speech.v1p1beta1.SpeechRecognitionResultOrBuilder> resultsBuilder_;
+            com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult,
+            com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult.Builder,
+            com.google.cloud.speech.v1p1beta1.SpeechRecognitionResultOrBuilder>
+        resultsBuilder_;
 
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -780,7 +872,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 {
@@ -788,6 +881,8 @@ public java.util.List
       }
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -803,6 +898,8 @@ public int getResultsCount() {
       }
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -818,6 +915,8 @@ public com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult getResults(int
       }
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -840,6 +939,8 @@ public Builder setResults(
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -848,7 +949,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());
@@ -859,6 +961,8 @@ public Builder setResults(
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -880,6 +984,8 @@ public Builder addResults(com.google.cloud.speech.v1p1beta1.SpeechRecognitionRes
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -902,6 +1008,8 @@ public Builder addResults(
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -921,6 +1029,8 @@ public Builder addResults(
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -929,7 +1039,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());
@@ -940,6 +1051,8 @@ public Builder addResults(
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -948,11 +1061,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);
@@ -960,6 +1073,8 @@ public Builder addAllResults(
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -978,6 +1093,8 @@ public Builder clearResults() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -996,6 +1113,8 @@ public Builder removeResults(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -1008,6 +1127,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.
@@ -1018,11 +1139,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.
@@ -1030,8 +1154,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 {
@@ -1039,6 +1164,8 @@ public com.google.cloud.speech.v1p1beta1.SpeechRecognitionResultOrBuilder getRes
       }
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -1047,10 +1174,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.
@@ -1060,10 +1190,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.
@@ -1071,20 +1205,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_;
@@ -1092,34 +1229,47 @@ public com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult.Builder addResu
 
     private com.google.protobuf.Duration totalBilledTime_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> totalBilledTimeBuilder_;
+            com.google.protobuf.Duration,
+            com.google.protobuf.Duration.Builder,
+            com.google.protobuf.DurationOrBuilder>
+        totalBilledTimeBuilder_;
     /**
+     *
+     *
      * 
      * When available, billed audio seconds for the corresponding request.
      * 
* * .google.protobuf.Duration total_billed_time = 3; + * * @return Whether the totalBilledTime field is set. */ public boolean hasTotalBilledTime() { return totalBilledTimeBuilder_ != null || totalBilledTime_ != null; } /** + * + * *
      * When available, billed audio seconds for the corresponding request.
      * 
* * .google.protobuf.Duration total_billed_time = 3; + * * @return The totalBilledTime. */ public com.google.protobuf.Duration getTotalBilledTime() { if (totalBilledTimeBuilder_ == null) { - return totalBilledTime_ == null ? com.google.protobuf.Duration.getDefaultInstance() : totalBilledTime_; + return totalBilledTime_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : totalBilledTime_; } else { return totalBilledTimeBuilder_.getMessage(); } } /** + * + * *
      * When available, billed audio seconds for the corresponding request.
      * 
@@ -1140,14 +1290,15 @@ public Builder setTotalBilledTime(com.google.protobuf.Duration value) { return this; } /** + * + * *
      * When available, billed audio seconds for the corresponding request.
      * 
* * .google.protobuf.Duration total_billed_time = 3; */ - public Builder setTotalBilledTime( - com.google.protobuf.Duration.Builder builderForValue) { + public Builder setTotalBilledTime(com.google.protobuf.Duration.Builder builderForValue) { if (totalBilledTimeBuilder_ == null) { totalBilledTime_ = builderForValue.build(); onChanged(); @@ -1158,6 +1309,8 @@ public Builder setTotalBilledTime( return this; } /** + * + * *
      * When available, billed audio seconds for the corresponding request.
      * 
@@ -1168,7 +1321,9 @@ public Builder mergeTotalBilledTime(com.google.protobuf.Duration value) { if (totalBilledTimeBuilder_ == null) { if (totalBilledTime_ != null) { totalBilledTime_ = - com.google.protobuf.Duration.newBuilder(totalBilledTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Duration.newBuilder(totalBilledTime_) + .mergeFrom(value) + .buildPartial(); } else { totalBilledTime_ = value; } @@ -1180,6 +1335,8 @@ public Builder mergeTotalBilledTime(com.google.protobuf.Duration value) { return this; } /** + * + * *
      * When available, billed audio seconds for the corresponding request.
      * 
@@ -1198,6 +1355,8 @@ public Builder clearTotalBilledTime() { return this; } /** + * + * *
      * When available, billed audio seconds for the corresponding request.
      * 
@@ -1205,11 +1364,13 @@ public Builder clearTotalBilledTime() { * .google.protobuf.Duration total_billed_time = 3; */ public com.google.protobuf.Duration.Builder getTotalBilledTimeBuilder() { - + onChanged(); return getTotalBilledTimeFieldBuilder().getBuilder(); } /** + * + * *
      * When available, billed audio seconds for the corresponding request.
      * 
@@ -1220,11 +1381,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.
      * 
@@ -1232,14 +1396,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_; @@ -1247,34 +1414,47 @@ public com.google.protobuf.DurationOrBuilder getTotalBilledTimeOrBuilder() { private com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig outputConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig, com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.Builder, com.google.cloud.speech.v1p1beta1.TranscriptOutputConfigOrBuilder> outputConfigBuilder_; + com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig, + com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.Builder, + com.google.cloud.speech.v1p1beta1.TranscriptOutputConfigOrBuilder> + outputConfigBuilder_; /** + * + * *
      * Original output config if present in the request.
      * 
* * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 6; + * * @return Whether the outputConfig field is set. */ public boolean hasOutputConfig() { return outputConfigBuilder_ != null || outputConfig_ != null; } /** + * + * *
      * Original output config if present in the request.
      * 
* * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 6; + * * @return The outputConfig. */ public com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig getOutputConfig() { if (outputConfigBuilder_ == null) { - return outputConfig_ == null ? com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.getDefaultInstance() : outputConfig_; + return outputConfig_ == null + ? com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.getDefaultInstance() + : outputConfig_; } else { return outputConfigBuilder_.getMessage(); } } /** + * + * *
      * Original output config if present in the request.
      * 
@@ -1295,6 +1475,8 @@ public Builder setOutputConfig(com.google.cloud.speech.v1p1beta1.TranscriptOutpu return this; } /** + * + * *
      * Original output config if present in the request.
      * 
@@ -1313,17 +1495,22 @@ public Builder setOutputConfig( return this; } /** + * + * *
      * Original output config if present in the request.
      * 
* * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 6; */ - public Builder mergeOutputConfig(com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig value) { + public Builder mergeOutputConfig( + com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig value) { if (outputConfigBuilder_ == null) { if (outputConfig_ != null) { outputConfig_ = - com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.newBuilder(outputConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.newBuilder(outputConfig_) + .mergeFrom(value) + .buildPartial(); } else { outputConfig_ = value; } @@ -1335,6 +1522,8 @@ public Builder mergeOutputConfig(com.google.cloud.speech.v1p1beta1.TranscriptOut return this; } /** + * + * *
      * Original output config if present in the request.
      * 
@@ -1353,33 +1542,42 @@ public Builder clearOutputConfig() { return this; } /** + * + * *
      * Original output config if present in the request.
      * 
* * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 6; */ - public com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.Builder getOutputConfigBuilder() { - + public com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.Builder + getOutputConfigBuilder() { + onChanged(); return getOutputConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Original output config if present in the request.
      * 
* * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 6; */ - public com.google.cloud.speech.v1p1beta1.TranscriptOutputConfigOrBuilder getOutputConfigOrBuilder() { + public com.google.cloud.speech.v1p1beta1.TranscriptOutputConfigOrBuilder + getOutputConfigOrBuilder() { if (outputConfigBuilder_ != null) { return outputConfigBuilder_.getMessageOrBuilder(); } else { - return outputConfig_ == null ? - com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.getDefaultInstance() : outputConfig_; + return outputConfig_ == null + ? com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.getDefaultInstance() + : outputConfig_; } } /** + * + * *
      * Original output config if present in the request.
      * 
@@ -1387,14 +1585,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_; @@ -1402,24 +1603,31 @@ public com.google.cloud.speech.v1p1beta1.TranscriptOutputConfigOrBuilder getOutp private com.google.rpc.Status outputError_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> outputErrorBuilder_; + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + outputErrorBuilder_; /** + * + * *
      * If the transcript output fails this field contains the relevant error.
      * 
* * .google.rpc.Status output_error = 7; + * * @return Whether the outputError field is set. */ public boolean hasOutputError() { return outputErrorBuilder_ != null || outputError_ != null; } /** + * + * *
      * If the transcript output fails this field contains the relevant error.
      * 
* * .google.rpc.Status output_error = 7; + * * @return The outputError. */ public com.google.rpc.Status getOutputError() { @@ -1430,6 +1638,8 @@ public com.google.rpc.Status getOutputError() { } } /** + * + * *
      * If the transcript output fails this field contains the relevant error.
      * 
@@ -1450,14 +1660,15 @@ public Builder setOutputError(com.google.rpc.Status value) { return this; } /** + * + * *
      * If the transcript output fails this field contains the relevant error.
      * 
* * .google.rpc.Status output_error = 7; */ - public Builder setOutputError( - com.google.rpc.Status.Builder builderForValue) { + public Builder setOutputError(com.google.rpc.Status.Builder builderForValue) { if (outputErrorBuilder_ == null) { outputError_ = builderForValue.build(); onChanged(); @@ -1468,6 +1679,8 @@ public Builder setOutputError( return this; } /** + * + * *
      * If the transcript output fails this field contains the relevant error.
      * 
@@ -1478,7 +1691,7 @@ public Builder mergeOutputError(com.google.rpc.Status value) { if (outputErrorBuilder_ == null) { if (outputError_ != null) { outputError_ = - com.google.rpc.Status.newBuilder(outputError_).mergeFrom(value).buildPartial(); + com.google.rpc.Status.newBuilder(outputError_).mergeFrom(value).buildPartial(); } else { outputError_ = value; } @@ -1490,6 +1703,8 @@ public Builder mergeOutputError(com.google.rpc.Status value) { return this; } /** + * + * *
      * If the transcript output fails this field contains the relevant error.
      * 
@@ -1508,6 +1723,8 @@ public Builder clearOutputError() { return this; } /** + * + * *
      * If the transcript output fails this field contains the relevant error.
      * 
@@ -1515,11 +1732,13 @@ public Builder clearOutputError() { * .google.rpc.Status output_error = 7; */ public com.google.rpc.Status.Builder getOutputErrorBuilder() { - + onChanged(); return getOutputErrorFieldBuilder().getBuilder(); } /** + * + * *
      * If the transcript output fails this field contains the relevant error.
      * 
@@ -1530,11 +1749,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.
      * 
@@ -1542,21 +1762,22 @@ public com.google.rpc.StatusOrBuilder getOutputErrorOrBuilder() { * .google.rpc.Status output_error = 7; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> getOutputErrorFieldBuilder() { if (outputErrorBuilder_ == null) { - outputErrorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>( - getOutputError(), - getParentForChildren(), - isClean()); + outputErrorBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, + com.google.rpc.Status.Builder, + com.google.rpc.StatusOrBuilder>( + getOutputError(), getParentForChildren(), isClean()); outputError_ = null; } return outputErrorBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1566,30 +1787,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse) - private static final com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse DEFAULT_INSTANCE; + private static final com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse(); } - public static com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse getDefaultInstance() { + public static com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LongRunningRecognizeResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new LongRunningRecognizeResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LongRunningRecognizeResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LongRunningRecognizeResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1601,9 +1824,8 @@ public com.google.protobuf.Parser getParserForType } @java.lang.Override - public com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse getDefaultInstanceForType() { + public com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeResponseOrBuilder.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeResponseOrBuilder.java similarity index 81% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeResponseOrBuilder.java rename to proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeResponseOrBuilder.java index f6b5867ce..e5af48096 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeResponseOrBuilder.java +++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeResponseOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech.proto package com.google.cloud.speech.v1p1beta1; -public interface LongRunningRecognizeResponseOrBuilder extends +public interface LongRunningRecognizeResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -15,9 +33,10 @@ public interface LongRunningRecognizeResponseOrBuilder extends
    *
    * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionResult results = 2;
    */
-  java.util.List 
-      getResultsList();
+  java.util.List getResultsList();
   /**
+   *
+   *
    * 
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -27,6 +46,8 @@ public interface LongRunningRecognizeResponseOrBuilder extends
    */
   com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult getResults(int index);
   /**
+   *
+   *
    * 
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -36,6 +57,8 @@ public interface LongRunningRecognizeResponseOrBuilder extends
    */
   int getResultsCount();
   /**
+   *
+   *
    * 
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -43,9 +66,11 @@ public interface LongRunningRecognizeResponseOrBuilder extends
    *
    * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionResult results = 2;
    */
-  java.util.List 
+  java.util.List
       getResultsOrBuilderList();
   /**
+   *
+   *
    * 
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -53,28 +78,35 @@ public interface LongRunningRecognizeResponseOrBuilder extends
    *
    * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionResult results = 2;
    */
-  com.google.cloud.speech.v1p1beta1.SpeechRecognitionResultOrBuilder getResultsOrBuilder(
-      int index);
+  com.google.cloud.speech.v1p1beta1.SpeechRecognitionResultOrBuilder getResultsOrBuilder(int index);
 
   /**
+   *
+   *
    * 
    * When available, billed audio seconds for the corresponding request.
    * 
* * .google.protobuf.Duration total_billed_time = 3; + * * @return Whether the totalBilledTime field is set. */ boolean hasTotalBilledTime(); /** + * + * *
    * When available, billed audio seconds for the corresponding request.
    * 
* * .google.protobuf.Duration total_billed_time = 3; + * * @return The totalBilledTime. */ com.google.protobuf.Duration getTotalBilledTime(); /** + * + * *
    * When available, billed audio seconds for the corresponding request.
    * 
@@ -84,24 +116,32 @@ com.google.cloud.speech.v1p1beta1.SpeechRecognitionResultOrBuilder getResultsOrB com.google.protobuf.DurationOrBuilder getTotalBilledTimeOrBuilder(); /** + * + * *
    * Original output config if present in the request.
    * 
* * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 6; + * * @return Whether the outputConfig field is set. */ boolean hasOutputConfig(); /** + * + * *
    * Original output config if present in the request.
    * 
* * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 6; + * * @return The outputConfig. */ com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig getOutputConfig(); /** + * + * *
    * Original output config if present in the request.
    * 
@@ -111,24 +151,32 @@ com.google.cloud.speech.v1p1beta1.SpeechRecognitionResultOrBuilder getResultsOrB com.google.cloud.speech.v1p1beta1.TranscriptOutputConfigOrBuilder getOutputConfigOrBuilder(); /** + * + * *
    * If the transcript output fails this field contains the relevant error.
    * 
* * .google.rpc.Status output_error = 7; + * * @return Whether the outputError field is set. */ boolean hasOutputError(); /** + * + * *
    * If the transcript output fails this field contains the relevant error.
    * 
* * .google.rpc.Status output_error = 7; + * * @return The outputError. */ com.google.rpc.Status getOutputError(); /** + * + * *
    * If the transcript output fails this field contains the relevant error.
    * 
diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/PhraseSet.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/PhraseSet.java similarity index 77% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/PhraseSet.java rename to proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/PhraseSet.java index fc9054d6e..663595375 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/PhraseSet.java +++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/PhraseSet.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/resource.proto package com.google.cloud.speech.v1p1beta1; /** + * + * *
  * Provides "hints" to the speech recognizer to favor specific words and phrases
  * in the results.
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.cloud.speech.v1p1beta1.PhraseSet}
  */
-public final class PhraseSet extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class PhraseSet extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.speech.v1p1beta1.PhraseSet)
     PhraseSetOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use PhraseSet.newBuilder() to construct.
   private PhraseSet(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private PhraseSet() {
     name_ = "";
     phrases_ = java.util.Collections.emptyList();
@@ -27,16 +45,15 @@ private PhraseSet() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new PhraseSet();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private PhraseSet(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -56,40 +73,44 @@ private PhraseSet(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            name_ = s;
-            break;
-          }
-          case 18: {
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              phrases_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000001;
+              name_ = s;
+              break;
             }
-            phrases_.add(
-                input.readMessage(com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase.parser(), extensionRegistry));
-            break;
-          }
-          case 37: {
-
-            boost_ = input.readFloat();
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          case 18:
+            {
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                phrases_ =
+                    new java.util.ArrayList();
+                mutable_bitField0_ |= 0x00000001;
+              }
+              phrases_.add(
+                  input.readMessage(
+                      com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase.parser(),
+                      extensionRegistry));
+              break;
+            }
+          case 37:
+            {
+              boost_ = input.readFloat();
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         phrases_ = java.util.Collections.unmodifiableList(phrases_);
@@ -98,44 +119,55 @@ private PhraseSet(
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.speech.v1p1beta1.SpeechResourceProto.internal_static_google_cloud_speech_v1p1beta1_PhraseSet_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.speech.v1p1beta1.SpeechResourceProto
+        .internal_static_google_cloud_speech_v1p1beta1_PhraseSet_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v1p1beta1.SpeechResourceProto.internal_static_google_cloud_speech_v1p1beta1_PhraseSet_fieldAccessorTable
+    return com.google.cloud.speech.v1p1beta1.SpeechResourceProto
+        .internal_static_google_cloud_speech_v1p1beta1_PhraseSet_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v1p1beta1.PhraseSet.class, com.google.cloud.speech.v1p1beta1.PhraseSet.Builder.class);
+            com.google.cloud.speech.v1p1beta1.PhraseSet.class,
+            com.google.cloud.speech.v1p1beta1.PhraseSet.Builder.class);
   }
 
-  public interface PhraseOrBuilder extends
+  public interface PhraseOrBuilder
+      extends
       // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1p1beta1.PhraseSet.Phrase)
       com.google.protobuf.MessageOrBuilder {
 
     /**
+     *
+     *
      * 
      * The phrase itself.
      * 
* * string value = 1; + * * @return The value. */ java.lang.String getValue(); /** + * + * *
      * The phrase itself.
      * 
* * string value = 1; + * * @return The bytes for value. */ - com.google.protobuf.ByteString - getValueBytes(); + com.google.protobuf.ByteString getValueBytes(); /** + * + * *
      * Hint Boost. Overrides the boost set at the phrase set level.
      * Positive value will increase the probability that a specific phrase will
@@ -149,11 +181,14 @@ public interface PhraseOrBuilder extends
      * 
* * float boost = 2; + * * @return The boost. */ float getBoost(); } /** + * + * *
    * A phrases containing words and phrase "hints" so that
    * the speech recognition is more likely to recognize them. This can be used
@@ -182,31 +217,31 @@ public interface PhraseOrBuilder extends
    *
    * Protobuf type {@code google.cloud.speech.v1p1beta1.PhraseSet.Phrase}
    */
-  public static final class Phrase extends
-      com.google.protobuf.GeneratedMessageV3 implements
+  public static final class Phrase extends com.google.protobuf.GeneratedMessageV3
+      implements
       // @@protoc_insertion_point(message_implements:google.cloud.speech.v1p1beta1.PhraseSet.Phrase)
       PhraseOrBuilder {
-  private static final long serialVersionUID = 0L;
+    private static final long serialVersionUID = 0L;
     // Use Phrase.newBuilder() to construct.
     private Phrase(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
+
     private Phrase() {
       value_ = "";
     }
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(
-        UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
       return new Phrase();
     }
 
     @java.lang.Override
-    public final com.google.protobuf.UnknownFieldSet
-    getUnknownFields() {
+    public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
       return this.unknownFields;
     }
+
     private Phrase(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -225,57 +260,63 @@ private Phrase(
             case 0:
               done = true;
               break;
-            case 10: {
-              java.lang.String s = input.readStringRequireUtf8();
+            case 10:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
 
-              value_ = s;
-              break;
-            }
-            case 21: {
-
-              boost_ = input.readFloat();
-              break;
-            }
-            default: {
-              if (!parseUnknownField(
-                  input, unknownFields, extensionRegistry, tag)) {
-                done = true;
+                value_ = s;
+                break;
+              }
+            case 21:
+              {
+                boost_ = input.readFloat();
+                break;
+              }
+            default:
+              {
+                if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                  done = true;
+                }
+                break;
               }
-              break;
-            }
           }
         }
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
         throw e.setUnfinishedMessage(this);
       } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(
-            e).setUnfinishedMessage(this);
+        throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
       } finally {
         this.unknownFields = unknownFields.build();
         makeExtensionsImmutable();
       }
     }
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.speech.v1p1beta1.SpeechResourceProto.internal_static_google_cloud_speech_v1p1beta1_PhraseSet_Phrase_descriptor;
+
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.speech.v1p1beta1.SpeechResourceProto
+          .internal_static_google_cloud_speech_v1p1beta1_PhraseSet_Phrase_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v1p1beta1.SpeechResourceProto.internal_static_google_cloud_speech_v1p1beta1_PhraseSet_Phrase_fieldAccessorTable
+      return com.google.cloud.speech.v1p1beta1.SpeechResourceProto
+          .internal_static_google_cloud_speech_v1p1beta1_PhraseSet_Phrase_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase.class, com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase.Builder.class);
+              com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase.class,
+              com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase.Builder.class);
     }
 
     public static final int VALUE_FIELD_NUMBER = 1;
     private volatile java.lang.Object value_;
     /**
+     *
+     *
      * 
      * The phrase itself.
      * 
* * string value = 1; + * * @return The value. */ @java.lang.Override @@ -284,29 +325,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 { @@ -317,6 +358,8 @@ public java.lang.String getValue() { public static final int BOOST_FIELD_NUMBER = 2; private float boost_; /** + * + * *
      * Hint Boost. Overrides the boost set at the phrase set level.
      * Positive value will increase the probability that a specific phrase will
@@ -330,6 +373,7 @@ public java.lang.String getValue() {
      * 
* * float boost = 2; + * * @return The boost. */ @java.lang.Override @@ -338,6 +382,7 @@ public float getBoost() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -349,8 +394,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(value_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, value_); } @@ -370,8 +414,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, value_); } if (boost_ != 0F) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(2, boost_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, boost_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -381,18 +424,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase)) { return super.equals(obj); } - com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase other = (com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase) obj; + com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase other = + (com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase) obj; - if (!getValue() - .equals(other.getValue())) return false; + if (!getValue().equals(other.getValue())) return false; if (java.lang.Float.floatToIntBits(getBoost()) - != java.lang.Float.floatToIntBits( - other.getBoost())) return false; + != java.lang.Float.floatToIntBits(other.getBoost())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -407,95 +449,100 @@ public int hashCode() { hash = (37 * hash) + VALUE_FIELD_NUMBER; hash = (53 * hash) + getValue().hashCode(); hash = (37 * hash) + BOOST_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getBoost()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getBoost()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -505,6 +552,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
@@ -533,21 +582,24 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.cloud.speech.v1p1beta1.PhraseSet.Phrase}
      */
-    public static final class Builder extends
-        com.google.protobuf.GeneratedMessageV3.Builder implements
+    public static final class Builder
+        extends com.google.protobuf.GeneratedMessageV3.Builder
+        implements
         // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1p1beta1.PhraseSet.Phrase)
         com.google.cloud.speech.v1p1beta1.PhraseSet.PhraseOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor
-          getDescriptor() {
-        return com.google.cloud.speech.v1p1beta1.SpeechResourceProto.internal_static_google_cloud_speech_v1p1beta1_PhraseSet_Phrase_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+        return com.google.cloud.speech.v1p1beta1.SpeechResourceProto
+            .internal_static_google_cloud_speech_v1p1beta1_PhraseSet_Phrase_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.cloud.speech.v1p1beta1.SpeechResourceProto.internal_static_google_cloud_speech_v1p1beta1_PhraseSet_Phrase_fieldAccessorTable
+        return com.google.cloud.speech.v1p1beta1.SpeechResourceProto
+            .internal_static_google_cloud_speech_v1p1beta1_PhraseSet_Phrase_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase.class, com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase.Builder.class);
+                com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase.class,
+                com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase.Builder.class);
       }
 
       // Construct using com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase.newBuilder()
@@ -555,16 +607,15 @@ private Builder() {
         maybeForceBuilderInitialization();
       }
 
-      private Builder(
-          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         super(parent);
         maybeForceBuilderInitialization();
       }
+
       private void maybeForceBuilderInitialization() {
-        if (com.google.protobuf.GeneratedMessageV3
-                .alwaysUseFieldBuilders) {
-        }
+        if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
       }
+
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -576,9 +627,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
@@ -597,7 +648,8 @@ public com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase build() {
 
       @java.lang.Override
       public com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase buildPartial() {
-        com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase result = new com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase(this);
+        com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase result =
+            new com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase(this);
         result.value_ = value_;
         result.boost_ = boost_;
         onBuilt();
@@ -608,38 +660,41 @@ public com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase buildPartial() {
       public Builder clone() {
         return super.clone();
       }
+
       @java.lang.Override
       public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field,
-          java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
         return super.setField(field, value);
       }
+
       @java.lang.Override
-      public Builder clearField(
-          com.google.protobuf.Descriptors.FieldDescriptor field) {
+      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
         return super.clearField(field);
       }
+
       @java.lang.Override
-      public Builder clearOneof(
-          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+      public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
         return super.clearOneof(oneof);
       }
+
       @java.lang.Override
       public Builder setRepeatedField(
           com.google.protobuf.Descriptors.FieldDescriptor field,
-          int index, java.lang.Object value) {
+          int index,
+          java.lang.Object value) {
         return super.setRepeatedField(field, index, value);
       }
+
       @java.lang.Override
       public Builder addRepeatedField(
-          com.google.protobuf.Descriptors.FieldDescriptor field,
-          java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
         return super.addRepeatedField(field, value);
       }
+
       @java.lang.Override
       public Builder mergeFrom(com.google.protobuf.Message other) {
         if (other instanceof com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase) {
-          return mergeFrom((com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase)other);
+          return mergeFrom((com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase) other);
         } else {
           super.mergeFrom(other);
           return this;
@@ -647,7 +702,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
       }
 
       public Builder mergeFrom(com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase other) {
-        if (other == com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase.getDefaultInstance()) return this;
+        if (other == com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase.getDefaultInstance())
+          return this;
         if (!other.getValue().isEmpty()) {
           value_ = other.value_;
           onChanged();
@@ -674,7 +730,8 @@ public Builder mergeFrom(
         try {
           parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-          parsedMessage = (com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase) e.getUnfinishedMessage();
+          parsedMessage =
+              (com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase) e.getUnfinishedMessage();
           throw e.unwrapIOException();
         } finally {
           if (parsedMessage != null) {
@@ -686,18 +743,20 @@ public Builder mergeFrom(
 
       private java.lang.Object value_ = "";
       /**
+       *
+       *
        * 
        * The phrase itself.
        * 
* * string value = 1; + * * @return The value. */ public java.lang.String getValue() { java.lang.Object ref = value_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); value_ = s; return s; @@ -706,20 +765,21 @@ public java.lang.String getValue() { } } /** + * + * *
        * The phrase itself.
        * 
* * string value = 1; + * * @return The bytes for value. */ - public com.google.protobuf.ByteString - getValueBytes() { + public com.google.protobuf.ByteString getValueBytes() { java.lang.Object ref = value_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); value_ = b; return b; } else { @@ -727,61 +787,70 @@ public java.lang.String getValue() { } } /** + * + * *
        * The phrase itself.
        * 
* * string value = 1; + * * @param value The value to set. * @return This builder for chaining. */ - public Builder setValue( - java.lang.String value) { + public Builder setValue(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + value_ = value; onChanged(); return this; } /** + * + * *
        * The phrase itself.
        * 
* * string value = 1; + * * @return This builder for chaining. */ public Builder clearValue() { - + value_ = getDefaultInstance().getValue(); onChanged(); return this; } /** + * + * *
        * The phrase itself.
        * 
* * string value = 1; + * * @param value The bytes for value to set. * @return This builder for chaining. */ - public Builder setValueBytes( - com.google.protobuf.ByteString value) { + public Builder setValueBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + value_ = value; onChanged(); return this; } - private float boost_ ; + private float boost_; /** + * + * *
        * Hint Boost. Overrides the boost set at the phrase set level.
        * Positive value will increase the probability that a specific phrase will
@@ -795,6 +864,7 @@ public Builder setValueBytes(
        * 
* * float boost = 2; + * * @return The boost. */ @java.lang.Override @@ -802,6 +872,8 @@ public float getBoost() { return boost_; } /** + * + * *
        * Hint Boost. Overrides the boost set at the phrase set level.
        * Positive value will increase the probability that a specific phrase will
@@ -815,16 +887,19 @@ public float getBoost() {
        * 
* * float boost = 2; + * * @param value The boost to set. * @return This builder for chaining. */ public Builder setBoost(float value) { - + boost_ = value; onChanged(); return this; } /** + * + * *
        * Hint Boost. Overrides the boost set at the phrase set level.
        * Positive value will increase the probability that a specific phrase will
@@ -838,14 +913,16 @@ public Builder setBoost(float value) {
        * 
* * float boost = 2; + * * @return This builder for chaining. */ public Builder clearBoost() { - + boost_ = 0F; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -858,12 +935,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(); } @@ -872,16 +949,16 @@ public static com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Phrase parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Phrase(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Phrase parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Phrase(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -896,17 +973,19 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * The resource name of the phrase set.
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -915,29 +994,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * The resource name of the phrase set.
    * 
* * string name = 1; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -948,6 +1027,8 @@ public java.lang.String getName() { public static final int PHRASES_FIELD_NUMBER = 2; private java.util.List phrases_; /** + * + * *
    * A list of word and phrases.
    * 
@@ -959,6 +1040,8 @@ public java.util.List getPhr return phrases_; } /** + * + * *
    * A list of word and phrases.
    * 
@@ -966,11 +1049,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.
    * 
@@ -982,6 +1067,8 @@ public int getPhrasesCount() { return phrases_.size(); } /** + * + * *
    * A list of word and phrases.
    * 
@@ -993,6 +1080,8 @@ public com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase getPhrases(int index) return phrases_.get(index); } /** + * + * *
    * A list of word and phrases.
    * 
@@ -1008,6 +1097,8 @@ public com.google.cloud.speech.v1p1beta1.PhraseSet.PhraseOrBuilder getPhrasesOrB public static final int BOOST_FIELD_NUMBER = 4; private float boost_; /** + * + * *
    * Hint Boost. Positive value will increase the probability that a specific
    * phrase will be recognized over other similar sounding phrases. The higher
@@ -1021,6 +1112,7 @@ public com.google.cloud.speech.v1p1beta1.PhraseSet.PhraseOrBuilder getPhrasesOrB
    * 
* * float boost = 4; + * * @return The boost. */ @java.lang.Override @@ -1029,6 +1121,7 @@ public float getBoost() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1040,8 +1133,7 @@ public final boolean isInitialized() { } @java.lang.Override - public 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_); } @@ -1064,12 +1156,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 (boost_ != 0F) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(4, boost_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(4, boost_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1079,20 +1169,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1p1beta1.PhraseSet)) { return super.equals(obj); } - com.google.cloud.speech.v1p1beta1.PhraseSet other = (com.google.cloud.speech.v1p1beta1.PhraseSet) obj; + com.google.cloud.speech.v1p1beta1.PhraseSet other = + (com.google.cloud.speech.v1p1beta1.PhraseSet) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getPhrasesList() - .equals(other.getPhrasesList())) return false; + if (!getName().equals(other.getName())) return false; + if (!getPhrasesList().equals(other.getPhrasesList())) return false; if (java.lang.Float.floatToIntBits(getBoost()) - != java.lang.Float.floatToIntBits( - other.getBoost())) return false; + != java.lang.Float.floatToIntBits(other.getBoost())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1111,104 +1199,110 @@ public int hashCode() { hash = (53 * hash) + getPhrasesList().hashCode(); } hash = (37 * hash) + BOOST_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getBoost()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getBoost()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.speech.v1p1beta1.PhraseSet parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.speech.v1p1beta1.PhraseSet parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.PhraseSet parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.PhraseSet parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.PhraseSet parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.PhraseSet parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.PhraseSet parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.PhraseSet parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.PhraseSet parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.PhraseSet parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1p1beta1.PhraseSet parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.PhraseSet parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.PhraseSet parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.PhraseSet parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.speech.v1p1beta1.PhraseSet prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Provides "hints" to the speech recognizer to favor specific words and phrases
    * in the results.
@@ -1216,21 +1310,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.speech.v1p1beta1.PhraseSet}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1p1beta1.PhraseSet)
       com.google.cloud.speech.v1p1beta1.PhraseSetOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.speech.v1p1beta1.SpeechResourceProto.internal_static_google_cloud_speech_v1p1beta1_PhraseSet_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.speech.v1p1beta1.SpeechResourceProto
+          .internal_static_google_cloud_speech_v1p1beta1_PhraseSet_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v1p1beta1.SpeechResourceProto.internal_static_google_cloud_speech_v1p1beta1_PhraseSet_fieldAccessorTable
+      return com.google.cloud.speech.v1p1beta1.SpeechResourceProto
+          .internal_static_google_cloud_speech_v1p1beta1_PhraseSet_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v1p1beta1.PhraseSet.class, com.google.cloud.speech.v1p1beta1.PhraseSet.Builder.class);
+              com.google.cloud.speech.v1p1beta1.PhraseSet.class,
+              com.google.cloud.speech.v1p1beta1.PhraseSet.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v1p1beta1.PhraseSet.newBuilder()
@@ -1238,17 +1334,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
         getPhrasesFieldBuilder();
       }
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1266,9 +1362,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
@@ -1287,7 +1383,8 @@ public com.google.cloud.speech.v1p1beta1.PhraseSet build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v1p1beta1.PhraseSet buildPartial() {
-      com.google.cloud.speech.v1p1beta1.PhraseSet result = new com.google.cloud.speech.v1p1beta1.PhraseSet(this);
+      com.google.cloud.speech.v1p1beta1.PhraseSet result =
+          new com.google.cloud.speech.v1p1beta1.PhraseSet(this);
       int from_bitField0_ = bitField0_;
       result.name_ = name_;
       if (phrasesBuilder_ == null) {
@@ -1308,38 +1405,39 @@ public com.google.cloud.speech.v1p1beta1.PhraseSet buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.speech.v1p1beta1.PhraseSet) {
-        return mergeFrom((com.google.cloud.speech.v1p1beta1.PhraseSet)other);
+        return mergeFrom((com.google.cloud.speech.v1p1beta1.PhraseSet) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1370,9 +1468,10 @@ public Builder mergeFrom(com.google.cloud.speech.v1p1beta1.PhraseSet other) {
             phrasesBuilder_ = null;
             phrases_ = other.phrases_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            phrasesBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getPhrasesFieldBuilder() : null;
+            phrasesBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getPhrasesFieldBuilder()
+                    : null;
           } else {
             phrasesBuilder_.addAllMessages(other.phrases_);
           }
@@ -1409,22 +1508,25 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * The resource name of the phrase set.
      * 
* * string name = 1; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1433,20 +1535,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 { @@ -1454,72 +1557,86 @@ public java.lang.String getName() { } } /** + * + * *
      * The resource name of the phrase set.
      * 
* * string name = 1; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * The resource name of the phrase set.
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * The resource name of the phrase set.
      * 
* * string name = 1; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } private java.util.List phrases_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensurePhrasesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - phrases_ = new java.util.ArrayList(phrases_); + phrases_ = + new java.util.ArrayList(phrases_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase, com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase.Builder, com.google.cloud.speech.v1p1beta1.PhraseSet.PhraseOrBuilder> phrasesBuilder_; + com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase, + com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase.Builder, + com.google.cloud.speech.v1p1beta1.PhraseSet.PhraseOrBuilder> + phrasesBuilder_; /** + * + * *
      * A list of word and phrases.
      * 
@@ -1534,6 +1651,8 @@ public java.util.List getPhr } } /** + * + * *
      * A list of word and phrases.
      * 
@@ -1548,6 +1667,8 @@ public int getPhrasesCount() { } } /** + * + * *
      * A list of word and phrases.
      * 
@@ -1562,14 +1683,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(); @@ -1583,6 +1705,8 @@ public Builder setPhrases( return this; } /** + * + * *
      * A list of word and phrases.
      * 
@@ -1601,6 +1725,8 @@ public Builder setPhrases( return this; } /** + * + * *
      * A list of word and phrases.
      * 
@@ -1621,14 +1747,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(); @@ -1642,6 +1769,8 @@ public Builder addPhrases( return this; } /** + * + * *
      * A list of word and phrases.
      * 
@@ -1660,6 +1789,8 @@ public Builder addPhrases( return this; } /** + * + * *
      * A list of word and phrases.
      * 
@@ -1678,6 +1809,8 @@ public Builder addPhrases( return this; } /** + * + * *
      * A list of word and phrases.
      * 
@@ -1688,8 +1821,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); @@ -1697,6 +1829,8 @@ public Builder addAllPhrases( return this; } /** + * + * *
      * A list of word and phrases.
      * 
@@ -1714,6 +1848,8 @@ public Builder clearPhrases() { return this; } /** + * + * *
      * A list of word and phrases.
      * 
@@ -1731,17 +1867,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.
      * 
@@ -1751,19 +1890,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 { @@ -1771,6 +1913,8 @@ public com.google.cloud.speech.v1p1beta1.PhraseSet.PhraseOrBuilder getPhrasesOrB } } /** + * + * *
      * A list of word and phrases.
      * 
@@ -1778,49 +1922,58 @@ public com.google.cloud.speech.v1p1beta1.PhraseSet.PhraseOrBuilder getPhrasesOrB * repeated .google.cloud.speech.v1p1beta1.PhraseSet.Phrase phrases = 2; */ public com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase.Builder addPhrasesBuilder() { - return getPhrasesFieldBuilder().addBuilder( - com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase.getDefaultInstance()); + return getPhrasesFieldBuilder() + .addBuilder(com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase.getDefaultInstance()); } /** + * + * *
      * A list of word and phrases.
      * 
* * repeated .google.cloud.speech.v1p1beta1.PhraseSet.Phrase phrases = 2; */ - public com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase.Builder addPhrasesBuilder( - int index) { - return getPhrasesFieldBuilder().addBuilder( - index, com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase.getDefaultInstance()); + public com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase.Builder addPhrasesBuilder(int index) { + return getPhrasesFieldBuilder() + .addBuilder( + index, com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase.getDefaultInstance()); } /** + * + * *
      * A list of word and phrases.
      * 
* * repeated .google.cloud.speech.v1p1beta1.PhraseSet.Phrase phrases = 2; */ - public java.util.List - getPhrasesBuilderList() { + public java.util.List + getPhrasesBuilderList() { return getPhrasesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase, com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase.Builder, com.google.cloud.speech.v1p1beta1.PhraseSet.PhraseOrBuilder> + com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase, + com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase.Builder, + com.google.cloud.speech.v1p1beta1.PhraseSet.PhraseOrBuilder> getPhrasesFieldBuilder() { if (phrasesBuilder_ == null) { - phrasesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase, com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase.Builder, com.google.cloud.speech.v1p1beta1.PhraseSet.PhraseOrBuilder>( - phrases_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + phrasesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase, + com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase.Builder, + com.google.cloud.speech.v1p1beta1.PhraseSet.PhraseOrBuilder>( + phrases_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); phrases_ = null; } return phrasesBuilder_; } - private float boost_ ; + private float boost_; /** + * + * *
      * Hint Boost. Positive value will increase the probability that a specific
      * phrase will be recognized over other similar sounding phrases. The higher
@@ -1834,6 +1987,7 @@ public com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase.Builder addPhrasesBuil
      * 
* * float boost = 4; + * * @return The boost. */ @java.lang.Override @@ -1841,6 +1995,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
@@ -1854,16 +2010,19 @@ public float getBoost() {
      * 
* * float boost = 4; + * * @param value The boost to set. * @return This builder for chaining. */ public Builder setBoost(float value) { - + boost_ = value; onChanged(); return this; } /** + * + * *
      * Hint Boost. Positive value will increase the probability that a specific
      * phrase will be recognized over other similar sounding phrases. The higher
@@ -1877,17 +2036,18 @@ public Builder setBoost(float value) {
      * 
* * float boost = 4; + * * @return This builder for chaining. */ public Builder clearBoost() { - + boost_ = 0F; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1897,12 +2057,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(); } @@ -1911,16 +2071,16 @@ public static com.google.cloud.speech.v1p1beta1.PhraseSet getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PhraseSet parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PhraseSet(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PhraseSet parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PhraseSet(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1935,6 +2095,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.PhraseSet getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/PhraseSetName.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/PhraseSetName.java similarity index 100% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/PhraseSetName.java rename to proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/PhraseSetName.java diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/PhraseSetOrBuilder.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/PhraseSetOrBuilder.java similarity index 74% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/PhraseSetOrBuilder.java rename to proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/PhraseSetOrBuilder.java index 1ed61ed52..55f1127b4 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/PhraseSetOrBuilder.java +++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/PhraseSetOrBuilder.java @@ -1,42 +1,66 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/resource.proto package com.google.cloud.speech.v1p1beta1; -public interface PhraseSetOrBuilder extends +public interface PhraseSetOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1p1beta1.PhraseSet) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The resource name of the phrase set.
    * 
* * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * The resource name of the phrase set.
    * 
* * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * A list of word and phrases.
    * 
* * repeated .google.cloud.speech.v1p1beta1.PhraseSet.Phrase phrases = 2; */ - java.util.List - getPhrasesList(); + java.util.List getPhrasesList(); /** + * + * *
    * A list of word and phrases.
    * 
@@ -45,6 +69,8 @@ public interface PhraseSetOrBuilder extends */ com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase getPhrases(int index); /** + * + * *
    * A list of word and phrases.
    * 
@@ -53,25 +79,30 @@ public interface PhraseSetOrBuilder extends */ int getPhrasesCount(); /** + * + * *
    * A list of word and phrases.
    * 
* * repeated .google.cloud.speech.v1p1beta1.PhraseSet.Phrase phrases = 2; */ - java.util.List + java.util.List getPhrasesOrBuilderList(); /** + * + * *
    * A list of word and phrases.
    * 
* * repeated .google.cloud.speech.v1p1beta1.PhraseSet.Phrase phrases = 2; */ - com.google.cloud.speech.v1p1beta1.PhraseSet.PhraseOrBuilder getPhrasesOrBuilder( - int index); + com.google.cloud.speech.v1p1beta1.PhraseSet.PhraseOrBuilder getPhrasesOrBuilder(int index); /** + * + * *
    * Hint Boost. Positive value will increase the probability that a specific
    * phrase will be recognized over other similar sounding phrases. The higher
@@ -85,6 +116,7 @@ com.google.cloud.speech.v1p1beta1.PhraseSet.PhraseOrBuilder getPhrasesOrBuilder(
    * 
* * float boost = 4; + * * @return The boost. */ float getBoost(); diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionAudio.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionAudio.java similarity index 75% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionAudio.java rename to proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionAudio.java index 9fca1214b..1a4741551 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionAudio.java +++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionAudio.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech.proto package com.google.cloud.speech.v1p1beta1; /** + * + * *
  * Contains audio data in the encoding specified in the `RecognitionConfig`.
  * Either `content` or `uri` must be supplied. Supplying both or neither
@@ -13,30 +30,29 @@
  *
  * Protobuf type {@code google.cloud.speech.v1p1beta1.RecognitionAudio}
  */
-public final class RecognitionAudio extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class RecognitionAudio extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.speech.v1p1beta1.RecognitionAudio)
     RecognitionAudioOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use RecognitionAudio.newBuilder() to construct.
   private RecognitionAudio(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-  private RecognitionAudio() {
-  }
+
+  private RecognitionAudio() {}
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new RecognitionAudio();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private RecognitionAudio(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -55,58 +71,65 @@ private RecognitionAudio(
           case 0:
             done = true;
             break;
-          case 10: {
-            audioSourceCase_ = 1;
-            audioSource_ = input.readBytes();
-            break;
-          }
-          case 18: {
-            java.lang.String s = input.readStringRequireUtf8();
-            audioSourceCase_ = 2;
-            audioSource_ = s;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          case 10:
+            {
+              audioSourceCase_ = 1;
+              audioSource_ = input.readBytes();
+              break;
+            }
+          case 18:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
+              audioSourceCase_ = 2;
+              audioSource_ = s;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_RecognitionAudio_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.speech.v1p1beta1.SpeechProto
+        .internal_static_google_cloud_speech_v1p1beta1_RecognitionAudio_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_RecognitionAudio_fieldAccessorTable
+    return com.google.cloud.speech.v1p1beta1.SpeechProto
+        .internal_static_google_cloud_speech_v1p1beta1_RecognitionAudio_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v1p1beta1.RecognitionAudio.class, com.google.cloud.speech.v1p1beta1.RecognitionAudio.Builder.class);
+            com.google.cloud.speech.v1p1beta1.RecognitionAudio.class,
+            com.google.cloud.speech.v1p1beta1.RecognitionAudio.Builder.class);
   }
 
   private int audioSourceCase_ = 0;
   private java.lang.Object audioSource_;
+
   public enum AudioSourceCase
-      implements com.google.protobuf.Internal.EnumLite,
+      implements
+          com.google.protobuf.Internal.EnumLite,
           com.google.protobuf.AbstractMessage.InternalOneOfEnum {
     CONTENT(1),
     URI(2),
     AUDIOSOURCE_NOT_SET(0);
     private final int value;
+
     private AudioSourceCase(int value) {
       this.value = value;
     }
@@ -122,25 +145,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
@@ -148,6 +176,7 @@ public int getNumber() {
    * 
* * bytes content = 1; + * * @return Whether the content field is set. */ @java.lang.Override @@ -155,6 +184,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
@@ -162,6 +193,7 @@ public boolean hasContent() {
    * 
* * bytes content = 1; + * * @return The content. */ @java.lang.Override @@ -174,6 +206,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).
@@ -185,12 +219,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).
@@ -202,6 +239,7 @@ public boolean hasUri() {
    * 
* * string uri = 2; + * * @return The uri. */ public java.lang.String getUri() { @@ -212,8 +250,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; @@ -222,6 +259,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).
@@ -233,18 +272,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; } @@ -255,6 +293,7 @@ public java.lang.String getUri() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -266,11 +305,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_); @@ -285,9 +322,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_); @@ -300,22 +337,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: @@ -349,96 +385,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
@@ -448,21 +491,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.speech.v1p1beta1.RecognitionAudio}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1p1beta1.RecognitionAudio)
       com.google.cloud.speech.v1p1beta1.RecognitionAudioOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_RecognitionAudio_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.speech.v1p1beta1.SpeechProto
+          .internal_static_google_cloud_speech_v1p1beta1_RecognitionAudio_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_RecognitionAudio_fieldAccessorTable
+      return com.google.cloud.speech.v1p1beta1.SpeechProto
+          .internal_static_google_cloud_speech_v1p1beta1_RecognitionAudio_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v1p1beta1.RecognitionAudio.class, com.google.cloud.speech.v1p1beta1.RecognitionAudio.Builder.class);
+              com.google.cloud.speech.v1p1beta1.RecognitionAudio.class,
+              com.google.cloud.speech.v1p1beta1.RecognitionAudio.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v1p1beta1.RecognitionAudio.newBuilder()
@@ -470,16 +515,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -489,9 +533,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
@@ -510,7 +554,8 @@ public com.google.cloud.speech.v1p1beta1.RecognitionAudio build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v1p1beta1.RecognitionAudio buildPartial() {
-      com.google.cloud.speech.v1p1beta1.RecognitionAudio result = new com.google.cloud.speech.v1p1beta1.RecognitionAudio(this);
+      com.google.cloud.speech.v1p1beta1.RecognitionAudio result =
+          new com.google.cloud.speech.v1p1beta1.RecognitionAudio(this);
       if (audioSourceCase_ == 1) {
         result.audioSource_ = audioSource_;
       }
@@ -526,38 +571,39 @@ public com.google.cloud.speech.v1p1beta1.RecognitionAudio buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.speech.v1p1beta1.RecognitionAudio) {
-        return mergeFrom((com.google.cloud.speech.v1p1beta1.RecognitionAudio)other);
+        return mergeFrom((com.google.cloud.speech.v1p1beta1.RecognitionAudio) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -565,21 +611,25 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.speech.v1p1beta1.RecognitionAudio other) {
-      if (other == com.google.cloud.speech.v1p1beta1.RecognitionAudio.getDefaultInstance()) return this;
+      if (other == com.google.cloud.speech.v1p1beta1.RecognitionAudio.getDefaultInstance())
+        return this;
       switch (other.getAudioSourceCase()) {
-        case CONTENT: {
-          setContent(other.getContent());
-          break;
-        }
-        case URI: {
-          audioSourceCase_ = 2;
-          audioSource_ = other.audioSource_;
-          onChanged();
-          break;
-        }
-        case AUDIOSOURCE_NOT_SET: {
-          break;
-        }
+        case CONTENT:
+          {
+            setContent(other.getContent());
+            break;
+          }
+        case URI:
+          {
+            audioSourceCase_ = 2;
+            audioSource_ = other.audioSource_;
+            onChanged();
+            break;
+          }
+        case AUDIOSOURCE_NOT_SET:
+          {
+            break;
+          }
       }
       this.mergeUnknownFields(other.unknownFields);
       onChanged();
@@ -600,7 +650,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.speech.v1p1beta1.RecognitionAudio) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.speech.v1p1beta1.RecognitionAudio) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -609,12 +660,12 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int audioSourceCase_ = 0;
     private java.lang.Object audioSource_;
-    public AudioSourceCase
-        getAudioSourceCase() {
-      return AudioSourceCase.forNumber(
-          audioSourceCase_);
+
+    public AudioSourceCase getAudioSourceCase() {
+      return AudioSourceCase.forNumber(audioSourceCase_);
     }
 
     public Builder clearAudioSource() {
@@ -624,8 +675,9 @@ public Builder clearAudioSource() {
       return this;
     }
 
-
     /**
+     *
+     *
      * 
      * The audio data bytes encoded as specified in
      * `RecognitionConfig`. Note: as with all bytes fields, proto buffers use a
@@ -633,12 +685,15 @@ public Builder clearAudioSource() {
      * 
* * bytes content = 1; + * * @return Whether the content field is set. */ public boolean hasContent() { return audioSourceCase_ == 1; } /** + * + * *
      * The audio data bytes encoded as specified in
      * `RecognitionConfig`. Note: as with all bytes fields, proto buffers use a
@@ -646,6 +701,7 @@ public boolean hasContent() {
      * 
* * bytes content = 1; + * * @return The content. */ public com.google.protobuf.ByteString getContent() { @@ -655,6 +711,8 @@ public com.google.protobuf.ByteString getContent() { return com.google.protobuf.ByteString.EMPTY; } /** + * + * *
      * The audio data bytes encoded as specified in
      * `RecognitionConfig`. Note: as with all bytes fields, proto buffers use a
@@ -662,19 +720,22 @@ public com.google.protobuf.ByteString getContent() {
      * 
* * bytes content = 1; + * * @param value The content to set. * @return This builder for chaining. */ public Builder setContent(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - audioSourceCase_ = 1; + throw new NullPointerException(); + } + audioSourceCase_ = 1; audioSource_ = value; onChanged(); return this; } /** + * + * *
      * The audio data bytes encoded as specified in
      * `RecognitionConfig`. Note: as with all bytes fields, proto buffers use a
@@ -682,6 +743,7 @@ public Builder setContent(com.google.protobuf.ByteString value) {
      * 
* * bytes content = 1; + * * @return This builder for chaining. */ public Builder clearContent() { @@ -694,6 +756,8 @@ public Builder clearContent() { } /** + * + * *
      * URI that points to a file that contains audio data bytes as specified in
      * `RecognitionConfig`. The file must not be compressed (for example, gzip).
@@ -705,6 +769,7 @@ public Builder clearContent() {
      * 
* * string uri = 2; + * * @return Whether the uri field is set. */ @java.lang.Override @@ -712,6 +777,8 @@ public boolean hasUri() { return audioSourceCase_ == 2; } /** + * + * *
      * URI that points to a file that contains audio data bytes as specified in
      * `RecognitionConfig`. The file must not be compressed (for example, gzip).
@@ -723,6 +790,7 @@ public boolean hasUri() {
      * 
* * string uri = 2; + * * @return The uri. */ @java.lang.Override @@ -732,8 +800,7 @@ public java.lang.String getUri() { ref = audioSource_; } if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (audioSourceCase_ == 2) { audioSource_ = s; @@ -744,6 +811,8 @@ public java.lang.String getUri() { } } /** + * + * *
      * URI that points to a file that contains audio data bytes as specified in
      * `RecognitionConfig`. The file must not be compressed (for example, gzip).
@@ -755,19 +824,18 @@ public java.lang.String getUri() {
      * 
* * string uri = 2; + * * @return The bytes for uri. */ @java.lang.Override - public com.google.protobuf.ByteString - getUriBytes() { + public com.google.protobuf.ByteString getUriBytes() { java.lang.Object ref = ""; if (audioSourceCase_ == 2) { ref = audioSource_; } if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); if (audioSourceCase_ == 2) { audioSource_ = b; } @@ -777,6 +845,8 @@ public java.lang.String getUri() { } } /** + * + * *
      * URI that points to a file that contains audio data bytes as specified in
      * `RecognitionConfig`. The file must not be compressed (for example, gzip).
@@ -788,20 +858,22 @@ public java.lang.String getUri() {
      * 
* * string uri = 2; + * * @param value The uri to set. * @return This builder for chaining. */ - public Builder setUri( - java.lang.String value) { + public Builder setUri(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - audioSourceCase_ = 2; + throw new NullPointerException(); + } + audioSourceCase_ = 2; audioSource_ = value; onChanged(); return this; } /** + * + * *
      * URI that points to a file that contains audio data bytes as specified in
      * `RecognitionConfig`. The file must not be compressed (for example, gzip).
@@ -813,6 +885,7 @@ public Builder setUri(
      * 
* * string uri = 2; + * * @return This builder for chaining. */ public Builder clearUri() { @@ -824,6 +897,8 @@ public Builder clearUri() { return this; } /** + * + * *
      * URI that points to a file that contains audio data bytes as specified in
      * `RecognitionConfig`. The file must not be compressed (for example, gzip).
@@ -835,23 +910,23 @@ public Builder clearUri() {
      * 
* * string uri = 2; + * * @param value The bytes for uri to set. * @return This builder for chaining. */ - public Builder setUriBytes( - com.google.protobuf.ByteString value) { + public Builder setUriBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); audioSourceCase_ = 2; audioSource_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -861,12 +936,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(); } @@ -875,16 +950,16 @@ public static com.google.cloud.speech.v1p1beta1.RecognitionAudio getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RecognitionAudio parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new RecognitionAudio(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RecognitionAudio parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RecognitionAudio(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -899,6 +974,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.RecognitionAudio getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionAudioOrBuilder.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionAudioOrBuilder.java similarity index 79% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionAudioOrBuilder.java rename to proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionAudioOrBuilder.java index 6127a94e2..37850c3d9 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionAudioOrBuilder.java +++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionAudioOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech.proto package com.google.cloud.speech.v1p1beta1; -public interface RecognitionAudioOrBuilder extends +public interface RecognitionAudioOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1p1beta1.RecognitionAudio) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The audio data bytes encoded as specified in
    * `RecognitionConfig`. Note: as with all bytes fields, proto buffers use a
@@ -15,10 +33,13 @@ public interface RecognitionAudioOrBuilder extends
    * 
* * bytes content = 1; + * * @return Whether the content field is set. */ boolean hasContent(); /** + * + * *
    * The audio data bytes encoded as specified in
    * `RecognitionConfig`. Note: as with all bytes fields, proto buffers use a
@@ -26,11 +47,14 @@ public interface RecognitionAudioOrBuilder extends
    * 
* * bytes content = 1; + * * @return The content. */ com.google.protobuf.ByteString getContent(); /** + * + * *
    * URI that points to a file that contains audio data bytes as specified in
    * `RecognitionConfig`. The file must not be compressed (for example, gzip).
@@ -42,10 +66,13 @@ public interface RecognitionAudioOrBuilder extends
    * 
* * string uri = 2; + * * @return Whether the uri field is set. */ boolean hasUri(); /** + * + * *
    * URI that points to a file that contains audio data bytes as specified in
    * `RecognitionConfig`. The file must not be compressed (for example, gzip).
@@ -57,10 +84,13 @@ public interface RecognitionAudioOrBuilder extends
    * 
* * string uri = 2; + * * @return The uri. */ java.lang.String getUri(); /** + * + * *
    * URI that points to a file that contains audio data bytes as specified in
    * `RecognitionConfig`. The file must not be compressed (for example, gzip).
@@ -72,10 +102,10 @@ public interface RecognitionAudioOrBuilder extends
    * 
* * string uri = 2; + * * @return The bytes for uri. */ - com.google.protobuf.ByteString - getUriBytes(); + com.google.protobuf.ByteString getUriBytes(); public com.google.cloud.speech.v1p1beta1.RecognitionAudio.AudioSourceCase getAudioSourceCase(); } diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionConfig.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionConfig.java similarity index 82% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionConfig.java rename to proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionConfig.java index c9aa11013..720bfd14c 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionConfig.java +++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionConfig.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech.proto package com.google.cloud.speech.v1p1beta1; /** + * + * *
  * Provides information to the recognizer that specifies how to process the
  * request.
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.cloud.speech.v1p1beta1.RecognitionConfig}
  */
-public final class RecognitionConfig extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class RecognitionConfig extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.speech.v1p1beta1.RecognitionConfig)
     RecognitionConfigOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use RecognitionConfig.newBuilder() to construct.
   private RecognitionConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private RecognitionConfig() {
     encoding_ = 0;
     languageCode_ = "";
@@ -30,16 +48,15 @@ private RecognitionConfig() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new RecognitionConfig();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private RecognitionConfig(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -59,189 +76,215 @@ private RecognitionConfig(
           case 0:
             done = true;
             break;
-          case 8: {
-            int rawValue = input.readEnum();
+          case 8:
+            {
+              int rawValue = input.readEnum();
 
-            encoding_ = rawValue;
-            break;
-          }
-          case 16: {
-
-            sampleRateHertz_ = input.readInt32();
-            break;
-          }
-          case 26: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            languageCode_ = s;
-            break;
-          }
-          case 32: {
-
-            maxAlternatives_ = input.readInt32();
-            break;
-          }
-          case 40: {
-
-            profanityFilter_ = input.readBool();
-            break;
-          }
-          case 50: {
-            if (!((mutable_bitField0_ & 0x00000002) != 0)) {
-              speechContexts_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000002;
+              encoding_ = rawValue;
+              break;
             }
-            speechContexts_.add(
-                input.readMessage(com.google.cloud.speech.v1p1beta1.SpeechContext.parser(), extensionRegistry));
-            break;
-          }
-          case 56: {
-
-            audioChannelCount_ = input.readInt32();
-            break;
-          }
-          case 64: {
+          case 16:
+            {
+              sampleRateHertz_ = input.readInt32();
+              break;
+            }
+          case 26:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            enableWordTimeOffsets_ = input.readBool();
-            break;
-          }
-          case 74: {
-            com.google.cloud.speech.v1p1beta1.RecognitionMetadata.Builder subBuilder = null;
-            if (metadata_ != null) {
-              subBuilder = metadata_.toBuilder();
+              languageCode_ = s;
+              break;
             }
-            metadata_ = input.readMessage(com.google.cloud.speech.v1p1beta1.RecognitionMetadata.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(metadata_);
-              metadata_ = subBuilder.buildPartial();
+          case 32:
+            {
+              maxAlternatives_ = input.readInt32();
+              break;
             }
-
-            break;
-          }
-          case 88: {
-
-            enableAutomaticPunctuation_ = input.readBool();
-            break;
-          }
-          case 96: {
-
-            enableSeparateRecognitionPerChannel_ = input.readBool();
-            break;
-          }
-          case 106: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            model_ = s;
-            break;
-          }
-          case 112: {
-
-            useEnhanced_ = input.readBool();
-            break;
-          }
-          case 120: {
-
-            enableWordConfidence_ = input.readBool();
-            break;
-          }
-          case 128: {
-
-            enableSpeakerDiarization_ = input.readBool();
-            break;
-          }
-          case 136: {
-
-            diarizationSpeakerCount_ = input.readInt32();
-            break;
-          }
-          case 146: {
-            java.lang.String s = input.readStringRequireUtf8();
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              alternativeLanguageCodes_ = new com.google.protobuf.LazyStringArrayList();
-              mutable_bitField0_ |= 0x00000001;
+          case 40:
+            {
+              profanityFilter_ = input.readBool();
+              break;
             }
-            alternativeLanguageCodes_.add(s);
-            break;
-          }
-          case 154: {
-            com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig.Builder subBuilder = null;
-            if (diarizationConfig_ != null) {
-              subBuilder = diarizationConfig_.toBuilder();
+          case 50:
+            {
+              if (!((mutable_bitField0_ & 0x00000002) != 0)) {
+                speechContexts_ =
+                    new java.util.ArrayList();
+                mutable_bitField0_ |= 0x00000002;
+              }
+              speechContexts_.add(
+                  input.readMessage(
+                      com.google.cloud.speech.v1p1beta1.SpeechContext.parser(), extensionRegistry));
+              break;
             }
-            diarizationConfig_ = input.readMessage(com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(diarizationConfig_);
-              diarizationConfig_ = subBuilder.buildPartial();
+          case 56:
+            {
+              audioChannelCount_ = input.readInt32();
+              break;
             }
-
-            break;
-          }
-          case 162: {
-            com.google.cloud.speech.v1p1beta1.SpeechAdaptation.Builder subBuilder = null;
-            if (adaptation_ != null) {
-              subBuilder = adaptation_.toBuilder();
+          case 64:
+            {
+              enableWordTimeOffsets_ = input.readBool();
+              break;
             }
-            adaptation_ = input.readMessage(com.google.cloud.speech.v1p1beta1.SpeechAdaptation.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(adaptation_);
-              adaptation_ = subBuilder.buildPartial();
+          case 74:
+            {
+              com.google.cloud.speech.v1p1beta1.RecognitionMetadata.Builder subBuilder = null;
+              if (metadata_ != null) {
+                subBuilder = metadata_.toBuilder();
+              }
+              metadata_ =
+                  input.readMessage(
+                      com.google.cloud.speech.v1p1beta1.RecognitionMetadata.parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(metadata_);
+                metadata_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
-
-            break;
-          }
-          case 178: {
-            com.google.protobuf.BoolValue.Builder subBuilder = null;
-            if (enableSpokenPunctuation_ != null) {
-              subBuilder = enableSpokenPunctuation_.toBuilder();
+          case 88:
+            {
+              enableAutomaticPunctuation_ = input.readBool();
+              break;
             }
-            enableSpokenPunctuation_ = input.readMessage(com.google.protobuf.BoolValue.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(enableSpokenPunctuation_);
-              enableSpokenPunctuation_ = subBuilder.buildPartial();
+          case 96:
+            {
+              enableSeparateRecognitionPerChannel_ = input.readBool();
+              break;
             }
+          case 106:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            break;
-          }
-          case 186: {
-            com.google.protobuf.BoolValue.Builder subBuilder = null;
-            if (enableSpokenEmojis_ != null) {
-              subBuilder = enableSpokenEmojis_.toBuilder();
+              model_ = s;
+              break;
             }
-            enableSpokenEmojis_ = input.readMessage(com.google.protobuf.BoolValue.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(enableSpokenEmojis_);
-              enableSpokenEmojis_ = subBuilder.buildPartial();
+          case 112:
+            {
+              useEnhanced_ = input.readBool();
+              break;
             }
-
-            break;
-          }
-          case 194: {
-            com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Builder subBuilder = null;
-            if (transcriptNormalization_ != null) {
-              subBuilder = transcriptNormalization_.toBuilder();
+          case 120:
+            {
+              enableWordConfidence_ = input.readBool();
+              break;
             }
-            transcriptNormalization_ = input.readMessage(com.google.cloud.speech.v1p1beta1.TranscriptNormalization.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(transcriptNormalization_);
-              transcriptNormalization_ = subBuilder.buildPartial();
+          case 128:
+            {
+              enableSpeakerDiarization_ = input.readBool();
+              break;
             }
-
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          case 136:
+            {
+              diarizationSpeakerCount_ = input.readInt32();
+              break;
+            }
+          case 146:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                alternativeLanguageCodes_ = new com.google.protobuf.LazyStringArrayList();
+                mutable_bitField0_ |= 0x00000001;
+              }
+              alternativeLanguageCodes_.add(s);
+              break;
+            }
+          case 154:
+            {
+              com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig.Builder subBuilder = null;
+              if (diarizationConfig_ != null) {
+                subBuilder = diarizationConfig_.toBuilder();
+              }
+              diarizationConfig_ =
+                  input.readMessage(
+                      com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig.parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(diarizationConfig_);
+                diarizationConfig_ = subBuilder.buildPartial();
+              }
+
+              break;
+            }
+          case 162:
+            {
+              com.google.cloud.speech.v1p1beta1.SpeechAdaptation.Builder subBuilder = null;
+              if (adaptation_ != null) {
+                subBuilder = adaptation_.toBuilder();
+              }
+              adaptation_ =
+                  input.readMessage(
+                      com.google.cloud.speech.v1p1beta1.SpeechAdaptation.parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(adaptation_);
+                adaptation_ = subBuilder.buildPartial();
+              }
+
+              break;
+            }
+          case 178:
+            {
+              com.google.protobuf.BoolValue.Builder subBuilder = null;
+              if (enableSpokenPunctuation_ != null) {
+                subBuilder = enableSpokenPunctuation_.toBuilder();
+              }
+              enableSpokenPunctuation_ =
+                  input.readMessage(com.google.protobuf.BoolValue.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(enableSpokenPunctuation_);
+                enableSpokenPunctuation_ = subBuilder.buildPartial();
+              }
+
+              break;
+            }
+          case 186:
+            {
+              com.google.protobuf.BoolValue.Builder subBuilder = null;
+              if (enableSpokenEmojis_ != null) {
+                subBuilder = enableSpokenEmojis_.toBuilder();
+              }
+              enableSpokenEmojis_ =
+                  input.readMessage(com.google.protobuf.BoolValue.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(enableSpokenEmojis_);
+                enableSpokenEmojis_ = subBuilder.buildPartial();
+              }
+
+              break;
+            }
+          case 194:
+            {
+              com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Builder subBuilder = null;
+              if (transcriptNormalization_ != null) {
+                subBuilder = transcriptNormalization_.toBuilder();
+              }
+              transcriptNormalization_ =
+                  input.readMessage(
+                      com.google.cloud.speech.v1p1beta1.TranscriptNormalization.parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(transcriptNormalization_);
+                transcriptNormalization_ = subBuilder.buildPartial();
+              }
+
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000002) != 0)) {
         speechContexts_ = java.util.Collections.unmodifiableList(speechContexts_);
@@ -253,20 +296,25 @@ private RecognitionConfig(
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_RecognitionConfig_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.speech.v1p1beta1.SpeechProto
+        .internal_static_google_cloud_speech_v1p1beta1_RecognitionConfig_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_RecognitionConfig_fieldAccessorTable
+    return com.google.cloud.speech.v1p1beta1.SpeechProto
+        .internal_static_google_cloud_speech_v1p1beta1_RecognitionConfig_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v1p1beta1.RecognitionConfig.class, com.google.cloud.speech.v1p1beta1.RecognitionConfig.Builder.class);
+            com.google.cloud.speech.v1p1beta1.RecognitionConfig.class,
+            com.google.cloud.speech.v1p1beta1.RecognitionConfig.Builder.class);
   }
 
   /**
+   *
+   *
    * 
    * The encoding of the audio data sent in the request.
    * All encodings support only 1 channel (mono) audio, unless the
@@ -292,9 +340,10 @@ private RecognitionConfig(
    *
    * Protobuf enum {@code google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding}
    */
-  public enum AudioEncoding
-      implements com.google.protobuf.ProtocolMessageEnum {
+  public enum AudioEncoding implements com.google.protobuf.ProtocolMessageEnum {
     /**
+     *
+     *
      * 
      * Not specified.
      * 
@@ -303,6 +352,8 @@ public enum AudioEncoding */ ENCODING_UNSPECIFIED(0), /** + * + * *
      * Uncompressed 16-bit signed little-endian samples (Linear PCM).
      * 
@@ -311,6 +362,8 @@ public enum AudioEncoding */ LINEAR16(1), /** + * + * *
      * `FLAC` (Free Lossless Audio
      * Codec) is the recommended encoding because it is
@@ -324,6 +377,8 @@ public enum AudioEncoding
      */
     FLAC(2),
     /**
+     *
+     *
      * 
      * 8-bit samples that compand 14-bit audio samples using G.711 PCMU/mu-law.
      * 
@@ -332,6 +387,8 @@ public enum AudioEncoding */ MULAW(3), /** + * + * *
      * Adaptive Multi-Rate Narrowband codec. `sample_rate_hertz` must be 8000.
      * 
@@ -340,6 +397,8 @@ public enum AudioEncoding */ AMR(4), /** + * + * *
      * Adaptive Multi-Rate Wideband codec. `sample_rate_hertz` must be 16000.
      * 
@@ -348,6 +407,8 @@ public enum AudioEncoding */ AMR_WB(5), /** + * + * *
      * Opus encoded audio frames in Ogg container
      * ([OggOpus](https://wiki.xiph.org/OggOpus)).
@@ -358,6 +419,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
@@ -378,6 +441,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
@@ -389,6 +454,8 @@ public enum AudioEncoding
      */
     MP3(8),
     /**
+     *
+     *
      * 
      * Opus encoded audio frames in WebM container
      * ([OggOpus](https://wiki.xiph.org/OggOpus)). `sample_rate_hertz` must be
@@ -402,6 +469,8 @@ public enum AudioEncoding
     ;
 
     /**
+     *
+     *
      * 
      * Not specified.
      * 
@@ -410,6 +479,8 @@ public enum AudioEncoding */ public static final int ENCODING_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Uncompressed 16-bit signed little-endian samples (Linear PCM).
      * 
@@ -418,6 +489,8 @@ public enum AudioEncoding */ public static final int LINEAR16_VALUE = 1; /** + * + * *
      * `FLAC` (Free Lossless Audio
      * Codec) is the recommended encoding because it is
@@ -431,6 +504,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.
      * 
@@ -439,6 +514,8 @@ public enum AudioEncoding */ public static final int MULAW_VALUE = 3; /** + * + * *
      * Adaptive Multi-Rate Narrowband codec. `sample_rate_hertz` must be 8000.
      * 
@@ -447,6 +524,8 @@ public enum AudioEncoding */ public static final int AMR_VALUE = 4; /** + * + * *
      * Adaptive Multi-Rate Wideband codec. `sample_rate_hertz` must be 16000.
      * 
@@ -455,6 +534,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)).
@@ -465,6 +546,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
@@ -485,6 +568,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
@@ -496,6 +581,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
@@ -506,7 +593,6 @@ public enum AudioEncoding
      */
     public static final int WEBM_OPUS_VALUE = 9;
 
-
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -531,56 +617,65 @@ public static AudioEncoding valueOf(int value) {
      */
     public static AudioEncoding forNumber(int value) {
       switch (value) {
-        case 0: return ENCODING_UNSPECIFIED;
-        case 1: return LINEAR16;
-        case 2: return FLAC;
-        case 3: return MULAW;
-        case 4: return AMR;
-        case 5: return AMR_WB;
-        case 6: return OGG_OPUS;
-        case 7: return SPEEX_WITH_HEADER_BYTE;
-        case 8: return MP3;
-        case 9: return WEBM_OPUS;
-        default: return null;
+        case 0:
+          return ENCODING_UNSPECIFIED;
+        case 1:
+          return LINEAR16;
+        case 2:
+          return FLAC;
+        case 3:
+          return MULAW;
+        case 4:
+          return AMR;
+        case 5:
+          return AMR_WB;
+        case 6:
+          return OGG_OPUS;
+        case 7:
+          return SPEEX_WITH_HEADER_BYTE;
+        case 8:
+          return MP3;
+        case 9:
+          return WEBM_OPUS;
+        default:
+          return null;
       }
     }
 
-    public static com.google.protobuf.Internal.EnumLiteMap
-        internalGetValueMap() {
+    public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
       return internalValueMap;
     }
-    private static final com.google.protobuf.Internal.EnumLiteMap<
-        AudioEncoding> internalValueMap =
-          new com.google.protobuf.Internal.EnumLiteMap() {
-            public AudioEncoding findValueByNumber(int number) {
-              return AudioEncoding.forNumber(number);
-            }
-          };
 
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor
-        getValueDescriptor() {
+    private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
+        new com.google.protobuf.Internal.EnumLiteMap() {
+          public AudioEncoding findValueByNumber(int number) {
+            return AudioEncoding.forNumber(number);
+          }
+        };
+
+    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalStateException(
             "Can't get the descriptor of an unrecognized enum value.");
       }
       return getDescriptor().getValues().get(ordinal());
     }
-    public final com.google.protobuf.Descriptors.EnumDescriptor
-        getDescriptorForType() {
+
+    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
       return getDescriptor();
     }
-    public static final com.google.protobuf.Descriptors.EnumDescriptor
-        getDescriptor() {
-      return com.google.cloud.speech.v1p1beta1.RecognitionConfig.getDescriptor().getEnumTypes().get(0);
+
+    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
+      return com.google.cloud.speech.v1p1beta1.RecognitionConfig.getDescriptor()
+          .getEnumTypes()
+          .get(0);
     }
 
     private static final AudioEncoding[] VALUES = values();
 
-    public static AudioEncoding valueOf(
-        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+    public static AudioEncoding valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
       if (desc.getType() != getDescriptor()) {
-        throw new java.lang.IllegalArgumentException(
-          "EnumValueDescriptor is not for this type.");
+        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
       }
       if (desc.getIndex() == -1) {
         return UNRECOGNIZED;
@@ -600,6 +695,8 @@ private AudioEncoding(int value) {
   public static final int ENCODING_FIELD_NUMBER = 1;
   private int encoding_;
   /**
+   *
+   *
    * 
    * Encoding of audio data sent in all `RecognitionAudio` messages.
    * This field is optional for `FLAC` and `WAV` audio files and required
@@ -607,12 +704,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
@@ -620,17 +721,24 @@ private AudioEncoding(int value) {
    * 
* * .google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding encoding = 1; + * * @return The encoding. */ - @java.lang.Override public com.google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding getEncoding() { + @java.lang.Override + public com.google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding getEncoding() { @SuppressWarnings("deprecation") - com.google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding result = com.google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding.valueOf(encoding_); - return result == null ? com.google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding.UNRECOGNIZED : result; + com.google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding result = + com.google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding.valueOf(encoding_); + return result == null + ? com.google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding.UNRECOGNIZED + : result; } public static final int SAMPLE_RATE_HERTZ_FIELD_NUMBER = 2; private int sampleRateHertz_; /** + * + * *
    * Sample rate in Hertz of the audio data sent in all
    * `RecognitionAudio` messages. Valid values are: 8000-48000.
@@ -642,6 +750,7 @@ private AudioEncoding(int value) {
    * 
* * int32 sample_rate_hertz = 2; + * * @return The sampleRateHertz. */ @java.lang.Override @@ -652,6 +761,8 @@ public int getSampleRateHertz() { public static final int AUDIO_CHANNEL_COUNT_FIELD_NUMBER = 7; private int audioChannelCount_; /** + * + * *
    * The number of channels in the input audio data.
    * ONLY set this for MULTI-CHANNEL recognition.
@@ -665,6 +776,7 @@ public int getSampleRateHertz() {
    * 
* * int32 audio_channel_count = 7; + * * @return The audioChannelCount. */ @java.lang.Override @@ -675,6 +787,8 @@ public int getAudioChannelCount() { public static final int ENABLE_SEPARATE_RECOGNITION_PER_CHANNEL_FIELD_NUMBER = 12; private boolean enableSeparateRecognitionPerChannel_; /** + * + * *
    * This needs to be set to `true` explicitly and `audio_channel_count` > 1
    * to get each channel recognized separately. The recognition result will
@@ -685,6 +799,7 @@ public int getAudioChannelCount() {
    * 
* * bool enable_separate_recognition_per_channel = 12; + * * @return The enableSeparateRecognitionPerChannel. */ @java.lang.Override @@ -695,6 +810,8 @@ public boolean getEnableSeparateRecognitionPerChannel() { public static final int LANGUAGE_CODE_FIELD_NUMBER = 3; private volatile java.lang.Object languageCode_; /** + * + * *
    * Required. The language of the supplied audio as a
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.
@@ -705,6 +822,7 @@ public boolean getEnableSeparateRecognitionPerChannel() {
    * 
* * string language_code = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The languageCode. */ @java.lang.Override @@ -713,14 +831,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.
@@ -731,16 +850,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 { @@ -751,6 +869,8 @@ public java.lang.String getLanguageCode() { public static final int ALTERNATIVE_LANGUAGE_CODES_FIELD_NUMBER = 18; private com.google.protobuf.LazyStringList alternativeLanguageCodes_; /** + * + * *
    * A list of up to 3 additional
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags,
@@ -767,13 +887,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,
@@ -790,12 +912,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,
@@ -812,6 +937,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. */ @@ -819,6 +945,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,
@@ -835,17 +963,19 @@ public java.lang.String getAlternativeLanguageCodes(int index) {
    * 
* * repeated string alternative_language_codes = 18; + * * @param index The index of the value to return. * @return The bytes of the alternativeLanguageCodes at the given index. */ - public com.google.protobuf.ByteString - getAlternativeLanguageCodesBytes(int index) { + public com.google.protobuf.ByteString getAlternativeLanguageCodesBytes(int index) { return alternativeLanguageCodes_.getByteString(index); } public static final int MAX_ALTERNATIVES_FIELD_NUMBER = 4; private int maxAlternatives_; /** + * + * *
    * Maximum number of recognition hypotheses to be returned.
    * Specifically, the maximum number of `SpeechRecognitionAlternative` messages
@@ -856,6 +986,7 @@ public java.lang.String getAlternativeLanguageCodes(int index) {
    * 
* * int32 max_alternatives = 4; + * * @return The maxAlternatives. */ @java.lang.Override @@ -866,6 +997,8 @@ public int getMaxAlternatives() { public static final int PROFANITY_FILTER_FIELD_NUMBER = 5; private boolean profanityFilter_; /** + * + * *
    * If set to `true`, the server will attempt to filter out
    * profanities, replacing all but the initial character in each filtered word
@@ -874,6 +1007,7 @@ public int getMaxAlternatives() {
    * 
* * bool profanity_filter = 5; + * * @return The profanityFilter. */ @java.lang.Override @@ -884,6 +1018,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
@@ -893,6 +1029,7 @@ public boolean getProfanityFilter() {
    * 
* * .google.cloud.speech.v1p1beta1.SpeechAdaptation adaptation = 20; + * * @return Whether the adaptation field is set. */ @java.lang.Override @@ -900,6 +1037,8 @@ public boolean hasAdaptation() { return adaptation_ != null; } /** + * + * *
    * Speech adaptation configuration improves the accuracy of speech
    * recognition. For more information, see the [speech
@@ -909,13 +1048,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
@@ -934,6 +1078,8 @@ public com.google.cloud.speech.v1p1beta1.SpeechAdaptationOrBuilder getAdaptation
   public static final int TRANSCRIPT_NORMALIZATION_FIELD_NUMBER = 24;
   private com.google.cloud.speech.v1p1beta1.TranscriptNormalization transcriptNormalization_;
   /**
+   *
+   *
    * 
    * Use transcription normalization to automatically replace parts of the
    * transcript with phrases of your choosing. For StreamingRecognize, this
@@ -941,7 +1087,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 @@ -949,6 +1097,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
@@ -956,14 +1106,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
@@ -971,16 +1127,20 @@ public com.google.cloud.speech.v1p1beta1.TranscriptNormalization getTranscriptNo
    * and final transcripts.
    * 
* - * .google.cloud.speech.v1p1beta1.TranscriptNormalization transcript_normalization = 24; + * .google.cloud.speech.v1p1beta1.TranscriptNormalization transcript_normalization = 24; + * */ @java.lang.Override - public com.google.cloud.speech.v1p1beta1.TranscriptNormalizationOrBuilder getTranscriptNormalizationOrBuilder() { + public com.google.cloud.speech.v1p1beta1.TranscriptNormalizationOrBuilder + getTranscriptNormalizationOrBuilder() { return getTranscriptNormalization(); } public static final int SPEECH_CONTEXTS_FIELD_NUMBER = 6; private java.util.List speechContexts_; /** + * + * *
    * Array of [SpeechContext][google.cloud.speech.v1p1beta1.SpeechContext].
    * A means to provide context to assist the speech recognition. For more
@@ -996,6 +1156,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
@@ -1007,11 +1169,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
@@ -1027,6 +1191,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
@@ -1042,6 +1208,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
@@ -1061,6 +1229,8 @@ public com.google.cloud.speech.v1p1beta1.SpeechContextOrBuilder getSpeechContext
   public static final int ENABLE_WORD_TIME_OFFSETS_FIELD_NUMBER = 8;
   private boolean enableWordTimeOffsets_;
   /**
+   *
+   *
    * 
    * If `true`, the top result includes a list of words and
    * the start and end time offsets (timestamps) for those words. If
@@ -1069,6 +1239,7 @@ public com.google.cloud.speech.v1p1beta1.SpeechContextOrBuilder getSpeechContext
    * 
* * bool enable_word_time_offsets = 8; + * * @return The enableWordTimeOffsets. */ @java.lang.Override @@ -1079,6 +1250,8 @@ public boolean getEnableWordTimeOffsets() { public static final int ENABLE_WORD_CONFIDENCE_FIELD_NUMBER = 15; private boolean enableWordConfidence_; /** + * + * *
    * If `true`, the top result includes a list of words and the
    * confidence for those words. If `false`, no word-level confidence
@@ -1086,6 +1259,7 @@ public boolean getEnableWordTimeOffsets() {
    * 
* * bool enable_word_confidence = 15; + * * @return The enableWordConfidence. */ @java.lang.Override @@ -1096,6 +1270,8 @@ public boolean getEnableWordConfidence() { public static final int ENABLE_AUTOMATIC_PUNCTUATION_FIELD_NUMBER = 11; private boolean enableAutomaticPunctuation_; /** + * + * *
    * If 'true', adds punctuation to recognition result hypotheses.
    * This feature is only available in select languages. Setting this for
@@ -1104,6 +1280,7 @@ public boolean getEnableWordConfidence() {
    * 
* * bool enable_automatic_punctuation = 11; + * * @return The enableAutomaticPunctuation. */ @java.lang.Override @@ -1114,6 +1291,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
@@ -1125,6 +1304,7 @@ public boolean getEnableAutomaticPunctuation() {
    * 
* * .google.protobuf.BoolValue enable_spoken_punctuation = 22; + * * @return Whether the enableSpokenPunctuation field is set. */ @java.lang.Override @@ -1132,6 +1312,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
@@ -1143,13 +1325,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
@@ -1170,6 +1357,8 @@ public com.google.protobuf.BoolValueOrBuilder getEnableSpokenPunctuationOrBuilde
   public static final int ENABLE_SPOKEN_EMOJIS_FIELD_NUMBER = 23;
   private com.google.protobuf.BoolValue enableSpokenEmojis_;
   /**
+   *
+   *
    * 
    * The spoken emoji behavior for the call
    * If not set, uses default behavior based on model of choice
@@ -1179,6 +1368,7 @@ public com.google.protobuf.BoolValueOrBuilder getEnableSpokenPunctuationOrBuilde
    * 
* * .google.protobuf.BoolValue enable_spoken_emojis = 23; + * * @return Whether the enableSpokenEmojis field is set. */ @java.lang.Override @@ -1186,6 +1376,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
@@ -1195,13 +1387,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
@@ -1220,6 +1417,8 @@ public com.google.protobuf.BoolValueOrBuilder getEnableSpokenEmojisOrBuilder() {
   public static final int ENABLE_SPEAKER_DIARIZATION_FIELD_NUMBER = 16;
   private boolean enableSpeakerDiarization_;
   /**
+   *
+   *
    * 
    * If 'true', enables speaker detection for each recognized word in
    * the top alternative of the recognition result using a speaker_tag provided
@@ -1228,16 +1427,20 @@ public com.google.protobuf.BoolValueOrBuilder getEnableSpokenEmojisOrBuilder() {
    * 
* * bool enable_speaker_diarization = 16 [deprecated = true]; + * * @return The enableSpeakerDiarization. */ @java.lang.Override - @java.lang.Deprecated public boolean getEnableSpeakerDiarization() { + @java.lang.Deprecated + public boolean getEnableSpeakerDiarization() { return enableSpeakerDiarization_; } public static final int DIARIZATION_SPEAKER_COUNT_FIELD_NUMBER = 17; private int diarizationSpeakerCount_; /** + * + * *
    * If set, specifies the estimated number of speakers in the conversation.
    * Defaults to '2'. Ignored unless enable_speaker_diarization is set to true.
@@ -1245,16 +1448,20 @@ public com.google.protobuf.BoolValueOrBuilder getEnableSpokenEmojisOrBuilder() {
    * 
* * int32 diarization_speaker_count = 17 [deprecated = true]; + * * @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.
@@ -1267,6 +1474,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 @@ -1274,6 +1482,8 @@ public boolean hasDiarizationConfig() { return diarizationConfig_ != null; } /** + * + * *
    * Config to enable speaker diarization and set additional
    * parameters to make diarization better suited for your application.
@@ -1286,13 +1496,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.
@@ -1307,18 +1522,22 @@ public com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig getDiarization
    * .google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig diarization_config = 19;
    */
   @java.lang.Override
-  public com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfigOrBuilder getDiarizationConfigOrBuilder() {
+  public com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfigOrBuilder
+      getDiarizationConfigOrBuilder() {
     return getDiarizationConfig();
   }
 
   public static final int METADATA_FIELD_NUMBER = 9;
   private com.google.cloud.speech.v1p1beta1.RecognitionMetadata metadata_;
   /**
+   *
+   *
    * 
    * Metadata regarding this request.
    * 
* * .google.cloud.speech.v1p1beta1.RecognitionMetadata metadata = 9; + * * @return Whether the metadata field is set. */ @java.lang.Override @@ -1326,18 +1545,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.
    * 
@@ -1352,6 +1578,8 @@ public com.google.cloud.speech.v1p1beta1.RecognitionMetadataOrBuilder getMetadat public static final int MODEL_FIELD_NUMBER = 13; private volatile java.lang.Object model_; /** + * + * *
    * Which model to select for the given request. Select the model
    * best suited to your domain to get best results. If a model is not
@@ -1388,6 +1616,7 @@ public com.google.cloud.speech.v1p1beta1.RecognitionMetadataOrBuilder getMetadat
    * 
* * string model = 13; + * * @return The model. */ @java.lang.Override @@ -1396,14 +1625,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
@@ -1440,16 +1670,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 { @@ -1460,6 +1689,8 @@ public java.lang.String getModel() { public static final int USE_ENHANCED_FIELD_NUMBER = 14; private boolean useEnhanced_; /** + * + * *
    * Set to true to use an enhanced model for speech recognition.
    * If `use_enhanced` is set to true and the `model` field is not set, then
@@ -1471,6 +1702,7 @@ public java.lang.String getModel() {
    * 
* * bool use_enhanced = 14; + * * @return The useEnhanced. */ @java.lang.Override @@ -1479,6 +1711,7 @@ public boolean getUseEnhanced() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1490,9 +1723,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) { @@ -1541,7 +1775,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()); @@ -1567,67 +1802,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; @@ -1638,24 +1864,23 @@ public int getSerializedSize() { size += 2 * getAlternativeLanguageCodesList().size(); } if (diarizationConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(19, getDiarizationConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(19, getDiarizationConfig()); } if (adaptation_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(20, getAdaptation()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(20, getAdaptation()); } if (enableSpokenPunctuation_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(22, getEnableSpokenPunctuation()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 22, getEnableSpokenPunctuation()); } if (enableSpokenEmojis_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(23, getEnableSpokenEmojis()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(23, getEnableSpokenEmojis()); } if (transcriptNormalization_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(24, getTranscriptNormalization()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 24, getTranscriptNormalization()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1665,74 +1890,56 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1p1beta1.RecognitionConfig)) { return super.equals(obj); } - com.google.cloud.speech.v1p1beta1.RecognitionConfig other = (com.google.cloud.speech.v1p1beta1.RecognitionConfig) obj; + com.google.cloud.speech.v1p1beta1.RecognitionConfig other = + (com.google.cloud.speech.v1p1beta1.RecognitionConfig) obj; if (encoding_ != other.encoding_) return false; - if (getSampleRateHertz() - != other.getSampleRateHertz()) return false; - if (getAudioChannelCount() - != other.getAudioChannelCount()) return false; - if (getEnableSeparateRecognitionPerChannel() - != other.getEnableSeparateRecognitionPerChannel()) return false; - if (!getLanguageCode() - .equals(other.getLanguageCode())) return false; - if (!getAlternativeLanguageCodesList() - .equals(other.getAlternativeLanguageCodesList())) return false; - if (getMaxAlternatives() - != other.getMaxAlternatives()) return false; - if (getProfanityFilter() - != other.getProfanityFilter()) return false; + if (getSampleRateHertz() != other.getSampleRateHertz()) return false; + if (getAudioChannelCount() != other.getAudioChannelCount()) return false; + if (getEnableSeparateRecognitionPerChannel() != other.getEnableSeparateRecognitionPerChannel()) + return false; + if (!getLanguageCode().equals(other.getLanguageCode())) return false; + if (!getAlternativeLanguageCodesList().equals(other.getAlternativeLanguageCodesList())) + return false; + if (getMaxAlternatives() != other.getMaxAlternatives()) return false; + if (getProfanityFilter() != other.getProfanityFilter()) return false; if (hasAdaptation() != other.hasAdaptation()) return false; if (hasAdaptation()) { - if (!getAdaptation() - .equals(other.getAdaptation())) return false; + if (!getAdaptation().equals(other.getAdaptation())) return false; } if (hasTranscriptNormalization() != other.hasTranscriptNormalization()) return false; if (hasTranscriptNormalization()) { - if (!getTranscriptNormalization() - .equals(other.getTranscriptNormalization())) return false; - } - if (!getSpeechContextsList() - .equals(other.getSpeechContextsList())) return false; - if (getEnableWordTimeOffsets() - != other.getEnableWordTimeOffsets()) return false; - if (getEnableWordConfidence() - != other.getEnableWordConfidence()) return false; - if (getEnableAutomaticPunctuation() - != other.getEnableAutomaticPunctuation()) return false; + if (!getTranscriptNormalization().equals(other.getTranscriptNormalization())) return false; + } + if (!getSpeechContextsList().equals(other.getSpeechContextsList())) return false; + if (getEnableWordTimeOffsets() != other.getEnableWordTimeOffsets()) return false; + if (getEnableWordConfidence() != other.getEnableWordConfidence()) return false; + if (getEnableAutomaticPunctuation() != other.getEnableAutomaticPunctuation()) return false; if (hasEnableSpokenPunctuation() != other.hasEnableSpokenPunctuation()) return false; if (hasEnableSpokenPunctuation()) { - if (!getEnableSpokenPunctuation() - .equals(other.getEnableSpokenPunctuation())) return false; + if (!getEnableSpokenPunctuation().equals(other.getEnableSpokenPunctuation())) return false; } if (hasEnableSpokenEmojis() != other.hasEnableSpokenEmojis()) return false; if (hasEnableSpokenEmojis()) { - if (!getEnableSpokenEmojis() - .equals(other.getEnableSpokenEmojis())) return false; + if (!getEnableSpokenEmojis().equals(other.getEnableSpokenEmojis())) return false; } - if (getEnableSpeakerDiarization() - != other.getEnableSpeakerDiarization()) return false; - if (getDiarizationSpeakerCount() - != other.getDiarizationSpeakerCount()) return false; + if (getEnableSpeakerDiarization() != other.getEnableSpeakerDiarization()) return false; + if (getDiarizationSpeakerCount() != other.getDiarizationSpeakerCount()) return false; if (hasDiarizationConfig() != other.hasDiarizationConfig()) return false; if (hasDiarizationConfig()) { - if (!getDiarizationConfig() - .equals(other.getDiarizationConfig())) return false; + if (!getDiarizationConfig().equals(other.getDiarizationConfig())) return false; } if (hasMetadata() != other.hasMetadata()) return false; if (hasMetadata()) { - if (!getMetadata() - .equals(other.getMetadata())) return false; + if (!getMetadata().equals(other.getMetadata())) return false; } - if (!getModel() - .equals(other.getModel())) return false; - if (getUseEnhanced() - != other.getUseEnhanced()) return false; + if (!getModel().equals(other.getModel())) return false; + if (getUseEnhanced() != other.getUseEnhanced()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1751,8 +1958,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) { @@ -1762,8 +1970,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(); @@ -1777,14 +1984,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(); @@ -1794,8 +1998,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()) { @@ -1809,104 +2012,110 @@ public int hashCode() { hash = (37 * hash) + MODEL_FIELD_NUMBER; hash = (53 * hash) + getModel().hashCode(); hash = (37 * hash) + USE_ENHANCED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getUseEnhanced()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getUseEnhanced()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.speech.v1p1beta1.RecognitionConfig parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.RecognitionConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.RecognitionConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.RecognitionConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.RecognitionConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.RecognitionConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.RecognitionConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1p1beta1.RecognitionConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.RecognitionConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.RecognitionConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1p1beta1.RecognitionConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.RecognitionConfig parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.RecognitionConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.RecognitionConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.speech.v1p1beta1.RecognitionConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Provides information to the recognizer that specifies how to process the
    * request.
@@ -1914,21 +2123,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.speech.v1p1beta1.RecognitionConfig}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1p1beta1.RecognitionConfig)
       com.google.cloud.speech.v1p1beta1.RecognitionConfigOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_RecognitionConfig_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.speech.v1p1beta1.SpeechProto
+          .internal_static_google_cloud_speech_v1p1beta1_RecognitionConfig_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_RecognitionConfig_fieldAccessorTable
+      return com.google.cloud.speech.v1p1beta1.SpeechProto
+          .internal_static_google_cloud_speech_v1p1beta1_RecognitionConfig_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v1p1beta1.RecognitionConfig.class, com.google.cloud.speech.v1p1beta1.RecognitionConfig.Builder.class);
+              com.google.cloud.speech.v1p1beta1.RecognitionConfig.class,
+              com.google.cloud.speech.v1p1beta1.RecognitionConfig.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v1p1beta1.RecognitionConfig.newBuilder()
@@ -1936,17 +2147,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
         getSpeechContextsFieldBuilder();
       }
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -2026,9 +2237,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
@@ -2047,7 +2258,8 @@ public com.google.cloud.speech.v1p1beta1.RecognitionConfig build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v1p1beta1.RecognitionConfig buildPartial() {
-      com.google.cloud.speech.v1p1beta1.RecognitionConfig result = new com.google.cloud.speech.v1p1beta1.RecognitionConfig(this);
+      com.google.cloud.speech.v1p1beta1.RecognitionConfig result =
+          new com.google.cloud.speech.v1p1beta1.RecognitionConfig(this);
       int from_bitField0_ = bitField0_;
       result.encoding_ = encoding_;
       result.sampleRateHertz_ = sampleRateHertz_;
@@ -2115,38 +2327,39 @@ public com.google.cloud.speech.v1p1beta1.RecognitionConfig buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.speech.v1p1beta1.RecognitionConfig) {
-        return mergeFrom((com.google.cloud.speech.v1p1beta1.RecognitionConfig)other);
+        return mergeFrom((com.google.cloud.speech.v1p1beta1.RecognitionConfig) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -2154,7 +2367,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());
       }
@@ -2211,9 +2425,10 @@ public Builder mergeFrom(com.google.cloud.speech.v1p1beta1.RecognitionConfig oth
             speechContextsBuilder_ = null;
             speechContexts_ = other.speechContexts_;
             bitField0_ = (bitField0_ & ~0x00000002);
-            speechContextsBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getSpeechContextsFieldBuilder() : null;
+            speechContextsBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getSpeechContextsFieldBuilder()
+                    : null;
           } else {
             speechContextsBuilder_.addAllMessages(other.speechContexts_);
           }
@@ -2272,7 +2487,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.speech.v1p1beta1.RecognitionConfig) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.speech.v1p1beta1.RecognitionConfig) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -2281,10 +2497,13 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
     private int encoding_ = 0;
     /**
+     *
+     *
      * 
      * Encoding of audio data sent in all `RecognitionAudio` messages.
      * This field is optional for `FLAC` and `WAV` audio files and required
@@ -2292,12 +2511,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
@@ -2305,16 +2528,19 @@ public Builder mergeFrom(
      * 
* * .google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding encoding = 1; + * * @param value The enum numeric value on the wire for encoding to set. * @return This builder for chaining. */ public Builder setEncodingValue(int value) { - + encoding_ = value; onChanged(); return this; } /** + * + * *
      * Encoding of audio data sent in all `RecognitionAudio` messages.
      * This field is optional for `FLAC` and `WAV` audio files and required
@@ -2322,15 +2548,21 @@ public Builder setEncodingValue(int value) {
      * 
* * .google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding encoding = 1; + * * @return The encoding. */ @java.lang.Override public com.google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding getEncoding() { @SuppressWarnings("deprecation") - com.google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding result = com.google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding.valueOf(encoding_); - return result == null ? com.google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding.UNRECOGNIZED : result; + com.google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding result = + com.google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding.valueOf(encoding_); + return result == null + ? com.google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding.UNRECOGNIZED + : result; } /** + * + * *
      * Encoding of audio data sent in all `RecognitionAudio` messages.
      * This field is optional for `FLAC` and `WAV` audio files and required
@@ -2338,19 +2570,23 @@ public com.google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding getEnco
      * 
* * .google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding encoding = 1; + * * @param value The encoding to set. * @return This builder for chaining. */ - public Builder setEncoding(com.google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding value) { + public Builder setEncoding( + com.google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding value) { if (value == null) { throw new NullPointerException(); } - + encoding_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Encoding of audio data sent in all `RecognitionAudio` messages.
      * This field is optional for `FLAC` and `WAV` audio files and required
@@ -2358,17 +2594,20 @@ public Builder setEncoding(com.google.cloud.speech.v1p1beta1.RecognitionConfig.A
      * 
* * .google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding encoding = 1; + * * @return This builder for chaining. */ public Builder clearEncoding() { - + encoding_ = 0; onChanged(); return this; } - private int sampleRateHertz_ ; + private int sampleRateHertz_; /** + * + * *
      * Sample rate in Hertz of the audio data sent in all
      * `RecognitionAudio` messages. Valid values are: 8000-48000.
@@ -2380,6 +2619,7 @@ public Builder clearEncoding() {
      * 
* * int32 sample_rate_hertz = 2; + * * @return The sampleRateHertz. */ @java.lang.Override @@ -2387,6 +2627,8 @@ public int getSampleRateHertz() { return sampleRateHertz_; } /** + * + * *
      * Sample rate in Hertz of the audio data sent in all
      * `RecognitionAudio` messages. Valid values are: 8000-48000.
@@ -2398,16 +2640,19 @@ public int getSampleRateHertz() {
      * 
* * int32 sample_rate_hertz = 2; + * * @param value The sampleRateHertz to set. * @return This builder for chaining. */ public Builder setSampleRateHertz(int value) { - + sampleRateHertz_ = value; onChanged(); return this; } /** + * + * *
      * Sample rate in Hertz of the audio data sent in all
      * `RecognitionAudio` messages. Valid values are: 8000-48000.
@@ -2419,17 +2664,20 @@ public Builder setSampleRateHertz(int value) {
      * 
* * int32 sample_rate_hertz = 2; + * * @return This builder for chaining. */ public Builder clearSampleRateHertz() { - + sampleRateHertz_ = 0; onChanged(); return this; } - private int audioChannelCount_ ; + private int audioChannelCount_; /** + * + * *
      * The number of channels in the input audio data.
      * ONLY set this for MULTI-CHANNEL recognition.
@@ -2443,6 +2691,7 @@ public Builder clearSampleRateHertz() {
      * 
* * int32 audio_channel_count = 7; + * * @return The audioChannelCount. */ @java.lang.Override @@ -2450,6 +2699,8 @@ public int getAudioChannelCount() { return audioChannelCount_; } /** + * + * *
      * The number of channels in the input audio data.
      * ONLY set this for MULTI-CHANNEL recognition.
@@ -2463,16 +2714,19 @@ public int getAudioChannelCount() {
      * 
* * int32 audio_channel_count = 7; + * * @param value The audioChannelCount to set. * @return This builder for chaining. */ public Builder setAudioChannelCount(int value) { - + audioChannelCount_ = value; onChanged(); return this; } /** + * + * *
      * The number of channels in the input audio data.
      * ONLY set this for MULTI-CHANNEL recognition.
@@ -2486,17 +2740,20 @@ public Builder setAudioChannelCount(int value) {
      * 
* * int32 audio_channel_count = 7; + * * @return This builder for chaining. */ public Builder clearAudioChannelCount() { - + audioChannelCount_ = 0; onChanged(); return this; } - private boolean enableSeparateRecognitionPerChannel_ ; + private boolean enableSeparateRecognitionPerChannel_; /** + * + * *
      * This needs to be set to `true` explicitly and `audio_channel_count` > 1
      * to get each channel recognized separately. The recognition result will
@@ -2507,6 +2764,7 @@ public Builder clearAudioChannelCount() {
      * 
* * bool enable_separate_recognition_per_channel = 12; + * * @return The enableSeparateRecognitionPerChannel. */ @java.lang.Override @@ -2514,6 +2772,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
@@ -2524,16 +2784,19 @@ public boolean getEnableSeparateRecognitionPerChannel() {
      * 
* * bool enable_separate_recognition_per_channel = 12; + * * @param value The enableSeparateRecognitionPerChannel to set. * @return This builder for chaining. */ public Builder setEnableSeparateRecognitionPerChannel(boolean value) { - + enableSeparateRecognitionPerChannel_ = value; onChanged(); return this; } /** + * + * *
      * This needs to be set to `true` explicitly and `audio_channel_count` > 1
      * to get each channel recognized separately. The recognition result will
@@ -2544,10 +2807,11 @@ public Builder setEnableSeparateRecognitionPerChannel(boolean value) {
      * 
* * bool enable_separate_recognition_per_channel = 12; + * * @return This builder for chaining. */ public Builder clearEnableSeparateRecognitionPerChannel() { - + enableSeparateRecognitionPerChannel_ = false; onChanged(); return this; @@ -2555,6 +2819,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.
@@ -2565,13 +2831,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; @@ -2580,6 +2846,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.
@@ -2590,15 +2858,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 { @@ -2606,6 +2873,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.
@@ -2616,20 +2885,22 @@ public java.lang.String getLanguageCode() {
      * 
* * string language_code = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCode( - java.lang.String value) { + public Builder setLanguageCode(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + languageCode_ = value; onChanged(); return this; } /** + * + * *
      * Required. The language of the supplied audio as a
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.
@@ -2640,15 +2911,18 @@ public Builder setLanguageCode(
      * 
* * string language_code = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearLanguageCode() { - + languageCode_ = getDefaultInstance().getLanguageCode(); onChanged(); return this; } /** + * + * *
      * Required. The language of the supplied audio as a
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.
@@ -2659,29 +2933,34 @@ public Builder clearLanguageCode() {
      * 
* * string language_code = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCodeBytes( - com.google.protobuf.ByteString value) { + public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + languageCode_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList alternativeLanguageCodes_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList alternativeLanguageCodes_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureAlternativeLanguageCodesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - alternativeLanguageCodes_ = new com.google.protobuf.LazyStringArrayList(alternativeLanguageCodes_); + alternativeLanguageCodes_ = + new com.google.protobuf.LazyStringArrayList(alternativeLanguageCodes_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
      * A list of up to 3 additional
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags,
@@ -2698,13 +2977,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,
@@ -2721,12 +3002,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,
@@ -2743,6 +3027,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. */ @@ -2750,6 +3035,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,
@@ -2766,14 +3053,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,
@@ -2790,21 +3079,23 @@ public java.lang.String getAlternativeLanguageCodes(int index) {
      * 
* * repeated string alternative_language_codes = 18; + * * @param index The index to set the value at. * @param value The alternativeLanguageCodes to set. * @return This builder for chaining. */ - public Builder setAlternativeLanguageCodes( - int index, java.lang.String value) { + public Builder setAlternativeLanguageCodes(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAlternativeLanguageCodesIsMutable(); + throw new NullPointerException(); + } + ensureAlternativeLanguageCodesIsMutable(); alternativeLanguageCodes_.set(index, value); onChanged(); return this; } /** + * + * *
      * A list of up to 3 additional
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags,
@@ -2821,20 +3112,22 @@ public Builder setAlternativeLanguageCodes(
      * 
* * repeated string alternative_language_codes = 18; + * * @param value The alternativeLanguageCodes to add. * @return This builder for chaining. */ - public Builder addAlternativeLanguageCodes( - java.lang.String value) { + public Builder addAlternativeLanguageCodes(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAlternativeLanguageCodesIsMutable(); + throw new NullPointerException(); + } + ensureAlternativeLanguageCodesIsMutable(); alternativeLanguageCodes_.add(value); onChanged(); return this; } /** + * + * *
      * A list of up to 3 additional
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags,
@@ -2851,18 +3144,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,
@@ -2879,6 +3173,7 @@ public Builder addAllAlternativeLanguageCodes(
      * 
* * repeated string alternative_language_codes = 18; + * * @return This builder for chaining. */ public Builder clearAlternativeLanguageCodes() { @@ -2888,6 +3183,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,
@@ -2904,23 +3201,25 @@ public Builder clearAlternativeLanguageCodes() {
      * 
* * repeated string alternative_language_codes = 18; + * * @param value The bytes of the alternativeLanguageCodes to add. * @return This builder for chaining. */ - public Builder addAlternativeLanguageCodesBytes( - com.google.protobuf.ByteString value) { + public Builder addAlternativeLanguageCodesBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureAlternativeLanguageCodesIsMutable(); alternativeLanguageCodes_.add(value); onChanged(); return this; } - private int maxAlternatives_ ; + private int maxAlternatives_; /** + * + * *
      * Maximum number of recognition hypotheses to be returned.
      * Specifically, the maximum number of `SpeechRecognitionAlternative` messages
@@ -2931,6 +3230,7 @@ public Builder addAlternativeLanguageCodesBytes(
      * 
* * int32 max_alternatives = 4; + * * @return The maxAlternatives. */ @java.lang.Override @@ -2938,6 +3238,8 @@ public int getMaxAlternatives() { return maxAlternatives_; } /** + * + * *
      * Maximum number of recognition hypotheses to be returned.
      * Specifically, the maximum number of `SpeechRecognitionAlternative` messages
@@ -2948,16 +3250,19 @@ public int getMaxAlternatives() {
      * 
* * int32 max_alternatives = 4; + * * @param value The maxAlternatives to set. * @return This builder for chaining. */ public Builder setMaxAlternatives(int value) { - + maxAlternatives_ = value; onChanged(); return this; } /** + * + * *
      * Maximum number of recognition hypotheses to be returned.
      * Specifically, the maximum number of `SpeechRecognitionAlternative` messages
@@ -2968,17 +3273,20 @@ public Builder setMaxAlternatives(int value) {
      * 
* * int32 max_alternatives = 4; + * * @return This builder for chaining. */ public Builder clearMaxAlternatives() { - + maxAlternatives_ = 0; onChanged(); return this; } - private boolean profanityFilter_ ; + private boolean profanityFilter_; /** + * + * *
      * If set to `true`, the server will attempt to filter out
      * profanities, replacing all but the initial character in each filtered word
@@ -2987,6 +3295,7 @@ public Builder clearMaxAlternatives() {
      * 
* * bool profanity_filter = 5; + * * @return The profanityFilter. */ @java.lang.Override @@ -2994,6 +3303,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
@@ -3002,16 +3313,19 @@ public boolean getProfanityFilter() {
      * 
* * bool profanity_filter = 5; + * * @param value The profanityFilter to set. * @return This builder for chaining. */ public Builder setProfanityFilter(boolean value) { - + profanityFilter_ = value; onChanged(); return this; } /** + * + * *
      * If set to `true`, the server will attempt to filter out
      * profanities, replacing all but the initial character in each filtered word
@@ -3020,10 +3334,11 @@ public Builder setProfanityFilter(boolean value) {
      * 
* * bool profanity_filter = 5; + * * @return This builder for chaining. */ public Builder clearProfanityFilter() { - + profanityFilter_ = false; onChanged(); return this; @@ -3031,8 +3346,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
@@ -3042,12 +3362,15 @@ public Builder clearProfanityFilter() {
      * 
* * .google.cloud.speech.v1p1beta1.SpeechAdaptation adaptation = 20; + * * @return Whether the adaptation field is set. */ public boolean hasAdaptation() { return adaptationBuilder_ != null || adaptation_ != null; } /** + * + * *
      * Speech adaptation configuration improves the accuracy of speech
      * recognition. For more information, see the [speech
@@ -3057,16 +3380,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
@@ -3091,6 +3419,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
@@ -3113,6 +3443,8 @@ public Builder setAdaptation(
       return this;
     }
     /**
+     *
+     *
      * 
      * Speech adaptation configuration improves the accuracy of speech
      * recognition. For more information, see the [speech
@@ -3127,7 +3459,9 @@ public Builder mergeAdaptation(com.google.cloud.speech.v1p1beta1.SpeechAdaptatio
       if (adaptationBuilder_ == null) {
         if (adaptation_ != null) {
           adaptation_ =
-            com.google.cloud.speech.v1p1beta1.SpeechAdaptation.newBuilder(adaptation_).mergeFrom(value).buildPartial();
+              com.google.cloud.speech.v1p1beta1.SpeechAdaptation.newBuilder(adaptation_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           adaptation_ = value;
         }
@@ -3139,6 +3473,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
@@ -3161,6 +3497,8 @@ public Builder clearAdaptation() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Speech adaptation configuration improves the accuracy of speech
      * recognition. For more information, see the [speech
@@ -3172,11 +3510,13 @@ public Builder clearAdaptation() {
      * .google.cloud.speech.v1p1beta1.SpeechAdaptation adaptation = 20;
      */
     public com.google.cloud.speech.v1p1beta1.SpeechAdaptation.Builder getAdaptationBuilder() {
-      
+
       onChanged();
       return getAdaptationFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Speech adaptation configuration improves the accuracy of speech
      * recognition. For more information, see the [speech
@@ -3191,11 +3531,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
@@ -3207,14 +3550,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_;
@@ -3222,8 +3568,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
@@ -3231,13 +3582,17 @@ public com.google.cloud.speech.v1p1beta1.SpeechAdaptationOrBuilder getAdaptation
      * and final transcripts.
      * 
* - * .google.cloud.speech.v1p1beta1.TranscriptNormalization transcript_normalization = 24; + * .google.cloud.speech.v1p1beta1.TranscriptNormalization transcript_normalization = 24; + * + * * @return Whether the transcriptNormalization field is set. */ public boolean hasTranscriptNormalization() { return transcriptNormalizationBuilder_ != null || transcriptNormalization_ != null; } /** + * + * *
      * Use transcription normalization to automatically replace parts of the
      * transcript with phrases of your choosing. For StreamingRecognize, this
@@ -3245,17 +3600,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
@@ -3263,9 +3624,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(); @@ -3279,6 +3642,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
@@ -3286,7 +3651,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) { @@ -3300,6 +3666,8 @@ public Builder setTranscriptNormalization( return this; } /** + * + * *
      * Use transcription normalization to automatically replace parts of the
      * transcript with phrases of your choosing. For StreamingRecognize, this
@@ -3307,13 +3675,18 @@ public Builder setTranscriptNormalization(
      * and final transcripts.
      * 
* - * .google.cloud.speech.v1p1beta1.TranscriptNormalization transcript_normalization = 24; + * .google.cloud.speech.v1p1beta1.TranscriptNormalization transcript_normalization = 24; + * */ - public Builder mergeTranscriptNormalization(com.google.cloud.speech.v1p1beta1.TranscriptNormalization value) { + public Builder mergeTranscriptNormalization( + com.google.cloud.speech.v1p1beta1.TranscriptNormalization value) { if (transcriptNormalizationBuilder_ == null) { if (transcriptNormalization_ != null) { transcriptNormalization_ = - com.google.cloud.speech.v1p1beta1.TranscriptNormalization.newBuilder(transcriptNormalization_).mergeFrom(value).buildPartial(); + com.google.cloud.speech.v1p1beta1.TranscriptNormalization.newBuilder( + transcriptNormalization_) + .mergeFrom(value) + .buildPartial(); } else { transcriptNormalization_ = value; } @@ -3325,6 +3698,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
@@ -3332,7 +3707,8 @@ public Builder mergeTranscriptNormalization(com.google.cloud.speech.v1p1beta1.Tr
      * and final transcripts.
      * 
* - * .google.cloud.speech.v1p1beta1.TranscriptNormalization transcript_normalization = 24; + * .google.cloud.speech.v1p1beta1.TranscriptNormalization transcript_normalization = 24; + * */ public Builder clearTranscriptNormalization() { if (transcriptNormalizationBuilder_ == null) { @@ -3346,6 +3722,8 @@ public Builder clearTranscriptNormalization() { return this; } /** + * + * *
      * Use transcription normalization to automatically replace parts of the
      * transcript with phrases of your choosing. For StreamingRecognize, this
@@ -3353,14 +3731,18 @@ public Builder clearTranscriptNormalization() {
      * and final transcripts.
      * 
* - * .google.cloud.speech.v1p1beta1.TranscriptNormalization transcript_normalization = 24; + * .google.cloud.speech.v1p1beta1.TranscriptNormalization transcript_normalization = 24; + * */ - public com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Builder getTranscriptNormalizationBuilder() { - + public com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Builder + getTranscriptNormalizationBuilder() { + onChanged(); return getTranscriptNormalizationFieldBuilder().getBuilder(); } /** + * + * *
      * Use transcription normalization to automatically replace parts of the
      * transcript with phrases of your choosing. For StreamingRecognize, this
@@ -3368,17 +3750,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
@@ -3386,35 +3773,47 @@ public com.google.cloud.speech.v1p1beta1.TranscriptNormalizationOrBuilder getTra
      * and final transcripts.
      * 
* - * .google.cloud.speech.v1p1beta1.TranscriptNormalization transcript_normalization = 24; + * .google.cloud.speech.v1p1beta1.TranscriptNormalization transcript_normalization = 24; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.TranscriptNormalization, com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Builder, com.google.cloud.speech.v1p1beta1.TranscriptNormalizationOrBuilder> + com.google.cloud.speech.v1p1beta1.TranscriptNormalization, + com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Builder, + com.google.cloud.speech.v1p1beta1.TranscriptNormalizationOrBuilder> getTranscriptNormalizationFieldBuilder() { if (transcriptNormalizationBuilder_ == null) { - transcriptNormalizationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.TranscriptNormalization, com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Builder, com.google.cloud.speech.v1p1beta1.TranscriptNormalizationOrBuilder>( - getTranscriptNormalization(), - getParentForChildren(), - isClean()); + transcriptNormalizationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v1p1beta1.TranscriptNormalization, + com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Builder, + com.google.cloud.speech.v1p1beta1.TranscriptNormalizationOrBuilder>( + getTranscriptNormalization(), getParentForChildren(), isClean()); transcriptNormalization_ = null; } return transcriptNormalizationBuilder_; } private java.util.List speechContexts_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureSpeechContextsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - speechContexts_ = new java.util.ArrayList(speechContexts_); + speechContexts_ = + new java.util.ArrayList( + speechContexts_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.SpeechContext, com.google.cloud.speech.v1p1beta1.SpeechContext.Builder, com.google.cloud.speech.v1p1beta1.SpeechContextOrBuilder> speechContextsBuilder_; + com.google.cloud.speech.v1p1beta1.SpeechContext, + com.google.cloud.speech.v1p1beta1.SpeechContext.Builder, + com.google.cloud.speech.v1p1beta1.SpeechContextOrBuilder> + speechContextsBuilder_; /** + * + * *
      * Array of [SpeechContext][google.cloud.speech.v1p1beta1.SpeechContext].
      * A means to provide context to assist the speech recognition. For more
@@ -3433,6 +3832,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
@@ -3451,6 +3852,8 @@ public int getSpeechContextsCount() {
       }
     }
     /**
+     *
+     *
      * 
      * Array of [SpeechContext][google.cloud.speech.v1p1beta1.SpeechContext].
      * A means to provide context to assist the speech recognition. For more
@@ -3469,6 +3872,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
@@ -3494,6 +3899,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
@@ -3516,6 +3923,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
@@ -3540,6 +3949,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
@@ -3565,6 +3976,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
@@ -3587,6 +4000,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
@@ -3609,6 +4024,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
@@ -3623,8 +4040,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);
@@ -3632,6 +4048,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
@@ -3653,6 +4071,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
@@ -3674,6 +4094,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
@@ -3689,6 +4111,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
@@ -3702,11 +4126,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
@@ -3717,8 +4144,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 {
@@ -3726,6 +4153,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
@@ -3737,10 +4166,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
@@ -3753,10 +4184,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
@@ -3767,16 +4200,22 @@ public com.google.cloud.speech.v1p1beta1.SpeechContext.Builder addSpeechContexts
      *
      * repeated .google.cloud.speech.v1p1beta1.SpeechContext speech_contexts = 6;
      */
-    public java.util.List 
-         getSpeechContextsBuilderList() {
+    public java.util.List
+        getSpeechContextsBuilderList() {
       return getSpeechContextsFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.speech.v1p1beta1.SpeechContext, com.google.cloud.speech.v1p1beta1.SpeechContext.Builder, com.google.cloud.speech.v1p1beta1.SpeechContextOrBuilder> 
+            com.google.cloud.speech.v1p1beta1.SpeechContext,
+            com.google.cloud.speech.v1p1beta1.SpeechContext.Builder,
+            com.google.cloud.speech.v1p1beta1.SpeechContextOrBuilder>
         getSpeechContextsFieldBuilder() {
       if (speechContextsBuilder_ == null) {
-        speechContextsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.speech.v1p1beta1.SpeechContext, com.google.cloud.speech.v1p1beta1.SpeechContext.Builder, com.google.cloud.speech.v1p1beta1.SpeechContextOrBuilder>(
+        speechContextsBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.cloud.speech.v1p1beta1.SpeechContext,
+                com.google.cloud.speech.v1p1beta1.SpeechContext.Builder,
+                com.google.cloud.speech.v1p1beta1.SpeechContextOrBuilder>(
                 speechContexts_,
                 ((bitField0_ & 0x00000002) != 0),
                 getParentForChildren(),
@@ -3786,8 +4225,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
@@ -3796,6 +4237,7 @@ public com.google.cloud.speech.v1p1beta1.SpeechContext.Builder addSpeechContexts
      * 
* * bool enable_word_time_offsets = 8; + * * @return The enableWordTimeOffsets. */ @java.lang.Override @@ -3803,6 +4245,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
@@ -3811,16 +4255,19 @@ public boolean getEnableWordTimeOffsets() {
      * 
* * bool enable_word_time_offsets = 8; + * * @param value The enableWordTimeOffsets to set. * @return This builder for chaining. */ public Builder setEnableWordTimeOffsets(boolean value) { - + enableWordTimeOffsets_ = value; onChanged(); return this; } /** + * + * *
      * If `true`, the top result includes a list of words and
      * the start and end time offsets (timestamps) for those words. If
@@ -3829,17 +4276,20 @@ public Builder setEnableWordTimeOffsets(boolean value) {
      * 
* * bool enable_word_time_offsets = 8; + * * @return This builder for chaining. */ public Builder clearEnableWordTimeOffsets() { - + enableWordTimeOffsets_ = false; onChanged(); return this; } - private boolean enableWordConfidence_ ; + private boolean enableWordConfidence_; /** + * + * *
      * If `true`, the top result includes a list of words and the
      * confidence for those words. If `false`, no word-level confidence
@@ -3847,6 +4297,7 @@ public Builder clearEnableWordTimeOffsets() {
      * 
* * bool enable_word_confidence = 15; + * * @return The enableWordConfidence. */ @java.lang.Override @@ -3854,6 +4305,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
@@ -3861,16 +4314,19 @@ public boolean getEnableWordConfidence() {
      * 
* * bool enable_word_confidence = 15; + * * @param value The enableWordConfidence to set. * @return This builder for chaining. */ public Builder setEnableWordConfidence(boolean value) { - + enableWordConfidence_ = value; onChanged(); return this; } /** + * + * *
      * If `true`, the top result includes a list of words and the
      * confidence for those words. If `false`, no word-level confidence
@@ -3878,17 +4334,20 @@ public Builder setEnableWordConfidence(boolean value) {
      * 
* * bool enable_word_confidence = 15; + * * @return This builder for chaining. */ public Builder clearEnableWordConfidence() { - + enableWordConfidence_ = false; onChanged(); return this; } - private boolean enableAutomaticPunctuation_ ; + private boolean enableAutomaticPunctuation_; /** + * + * *
      * If 'true', adds punctuation to recognition result hypotheses.
      * This feature is only available in select languages. Setting this for
@@ -3897,6 +4356,7 @@ public Builder clearEnableWordConfidence() {
      * 
* * bool enable_automatic_punctuation = 11; + * * @return The enableAutomaticPunctuation. */ @java.lang.Override @@ -3904,6 +4364,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
@@ -3912,16 +4374,19 @@ public boolean getEnableAutomaticPunctuation() {
      * 
* * bool enable_automatic_punctuation = 11; + * * @param value The enableAutomaticPunctuation to set. * @return This builder for chaining. */ public Builder setEnableAutomaticPunctuation(boolean value) { - + enableAutomaticPunctuation_ = value; onChanged(); return this; } /** + * + * *
      * If 'true', adds punctuation to recognition result hypotheses.
      * This feature is only available in select languages. Setting this for
@@ -3930,10 +4395,11 @@ public Builder setEnableAutomaticPunctuation(boolean value) {
      * 
* * bool enable_automatic_punctuation = 11; + * * @return This builder for chaining. */ public Builder clearEnableAutomaticPunctuation() { - + enableAutomaticPunctuation_ = false; onChanged(); return this; @@ -3941,8 +4407,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
@@ -3954,12 +4425,15 @@ public Builder clearEnableAutomaticPunctuation() {
      * 
* * .google.protobuf.BoolValue enable_spoken_punctuation = 22; + * * @return Whether the enableSpokenPunctuation field is set. */ public boolean hasEnableSpokenPunctuation() { return enableSpokenPunctuationBuilder_ != null || enableSpokenPunctuation_ != null; } /** + * + * *
      * The spoken punctuation behavior for the call
      * If not set, uses default behavior based on model of choice
@@ -3971,16 +4445,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
@@ -4007,6 +4486,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
@@ -4031,6 +4512,8 @@ public Builder setEnableSpokenPunctuation(
       return this;
     }
     /**
+     *
+     *
      * 
      * The spoken punctuation behavior for the call
      * If not set, uses default behavior based on model of choice
@@ -4047,7 +4530,9 @@ public Builder mergeEnableSpokenPunctuation(com.google.protobuf.BoolValue value)
       if (enableSpokenPunctuationBuilder_ == null) {
         if (enableSpokenPunctuation_ != null) {
           enableSpokenPunctuation_ =
-            com.google.protobuf.BoolValue.newBuilder(enableSpokenPunctuation_).mergeFrom(value).buildPartial();
+              com.google.protobuf.BoolValue.newBuilder(enableSpokenPunctuation_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           enableSpokenPunctuation_ = value;
         }
@@ -4059,6 +4544,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
@@ -4083,6 +4570,8 @@ public Builder clearEnableSpokenPunctuation() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The spoken punctuation behavior for the call
      * If not set, uses default behavior based on model of choice
@@ -4096,11 +4585,13 @@ public Builder clearEnableSpokenPunctuation() {
      * .google.protobuf.BoolValue enable_spoken_punctuation = 22;
      */
     public com.google.protobuf.BoolValue.Builder getEnableSpokenPunctuationBuilder() {
-      
+
       onChanged();
       return getEnableSpokenPunctuationFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The spoken punctuation behavior for the call
      * If not set, uses default behavior based on model of choice
@@ -4117,11 +4608,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
@@ -4135,14 +4629,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_;
@@ -4150,8 +4647,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
@@ -4161,12 +4663,15 @@ public com.google.protobuf.BoolValueOrBuilder getEnableSpokenPunctuationOrBuilde
      * 
* * .google.protobuf.BoolValue enable_spoken_emojis = 23; + * * @return Whether the enableSpokenEmojis field is set. */ public boolean hasEnableSpokenEmojis() { return enableSpokenEmojisBuilder_ != null || enableSpokenEmojis_ != null; } /** + * + * *
      * The spoken emoji behavior for the call
      * If not set, uses default behavior based on model of choice
@@ -4176,16 +4681,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
@@ -4210,6 +4720,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
@@ -4220,8 +4732,7 @@ public Builder setEnableSpokenEmojis(com.google.protobuf.BoolValue value) {
      *
      * .google.protobuf.BoolValue enable_spoken_emojis = 23;
      */
-    public Builder setEnableSpokenEmojis(
-        com.google.protobuf.BoolValue.Builder builderForValue) {
+    public Builder setEnableSpokenEmojis(com.google.protobuf.BoolValue.Builder builderForValue) {
       if (enableSpokenEmojisBuilder_ == null) {
         enableSpokenEmojis_ = builderForValue.build();
         onChanged();
@@ -4232,6 +4743,8 @@ public Builder setEnableSpokenEmojis(
       return this;
     }
     /**
+     *
+     *
      * 
      * The spoken emoji behavior for the call
      * If not set, uses default behavior based on model of choice
@@ -4246,7 +4759,9 @@ public Builder mergeEnableSpokenEmojis(com.google.protobuf.BoolValue value) {
       if (enableSpokenEmojisBuilder_ == null) {
         if (enableSpokenEmojis_ != null) {
           enableSpokenEmojis_ =
-            com.google.protobuf.BoolValue.newBuilder(enableSpokenEmojis_).mergeFrom(value).buildPartial();
+              com.google.protobuf.BoolValue.newBuilder(enableSpokenEmojis_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           enableSpokenEmojis_ = value;
         }
@@ -4258,6 +4773,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
@@ -4280,6 +4797,8 @@ public Builder clearEnableSpokenEmojis() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The spoken emoji behavior for the call
      * If not set, uses default behavior based on model of choice
@@ -4291,11 +4810,13 @@ public Builder clearEnableSpokenEmojis() {
      * .google.protobuf.BoolValue enable_spoken_emojis = 23;
      */
     public com.google.protobuf.BoolValue.Builder getEnableSpokenEmojisBuilder() {
-      
+
       onChanged();
       return getEnableSpokenEmojisFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The spoken emoji behavior for the call
      * If not set, uses default behavior based on model of choice
@@ -4310,11 +4831,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
@@ -4326,21 +4850,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
@@ -4349,13 +4878,17 @@ public com.google.protobuf.BoolValueOrBuilder getEnableSpokenEmojisOrBuilder() {
      * 
* * bool enable_speaker_diarization = 16 [deprecated = true]; + * * @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
@@ -4364,16 +4897,20 @@ public com.google.protobuf.BoolValueOrBuilder getEnableSpokenEmojisOrBuilder() {
      * 
* * bool enable_speaker_diarization = 16 [deprecated = true]; + * * @param value The enableSpeakerDiarization to set. * @return This builder for chaining. */ - @java.lang.Deprecated public Builder setEnableSpeakerDiarization(boolean value) { - + @java.lang.Deprecated + public Builder setEnableSpeakerDiarization(boolean value) { + enableSpeakerDiarization_ = value; onChanged(); return this; } /** + * + * *
      * If 'true', enables speaker detection for each recognized word in
      * the top alternative of the recognition result using a speaker_tag provided
@@ -4382,17 +4919,21 @@ public com.google.protobuf.BoolValueOrBuilder getEnableSpokenEmojisOrBuilder() {
      * 
* * bool enable_speaker_diarization = 16 [deprecated = true]; + * * @return This builder for chaining. */ - @java.lang.Deprecated public Builder clearEnableSpeakerDiarization() { - + @java.lang.Deprecated + public Builder clearEnableSpeakerDiarization() { + enableSpeakerDiarization_ = false; onChanged(); return this; } - private int diarizationSpeakerCount_ ; + private int diarizationSpeakerCount_; /** + * + * *
      * If set, specifies the estimated number of speakers in the conversation.
      * Defaults to '2'. Ignored unless enable_speaker_diarization is set to true.
@@ -4400,13 +4941,17 @@ public com.google.protobuf.BoolValueOrBuilder getEnableSpokenEmojisOrBuilder() {
      * 
* * int32 diarization_speaker_count = 17 [deprecated = true]; + * * @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.
@@ -4414,16 +4959,20 @@ public com.google.protobuf.BoolValueOrBuilder getEnableSpokenEmojisOrBuilder() {
      * 
* * int32 diarization_speaker_count = 17 [deprecated = true]; + * * @param value The diarizationSpeakerCount to set. * @return This builder for chaining. */ - @java.lang.Deprecated public Builder setDiarizationSpeakerCount(int value) { - + @java.lang.Deprecated + public Builder setDiarizationSpeakerCount(int value) { + diarizationSpeakerCount_ = value; onChanged(); return this; } /** + * + * *
      * If set, specifies the estimated number of speakers in the conversation.
      * Defaults to '2'. Ignored unless enable_speaker_diarization is set to true.
@@ -4431,10 +4980,12 @@ public com.google.protobuf.BoolValueOrBuilder getEnableSpokenEmojisOrBuilder() {
      * 
* * int32 diarization_speaker_count = 17 [deprecated = true]; + * * @return This builder for chaining. */ - @java.lang.Deprecated public Builder clearDiarizationSpeakerCount() { - + @java.lang.Deprecated + public Builder clearDiarizationSpeakerCount() { + diarizationSpeakerCount_ = 0; onChanged(); return this; @@ -4442,8 +4993,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.
@@ -4456,12 +5012,15 @@ public com.google.protobuf.BoolValueOrBuilder getEnableSpokenEmojisOrBuilder() {
      * 
* * .google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig diarization_config = 19; + * * @return Whether the diarizationConfig field is set. */ public boolean hasDiarizationConfig() { return diarizationConfigBuilder_ != null || diarizationConfig_ != null; } /** + * + * *
      * Config to enable speaker diarization and set additional
      * parameters to make diarization better suited for your application.
@@ -4474,16 +5033,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.
@@ -4497,7 +5061,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();
@@ -4511,6 +5076,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.
@@ -4536,6 +5103,8 @@ public Builder setDiarizationConfig(
       return this;
     }
     /**
+     *
+     *
      * 
      * Config to enable speaker diarization and set additional
      * parameters to make diarization better suited for your application.
@@ -4549,11 +5118,15 @@ public Builder setDiarizationConfig(
      *
      * .google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig diarization_config = 19;
      */
-    public Builder mergeDiarizationConfig(com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig value) {
+    public Builder mergeDiarizationConfig(
+        com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig value) {
       if (diarizationConfigBuilder_ == null) {
         if (diarizationConfig_ != null) {
           diarizationConfig_ =
-            com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig.newBuilder(diarizationConfig_).mergeFrom(value).buildPartial();
+              com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig.newBuilder(
+                      diarizationConfig_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           diarizationConfig_ = value;
         }
@@ -4565,6 +5138,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.
@@ -4590,6 +5165,8 @@ public Builder clearDiarizationConfig() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Config to enable speaker diarization and set additional
      * parameters to make diarization better suited for your application.
@@ -4603,12 +5180,15 @@ public Builder clearDiarizationConfig() {
      *
      * .google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig diarization_config = 19;
      */
-    public com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig.Builder getDiarizationConfigBuilder() {
-      
+    public com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig.Builder
+        getDiarizationConfigBuilder() {
+
       onChanged();
       return getDiarizationConfigFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Config to enable speaker diarization and set additional
      * parameters to make diarization better suited for your application.
@@ -4622,15 +5202,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.
@@ -4645,14 +5229,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_;
@@ -4660,34 +5247,47 @@ public com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfigOrBuilder getDi
 
     private com.google.cloud.speech.v1p1beta1.RecognitionMetadata metadata_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.speech.v1p1beta1.RecognitionMetadata, com.google.cloud.speech.v1p1beta1.RecognitionMetadata.Builder, com.google.cloud.speech.v1p1beta1.RecognitionMetadataOrBuilder> metadataBuilder_;
+            com.google.cloud.speech.v1p1beta1.RecognitionMetadata,
+            com.google.cloud.speech.v1p1beta1.RecognitionMetadata.Builder,
+            com.google.cloud.speech.v1p1beta1.RecognitionMetadataOrBuilder>
+        metadataBuilder_;
     /**
+     *
+     *
      * 
      * Metadata regarding this request.
      * 
* * .google.cloud.speech.v1p1beta1.RecognitionMetadata metadata = 9; + * * @return Whether the metadata field is set. */ public boolean hasMetadata() { return metadataBuilder_ != null || metadata_ != null; } /** + * + * *
      * Metadata regarding this request.
      * 
* * .google.cloud.speech.v1p1beta1.RecognitionMetadata metadata = 9; + * * @return The metadata. */ public com.google.cloud.speech.v1p1beta1.RecognitionMetadata getMetadata() { if (metadataBuilder_ == null) { - return metadata_ == null ? com.google.cloud.speech.v1p1beta1.RecognitionMetadata.getDefaultInstance() : metadata_; + return metadata_ == null + ? com.google.cloud.speech.v1p1beta1.RecognitionMetadata.getDefaultInstance() + : metadata_; } else { return metadataBuilder_.getMessage(); } } /** + * + * *
      * Metadata regarding this request.
      * 
@@ -4708,6 +5308,8 @@ public Builder setMetadata(com.google.cloud.speech.v1p1beta1.RecognitionMetadata return this; } /** + * + * *
      * Metadata regarding this request.
      * 
@@ -4726,6 +5328,8 @@ public Builder setMetadata( return this; } /** + * + * *
      * Metadata regarding this request.
      * 
@@ -4736,7 +5340,9 @@ public Builder mergeMetadata(com.google.cloud.speech.v1p1beta1.RecognitionMetada if (metadataBuilder_ == null) { if (metadata_ != null) { metadata_ = - com.google.cloud.speech.v1p1beta1.RecognitionMetadata.newBuilder(metadata_).mergeFrom(value).buildPartial(); + com.google.cloud.speech.v1p1beta1.RecognitionMetadata.newBuilder(metadata_) + .mergeFrom(value) + .buildPartial(); } else { metadata_ = value; } @@ -4748,6 +5354,8 @@ public Builder mergeMetadata(com.google.cloud.speech.v1p1beta1.RecognitionMetada return this; } /** + * + * *
      * Metadata regarding this request.
      * 
@@ -4766,6 +5374,8 @@ public Builder clearMetadata() { return this; } /** + * + * *
      * Metadata regarding this request.
      * 
@@ -4773,11 +5383,13 @@ public Builder clearMetadata() { * .google.cloud.speech.v1p1beta1.RecognitionMetadata metadata = 9; */ public com.google.cloud.speech.v1p1beta1.RecognitionMetadata.Builder getMetadataBuilder() { - + onChanged(); return getMetadataFieldBuilder().getBuilder(); } /** + * + * *
      * Metadata regarding this request.
      * 
@@ -4788,11 +5400,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.
      * 
@@ -4800,14 +5415,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_; @@ -4815,6 +5433,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
@@ -4851,13 +5471,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; @@ -4866,6 +5486,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
@@ -4902,15 +5524,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 { @@ -4918,6 +5539,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
@@ -4954,20 +5577,22 @@ public java.lang.String getModel() {
      * 
* * string model = 13; + * * @param value The model to set. * @return This builder for chaining. */ - public Builder setModel( - java.lang.String value) { + public Builder setModel(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + model_ = value; onChanged(); return this; } /** + * + * *
      * Which model to select for the given request. Select the model
      * best suited to your domain to get best results. If a model is not
@@ -5004,15 +5629,18 @@ public Builder setModel(
      * 
* * string model = 13; + * * @return This builder for chaining. */ public Builder clearModel() { - + model_ = getDefaultInstance().getModel(); onChanged(); return this; } /** + * + * *
      * Which model to select for the given request. Select the model
      * best suited to your domain to get best results. If a model is not
@@ -5049,23 +5677,25 @@ public Builder clearModel() {
      * 
* * string model = 13; + * * @param value The bytes for model to set. * @return This builder for chaining. */ - public Builder setModelBytes( - com.google.protobuf.ByteString value) { + public Builder setModelBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + model_ = value; onChanged(); return this; } - private boolean useEnhanced_ ; + private boolean useEnhanced_; /** + * + * *
      * Set to true to use an enhanced model for speech recognition.
      * If `use_enhanced` is set to true and the `model` field is not set, then
@@ -5077,6 +5707,7 @@ public Builder setModelBytes(
      * 
* * bool use_enhanced = 14; + * * @return The useEnhanced. */ @java.lang.Override @@ -5084,6 +5715,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
@@ -5095,16 +5728,19 @@ public boolean getUseEnhanced() {
      * 
* * bool use_enhanced = 14; + * * @param value The useEnhanced to set. * @return This builder for chaining. */ public Builder setUseEnhanced(boolean value) { - + useEnhanced_ = value; onChanged(); return this; } /** + * + * *
      * Set to true to use an enhanced model for speech recognition.
      * If `use_enhanced` is set to true and the `model` field is not set, then
@@ -5116,17 +5752,18 @@ public Builder setUseEnhanced(boolean value) {
      * 
* * bool use_enhanced = 14; + * * @return This builder for chaining. */ public Builder clearUseEnhanced() { - + useEnhanced_ = false; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -5136,12 +5773,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(); } @@ -5150,16 +5787,16 @@ public static com.google.cloud.speech.v1p1beta1.RecognitionConfig getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RecognitionConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new RecognitionConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RecognitionConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RecognitionConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -5174,6 +5811,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.RecognitionConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionConfigOrBuilder.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionConfigOrBuilder.java similarity index 93% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionConfigOrBuilder.java rename to proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionConfigOrBuilder.java index 0e1c409d2..2f29f3761 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionConfigOrBuilder.java +++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionConfigOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech.proto package com.google.cloud.speech.v1p1beta1; -public interface RecognitionConfigOrBuilder extends +public interface RecognitionConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1p1beta1.RecognitionConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Encoding of audio data sent in all `RecognitionAudio` messages.
    * This field is optional for `FLAC` and `WAV` audio files and required
@@ -15,10 +33,13 @@ public interface RecognitionConfigOrBuilder extends
    * 
* * .google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding encoding = 1; + * * @return The enum numeric value on the wire for encoding. */ int getEncodingValue(); /** + * + * *
    * Encoding of audio data sent in all `RecognitionAudio` messages.
    * This field is optional for `FLAC` and `WAV` audio files and required
@@ -26,11 +47,14 @@ public interface RecognitionConfigOrBuilder extends
    * 
* * .google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding encoding = 1; + * * @return The encoding. */ com.google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding getEncoding(); /** + * + * *
    * Sample rate in Hertz of the audio data sent in all
    * `RecognitionAudio` messages. Valid values are: 8000-48000.
@@ -42,11 +66,14 @@ public interface RecognitionConfigOrBuilder extends
    * 
* * int32 sample_rate_hertz = 2; + * * @return The sampleRateHertz. */ int getSampleRateHertz(); /** + * + * *
    * The number of channels in the input audio data.
    * ONLY set this for MULTI-CHANNEL recognition.
@@ -60,11 +87,14 @@ public interface RecognitionConfigOrBuilder extends
    * 
* * int32 audio_channel_count = 7; + * * @return The audioChannelCount. */ int getAudioChannelCount(); /** + * + * *
    * This needs to be set to `true` explicitly and `audio_channel_count` > 1
    * to get each channel recognized separately. The recognition result will
@@ -75,11 +105,14 @@ public interface RecognitionConfigOrBuilder extends
    * 
* * bool enable_separate_recognition_per_channel = 12; + * * @return The enableSeparateRecognitionPerChannel. */ boolean getEnableSeparateRecognitionPerChannel(); /** + * + * *
    * Required. The language of the supplied audio as a
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.
@@ -90,10 +123,13 @@ public interface RecognitionConfigOrBuilder extends
    * 
* * string language_code = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The languageCode. */ java.lang.String getLanguageCode(); /** + * + * *
    * Required. The language of the supplied audio as a
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.
@@ -104,12 +140,14 @@ public interface RecognitionConfigOrBuilder extends
    * 
* * string language_code = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for languageCode. */ - com.google.protobuf.ByteString - getLanguageCodeBytes(); + com.google.protobuf.ByteString getLanguageCodeBytes(); /** + * + * *
    * A list of up to 3 additional
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags,
@@ -126,11 +164,13 @@ public interface RecognitionConfigOrBuilder extends
    * 
* * repeated string alternative_language_codes = 18; + * * @return A list containing the alternativeLanguageCodes. */ - java.util.List - getAlternativeLanguageCodesList(); + java.util.List getAlternativeLanguageCodesList(); /** + * + * *
    * A list of up to 3 additional
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags,
@@ -147,10 +187,13 @@ public interface RecognitionConfigOrBuilder extends
    * 
* * repeated string alternative_language_codes = 18; + * * @return The count of alternativeLanguageCodes. */ int getAlternativeLanguageCodesCount(); /** + * + * *
    * A list of up to 3 additional
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags,
@@ -167,11 +210,14 @@ public interface RecognitionConfigOrBuilder extends
    * 
* * repeated string alternative_language_codes = 18; + * * @param index The index of the element to return. * @return The alternativeLanguageCodes at the given index. */ java.lang.String getAlternativeLanguageCodes(int index); /** + * + * *
    * A list of up to 3 additional
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags,
@@ -188,13 +234,15 @@ public interface RecognitionConfigOrBuilder extends
    * 
* * repeated string alternative_language_codes = 18; + * * @param index The index of the value to return. * @return The bytes of the alternativeLanguageCodes at the given index. */ - com.google.protobuf.ByteString - getAlternativeLanguageCodesBytes(int index); + com.google.protobuf.ByteString getAlternativeLanguageCodesBytes(int index); /** + * + * *
    * Maximum number of recognition hypotheses to be returned.
    * Specifically, the maximum number of `SpeechRecognitionAlternative` messages
@@ -205,11 +253,14 @@ public interface RecognitionConfigOrBuilder extends
    * 
* * int32 max_alternatives = 4; + * * @return The maxAlternatives. */ int getMaxAlternatives(); /** + * + * *
    * If set to `true`, the server will attempt to filter out
    * profanities, replacing all but the initial character in each filtered word
@@ -218,11 +269,14 @@ public interface RecognitionConfigOrBuilder extends
    * 
* * bool profanity_filter = 5; + * * @return The profanityFilter. */ boolean getProfanityFilter(); /** + * + * *
    * Speech adaptation configuration improves the accuracy of speech
    * recognition. For more information, see the [speech
@@ -232,10 +286,13 @@ public interface RecognitionConfigOrBuilder extends
    * 
* * .google.cloud.speech.v1p1beta1.SpeechAdaptation adaptation = 20; + * * @return Whether the adaptation field is set. */ boolean hasAdaptation(); /** + * + * *
    * Speech adaptation configuration improves the accuracy of speech
    * recognition. For more information, see the [speech
@@ -245,10 +302,13 @@ public interface RecognitionConfigOrBuilder extends
    * 
* * .google.cloud.speech.v1p1beta1.SpeechAdaptation adaptation = 20; + * * @return The adaptation. */ com.google.cloud.speech.v1p1beta1.SpeechAdaptation getAdaptation(); /** + * + * *
    * Speech adaptation configuration improves the accuracy of speech
    * recognition. For more information, see the [speech
@@ -262,6 +322,8 @@ public interface RecognitionConfigOrBuilder extends
   com.google.cloud.speech.v1p1beta1.SpeechAdaptationOrBuilder getAdaptationOrBuilder();
 
   /**
+   *
+   *
    * 
    * Use transcription normalization to automatically replace parts of the
    * transcript with phrases of your choosing. For StreamingRecognize, this
@@ -269,11 +331,15 @@ public interface RecognitionConfigOrBuilder extends
    * and final transcripts.
    * 
* - * .google.cloud.speech.v1p1beta1.TranscriptNormalization transcript_normalization = 24; + * .google.cloud.speech.v1p1beta1.TranscriptNormalization transcript_normalization = 24; + * + * * @return Whether the transcriptNormalization field is set. */ boolean hasTranscriptNormalization(); /** + * + * *
    * Use transcription normalization to automatically replace parts of the
    * transcript with phrases of your choosing. For StreamingRecognize, this
@@ -281,11 +347,15 @@ public interface RecognitionConfigOrBuilder extends
    * and final transcripts.
    * 
* - * .google.cloud.speech.v1p1beta1.TranscriptNormalization transcript_normalization = 24; + * .google.cloud.speech.v1p1beta1.TranscriptNormalization transcript_normalization = 24; + * + * * @return The transcriptNormalization. */ com.google.cloud.speech.v1p1beta1.TranscriptNormalization getTranscriptNormalization(); /** + * + * *
    * Use transcription normalization to automatically replace parts of the
    * transcript with phrases of your choosing. For StreamingRecognize, this
@@ -293,11 +363,15 @@ public interface RecognitionConfigOrBuilder extends
    * and final transcripts.
    * 
* - * .google.cloud.speech.v1p1beta1.TranscriptNormalization transcript_normalization = 24; + * .google.cloud.speech.v1p1beta1.TranscriptNormalization transcript_normalization = 24; + * */ - com.google.cloud.speech.v1p1beta1.TranscriptNormalizationOrBuilder getTranscriptNormalizationOrBuilder(); + com.google.cloud.speech.v1p1beta1.TranscriptNormalizationOrBuilder + getTranscriptNormalizationOrBuilder(); /** + * + * *
    * Array of [SpeechContext][google.cloud.speech.v1p1beta1.SpeechContext].
    * A means to provide context to assist the speech recognition. For more
@@ -308,9 +382,10 @@ public interface RecognitionConfigOrBuilder extends
    *
    * repeated .google.cloud.speech.v1p1beta1.SpeechContext speech_contexts = 6;
    */
-  java.util.List 
-      getSpeechContextsList();
+  java.util.List getSpeechContextsList();
   /**
+   *
+   *
    * 
    * Array of [SpeechContext][google.cloud.speech.v1p1beta1.SpeechContext].
    * A means to provide context to assist the speech recognition. For more
@@ -323,6 +398,8 @@ public interface RecognitionConfigOrBuilder extends
    */
   com.google.cloud.speech.v1p1beta1.SpeechContext getSpeechContexts(int index);
   /**
+   *
+   *
    * 
    * Array of [SpeechContext][google.cloud.speech.v1p1beta1.SpeechContext].
    * A means to provide context to assist the speech recognition. For more
@@ -335,6 +412,8 @@ public interface RecognitionConfigOrBuilder extends
    */
   int getSpeechContextsCount();
   /**
+   *
+   *
    * 
    * Array of [SpeechContext][google.cloud.speech.v1p1beta1.SpeechContext].
    * A means to provide context to assist the speech recognition. For more
@@ -345,9 +424,11 @@ public interface RecognitionConfigOrBuilder extends
    *
    * repeated .google.cloud.speech.v1p1beta1.SpeechContext speech_contexts = 6;
    */
-  java.util.List 
+  java.util.List
       getSpeechContextsOrBuilderList();
   /**
+   *
+   *
    * 
    * Array of [SpeechContext][google.cloud.speech.v1p1beta1.SpeechContext].
    * A means to provide context to assist the speech recognition. For more
@@ -358,10 +439,11 @@ public interface RecognitionConfigOrBuilder extends
    *
    * repeated .google.cloud.speech.v1p1beta1.SpeechContext speech_contexts = 6;
    */
-  com.google.cloud.speech.v1p1beta1.SpeechContextOrBuilder getSpeechContextsOrBuilder(
-      int index);
+  com.google.cloud.speech.v1p1beta1.SpeechContextOrBuilder getSpeechContextsOrBuilder(int index);
 
   /**
+   *
+   *
    * 
    * If `true`, the top result includes a list of words and
    * the start and end time offsets (timestamps) for those words. If
@@ -370,11 +452,14 @@ com.google.cloud.speech.v1p1beta1.SpeechContextOrBuilder getSpeechContextsOrBuil
    * 
* * bool enable_word_time_offsets = 8; + * * @return The enableWordTimeOffsets. */ boolean getEnableWordTimeOffsets(); /** + * + * *
    * If `true`, the top result includes a list of words and the
    * confidence for those words. If `false`, no word-level confidence
@@ -382,11 +467,14 @@ com.google.cloud.speech.v1p1beta1.SpeechContextOrBuilder getSpeechContextsOrBuil
    * 
* * bool enable_word_confidence = 15; + * * @return The enableWordConfidence. */ boolean getEnableWordConfidence(); /** + * + * *
    * If 'true', adds punctuation to recognition result hypotheses.
    * This feature is only available in select languages. Setting this for
@@ -395,11 +483,14 @@ com.google.cloud.speech.v1p1beta1.SpeechContextOrBuilder getSpeechContextsOrBuil
    * 
* * bool enable_automatic_punctuation = 11; + * * @return The enableAutomaticPunctuation. */ boolean getEnableAutomaticPunctuation(); /** + * + * *
    * The spoken punctuation behavior for the call
    * If not set, uses default behavior based on model of choice
@@ -411,10 +502,13 @@ com.google.cloud.speech.v1p1beta1.SpeechContextOrBuilder getSpeechContextsOrBuil
    * 
* * .google.protobuf.BoolValue enable_spoken_punctuation = 22; + * * @return Whether the enableSpokenPunctuation field is set. */ boolean hasEnableSpokenPunctuation(); /** + * + * *
    * The spoken punctuation behavior for the call
    * If not set, uses default behavior based on model of choice
@@ -426,10 +520,13 @@ com.google.cloud.speech.v1p1beta1.SpeechContextOrBuilder getSpeechContextsOrBuil
    * 
* * .google.protobuf.BoolValue enable_spoken_punctuation = 22; + * * @return The enableSpokenPunctuation. */ com.google.protobuf.BoolValue getEnableSpokenPunctuation(); /** + * + * *
    * The spoken punctuation behavior for the call
    * If not set, uses default behavior based on model of choice
@@ -445,6 +542,8 @@ com.google.cloud.speech.v1p1beta1.SpeechContextOrBuilder getSpeechContextsOrBuil
   com.google.protobuf.BoolValueOrBuilder getEnableSpokenPunctuationOrBuilder();
 
   /**
+   *
+   *
    * 
    * The spoken emoji behavior for the call
    * If not set, uses default behavior based on model of choice
@@ -454,10 +553,13 @@ com.google.cloud.speech.v1p1beta1.SpeechContextOrBuilder getSpeechContextsOrBuil
    * 
* * .google.protobuf.BoolValue enable_spoken_emojis = 23; + * * @return Whether the enableSpokenEmojis field is set. */ boolean hasEnableSpokenEmojis(); /** + * + * *
    * The spoken emoji behavior for the call
    * If not set, uses default behavior based on model of choice
@@ -467,10 +569,13 @@ com.google.cloud.speech.v1p1beta1.SpeechContextOrBuilder getSpeechContextsOrBuil
    * 
* * .google.protobuf.BoolValue enable_spoken_emojis = 23; + * * @return The enableSpokenEmojis. */ com.google.protobuf.BoolValue getEnableSpokenEmojis(); /** + * + * *
    * The spoken emoji behavior for the call
    * If not set, uses default behavior based on model of choice
@@ -484,6 +589,8 @@ com.google.cloud.speech.v1p1beta1.SpeechContextOrBuilder getSpeechContextsOrBuil
   com.google.protobuf.BoolValueOrBuilder getEnableSpokenEmojisOrBuilder();
 
   /**
+   *
+   *
    * 
    * If 'true', enables speaker detection for each recognized word in
    * the top alternative of the recognition result using a speaker_tag provided
@@ -492,11 +599,15 @@ com.google.cloud.speech.v1p1beta1.SpeechContextOrBuilder getSpeechContextsOrBuil
    * 
* * bool enable_speaker_diarization = 16 [deprecated = true]; + * * @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.
@@ -504,11 +615,15 @@ com.google.cloud.speech.v1p1beta1.SpeechContextOrBuilder getSpeechContextsOrBuil
    * 
* * int32 diarization_speaker_count = 17 [deprecated = true]; + * * @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.
@@ -521,10 +636,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.
@@ -537,10 +655,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.
@@ -554,27 +675,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.
    * 
@@ -584,6 +714,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
@@ -620,10 +752,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
@@ -660,12 +795,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
@@ -677,6 +814,7 @@ com.google.cloud.speech.v1p1beta1.SpeechContextOrBuilder getSpeechContextsOrBuil
    * 
* * bool use_enhanced = 14; + * * @return The useEnhanced. */ boolean getUseEnhanced(); diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionMetadata.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionMetadata.java similarity index 69% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionMetadata.java rename to proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionMetadata.java index efbe1ec55..d2d18080d 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionMetadata.java +++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionMetadata.java @@ -1,24 +1,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; /** + * + * *
  * Description of audio data to be recognized.
  * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.RecognitionMetadata} */ -public final class RecognitionMetadata extends - com.google.protobuf.GeneratedMessageV3 implements +public final class RecognitionMetadata extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v1p1beta1.RecognitionMetadata) RecognitionMetadataOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use RecognitionMetadata.newBuilder() to construct. private RecognitionMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private RecognitionMetadata() { interactionType_ = 0; microphoneDistance_ = 0; @@ -31,16 +49,15 @@ private RecognitionMetadata() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new RecognitionMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private RecognitionMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -59,91 +76,102 @@ private RecognitionMetadata( case 0: done = true; break; - case 8: { - int rawValue = input.readEnum(); - - interactionType_ = rawValue; - break; - } - case 24: { + case 8: + { + int rawValue = input.readEnum(); - industryNaicsCodeOfAudio_ = input.readUInt32(); - break; - } - case 32: { - int rawValue = input.readEnum(); - - microphoneDistance_ = rawValue; - break; - } - case 40: { - int rawValue = input.readEnum(); + interactionType_ = rawValue; + break; + } + case 24: + { + industryNaicsCodeOfAudio_ = input.readUInt32(); + break; + } + case 32: + { + int rawValue = input.readEnum(); - originalMediaType_ = rawValue; - break; - } - case 48: { - int rawValue = input.readEnum(); + microphoneDistance_ = rawValue; + break; + } + case 40: + { + int rawValue = input.readEnum(); - recordingDeviceType_ = rawValue; - break; - } - case 58: { - java.lang.String s = input.readStringRequireUtf8(); + originalMediaType_ = rawValue; + break; + } + case 48: + { + int rawValue = input.readEnum(); - recordingDeviceName_ = s; - break; - } - case 66: { - java.lang.String s = input.readStringRequireUtf8(); + recordingDeviceType_ = rawValue; + break; + } + case 58: + { + java.lang.String s = input.readStringRequireUtf8(); - originalMimeType_ = s; - break; - } - case 72: { + recordingDeviceName_ = s; + break; + } + case 66: + { + java.lang.String s = input.readStringRequireUtf8(); - obfuscatedId_ = input.readInt64(); - break; - } - case 82: { - java.lang.String s = input.readStringRequireUtf8(); + originalMimeType_ = s; + break; + } + case 72: + { + obfuscatedId_ = input.readInt64(); + break; + } + case 82: + { + java.lang.String s = input.readStringRequireUtf8(); - audioTopic_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + audioTopic_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_RecognitionMetadata_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechProto + .internal_static_google_cloud_speech_v1p1beta1_RecognitionMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_RecognitionMetadata_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechProto + .internal_static_google_cloud_speech_v1p1beta1_RecognitionMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.RecognitionMetadata.class, com.google.cloud.speech.v1p1beta1.RecognitionMetadata.Builder.class); + com.google.cloud.speech.v1p1beta1.RecognitionMetadata.class, + com.google.cloud.speech.v1p1beta1.RecognitionMetadata.Builder.class); } /** + * + * *
    * Use case categories that the audio recognition request can be described
    * by.
@@ -151,9 +179,10 @@ private RecognitionMetadata(
    *
    * Protobuf enum {@code google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType}
    */
-  public enum InteractionType
-      implements com.google.protobuf.ProtocolMessageEnum {
+  public enum InteractionType implements com.google.protobuf.ProtocolMessageEnum {
     /**
+     *
+     *
      * 
      * Use case is either unknown or is something other than one of the other
      * values below.
@@ -163,6 +192,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
@@ -174,6 +205,8 @@ public enum InteractionType
      */
     DISCUSSION(1),
     /**
+     *
+     *
      * 
      * One or more persons lecturing or presenting to others, mostly
      * uninterrupted.
@@ -183,6 +216,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.
@@ -192,6 +227,8 @@ public enum InteractionType
      */
     PHONE_CALL(3),
     /**
+     *
+     *
      * 
      * A recorded message intended for another person to listen to.
      * 
@@ -200,6 +237,8 @@ public enum InteractionType */ VOICEMAIL(4), /** + * + * *
      * Professionally produced audio (eg. TV Show, Podcast).
      * 
@@ -208,6 +247,8 @@ public enum InteractionType */ PROFESSIONALLY_PRODUCED(5), /** + * + * *
      * Transcribe spoken questions and queries into text.
      * 
@@ -216,6 +257,8 @@ public enum InteractionType */ VOICE_SEARCH(6), /** + * + * *
      * Transcribe voice commands, such as for controlling a device.
      * 
@@ -224,6 +267,8 @@ public enum InteractionType */ VOICE_COMMAND(7), /** + * + * *
      * Transcribe speech to text to create a written document, such as a
      * text-message, email or report.
@@ -236,6 +281,8 @@ public enum InteractionType
     ;
 
     /**
+     *
+     *
      * 
      * Use case is either unknown or is something other than one of the other
      * values below.
@@ -245,6 +292,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
@@ -256,6 +305,8 @@ public enum InteractionType
      */
     public static final int DISCUSSION_VALUE = 1;
     /**
+     *
+     *
      * 
      * One or more persons lecturing or presenting to others, mostly
      * uninterrupted.
@@ -265,6 +316,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.
@@ -274,6 +327,8 @@ public enum InteractionType
      */
     public static final int PHONE_CALL_VALUE = 3;
     /**
+     *
+     *
      * 
      * A recorded message intended for another person to listen to.
      * 
@@ -282,6 +337,8 @@ public enum InteractionType */ public static final int VOICEMAIL_VALUE = 4; /** + * + * *
      * Professionally produced audio (eg. TV Show, Podcast).
      * 
@@ -290,6 +347,8 @@ public enum InteractionType */ public static final int PROFESSIONALLY_PRODUCED_VALUE = 5; /** + * + * *
      * Transcribe spoken questions and queries into text.
      * 
@@ -298,6 +357,8 @@ public enum InteractionType */ public static final int VOICE_SEARCH_VALUE = 6; /** + * + * *
      * Transcribe voice commands, such as for controlling a device.
      * 
@@ -306,6 +367,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.
@@ -315,7 +378,6 @@ public enum InteractionType
      */
     public static final int DICTATION_VALUE = 8;
 
-
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -340,46 +402,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();
@@ -387,8 +460,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;
@@ -406,15 +478,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.
      * 
@@ -423,6 +498,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
@@ -433,6 +510,8 @@ public enum MicrophoneDistance
      */
     NEARFIELD(1),
     /**
+     *
+     *
      * 
      * The speaker if within 3 meters of the microphone.
      * 
@@ -441,6 +520,8 @@ public enum MicrophoneDistance */ MIDFIELD(2), /** + * + * *
      * The speaker is more than 3 meters away from the microphone.
      * 
@@ -452,6 +533,8 @@ public enum MicrophoneDistance ; /** + * + * *
      * Audio type is not known.
      * 
@@ -460,6 +543,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
@@ -470,6 +555,8 @@ public enum MicrophoneDistance
      */
     public static final int NEARFIELD_VALUE = 1;
     /**
+     *
+     *
      * 
      * The speaker if within 3 meters of the microphone.
      * 
@@ -478,6 +565,8 @@ public enum MicrophoneDistance */ public static final int MIDFIELD_VALUE = 2; /** + * + * *
      * The speaker is more than 3 meters away from the microphone.
      * 
@@ -486,7 +575,6 @@ public enum MicrophoneDistance */ public static final int FARFIELD_VALUE = 3; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -511,11 +599,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; } } @@ -523,29 +616,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(); @@ -553,8 +648,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; @@ -572,15 +666,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.
      * 
@@ -589,6 +686,8 @@ public enum OriginalMediaType */ ORIGINAL_MEDIA_TYPE_UNSPECIFIED(0), /** + * + * *
      * The speech data is an audio recording.
      * 
@@ -597,6 +696,8 @@ public enum OriginalMediaType */ AUDIO(1), /** + * + * *
      * The speech data originally recorded on a video.
      * 
@@ -608,6 +709,8 @@ public enum OriginalMediaType ; /** + * + * *
      * Unknown original media type.
      * 
@@ -616,6 +719,8 @@ public enum OriginalMediaType */ public static final int ORIGINAL_MEDIA_TYPE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * The speech data is an audio recording.
      * 
@@ -624,6 +729,8 @@ public enum OriginalMediaType */ public static final int AUDIO_VALUE = 1; /** + * + * *
      * The speech data originally recorded on a video.
      * 
@@ -632,7 +739,6 @@ public enum OriginalMediaType */ public static final int VIDEO_VALUE = 2; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -657,10 +763,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; } } @@ -668,29 +778,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(); @@ -698,8 +810,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; @@ -717,15 +828,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.
      * 
@@ -734,6 +848,8 @@ public enum RecordingDeviceType */ RECORDING_DEVICE_TYPE_UNSPECIFIED(0), /** + * + * *
      * Speech was recorded on a smartphone.
      * 
@@ -742,6 +858,8 @@ public enum RecordingDeviceType */ SMARTPHONE(1), /** + * + * *
      * Speech was recorded using a personal computer or tablet.
      * 
@@ -750,6 +868,8 @@ public enum RecordingDeviceType */ PC(2), /** + * + * *
      * Speech was recorded over a phone line.
      * 
@@ -758,6 +878,8 @@ public enum RecordingDeviceType */ PHONE_LINE(3), /** + * + * *
      * Speech was recorded in a vehicle.
      * 
@@ -766,6 +888,8 @@ public enum RecordingDeviceType */ VEHICLE(4), /** + * + * *
      * Speech was recorded outdoors.
      * 
@@ -774,6 +898,8 @@ public enum RecordingDeviceType */ OTHER_OUTDOOR_DEVICE(5), /** + * + * *
      * Speech was recorded indoors.
      * 
@@ -785,6 +911,8 @@ public enum RecordingDeviceType ; /** + * + * *
      * The recording device is unknown.
      * 
@@ -793,6 +921,8 @@ public enum RecordingDeviceType */ public static final int RECORDING_DEVICE_TYPE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Speech was recorded on a smartphone.
      * 
@@ -801,6 +931,8 @@ public enum RecordingDeviceType */ public static final int SMARTPHONE_VALUE = 1; /** + * + * *
      * Speech was recorded using a personal computer or tablet.
      * 
@@ -809,6 +941,8 @@ public enum RecordingDeviceType */ public static final int PC_VALUE = 2; /** + * + * *
      * Speech was recorded over a phone line.
      * 
@@ -817,6 +951,8 @@ public enum RecordingDeviceType */ public static final int PHONE_LINE_VALUE = 3; /** + * + * *
      * Speech was recorded in a vehicle.
      * 
@@ -825,6 +961,8 @@ public enum RecordingDeviceType */ public static final int VEHICLE_VALUE = 4; /** + * + * *
      * Speech was recorded outdoors.
      * 
@@ -833,6 +971,8 @@ public enum RecordingDeviceType */ public static final int OTHER_OUTDOOR_DEVICE_VALUE = 5; /** + * + * *
      * Speech was recorded indoors.
      * 
@@ -841,7 +981,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( @@ -866,14 +1005,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; } } @@ -881,29 +1028,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(); @@ -911,8 +1060,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; @@ -932,33 +1080,50 @@ private RecordingDeviceType(int value) { public static final int INTERACTION_TYPE_FIELD_NUMBER = 1; private int interactionType_; /** + * + * *
    * The use case most closely describing the audio content to be recognized.
    * 
* - * .google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType interaction_type = 1; + * .google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType interaction_type = 1; + * + * * @return The enum numeric value on the wire for interactionType. */ - @java.lang.Override public int getInteractionTypeValue() { + @java.lang.Override + public int getInteractionTypeValue() { return interactionType_; } /** + * + * *
    * The use case most closely describing the audio content to be recognized.
    * 
* - * .google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType interaction_type = 1; + * .google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType interaction_type = 1; + * + * * @return The interactionType. */ - @java.lang.Override public com.google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType getInteractionType() { + @java.lang.Override + public com.google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType + getInteractionType() { @SuppressWarnings("deprecation") - com.google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType result = com.google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType.valueOf(interactionType_); - return result == null ? com.google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType.UNRECOGNIZED : result; + com.google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType result = + com.google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType.valueOf( + interactionType_); + return result == null + ? com.google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType.UNRECOGNIZED + : result; } public static final int INDUSTRY_NAICS_CODE_OF_AUDIO_FIELD_NUMBER = 3; private int industryNaicsCodeOfAudio_; /** + * + * *
    * The industry vertical to which this speech recognition request most
    * closely applies. This is most indicative of the topics contained
@@ -967,6 +1132,7 @@ private RecordingDeviceType(int value) {
    * 
* * uint32 industry_naics_code_of_audio = 3; + * * @return The industryNaicsCodeOfAudio. */ @java.lang.Override @@ -977,87 +1143,140 @@ public int getIndustryNaicsCodeOfAudio() { public static final int MICROPHONE_DISTANCE_FIELD_NUMBER = 4; private int microphoneDistance_; /** + * + * *
    * The audio type that most closely describes the audio being recognized.
    * 
* - * .google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance microphone_distance = 4; + * + * .google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance microphone_distance = 4; + * + * * @return The enum numeric value on the wire for microphoneDistance. */ - @java.lang.Override public int getMicrophoneDistanceValue() { + @java.lang.Override + public int getMicrophoneDistanceValue() { return microphoneDistance_; } /** + * + * *
    * The audio type that most closely describes the audio being recognized.
    * 
* - * .google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance microphone_distance = 4; + * + * .google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance microphone_distance = 4; + * + * * @return The microphoneDistance. */ - @java.lang.Override public com.google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance getMicrophoneDistance() { + @java.lang.Override + public com.google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance + getMicrophoneDistance() { @SuppressWarnings("deprecation") - com.google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance result = com.google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance.valueOf(microphoneDistance_); - return result == null ? com.google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance.UNRECOGNIZED : result; + com.google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance result = + com.google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance.valueOf( + microphoneDistance_); + return result == null + ? com.google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance.UNRECOGNIZED + : result; } public static final int ORIGINAL_MEDIA_TYPE_FIELD_NUMBER = 5; private int originalMediaType_; /** + * + * *
    * The original media the speech was recorded on.
    * 
* - * .google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType original_media_type = 5; + * + * .google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType original_media_type = 5; + * + * * @return The enum numeric value on the wire for originalMediaType. */ - @java.lang.Override public int getOriginalMediaTypeValue() { + @java.lang.Override + public int getOriginalMediaTypeValue() { return originalMediaType_; } /** + * + * *
    * The original media the speech was recorded on.
    * 
* - * .google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType original_media_type = 5; + * + * .google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType original_media_type = 5; + * + * * @return The originalMediaType. */ - @java.lang.Override public com.google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType getOriginalMediaType() { + @java.lang.Override + public com.google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType + getOriginalMediaType() { @SuppressWarnings("deprecation") - com.google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType result = com.google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType.valueOf(originalMediaType_); - return result == null ? com.google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType.UNRECOGNIZED : result; + com.google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType result = + com.google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType.valueOf( + originalMediaType_); + return result == null + ? com.google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType.UNRECOGNIZED + : result; } public static final int RECORDING_DEVICE_TYPE_FIELD_NUMBER = 6; private int recordingDeviceType_; /** + * + * *
    * The type of device the speech was recorded with.
    * 
* - * .google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType recording_device_type = 6; + * + * .google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType recording_device_type = 6; + * + * * @return The enum numeric value on the wire for recordingDeviceType. */ - @java.lang.Override public int getRecordingDeviceTypeValue() { + @java.lang.Override + public int getRecordingDeviceTypeValue() { return recordingDeviceType_; } /** + * + * *
    * The type of device the speech was recorded with.
    * 
* - * .google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType recording_device_type = 6; + * + * .google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType recording_device_type = 6; + * + * * @return The recordingDeviceType. */ - @java.lang.Override public com.google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType getRecordingDeviceType() { + @java.lang.Override + public com.google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType + getRecordingDeviceType() { @SuppressWarnings("deprecation") - com.google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType result = com.google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType.valueOf(recordingDeviceType_); - return result == null ? com.google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType.UNRECOGNIZED : result; + com.google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType result = + com.google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType.valueOf( + recordingDeviceType_); + return result == null + ? com.google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType.UNRECOGNIZED + : result; } public static final int RECORDING_DEVICE_NAME_FIELD_NUMBER = 7; private volatile java.lang.Object recordingDeviceName_; /** + * + * *
    * The device used to make the recording.  Examples 'Nexus 5X' or
    * 'Polycom SoundStation IP 6000' or 'POTS' or 'VoIP' or
@@ -1065,6 +1284,7 @@ public int getIndustryNaicsCodeOfAudio() {
    * 
* * string recording_device_name = 7; + * * @return The recordingDeviceName. */ @java.lang.Override @@ -1073,14 +1293,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
@@ -1088,16 +1309,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 { @@ -1108,6 +1328,8 @@ public java.lang.String getRecordingDeviceName() { public static final int ORIGINAL_MIME_TYPE_FIELD_NUMBER = 8; private volatile java.lang.Object originalMimeType_; /** + * + * *
    * Mime type of the original audio file.  For example `audio/m4a`,
    * `audio/x-alaw-basic`, `audio/mp3`, `audio/3gpp`.
@@ -1116,6 +1338,7 @@ public java.lang.String getRecordingDeviceName() {
    * 
* * string original_mime_type = 8; + * * @return The originalMimeType. */ @java.lang.Override @@ -1124,14 +1347,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`.
@@ -1140,16 +1364,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 { @@ -1160,28 +1383,35 @@ public java.lang.String getOriginalMimeType() { public static final int OBFUSCATED_ID_FIELD_NUMBER = 9; private long obfuscatedId_; /** + * + * *
    * Obfuscated (privacy-protected) ID of the user, to identify number of
    * unique users using the service.
    * 
* * int64 obfuscated_id = 9 [deprecated = true]; + * * @return The obfuscatedId. */ @java.lang.Override - @java.lang.Deprecated public long getObfuscatedId() { + @java.lang.Deprecated + public long getObfuscatedId() { return obfuscatedId_; } public static final int AUDIO_TOPIC_FIELD_NUMBER = 10; private volatile java.lang.Object audioTopic_; /** + * + * *
    * Description of the content. Eg. "Recordings of federal supreme court
    * hearings from 2012".
    * 
* * string audio_topic = 10; + * * @return The audioTopic. */ @java.lang.Override @@ -1190,30 +1420,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 { @@ -1222,6 +1452,7 @@ public java.lang.String getAudioTopic() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1233,21 +1464,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_)) { @@ -1271,25 +1513,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_); @@ -1298,8 +1547,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_); @@ -1312,27 +1560,23 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1p1beta1.RecognitionMetadata)) { return super.equals(obj); } - com.google.cloud.speech.v1p1beta1.RecognitionMetadata other = (com.google.cloud.speech.v1p1beta1.RecognitionMetadata) obj; + com.google.cloud.speech.v1p1beta1.RecognitionMetadata other = + (com.google.cloud.speech.v1p1beta1.RecognitionMetadata) obj; if (interactionType_ != other.interactionType_) return false; - if (getIndustryNaicsCodeOfAudio() - != other.getIndustryNaicsCodeOfAudio()) return false; + if (getIndustryNaicsCodeOfAudio() != other.getIndustryNaicsCodeOfAudio()) return false; if (microphoneDistance_ != other.microphoneDistance_) return false; if (originalMediaType_ != other.originalMediaType_) return false; if (recordingDeviceType_ != other.recordingDeviceType_) return false; - if (!getRecordingDeviceName() - .equals(other.getRecordingDeviceName())) return false; - if (!getOriginalMimeType() - .equals(other.getOriginalMimeType())) return false; - if (getObfuscatedId() - != other.getObfuscatedId()) return false; - if (!getAudioTopic() - .equals(other.getAudioTopic())) return false; + if (!getRecordingDeviceName().equals(other.getRecordingDeviceName())) return false; + if (!getOriginalMimeType().equals(other.getOriginalMimeType())) return false; + if (getObfuscatedId() != other.getObfuscatedId()) return false; + if (!getAudioTopic().equals(other.getAudioTopic())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1359,8 +1603,7 @@ public int hashCode() { hash = (37 * hash) + ORIGINAL_MIME_TYPE_FIELD_NUMBER; hash = (53 * hash) + getOriginalMimeType().hashCode(); hash = (37 * hash) + OBFUSCATED_ID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getObfuscatedId()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getObfuscatedId()); hash = (37 * hash) + AUDIO_TOPIC_FIELD_NUMBER; hash = (53 * hash) + getAudioTopic().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); @@ -1369,117 +1612,127 @@ public int hashCode() { } public static com.google.cloud.speech.v1p1beta1.RecognitionMetadata parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.RecognitionMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.RecognitionMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.RecognitionMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.RecognitionMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.RecognitionMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.RecognitionMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1p1beta1.RecognitionMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.RecognitionMetadata parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.RecognitionMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1p1beta1.RecognitionMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.RecognitionMetadata parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.RecognitionMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.RecognitionMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.speech.v1p1beta1.RecognitionMetadata prototype) { + + public static Builder newBuilder( + com.google.cloud.speech.v1p1beta1.RecognitionMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Description of audio data to be recognized.
    * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.RecognitionMetadata} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1p1beta1.RecognitionMetadata) com.google.cloud.speech.v1p1beta1.RecognitionMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_RecognitionMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechProto + .internal_static_google_cloud_speech_v1p1beta1_RecognitionMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_RecognitionMetadata_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechProto + .internal_static_google_cloud_speech_v1p1beta1_RecognitionMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.RecognitionMetadata.class, com.google.cloud.speech.v1p1beta1.RecognitionMetadata.Builder.class); + com.google.cloud.speech.v1p1beta1.RecognitionMetadata.class, + com.google.cloud.speech.v1p1beta1.RecognitionMetadata.Builder.class); } // Construct using com.google.cloud.speech.v1p1beta1.RecognitionMetadata.newBuilder() @@ -1487,16 +1740,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -1522,9 +1774,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 @@ -1543,7 +1795,8 @@ public com.google.cloud.speech.v1p1beta1.RecognitionMetadata build() { @java.lang.Override public com.google.cloud.speech.v1p1beta1.RecognitionMetadata buildPartial() { - com.google.cloud.speech.v1p1beta1.RecognitionMetadata result = new com.google.cloud.speech.v1p1beta1.RecognitionMetadata(this); + com.google.cloud.speech.v1p1beta1.RecognitionMetadata result = + new com.google.cloud.speech.v1p1beta1.RecognitionMetadata(this); result.interactionType_ = interactionType_; result.industryNaicsCodeOfAudio_ = industryNaicsCodeOfAudio_; result.microphoneDistance_ = microphoneDistance_; @@ -1561,38 +1814,39 @@ public com.google.cloud.speech.v1p1beta1.RecognitionMetadata buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.speech.v1p1beta1.RecognitionMetadata) { - return mergeFrom((com.google.cloud.speech.v1p1beta1.RecognitionMetadata)other); + return mergeFrom((com.google.cloud.speech.v1p1beta1.RecognitionMetadata) other); } else { super.mergeFrom(other); return this; @@ -1600,7 +1854,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()); } @@ -1650,7 +1905,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.speech.v1p1beta1.RecognitionMetadata) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.speech.v1p1beta1.RecognitionMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1662,80 +1918,114 @@ public Builder mergeFrom( private int interactionType_ = 0; /** + * + * *
      * The use case most closely describing the audio content to be recognized.
      * 
* - * .google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType interaction_type = 1; + * + * .google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType interaction_type = 1; + * + * * @return The enum numeric value on the wire for interactionType. */ - @java.lang.Override public int getInteractionTypeValue() { + @java.lang.Override + public int getInteractionTypeValue() { return interactionType_; } /** + * + * *
      * The use case most closely describing the audio content to be recognized.
      * 
* - * .google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType interaction_type = 1; + * + * .google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType interaction_type = 1; + * + * * @param value The enum numeric value on the wire for interactionType to set. * @return This builder for chaining. */ public Builder setInteractionTypeValue(int value) { - + interactionType_ = value; onChanged(); return this; } /** + * + * *
      * The use case most closely describing the audio content to be recognized.
      * 
* - * .google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType interaction_type = 1; + * + * .google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType interaction_type = 1; + * + * * @return The interactionType. */ @java.lang.Override - public com.google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType getInteractionType() { + public com.google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType + getInteractionType() { @SuppressWarnings("deprecation") - com.google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType result = com.google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType.valueOf(interactionType_); - return result == null ? com.google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType.UNRECOGNIZED : result; + com.google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType result = + com.google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType.valueOf( + interactionType_); + return result == null + ? com.google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType.UNRECOGNIZED + : result; } /** + * + * *
      * The use case most closely describing the audio content to be recognized.
      * 
* - * .google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType interaction_type = 1; + * + * .google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType interaction_type = 1; + * + * * @param value The interactionType to set. * @return This builder for chaining. */ - public Builder setInteractionType(com.google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType value) { + public Builder setInteractionType( + com.google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType value) { if (value == null) { throw new NullPointerException(); } - + interactionType_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * The use case most closely describing the audio content to be recognized.
      * 
* - * .google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType interaction_type = 1; + * + * .google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType interaction_type = 1; + * + * * @return This builder for chaining. */ public Builder clearInteractionType() { - + interactionType_ = 0; onChanged(); return this; } - private int industryNaicsCodeOfAudio_ ; + private int industryNaicsCodeOfAudio_; /** + * + * *
      * The industry vertical to which this speech recognition request most
      * closely applies. This is most indicative of the topics contained
@@ -1744,6 +2034,7 @@ public Builder clearInteractionType() {
      * 
* * uint32 industry_naics_code_of_audio = 3; + * * @return The industryNaicsCodeOfAudio. */ @java.lang.Override @@ -1751,6 +2042,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
@@ -1759,16 +2052,19 @@ public int getIndustryNaicsCodeOfAudio() {
      * 
* * uint32 industry_naics_code_of_audio = 3; + * * @param value The industryNaicsCodeOfAudio to set. * @return This builder for chaining. */ public Builder setIndustryNaicsCodeOfAudio(int value) { - + industryNaicsCodeOfAudio_ = value; onChanged(); return this; } /** + * + * *
      * The industry vertical to which this speech recognition request most
      * closely applies. This is most indicative of the topics contained
@@ -1777,10 +2073,11 @@ public Builder setIndustryNaicsCodeOfAudio(int value) {
      * 
* * uint32 industry_naics_code_of_audio = 3; + * * @return This builder for chaining. */ public Builder clearIndustryNaicsCodeOfAudio() { - + industryNaicsCodeOfAudio_ = 0; onChanged(); return this; @@ -1788,73 +2085,105 @@ public Builder clearIndustryNaicsCodeOfAudio() { private int microphoneDistance_ = 0; /** + * + * *
      * The audio type that most closely describes the audio being recognized.
      * 
* - * .google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance microphone_distance = 4; + * + * .google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance microphone_distance = 4; + * + * * @return The enum numeric value on the wire for microphoneDistance. */ - @java.lang.Override public int getMicrophoneDistanceValue() { + @java.lang.Override + public int getMicrophoneDistanceValue() { return microphoneDistance_; } /** + * + * *
      * The audio type that most closely describes the audio being recognized.
      * 
* - * .google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance microphone_distance = 4; + * + * .google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance microphone_distance = 4; + * + * * @param value The enum numeric value on the wire for microphoneDistance to set. * @return This builder for chaining. */ public Builder setMicrophoneDistanceValue(int value) { - + microphoneDistance_ = value; onChanged(); return this; } /** + * + * *
      * The audio type that most closely describes the audio being recognized.
      * 
* - * .google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance microphone_distance = 4; + * + * .google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance microphone_distance = 4; + * + * * @return The microphoneDistance. */ @java.lang.Override - public com.google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance getMicrophoneDistance() { + public com.google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance + getMicrophoneDistance() { @SuppressWarnings("deprecation") - com.google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance result = com.google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance.valueOf(microphoneDistance_); - return result == null ? com.google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance.UNRECOGNIZED : result; + com.google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance result = + com.google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance.valueOf( + microphoneDistance_); + return result == null + ? com.google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance.UNRECOGNIZED + : result; } /** + * + * *
      * The audio type that most closely describes the audio being recognized.
      * 
* - * .google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance microphone_distance = 4; + * + * .google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance microphone_distance = 4; + * + * * @param value The microphoneDistance to set. * @return This builder for chaining. */ - public Builder setMicrophoneDistance(com.google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance value) { + public Builder setMicrophoneDistance( + com.google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance value) { if (value == null) { throw new NullPointerException(); } - + microphoneDistance_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * The audio type that most closely describes the audio being recognized.
      * 
* - * .google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance microphone_distance = 4; + * + * .google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance microphone_distance = 4; + * + * * @return This builder for chaining. */ public Builder clearMicrophoneDistance() { - + microphoneDistance_ = 0; onChanged(); return this; @@ -1862,73 +2191,105 @@ public Builder clearMicrophoneDistance() { private int originalMediaType_ = 0; /** + * + * *
      * The original media the speech was recorded on.
      * 
* - * .google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType original_media_type = 5; + * + * .google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType original_media_type = 5; + * + * * @return The enum numeric value on the wire for originalMediaType. */ - @java.lang.Override public int getOriginalMediaTypeValue() { + @java.lang.Override + public int getOriginalMediaTypeValue() { return originalMediaType_; } /** + * + * *
      * The original media the speech was recorded on.
      * 
* - * .google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType original_media_type = 5; + * + * .google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType original_media_type = 5; + * + * * @param value The enum numeric value on the wire for originalMediaType to set. * @return This builder for chaining. */ public Builder setOriginalMediaTypeValue(int value) { - + originalMediaType_ = value; onChanged(); return this; } /** + * + * *
      * The original media the speech was recorded on.
      * 
* - * .google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType original_media_type = 5; + * + * .google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType original_media_type = 5; + * + * * @return The originalMediaType. */ @java.lang.Override - public com.google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType getOriginalMediaType() { + public com.google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType + getOriginalMediaType() { @SuppressWarnings("deprecation") - com.google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType result = com.google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType.valueOf(originalMediaType_); - return result == null ? com.google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType.UNRECOGNIZED : result; + com.google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType result = + com.google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType.valueOf( + originalMediaType_); + return result == null + ? com.google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType.UNRECOGNIZED + : result; } /** + * + * *
      * The original media the speech was recorded on.
      * 
* - * .google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType original_media_type = 5; + * + * .google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType original_media_type = 5; + * + * * @param value The originalMediaType to set. * @return This builder for chaining. */ - public Builder setOriginalMediaType(com.google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType value) { + public Builder setOriginalMediaType( + com.google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType value) { if (value == null) { throw new NullPointerException(); } - + originalMediaType_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * The original media the speech was recorded on.
      * 
* - * .google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType original_media_type = 5; + * + * .google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType original_media_type = 5; + * + * * @return This builder for chaining. */ public Builder clearOriginalMediaType() { - + originalMediaType_ = 0; onChanged(); return this; @@ -1936,73 +2297,105 @@ public Builder clearOriginalMediaType() { private int recordingDeviceType_ = 0; /** + * + * *
      * The type of device the speech was recorded with.
      * 
* - * .google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType recording_device_type = 6; + * + * .google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType recording_device_type = 6; + * + * * @return The enum numeric value on the wire for recordingDeviceType. */ - @java.lang.Override public int getRecordingDeviceTypeValue() { + @java.lang.Override + public int getRecordingDeviceTypeValue() { return recordingDeviceType_; } /** + * + * *
      * The type of device the speech was recorded with.
      * 
* - * .google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType recording_device_type = 6; + * + * .google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType recording_device_type = 6; + * + * * @param value The enum numeric value on the wire for recordingDeviceType to set. * @return This builder for chaining. */ public Builder setRecordingDeviceTypeValue(int value) { - + recordingDeviceType_ = value; onChanged(); return this; } /** + * + * *
      * The type of device the speech was recorded with.
      * 
* - * .google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType recording_device_type = 6; + * + * .google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType recording_device_type = 6; + * + * * @return The recordingDeviceType. */ @java.lang.Override - public com.google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType getRecordingDeviceType() { + public com.google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType + getRecordingDeviceType() { @SuppressWarnings("deprecation") - com.google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType result = com.google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType.valueOf(recordingDeviceType_); - return result == null ? com.google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType.UNRECOGNIZED : result; + com.google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType result = + com.google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType.valueOf( + recordingDeviceType_); + return result == null + ? com.google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType.UNRECOGNIZED + : result; } /** + * + * *
      * The type of device the speech was recorded with.
      * 
* - * .google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType recording_device_type = 6; + * + * .google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType recording_device_type = 6; + * + * * @param value The recordingDeviceType to set. * @return This builder for chaining. */ - public Builder setRecordingDeviceType(com.google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType value) { + public Builder setRecordingDeviceType( + com.google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType value) { if (value == null) { throw new NullPointerException(); } - + recordingDeviceType_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * The type of device the speech was recorded with.
      * 
* - * .google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType recording_device_type = 6; + * + * .google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType recording_device_type = 6; + * + * * @return This builder for chaining. */ public Builder clearRecordingDeviceType() { - + recordingDeviceType_ = 0; onChanged(); return this; @@ -2010,6 +2403,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
@@ -2017,13 +2412,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; @@ -2032,6 +2427,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
@@ -2039,15 +2436,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 { @@ -2055,6 +2451,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
@@ -2062,20 +2460,22 @@ public java.lang.String getRecordingDeviceName() {
      * 
* * string recording_device_name = 7; + * * @param value The recordingDeviceName to set. * @return This builder for chaining. */ - public Builder setRecordingDeviceName( - java.lang.String value) { + public Builder setRecordingDeviceName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + recordingDeviceName_ = value; onChanged(); return this; } /** + * + * *
      * The device used to make the recording.  Examples 'Nexus 5X' or
      * 'Polycom SoundStation IP 6000' or 'POTS' or 'VoIP' or
@@ -2083,15 +2483,18 @@ public Builder setRecordingDeviceName(
      * 
* * string recording_device_name = 7; + * * @return This builder for chaining. */ public Builder clearRecordingDeviceName() { - + recordingDeviceName_ = getDefaultInstance().getRecordingDeviceName(); onChanged(); return this; } /** + * + * *
      * The device used to make the recording.  Examples 'Nexus 5X' or
      * 'Polycom SoundStation IP 6000' or 'POTS' or 'VoIP' or
@@ -2099,16 +2502,16 @@ public Builder clearRecordingDeviceName() {
      * 
* * string recording_device_name = 7; + * * @param value The bytes for recordingDeviceName to set. * @return This builder for chaining. */ - public Builder setRecordingDeviceNameBytes( - com.google.protobuf.ByteString value) { + public Builder setRecordingDeviceNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + recordingDeviceName_ = value; onChanged(); return this; @@ -2116,6 +2519,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`.
@@ -2124,13 +2529,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; @@ -2139,6 +2544,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`.
@@ -2147,15 +2554,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 { @@ -2163,6 +2569,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`.
@@ -2171,20 +2579,22 @@ public java.lang.String getOriginalMimeType() {
      * 
* * string original_mime_type = 8; + * * @param value The originalMimeType to set. * @return This builder for chaining. */ - public Builder setOriginalMimeType( - java.lang.String value) { + public Builder setOriginalMimeType(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + originalMimeType_ = value; onChanged(); return this; } /** + * + * *
      * Mime type of the original audio file.  For example `audio/m4a`,
      * `audio/x-alaw-basic`, `audio/mp3`, `audio/3gpp`.
@@ -2193,15 +2603,18 @@ public Builder setOriginalMimeType(
      * 
* * string original_mime_type = 8; + * * @return This builder for chaining. */ public Builder clearOriginalMimeType() { - + originalMimeType_ = getDefaultInstance().getOriginalMimeType(); onChanged(); return this; } /** + * + * *
      * Mime type of the original audio file.  For example `audio/m4a`,
      * `audio/x-alaw-basic`, `audio/mp3`, `audio/3gpp`.
@@ -2210,62 +2623,74 @@ public Builder clearOriginalMimeType() {
      * 
* * string original_mime_type = 8; + * * @param value The bytes for originalMimeType to set. * @return This builder for chaining. */ - public Builder setOriginalMimeTypeBytes( - com.google.protobuf.ByteString value) { + public Builder setOriginalMimeTypeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + originalMimeType_ = value; onChanged(); return this; } - private long obfuscatedId_ ; + private long obfuscatedId_; /** + * + * *
      * Obfuscated (privacy-protected) ID of the user, to identify number of
      * unique users using the service.
      * 
* * int64 obfuscated_id = 9 [deprecated = true]; + * * @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]; + * * @param value The obfuscatedId to set. * @return This builder for chaining. */ - @java.lang.Deprecated public Builder setObfuscatedId(long value) { - + @java.lang.Deprecated + public Builder setObfuscatedId(long value) { + obfuscatedId_ = value; onChanged(); return this; } /** + * + * *
      * Obfuscated (privacy-protected) ID of the user, to identify number of
      * unique users using the service.
      * 
* * int64 obfuscated_id = 9 [deprecated = true]; + * * @return This builder for chaining. */ - @java.lang.Deprecated public Builder clearObfuscatedId() { - + @java.lang.Deprecated + public Builder clearObfuscatedId() { + obfuscatedId_ = 0L; onChanged(); return this; @@ -2273,19 +2698,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; @@ -2294,21 +2721,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 { @@ -2316,64 +2744,71 @@ public java.lang.String getAudioTopic() { } } /** + * + * *
      * Description of the content. Eg. "Recordings of federal supreme court
      * hearings from 2012".
      * 
* * string audio_topic = 10; + * * @param value The audioTopic to set. * @return This builder for chaining. */ - public Builder setAudioTopic( - java.lang.String value) { + public Builder setAudioTopic(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + audioTopic_ = value; onChanged(); return this; } /** + * + * *
      * Description of the content. Eg. "Recordings of federal supreme court
      * hearings from 2012".
      * 
* * string audio_topic = 10; + * * @return This builder for chaining. */ public Builder clearAudioTopic() { - + audioTopic_ = getDefaultInstance().getAudioTopic(); onChanged(); return this; } /** + * + * *
      * Description of the content. Eg. "Recordings of federal supreme court
      * hearings from 2012".
      * 
* * string audio_topic = 10; + * * @param value The bytes for audioTopic to set. * @return This builder for chaining. */ - public Builder setAudioTopicBytes( - com.google.protobuf.ByteString value) { + public Builder setAudioTopicBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + audioTopic_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2383,12 +2818,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(); } @@ -2397,16 +2832,16 @@ public static com.google.cloud.speech.v1p1beta1.RecognitionMetadata getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RecognitionMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new RecognitionMetadata(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RecognitionMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RecognitionMetadata(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2421,6 +2856,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.RecognitionMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionMetadataOrBuilder.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionMetadataOrBuilder.java similarity index 70% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionMetadataOrBuilder.java rename to proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionMetadataOrBuilder.java index f108bbf44..463ce17b9 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionMetadataOrBuilder.java +++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionMetadataOrBuilder.java @@ -1,32 +1,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/v1p1beta1/cloud_speech.proto package com.google.cloud.speech.v1p1beta1; -public interface RecognitionMetadataOrBuilder extends +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 +61,102 @@ public interface RecognitionMetadataOrBuilder extends
    * 
* * 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 +164,13 @@ public interface RecognitionMetadataOrBuilder extends
    * 
* * 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 +178,14 @@ public interface RecognitionMetadataOrBuilder extends
    * 
* * 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 +194,13 @@ public interface RecognitionMetadataOrBuilder extends
    * 
* * 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,41 +209,50 @@ public interface RecognitionMetadataOrBuilder extends
    * 
* * 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]; + * * @return The obfuscatedId. */ - @java.lang.Deprecated long getObfuscatedId(); + @java.lang.Deprecated + long getObfuscatedId(); /** + * + * *
    * Description of the content. Eg. "Recordings of federal supreme court
    * hearings from 2012".
    * 
* * string audio_topic = 10; + * * @return The audioTopic. */ java.lang.String getAudioTopic(); /** + * + * *
    * Description of the content. Eg. "Recordings of federal supreme court
    * hearings from 2012".
    * 
* * string audio_topic = 10; + * * @return The bytes for audioTopic. */ - com.google.protobuf.ByteString - getAudioTopicBytes(); + com.google.protobuf.ByteString getAudioTopicBytes(); } diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeRequest.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeRequest.java similarity index 61% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeRequest.java rename to proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeRequest.java index d72b823cf..24dc5f5a2 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeRequest.java +++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeRequest.java @@ -1,39 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech.proto package com.google.cloud.speech.v1p1beta1; /** + * + * *
  * The top-level message sent by the client for the `Recognize` method.
  * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.RecognizeRequest} */ -public final class RecognizeRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class RecognizeRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v1p1beta1.RecognizeRequest) RecognizeRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use RecognizeRequest.newBuilder() to construct. private RecognizeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private RecognizeRequest() { - } + + private RecognizeRequest() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new RecognizeRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private RecognizeRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,73 +68,88 @@ private RecognizeRequest( case 0: done = true; break; - case 10: { - com.google.cloud.speech.v1p1beta1.RecognitionConfig.Builder subBuilder = null; - if (config_ != null) { - subBuilder = config_.toBuilder(); - } - config_ = input.readMessage(com.google.cloud.speech.v1p1beta1.RecognitionConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(config_); - config_ = subBuilder.buildPartial(); - } + case 10: + { + com.google.cloud.speech.v1p1beta1.RecognitionConfig.Builder subBuilder = null; + if (config_ != null) { + subBuilder = config_.toBuilder(); + } + config_ = + input.readMessage( + com.google.cloud.speech.v1p1beta1.RecognitionConfig.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(config_); + config_ = subBuilder.buildPartial(); + } - break; - } - case 18: { - com.google.cloud.speech.v1p1beta1.RecognitionAudio.Builder subBuilder = null; - if (audio_ != null) { - subBuilder = audio_.toBuilder(); - } - audio_ = input.readMessage(com.google.cloud.speech.v1p1beta1.RecognitionAudio.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(audio_); - audio_ = subBuilder.buildPartial(); + break; } + case 18: + { + com.google.cloud.speech.v1p1beta1.RecognitionAudio.Builder subBuilder = null; + if (audio_ != null) { + subBuilder = audio_.toBuilder(); + } + audio_ = + input.readMessage( + com.google.cloud.speech.v1p1beta1.RecognitionAudio.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(audio_); + audio_ = subBuilder.buildPartial(); + } - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_RecognizeRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechProto + .internal_static_google_cloud_speech_v1p1beta1_RecognizeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_RecognizeRequest_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechProto + .internal_static_google_cloud_speech_v1p1beta1_RecognizeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.RecognizeRequest.class, com.google.cloud.speech.v1p1beta1.RecognizeRequest.Builder.class); + com.google.cloud.speech.v1p1beta1.RecognizeRequest.class, + com.google.cloud.speech.v1p1beta1.RecognizeRequest.Builder.class); } public static final int CONFIG_FIELD_NUMBER = 1; private com.google.cloud.speech.v1p1beta1.RecognitionConfig config_; /** + * + * *
    * Required. Provides information to the recognizer that specifies how to
    * process the request.
    * 
* - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the config field is set. */ @java.lang.Override @@ -126,25 +157,36 @@ public boolean hasConfig() { return config_ != null; } /** + * + * *
    * Required. Provides information to the recognizer that specifies how to
    * process the request.
    * 
* - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The config. */ @java.lang.Override public com.google.cloud.speech.v1p1beta1.RecognitionConfig getConfig() { - return config_ == null ? com.google.cloud.speech.v1p1beta1.RecognitionConfig.getDefaultInstance() : config_; + return config_ == null + ? com.google.cloud.speech.v1p1beta1.RecognitionConfig.getDefaultInstance() + : config_; } /** + * + * *
    * Required. Provides information to the recognizer that specifies how to
    * process the request.
    * 
* - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.speech.v1p1beta1.RecognitionConfigOrBuilder getConfigOrBuilder() { @@ -154,11 +196,16 @@ public com.google.cloud.speech.v1p1beta1.RecognitionConfigOrBuilder getConfigOrB public static final int AUDIO_FIELD_NUMBER = 2; private com.google.cloud.speech.v1p1beta1.RecognitionAudio audio_; /** + * + * *
    * Required. The audio data to be recognized.
    * 
* - * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the audio field is set. */ @java.lang.Override @@ -166,23 +213,34 @@ public boolean hasAudio() { return audio_ != null; } /** + * + * *
    * Required. The audio data to be recognized.
    * 
* - * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The audio. */ @java.lang.Override public com.google.cloud.speech.v1p1beta1.RecognitionAudio getAudio() { - return audio_ == null ? com.google.cloud.speech.v1p1beta1.RecognitionAudio.getDefaultInstance() : audio_; + return audio_ == null + ? com.google.cloud.speech.v1p1beta1.RecognitionAudio.getDefaultInstance() + : audio_; } /** + * + * *
    * Required. The audio data to be recognized.
    * 
* - * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.speech.v1p1beta1.RecognitionAudioOrBuilder getAudioOrBuilder() { @@ -190,6 +248,7 @@ public com.google.cloud.speech.v1p1beta1.RecognitionAudioOrBuilder getAudioOrBui } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -201,8 +260,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (config_ != null) { output.writeMessage(1, getConfig()); } @@ -219,12 +277,10 @@ public int getSerializedSize() { size = 0; if (config_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getConfig()); } if (audio_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getAudio()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getAudio()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -234,22 +290,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1p1beta1.RecognizeRequest)) { return super.equals(obj); } - com.google.cloud.speech.v1p1beta1.RecognizeRequest other = (com.google.cloud.speech.v1p1beta1.RecognizeRequest) obj; + com.google.cloud.speech.v1p1beta1.RecognizeRequest other = + (com.google.cloud.speech.v1p1beta1.RecognizeRequest) obj; if (hasConfig() != other.hasConfig()) return false; if (hasConfig()) { - if (!getConfig() - .equals(other.getConfig())) return false; + if (!getConfig().equals(other.getConfig())) return false; } if (hasAudio() != other.hasAudio()) return false; if (hasAudio()) { - if (!getAudio() - .equals(other.getAudio())) return false; + if (!getAudio().equals(other.getAudio())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -276,117 +331,126 @@ public int hashCode() { } public static com.google.cloud.speech.v1p1beta1.RecognizeRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.RecognizeRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.RecognizeRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.RecognizeRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.RecognizeRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.RecognizeRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.RecognizeRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1p1beta1.RecognizeRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.RecognizeRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.RecognizeRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1p1beta1.RecognizeRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.RecognizeRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.RecognizeRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.RecognizeRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.speech.v1p1beta1.RecognizeRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The top-level message sent by the client for the `Recognize` method.
    * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.RecognizeRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1p1beta1.RecognizeRequest) com.google.cloud.speech.v1p1beta1.RecognizeRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_RecognizeRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechProto + .internal_static_google_cloud_speech_v1p1beta1_RecognizeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_RecognizeRequest_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechProto + .internal_static_google_cloud_speech_v1p1beta1_RecognizeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.RecognizeRequest.class, com.google.cloud.speech.v1p1beta1.RecognizeRequest.Builder.class); + com.google.cloud.speech.v1p1beta1.RecognizeRequest.class, + com.google.cloud.speech.v1p1beta1.RecognizeRequest.Builder.class); } // Construct using com.google.cloud.speech.v1p1beta1.RecognizeRequest.newBuilder() @@ -394,16 +458,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -423,9 +486,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 @@ -444,7 +507,8 @@ public com.google.cloud.speech.v1p1beta1.RecognizeRequest build() { @java.lang.Override public com.google.cloud.speech.v1p1beta1.RecognizeRequest buildPartial() { - com.google.cloud.speech.v1p1beta1.RecognizeRequest result = new com.google.cloud.speech.v1p1beta1.RecognizeRequest(this); + com.google.cloud.speech.v1p1beta1.RecognizeRequest result = + new com.google.cloud.speech.v1p1beta1.RecognizeRequest(this); if (configBuilder_ == null) { result.config_ = config_; } else { @@ -463,38 +527,39 @@ public com.google.cloud.speech.v1p1beta1.RecognizeRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.speech.v1p1beta1.RecognizeRequest) { - return mergeFrom((com.google.cloud.speech.v1p1beta1.RecognizeRequest)other); + return mergeFrom((com.google.cloud.speech.v1p1beta1.RecognizeRequest) other); } else { super.mergeFrom(other); return this; @@ -502,7 +567,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()); } @@ -528,7 +594,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.speech.v1p1beta1.RecognizeRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.speech.v1p1beta1.RecognizeRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -540,42 +607,61 @@ public Builder mergeFrom( private com.google.cloud.speech.v1p1beta1.RecognitionConfig config_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.RecognitionConfig, com.google.cloud.speech.v1p1beta1.RecognitionConfig.Builder, com.google.cloud.speech.v1p1beta1.RecognitionConfigOrBuilder> configBuilder_; + com.google.cloud.speech.v1p1beta1.RecognitionConfig, + com.google.cloud.speech.v1p1beta1.RecognitionConfig.Builder, + com.google.cloud.speech.v1p1beta1.RecognitionConfigOrBuilder> + configBuilder_; /** + * + * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the config field is set. */ public boolean hasConfig() { return configBuilder_ != null || config_ != null; } /** + * + * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The config. */ public com.google.cloud.speech.v1p1beta1.RecognitionConfig getConfig() { if (configBuilder_ == null) { - return config_ == null ? com.google.cloud.speech.v1p1beta1.RecognitionConfig.getDefaultInstance() : config_; + return config_ == null + ? com.google.cloud.speech.v1p1beta1.RecognitionConfig.getDefaultInstance() + : config_; } else { return configBuilder_.getMessage(); } } /** + * + * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setConfig(com.google.cloud.speech.v1p1beta1.RecognitionConfig value) { if (configBuilder_ == null) { @@ -591,12 +677,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) { @@ -610,18 +700,24 @@ public Builder setConfig( return this; } /** + * + * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeConfig(com.google.cloud.speech.v1p1beta1.RecognitionConfig value) { if (configBuilder_ == null) { if (config_ != null) { config_ = - com.google.cloud.speech.v1p1beta1.RecognitionConfig.newBuilder(config_).mergeFrom(value).buildPartial(); + com.google.cloud.speech.v1p1beta1.RecognitionConfig.newBuilder(config_) + .mergeFrom(value) + .buildPartial(); } else { config_ = value; } @@ -633,12 +729,16 @@ public Builder mergeConfig(com.google.cloud.speech.v1p1beta1.RecognitionConfig v return this; } /** + * + * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearConfig() { if (configBuilder_ == null) { @@ -652,51 +752,67 @@ public Builder clearConfig() { return this; } /** + * + * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.speech.v1p1beta1.RecognitionConfig.Builder getConfigBuilder() { - + onChanged(); return getConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.speech.v1p1beta1.RecognitionConfigOrBuilder getConfigOrBuilder() { if (configBuilder_ != null) { return configBuilder_.getMessageOrBuilder(); } else { - return config_ == null ? - com.google.cloud.speech.v1p1beta1.RecognitionConfig.getDefaultInstance() : config_; + return config_ == null + ? com.google.cloud.speech.v1p1beta1.RecognitionConfig.getDefaultInstance() + : config_; } } /** + * + * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.RecognitionConfig, com.google.cloud.speech.v1p1beta1.RecognitionConfig.Builder, com.google.cloud.speech.v1p1beta1.RecognitionConfigOrBuilder> + com.google.cloud.speech.v1p1beta1.RecognitionConfig, + com.google.cloud.speech.v1p1beta1.RecognitionConfig.Builder, + com.google.cloud.speech.v1p1beta1.RecognitionConfigOrBuilder> getConfigFieldBuilder() { if (configBuilder_ == null) { - configBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.RecognitionConfig, com.google.cloud.speech.v1p1beta1.RecognitionConfig.Builder, com.google.cloud.speech.v1p1beta1.RecognitionConfigOrBuilder>( - getConfig(), - getParentForChildren(), - isClean()); + configBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v1p1beta1.RecognitionConfig, + com.google.cloud.speech.v1p1beta1.RecognitionConfig.Builder, + com.google.cloud.speech.v1p1beta1.RecognitionConfigOrBuilder>( + getConfig(), getParentForChildren(), isClean()); config_ = null; } return configBuilder_; @@ -704,39 +820,58 @@ public com.google.cloud.speech.v1p1beta1.RecognitionConfigOrBuilder getConfigOrB private com.google.cloud.speech.v1p1beta1.RecognitionAudio audio_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.RecognitionAudio, com.google.cloud.speech.v1p1beta1.RecognitionAudio.Builder, com.google.cloud.speech.v1p1beta1.RecognitionAudioOrBuilder> audioBuilder_; + com.google.cloud.speech.v1p1beta1.RecognitionAudio, + com.google.cloud.speech.v1p1beta1.RecognitionAudio.Builder, + com.google.cloud.speech.v1p1beta1.RecognitionAudioOrBuilder> + audioBuilder_; /** + * + * *
      * Required. The audio data to be recognized.
      * 
* - * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the audio field is set. */ public boolean hasAudio() { return audioBuilder_ != null || audio_ != null; } /** + * + * *
      * Required. The audio data to be recognized.
      * 
* - * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The audio. */ public com.google.cloud.speech.v1p1beta1.RecognitionAudio getAudio() { if (audioBuilder_ == null) { - return audio_ == null ? com.google.cloud.speech.v1p1beta1.RecognitionAudio.getDefaultInstance() : audio_; + return audio_ == null + ? com.google.cloud.speech.v1p1beta1.RecognitionAudio.getDefaultInstance() + : audio_; } else { return audioBuilder_.getMessage(); } } /** + * + * *
      * Required. The audio data to be recognized.
      * 
* - * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setAudio(com.google.cloud.speech.v1p1beta1.RecognitionAudio value) { if (audioBuilder_ == null) { @@ -752,11 +887,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) { @@ -770,17 +909,23 @@ public Builder setAudio( return this; } /** + * + * *
      * Required. The audio data to be recognized.
      * 
* - * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeAudio(com.google.cloud.speech.v1p1beta1.RecognitionAudio value) { if (audioBuilder_ == null) { if (audio_ != null) { audio_ = - com.google.cloud.speech.v1p1beta1.RecognitionAudio.newBuilder(audio_).mergeFrom(value).buildPartial(); + com.google.cloud.speech.v1p1beta1.RecognitionAudio.newBuilder(audio_) + .mergeFrom(value) + .buildPartial(); } else { audio_ = value; } @@ -792,11 +937,15 @@ public Builder mergeAudio(com.google.cloud.speech.v1p1beta1.RecognitionAudio val return this; } /** + * + * *
      * Required. The audio data to be recognized.
      * 
* - * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearAudio() { if (audioBuilder_ == null) { @@ -810,55 +959,71 @@ public Builder clearAudio() { return this; } /** + * + * *
      * Required. The audio data to be recognized.
      * 
* - * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.speech.v1p1beta1.RecognitionAudio.Builder getAudioBuilder() { - + onChanged(); return getAudioFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The audio data to be recognized.
      * 
* - * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.speech.v1p1beta1.RecognitionAudioOrBuilder getAudioOrBuilder() { if (audioBuilder_ != null) { return audioBuilder_.getMessageOrBuilder(); } else { - return audio_ == null ? - com.google.cloud.speech.v1p1beta1.RecognitionAudio.getDefaultInstance() : audio_; + return audio_ == null + ? com.google.cloud.speech.v1p1beta1.RecognitionAudio.getDefaultInstance() + : audio_; } } /** + * + * *
      * Required. The audio data to be recognized.
      * 
* - * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.RecognitionAudio, com.google.cloud.speech.v1p1beta1.RecognitionAudio.Builder, com.google.cloud.speech.v1p1beta1.RecognitionAudioOrBuilder> + com.google.cloud.speech.v1p1beta1.RecognitionAudio, + com.google.cloud.speech.v1p1beta1.RecognitionAudio.Builder, + com.google.cloud.speech.v1p1beta1.RecognitionAudioOrBuilder> getAudioFieldBuilder() { if (audioBuilder_ == null) { - audioBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.RecognitionAudio, com.google.cloud.speech.v1p1beta1.RecognitionAudio.Builder, com.google.cloud.speech.v1p1beta1.RecognitionAudioOrBuilder>( - getAudio(), - getParentForChildren(), - isClean()); + audioBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v1p1beta1.RecognitionAudio, + com.google.cloud.speech.v1p1beta1.RecognitionAudio.Builder, + com.google.cloud.speech.v1p1beta1.RecognitionAudioOrBuilder>( + getAudio(), getParentForChildren(), isClean()); audio_ = null; } return audioBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -868,12 +1033,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(); } @@ -882,16 +1047,16 @@ public static com.google.cloud.speech.v1p1beta1.RecognizeRequest getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RecognizeRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new RecognizeRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RecognizeRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RecognizeRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -906,6 +1071,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.RecognizeRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeRequestOrBuilder.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeRequestOrBuilder.java new file mode 100644 index 000000000..2f3e881fd --- /dev/null +++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeRequestOrBuilder.java @@ -0,0 +1,110 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/speech/v1p1beta1/cloud_speech.proto + +package com.google.cloud.speech.v1p1beta1; + +public interface RecognizeRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1p1beta1.RecognizeRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Provides information to the recognizer that specifies how to
+   * process the request.
+   * 
+ * + * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the config field is set. + */ + boolean hasConfig(); + /** + * + * + *
+   * Required. Provides information to the recognizer that specifies how to
+   * process the request.
+   * 
+ * + * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The config. + */ + com.google.cloud.speech.v1p1beta1.RecognitionConfig getConfig(); + /** + * + * + *
+   * Required. Provides information to the recognizer that specifies how to
+   * process the request.
+   * 
+ * + * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.speech.v1p1beta1.RecognitionConfigOrBuilder getConfigOrBuilder(); + + /** + * + * + *
+   * Required. The audio data to be recognized.
+   * 
+ * + * + * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the audio field is set. + */ + boolean hasAudio(); + /** + * + * + *
+   * Required. The audio data to be recognized.
+   * 
+ * + * + * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The audio. + */ + com.google.cloud.speech.v1p1beta1.RecognitionAudio getAudio(); + /** + * + * + *
+   * Required. The audio data to be recognized.
+   * 
+ * + * + * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.speech.v1p1beta1.RecognitionAudioOrBuilder getAudioOrBuilder(); +} diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeResponse.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeResponse.java similarity index 73% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeResponse.java rename to proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeResponse.java index 5f3c35418..6da45b951 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeResponse.java +++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeResponse.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech.proto package com.google.cloud.speech.v1p1beta1; /** + * + * *
  * The only message returned to the client by the `Recognize` method. It
  * contains the result as zero or more sequential `SpeechRecognitionResult`
@@ -12,31 +29,31 @@
  *
  * Protobuf type {@code google.cloud.speech.v1p1beta1.RecognizeResponse}
  */
-public final class RecognizeResponse extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class RecognizeResponse extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.speech.v1p1beta1.RecognizeResponse)
     RecognizeResponseOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use RecognizeResponse.newBuilder() to construct.
   private RecognizeResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private RecognizeResponse() {
     results_ = java.util.Collections.emptyList();
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new RecognizeResponse();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private RecognizeResponse(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -56,42 +73,48 @@ private RecognizeResponse(
           case 0:
             done = true;
             break;
-          case 18: {
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              results_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000001;
-            }
-            results_.add(
-                input.readMessage(com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult.parser(), extensionRegistry));
-            break;
-          }
-          case 26: {
-            com.google.protobuf.Duration.Builder subBuilder = null;
-            if (totalBilledTime_ != null) {
-              subBuilder = totalBilledTime_.toBuilder();
-            }
-            totalBilledTime_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(totalBilledTime_);
-              totalBilledTime_ = subBuilder.buildPartial();
+          case 18:
+            {
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                results_ =
+                    new java.util.ArrayList<
+                        com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult>();
+                mutable_bitField0_ |= 0x00000001;
+              }
+              results_.add(
+                  input.readMessage(
+                      com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult.parser(),
+                      extensionRegistry));
+              break;
             }
+          case 26:
+            {
+              com.google.protobuf.Duration.Builder subBuilder = null;
+              if (totalBilledTime_ != null) {
+                subBuilder = totalBilledTime_.toBuilder();
+              }
+              totalBilledTime_ =
+                  input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(totalBilledTime_);
+                totalBilledTime_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         results_ = java.util.Collections.unmodifiableList(results_);
@@ -100,22 +123,27 @@ private RecognizeResponse(
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_RecognizeResponse_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.speech.v1p1beta1.SpeechProto
+        .internal_static_google_cloud_speech_v1p1beta1_RecognizeResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_RecognizeResponse_fieldAccessorTable
+    return com.google.cloud.speech.v1p1beta1.SpeechProto
+        .internal_static_google_cloud_speech_v1p1beta1_RecognizeResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v1p1beta1.RecognizeResponse.class, com.google.cloud.speech.v1p1beta1.RecognizeResponse.Builder.class);
+            com.google.cloud.speech.v1p1beta1.RecognizeResponse.class,
+            com.google.cloud.speech.v1p1beta1.RecognizeResponse.Builder.class);
   }
 
   public static final int RESULTS_FIELD_NUMBER = 2;
   private java.util.List results_;
   /**
+   *
+   *
    * 
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -124,10 +152,13 @@ private RecognizeResponse(
    * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionResult results = 2;
    */
   @java.lang.Override
-  public java.util.List getResultsList() {
+  public java.util.List
+      getResultsList() {
     return results_;
   }
   /**
+   *
+   *
    * 
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -136,11 +167,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.
@@ -153,6 +187,8 @@ public int getResultsCount() {
     return results_.size();
   }
   /**
+   *
+   *
    * 
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -165,6 +201,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.
@@ -181,11 +219,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 @@ -193,18 +234,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.
    * 
@@ -217,6 +265,7 @@ public com.google.protobuf.DurationOrBuilder getTotalBilledTimeOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -228,8 +277,7 @@ public final boolean isInitialized() { } @java.lang.Override - 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)); } @@ -246,12 +294,10 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < results_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, results_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, results_.get(i)); } if (totalBilledTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getTotalBilledTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getTotalBilledTime()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -261,19 +307,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1p1beta1.RecognizeResponse)) { return super.equals(obj); } - com.google.cloud.speech.v1p1beta1.RecognizeResponse other = (com.google.cloud.speech.v1p1beta1.RecognizeResponse) obj; + com.google.cloud.speech.v1p1beta1.RecognizeResponse other = + (com.google.cloud.speech.v1p1beta1.RecognizeResponse) obj; - if (!getResultsList() - .equals(other.getResultsList())) return false; + if (!getResultsList().equals(other.getResultsList())) return false; if (hasTotalBilledTime() != other.hasTotalBilledTime()) return false; if (hasTotalBilledTime()) { - if (!getTotalBilledTime() - .equals(other.getTotalBilledTime())) return false; + if (!getTotalBilledTime().equals(other.getTotalBilledTime())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -300,96 +345,103 @@ public int hashCode() { } public static com.google.cloud.speech.v1p1beta1.RecognizeResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.RecognizeResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.RecognizeResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.RecognizeResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.RecognizeResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.RecognizeResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.RecognizeResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1p1beta1.RecognizeResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.RecognizeResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.RecognizeResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1p1beta1.RecognizeResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.RecognizeResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.RecognizeResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.RecognizeResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.speech.v1p1beta1.RecognizeResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The only message returned to the client by the `Recognize` method. It
    * contains the result as zero or more sequential `SpeechRecognitionResult`
@@ -398,21 +450,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.speech.v1p1beta1.RecognizeResponse}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1p1beta1.RecognizeResponse)
       com.google.cloud.speech.v1p1beta1.RecognizeResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_RecognizeResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.speech.v1p1beta1.SpeechProto
+          .internal_static_google_cloud_speech_v1p1beta1_RecognizeResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_RecognizeResponse_fieldAccessorTable
+      return com.google.cloud.speech.v1p1beta1.SpeechProto
+          .internal_static_google_cloud_speech_v1p1beta1_RecognizeResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v1p1beta1.RecognizeResponse.class, com.google.cloud.speech.v1p1beta1.RecognizeResponse.Builder.class);
+              com.google.cloud.speech.v1p1beta1.RecognizeResponse.class,
+              com.google.cloud.speech.v1p1beta1.RecognizeResponse.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v1p1beta1.RecognizeResponse.newBuilder()
@@ -420,17 +474,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
         getResultsFieldBuilder();
       }
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -450,9 +504,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
@@ -471,7 +525,8 @@ public com.google.cloud.speech.v1p1beta1.RecognizeResponse build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v1p1beta1.RecognizeResponse buildPartial() {
-      com.google.cloud.speech.v1p1beta1.RecognizeResponse result = new com.google.cloud.speech.v1p1beta1.RecognizeResponse(this);
+      com.google.cloud.speech.v1p1beta1.RecognizeResponse result =
+          new com.google.cloud.speech.v1p1beta1.RecognizeResponse(this);
       int from_bitField0_ = bitField0_;
       if (resultsBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
@@ -495,38 +550,39 @@ public com.google.cloud.speech.v1p1beta1.RecognizeResponse buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.speech.v1p1beta1.RecognizeResponse) {
-        return mergeFrom((com.google.cloud.speech.v1p1beta1.RecognizeResponse)other);
+        return mergeFrom((com.google.cloud.speech.v1p1beta1.RecognizeResponse) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -534,7 +590,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()) {
@@ -553,9 +610,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_);
           }
@@ -583,7 +641,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.speech.v1p1beta1.RecognizeResponse) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.speech.v1p1beta1.RecognizeResponse) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -592,21 +651,30 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
     private java.util.List results_ =
-      java.util.Collections.emptyList();
+        java.util.Collections.emptyList();
+
     private void ensureResultsIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
-        results_ = new java.util.ArrayList(results_);
+        results_ =
+            new java.util.ArrayList(
+                results_);
         bitField0_ |= 0x00000001;
-       }
+      }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult, com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult.Builder, com.google.cloud.speech.v1p1beta1.SpeechRecognitionResultOrBuilder> resultsBuilder_;
+            com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult,
+            com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult.Builder,
+            com.google.cloud.speech.v1p1beta1.SpeechRecognitionResultOrBuilder>
+        resultsBuilder_;
 
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -614,7 +682,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 {
@@ -622,6 +691,8 @@ public java.util.List
       }
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -637,6 +708,8 @@ public int getResultsCount() {
       }
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -652,6 +725,8 @@ public com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult getResults(int
       }
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -674,6 +749,8 @@ public Builder setResults(
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -682,7 +759,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());
@@ -693,6 +771,8 @@ public Builder setResults(
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -714,6 +794,8 @@ public Builder addResults(com.google.cloud.speech.v1p1beta1.SpeechRecognitionRes
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -736,6 +818,8 @@ public Builder addResults(
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -755,6 +839,8 @@ public Builder addResults(
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -763,7 +849,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());
@@ -774,6 +861,8 @@ public Builder addResults(
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -782,11 +871,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);
@@ -794,6 +883,8 @@ public Builder addAllResults(
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -812,6 +903,8 @@ public Builder clearResults() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -830,6 +923,8 @@ public Builder removeResults(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -842,6 +937,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.
@@ -852,11 +949,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.
@@ -864,8 +964,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 {
@@ -873,6 +974,8 @@ public com.google.cloud.speech.v1p1beta1.SpeechRecognitionResultOrBuilder getRes
       }
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -881,10 +984,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.
@@ -894,10 +1000,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.
@@ -905,20 +1015,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_;
@@ -926,34 +1039,47 @@ public com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult.Builder addResu
 
     private com.google.protobuf.Duration totalBilledTime_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> totalBilledTimeBuilder_;
+            com.google.protobuf.Duration,
+            com.google.protobuf.Duration.Builder,
+            com.google.protobuf.DurationOrBuilder>
+        totalBilledTimeBuilder_;
     /**
+     *
+     *
      * 
      * When available, billed audio seconds for the corresponding request.
      * 
* * .google.protobuf.Duration total_billed_time = 3; + * * @return Whether the totalBilledTime field is set. */ public boolean hasTotalBilledTime() { return totalBilledTimeBuilder_ != null || totalBilledTime_ != null; } /** + * + * *
      * When available, billed audio seconds for the corresponding request.
      * 
* * .google.protobuf.Duration total_billed_time = 3; + * * @return The totalBilledTime. */ public com.google.protobuf.Duration getTotalBilledTime() { if (totalBilledTimeBuilder_ == null) { - return totalBilledTime_ == null ? com.google.protobuf.Duration.getDefaultInstance() : totalBilledTime_; + return totalBilledTime_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : totalBilledTime_; } else { return totalBilledTimeBuilder_.getMessage(); } } /** + * + * *
      * When available, billed audio seconds for the corresponding request.
      * 
@@ -974,14 +1100,15 @@ public Builder setTotalBilledTime(com.google.protobuf.Duration value) { return this; } /** + * + * *
      * When available, billed audio seconds for the corresponding request.
      * 
* * .google.protobuf.Duration total_billed_time = 3; */ - public Builder setTotalBilledTime( - com.google.protobuf.Duration.Builder builderForValue) { + public Builder setTotalBilledTime(com.google.protobuf.Duration.Builder builderForValue) { if (totalBilledTimeBuilder_ == null) { totalBilledTime_ = builderForValue.build(); onChanged(); @@ -992,6 +1119,8 @@ public Builder setTotalBilledTime( return this; } /** + * + * *
      * When available, billed audio seconds for the corresponding request.
      * 
@@ -1002,7 +1131,9 @@ public Builder mergeTotalBilledTime(com.google.protobuf.Duration value) { if (totalBilledTimeBuilder_ == null) { if (totalBilledTime_ != null) { totalBilledTime_ = - com.google.protobuf.Duration.newBuilder(totalBilledTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Duration.newBuilder(totalBilledTime_) + .mergeFrom(value) + .buildPartial(); } else { totalBilledTime_ = value; } @@ -1014,6 +1145,8 @@ public Builder mergeTotalBilledTime(com.google.protobuf.Duration value) { return this; } /** + * + * *
      * When available, billed audio seconds for the corresponding request.
      * 
@@ -1032,6 +1165,8 @@ public Builder clearTotalBilledTime() { return this; } /** + * + * *
      * When available, billed audio seconds for the corresponding request.
      * 
@@ -1039,11 +1174,13 @@ public Builder clearTotalBilledTime() { * .google.protobuf.Duration total_billed_time = 3; */ public com.google.protobuf.Duration.Builder getTotalBilledTimeBuilder() { - + onChanged(); return getTotalBilledTimeFieldBuilder().getBuilder(); } /** + * + * *
      * When available, billed audio seconds for the corresponding request.
      * 
@@ -1054,11 +1191,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.
      * 
@@ -1066,21 +1206,24 @@ public com.google.protobuf.DurationOrBuilder getTotalBilledTimeOrBuilder() { * .google.protobuf.Duration total_billed_time = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> getTotalBilledTimeFieldBuilder() { if (totalBilledTimeBuilder_ == null) { - totalBilledTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( - getTotalBilledTime(), - getParentForChildren(), - isClean()); + totalBilledTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>( + getTotalBilledTime(), getParentForChildren(), isClean()); totalBilledTime_ = null; } return totalBilledTimeBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1090,12 +1233,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(); } @@ -1104,16 +1247,16 @@ public static com.google.cloud.speech.v1p1beta1.RecognizeResponse getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RecognizeResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new RecognizeResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RecognizeResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RecognizeResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1128,6 +1271,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.RecognizeResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeResponseOrBuilder.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeResponseOrBuilder.java similarity index 75% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeResponseOrBuilder.java rename to proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeResponseOrBuilder.java index d558c9d50..c03d3c9b7 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeResponseOrBuilder.java +++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeResponseOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech.proto package com.google.cloud.speech.v1p1beta1; -public interface RecognizeResponseOrBuilder extends +public interface RecognizeResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1p1beta1.RecognizeResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -15,9 +33,10 @@ public interface RecognizeResponseOrBuilder extends
    *
    * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionResult results = 2;
    */
-  java.util.List 
-      getResultsList();
+  java.util.List getResultsList();
   /**
+   *
+   *
    * 
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -27,6 +46,8 @@ public interface RecognizeResponseOrBuilder extends
    */
   com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult getResults(int index);
   /**
+   *
+   *
    * 
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -36,6 +57,8 @@ public interface RecognizeResponseOrBuilder extends
    */
   int getResultsCount();
   /**
+   *
+   *
    * 
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -43,9 +66,11 @@ public interface RecognizeResponseOrBuilder extends
    *
    * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionResult results = 2;
    */
-  java.util.List 
+  java.util.List
       getResultsOrBuilderList();
   /**
+   *
+   *
    * 
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -53,28 +78,35 @@ public interface RecognizeResponseOrBuilder extends
    *
    * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionResult results = 2;
    */
-  com.google.cloud.speech.v1p1beta1.SpeechRecognitionResultOrBuilder getResultsOrBuilder(
-      int index);
+  com.google.cloud.speech.v1p1beta1.SpeechRecognitionResultOrBuilder getResultsOrBuilder(int index);
 
   /**
+   *
+   *
    * 
    * When available, billed audio seconds for the corresponding request.
    * 
* * .google.protobuf.Duration total_billed_time = 3; + * * @return Whether the totalBilledTime field is set. */ boolean hasTotalBilledTime(); /** + * + * *
    * When available, billed audio seconds for the corresponding request.
    * 
* * .google.protobuf.Duration total_billed_time = 3; + * * @return The totalBilledTime. */ com.google.protobuf.Duration getTotalBilledTime(); /** + * + * *
    * When available, billed audio seconds for the corresponding request.
    * 
diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeakerDiarizationConfig.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeakerDiarizationConfig.java similarity index 71% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeakerDiarizationConfig.java rename to proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeakerDiarizationConfig.java index de799d2d2..ce7343779 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeakerDiarizationConfig.java +++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeakerDiarizationConfig.java @@ -1,39 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech.proto package com.google.cloud.speech.v1p1beta1; /** + * + * *
  * Config to enable speaker diarization.
  * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig} */ -public final class SpeakerDiarizationConfig extends - com.google.protobuf.GeneratedMessageV3 implements +public final class SpeakerDiarizationConfig extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig) SpeakerDiarizationConfigOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use SpeakerDiarizationConfig.newBuilder() to construct. private SpeakerDiarizationConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private SpeakerDiarizationConfig() { - } + + private SpeakerDiarizationConfig() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new SpeakerDiarizationConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private SpeakerDiarizationConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,61 +68,65 @@ private SpeakerDiarizationConfig( case 0: done = true; break; - case 8: { - - enableSpeakerDiarization_ = input.readBool(); - break; - } - case 16: { - - minSpeakerCount_ = input.readInt32(); - break; - } - case 24: { - - maxSpeakerCount_ = input.readInt32(); - break; - } - case 40: { - - speakerTag_ = input.readInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 8: + { + enableSpeakerDiarization_ = input.readBool(); + break; + } + case 16: + { + minSpeakerCount_ = input.readInt32(); + break; + } + case 24: + { + maxSpeakerCount_ = input.readInt32(); + break; + } + case 40: + { + speakerTag_ = input.readInt32(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_SpeakerDiarizationConfig_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechProto + .internal_static_google_cloud_speech_v1p1beta1_SpeakerDiarizationConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_SpeakerDiarizationConfig_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechProto + .internal_static_google_cloud_speech_v1p1beta1_SpeakerDiarizationConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig.class, com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig.Builder.class); + com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig.class, + com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig.Builder.class); } public static final int ENABLE_SPEAKER_DIARIZATION_FIELD_NUMBER = 1; private boolean enableSpeakerDiarization_; /** + * + * *
    * If 'true', enables speaker detection for each recognized word in
    * the top alternative of the recognition result using a speaker_tag provided
@@ -114,6 +134,7 @@ private SpeakerDiarizationConfig(
    * 
* * bool enable_speaker_diarization = 1; + * * @return The enableSpeakerDiarization. */ @java.lang.Override @@ -124,6 +145,8 @@ public boolean getEnableSpeakerDiarization() { public static final int MIN_SPEAKER_COUNT_FIELD_NUMBER = 2; private int minSpeakerCount_; /** + * + * *
    * Minimum number of speakers in the conversation. This range gives you more
    * flexibility by allowing the system to automatically determine the correct
@@ -131,6 +154,7 @@ public boolean getEnableSpeakerDiarization() {
    * 
* * int32 min_speaker_count = 2; + * * @return The minSpeakerCount. */ @java.lang.Override @@ -141,6 +165,8 @@ public int getMinSpeakerCount() { public static final int MAX_SPEAKER_COUNT_FIELD_NUMBER = 3; private int maxSpeakerCount_; /** + * + * *
    * Maximum number of speakers in the conversation. This range gives you more
    * flexibility by allowing the system to automatically determine the correct
@@ -148,6 +174,7 @@ public int getMinSpeakerCount() {
    * 
* * int32 max_speaker_count = 3; + * * @return The maxSpeakerCount. */ @java.lang.Override @@ -158,19 +185,25 @@ public int getMaxSpeakerCount() { public static final int SPEAKER_TAG_FIELD_NUMBER = 5; private int speakerTag_; /** + * + * *
    * Output only. Unused.
    * 
* - * int32 speaker_tag = 5 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * int32 speaker_tag = 5 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @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; @@ -182,8 +215,7 @@ public final boolean isInitialized() { } @java.lang.Override - public 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_); } @@ -206,20 +238,16 @@ public int getSerializedSize() { size = 0; if (enableSpeakerDiarization_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(1, enableSpeakerDiarization_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, enableSpeakerDiarization_); } if (minSpeakerCount_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, minSpeakerCount_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, minSpeakerCount_); } if (maxSpeakerCount_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(3, maxSpeakerCount_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, maxSpeakerCount_); } if (speakerTag_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(5, speakerTag_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, speakerTag_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -229,21 +257,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig)) { return super.equals(obj); } - com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig other = (com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig) obj; + com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig other = + (com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig) obj; - if (getEnableSpeakerDiarization() - != other.getEnableSpeakerDiarization()) return false; - if (getMinSpeakerCount() - != other.getMinSpeakerCount()) return false; - if (getMaxSpeakerCount() - != other.getMaxSpeakerCount()) return false; - if (getSpeakerTag() - != other.getSpeakerTag()) return false; + if (getEnableSpeakerDiarization() != other.getEnableSpeakerDiarization()) return false; + if (getMinSpeakerCount() != other.getMinSpeakerCount()) return false; + if (getMaxSpeakerCount() != other.getMaxSpeakerCount()) return false; + if (getSpeakerTag() != other.getSpeakerTag()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -256,8 +281,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; @@ -270,117 +294,127 @@ public int hashCode() { } public static com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig prototype) { + + public static Builder newBuilder( + com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Config to enable speaker diarization.
    * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig) com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_SpeakerDiarizationConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechProto + .internal_static_google_cloud_speech_v1p1beta1_SpeakerDiarizationConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_SpeakerDiarizationConfig_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechProto + .internal_static_google_cloud_speech_v1p1beta1_SpeakerDiarizationConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig.class, com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig.Builder.class); + com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig.class, + com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig.Builder.class); } // Construct using com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig.newBuilder() @@ -388,16 +422,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -413,9 +446,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 @@ -434,7 +467,8 @@ public com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig build() { @java.lang.Override public com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig buildPartial() { - com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig result = new com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig(this); + com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig result = + new com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig(this); result.enableSpeakerDiarization_ = enableSpeakerDiarization_; result.minSpeakerCount_ = minSpeakerCount_; result.maxSpeakerCount_ = maxSpeakerCount_; @@ -447,38 +481,39 @@ public com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig buildPartial() public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig) { - return mergeFrom((com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig)other); + return mergeFrom((com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig) other); } else { super.mergeFrom(other); return this; @@ -486,7 +521,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()); } @@ -518,7 +554,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -528,8 +565,10 @@ public Builder mergeFrom( return this; } - private boolean enableSpeakerDiarization_ ; + private boolean enableSpeakerDiarization_; /** + * + * *
      * If 'true', enables speaker detection for each recognized word in
      * the top alternative of the recognition result using a speaker_tag provided
@@ -537,6 +576,7 @@ public Builder mergeFrom(
      * 
* * bool enable_speaker_diarization = 1; + * * @return The enableSpeakerDiarization. */ @java.lang.Override @@ -544,6 +584,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
@@ -551,16 +593,19 @@ public boolean getEnableSpeakerDiarization() {
      * 
* * bool enable_speaker_diarization = 1; + * * @param value The enableSpeakerDiarization to set. * @return This builder for chaining. */ public Builder setEnableSpeakerDiarization(boolean value) { - + enableSpeakerDiarization_ = value; onChanged(); return this; } /** + * + * *
      * If 'true', enables speaker detection for each recognized word in
      * the top alternative of the recognition result using a speaker_tag provided
@@ -568,17 +613,20 @@ public Builder setEnableSpeakerDiarization(boolean value) {
      * 
* * bool enable_speaker_diarization = 1; + * * @return This builder for chaining. */ public Builder clearEnableSpeakerDiarization() { - + enableSpeakerDiarization_ = false; onChanged(); return this; } - private int minSpeakerCount_ ; + private int minSpeakerCount_; /** + * + * *
      * Minimum number of speakers in the conversation. This range gives you more
      * flexibility by allowing the system to automatically determine the correct
@@ -586,6 +634,7 @@ public Builder clearEnableSpeakerDiarization() {
      * 
* * int32 min_speaker_count = 2; + * * @return The minSpeakerCount. */ @java.lang.Override @@ -593,6 +642,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
@@ -600,16 +651,19 @@ public int getMinSpeakerCount() {
      * 
* * int32 min_speaker_count = 2; + * * @param value The minSpeakerCount to set. * @return This builder for chaining. */ public Builder setMinSpeakerCount(int value) { - + minSpeakerCount_ = value; onChanged(); return this; } /** + * + * *
      * Minimum number of speakers in the conversation. This range gives you more
      * flexibility by allowing the system to automatically determine the correct
@@ -617,17 +671,20 @@ public Builder setMinSpeakerCount(int value) {
      * 
* * int32 min_speaker_count = 2; + * * @return This builder for chaining. */ public Builder clearMinSpeakerCount() { - + minSpeakerCount_ = 0; onChanged(); return this; } - private int maxSpeakerCount_ ; + private int maxSpeakerCount_; /** + * + * *
      * Maximum number of speakers in the conversation. This range gives you more
      * flexibility by allowing the system to automatically determine the correct
@@ -635,6 +692,7 @@ public Builder clearMinSpeakerCount() {
      * 
* * int32 max_speaker_count = 3; + * * @return The maxSpeakerCount. */ @java.lang.Override @@ -642,6 +700,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
@@ -649,16 +709,19 @@ public int getMaxSpeakerCount() {
      * 
* * int32 max_speaker_count = 3; + * * @param value The maxSpeakerCount to set. * @return This builder for chaining. */ public Builder setMaxSpeakerCount(int value) { - + maxSpeakerCount_ = value; onChanged(); return this; } /** + * + * *
      * Maximum number of speakers in the conversation. This range gives you more
      * flexibility by allowing the system to automatically determine the correct
@@ -666,60 +729,76 @@ public Builder setMaxSpeakerCount(int value) {
      * 
* * int32 max_speaker_count = 3; + * * @return This builder for chaining. */ public Builder clearMaxSpeakerCount() { - + maxSpeakerCount_ = 0; onChanged(); return this; } - private int speakerTag_ ; + private int speakerTag_; /** + * + * *
      * Output only. Unused.
      * 
* - * int32 speaker_tag = 5 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * int32 speaker_tag = 5 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @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]; + * + * * @param value The speakerTag to set. * @return This builder for chaining. */ - @java.lang.Deprecated public Builder setSpeakerTag(int value) { - + @java.lang.Deprecated + public Builder setSpeakerTag(int value) { + speakerTag_ = value; onChanged(); return this; } /** + * + * *
      * Output only. Unused.
      * 
* - * int32 speaker_tag = 5 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * int32 speaker_tag = 5 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return This builder for chaining. */ - @java.lang.Deprecated public Builder clearSpeakerTag() { - + @java.lang.Deprecated + public Builder clearSpeakerTag() { + speakerTag_ = 0; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -729,12 +808,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(); } @@ -743,16 +822,16 @@ public static com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SpeakerDiarizationConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SpeakerDiarizationConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SpeakerDiarizationConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SpeakerDiarizationConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -767,6 +846,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeakerDiarizationConfigOrBuilder.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeakerDiarizationConfigOrBuilder.java similarity index 65% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeakerDiarizationConfigOrBuilder.java rename to proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeakerDiarizationConfigOrBuilder.java index 88d71a858..3a1bf9e62 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeakerDiarizationConfigOrBuilder.java +++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeakerDiarizationConfigOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech.proto package com.google.cloud.speech.v1p1beta1; -public interface SpeakerDiarizationConfigOrBuilder extends +public interface SpeakerDiarizationConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * If 'true', enables speaker detection for each recognized word in
    * the top alternative of the recognition result using a speaker_tag provided
@@ -15,11 +33,14 @@ public interface SpeakerDiarizationConfigOrBuilder extends
    * 
* * bool enable_speaker_diarization = 1; + * * @return The enableSpeakerDiarization. */ boolean getEnableSpeakerDiarization(); /** + * + * *
    * Minimum number of speakers in the conversation. This range gives you more
    * flexibility by allowing the system to automatically determine the correct
@@ -27,11 +48,14 @@ public interface SpeakerDiarizationConfigOrBuilder extends
    * 
* * int32 min_speaker_count = 2; + * * @return The minSpeakerCount. */ int getMinSpeakerCount(); /** + * + * *
    * Maximum number of speakers in the conversation. This range gives you more
    * flexibility by allowing the system to automatically determine the correct
@@ -39,17 +63,23 @@ 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]; + * + * * @return The speakerTag. */ - @java.lang.Deprecated int getSpeakerTag(); + @java.lang.Deprecated + int getSpeakerTag(); } diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptation.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptation.java similarity index 79% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptation.java rename to proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptation.java index 85462e92c..84e423e83 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptation.java +++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptation.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/resource.proto package com.google.cloud.speech.v1p1beta1; /** + * + * *
  * Speech adaptation configuration.
  * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.SpeechAdaptation} */ -public final class SpeechAdaptation extends - com.google.protobuf.GeneratedMessageV3 implements +public final class SpeechAdaptation extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v1p1beta1.SpeechAdaptation) SpeechAdaptationOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use SpeechAdaptation.newBuilder() to construct. private SpeechAdaptation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private SpeechAdaptation() { phraseSets_ = java.util.Collections.emptyList(); phraseSetReferences_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -27,16 +45,15 @@ private SpeechAdaptation() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new SpeechAdaptation(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private SpeechAdaptation( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -56,47 +73,53 @@ private SpeechAdaptation( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - phraseSets_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + phraseSets_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + phraseSets_.add( + input.readMessage( + com.google.cloud.speech.v1p1beta1.PhraseSet.parser(), extensionRegistry)); + break; } - phraseSets_.add( - input.readMessage(com.google.cloud.speech.v1p1beta1.PhraseSet.parser(), extensionRegistry)); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - phraseSetReferences_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + phraseSetReferences_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; + } + phraseSetReferences_.add(s); + break; } - phraseSetReferences_.add(s); - break; - } - case 26: { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - customClasses_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000004; + case 26: + { + if (!((mutable_bitField0_ & 0x00000004) != 0)) { + customClasses_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000004; + } + customClasses_.add( + input.readMessage( + com.google.cloud.speech.v1p1beta1.CustomClass.parser(), extensionRegistry)); + break; } - customClasses_.add( - input.readMessage(com.google.cloud.speech.v1p1beta1.CustomClass.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { phraseSets_ = java.util.Collections.unmodifiableList(phraseSets_); @@ -111,22 +134,27 @@ private SpeechAdaptation( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechResourceProto.internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptation_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechResourceProto + .internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechResourceProto.internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptation_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechResourceProto + .internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.SpeechAdaptation.class, com.google.cloud.speech.v1p1beta1.SpeechAdaptation.Builder.class); + com.google.cloud.speech.v1p1beta1.SpeechAdaptation.class, + com.google.cloud.speech.v1p1beta1.SpeechAdaptation.Builder.class); } public static final int PHRASE_SETS_FIELD_NUMBER = 1; private java.util.List phraseSets_; /** + * + * *
    * A collection of phrase sets. To specify the hints inline, leave the
    * phrase set's `name` blank and fill in the rest of its fields. Any
@@ -140,6 +168,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
@@ -149,11 +179,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
@@ -167,6 +199,8 @@ public int getPhraseSetsCount() {
     return phraseSets_.size();
   }
   /**
+   *
+   *
    * 
    * A collection of phrase sets. To specify the hints inline, leave the
    * phrase set's `name` blank and fill in the rest of its fields. Any
@@ -180,6 +214,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
@@ -189,42 +225,52 @@ public com.google.cloud.speech.v1p1beta1.PhraseSet getPhraseSets(int index) {
    * repeated .google.cloud.speech.v1p1beta1.PhraseSet phrase_sets = 1;
    */
   @java.lang.Override
-  public com.google.cloud.speech.v1p1beta1.PhraseSetOrBuilder getPhraseSetsOrBuilder(
-      int index) {
+  public com.google.cloud.speech.v1p1beta1.PhraseSetOrBuilder getPhraseSetsOrBuilder(int index) {
     return phraseSets_.get(index);
   }
 
   public static final int PHRASE_SET_REFERENCES_FIELD_NUMBER = 2;
   private com.google.protobuf.LazyStringList phraseSetReferences_;
   /**
+   *
+   *
    * 
    * A collection of phrase set resource names to use.
    * 
* - * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } + * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } + * + * * @return A list containing the phraseSetReferences. */ - public com.google.protobuf.ProtocolStringList - getPhraseSetReferencesList() { + public com.google.protobuf.ProtocolStringList getPhraseSetReferencesList() { return phraseSetReferences_; } /** + * + * *
    * A collection of phrase set resource names to use.
    * 
* - * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } + * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } + * + * * @return The count of phraseSetReferences. */ public int getPhraseSetReferencesCount() { return phraseSetReferences_.size(); } /** + * + * *
    * A collection of phrase set resource names to use.
    * 
* - * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } + * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } + * + * * @param index The index of the element to return. * @return The phraseSetReferences at the given index. */ @@ -232,22 +278,27 @@ public java.lang.String getPhraseSetReferences(int index) { return phraseSetReferences_.get(index); } /** + * + * *
    * A collection of phrase set resource names to use.
    * 
* - * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } + * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } + * + * * @param index The index of the value to return. * @return The bytes of the phraseSetReferences at the given index. */ - public com.google.protobuf.ByteString - getPhraseSetReferencesBytes(int index) { + public com.google.protobuf.ByteString getPhraseSetReferencesBytes(int index) { return phraseSetReferences_.getByteString(index); } public static final int CUSTOM_CLASSES_FIELD_NUMBER = 3; private java.util.List customClasses_; /** + * + * *
    * A collection of custom classes. To specify the classes inline, leave the
    * class' `name` blank and fill in the rest of its fields, giving it a unique
@@ -262,6 +313,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
@@ -272,11 +325,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
@@ -291,6 +346,8 @@ public int getCustomClassesCount() {
     return customClasses_.size();
   }
   /**
+   *
+   *
    * 
    * A collection of custom classes. To specify the classes inline, leave the
    * class' `name` blank and fill in the rest of its fields, giving it a unique
@@ -305,6 +362,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
@@ -321,6 +380,7 @@ public com.google.cloud.speech.v1p1beta1.CustomClassOrBuilder getCustomClassesOr
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -332,8 +392,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  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));
     }
@@ -353,8 +412,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;
@@ -365,8 +423,7 @@ public int getSerializedSize() {
       size += 1 * getPhraseSetReferencesList().size();
     }
     for (int i = 0; i < customClasses_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(3, customClasses_.get(i));
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, customClasses_.get(i));
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -376,19 +433,17 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.speech.v1p1beta1.SpeechAdaptation)) {
       return super.equals(obj);
     }
-    com.google.cloud.speech.v1p1beta1.SpeechAdaptation other = (com.google.cloud.speech.v1p1beta1.SpeechAdaptation) obj;
+    com.google.cloud.speech.v1p1beta1.SpeechAdaptation other =
+        (com.google.cloud.speech.v1p1beta1.SpeechAdaptation) obj;
 
-    if (!getPhraseSetsList()
-        .equals(other.getPhraseSetsList())) return false;
-    if (!getPhraseSetReferencesList()
-        .equals(other.getPhraseSetReferencesList())) return false;
-    if (!getCustomClassesList()
-        .equals(other.getCustomClassesList())) return false;
+    if (!getPhraseSetsList().equals(other.getPhraseSetsList())) return false;
+    if (!getPhraseSetReferencesList().equals(other.getPhraseSetReferencesList())) return false;
+    if (!getCustomClassesList().equals(other.getCustomClassesList())) return false;
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
   }
@@ -418,117 +473,126 @@ public int hashCode() {
   }
 
   public static com.google.cloud.speech.v1p1beta1.SpeechAdaptation parseFrom(
-      java.nio.ByteBuffer data)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.speech.v1p1beta1.SpeechAdaptation parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.speech.v1p1beta1.SpeechAdaptation parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.speech.v1p1beta1.SpeechAdaptation parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.speech.v1p1beta1.SpeechAdaptation parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.speech.v1p1beta1.SpeechAdaptation parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.speech.v1p1beta1.SpeechAdaptation parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.speech.v1p1beta1.SpeechAdaptation parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.speech.v1p1beta1.SpeechAdaptation parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
-  public static com.google.cloud.speech.v1p1beta1.SpeechAdaptation parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+
+  public static com.google.cloud.speech.v1p1beta1.SpeechAdaptation parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.speech.v1p1beta1.SpeechAdaptation parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.speech.v1p1beta1.SpeechAdaptation parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.speech.v1p1beta1.SpeechAdaptation parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
+
   public static Builder newBuilder(com.google.cloud.speech.v1p1beta1.SpeechAdaptation prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * Speech adaptation configuration.
    * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.SpeechAdaptation} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1p1beta1.SpeechAdaptation) com.google.cloud.speech.v1p1beta1.SpeechAdaptationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechResourceProto.internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechResourceProto + .internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechResourceProto.internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptation_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechResourceProto + .internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.SpeechAdaptation.class, com.google.cloud.speech.v1p1beta1.SpeechAdaptation.Builder.class); + com.google.cloud.speech.v1p1beta1.SpeechAdaptation.class, + com.google.cloud.speech.v1p1beta1.SpeechAdaptation.Builder.class); } // Construct using com.google.cloud.speech.v1p1beta1.SpeechAdaptation.newBuilder() @@ -536,18 +600,18 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getPhraseSetsFieldBuilder(); getCustomClassesFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -569,9 +633,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 @@ -590,7 +654,8 @@ public com.google.cloud.speech.v1p1beta1.SpeechAdaptation build() { @java.lang.Override public com.google.cloud.speech.v1p1beta1.SpeechAdaptation buildPartial() { - com.google.cloud.speech.v1p1beta1.SpeechAdaptation result = new com.google.cloud.speech.v1p1beta1.SpeechAdaptation(this); + com.google.cloud.speech.v1p1beta1.SpeechAdaptation result = + new com.google.cloud.speech.v1p1beta1.SpeechAdaptation(this); int from_bitField0_ = bitField0_; if (phraseSetsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -623,38 +688,39 @@ public com.google.cloud.speech.v1p1beta1.SpeechAdaptation buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.speech.v1p1beta1.SpeechAdaptation) { - return mergeFrom((com.google.cloud.speech.v1p1beta1.SpeechAdaptation)other); + return mergeFrom((com.google.cloud.speech.v1p1beta1.SpeechAdaptation) other); } else { super.mergeFrom(other); return this; @@ -662,7 +728,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()) { @@ -681,9 +748,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_); } @@ -717,9 +785,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_); } @@ -744,7 +813,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.speech.v1p1beta1.SpeechAdaptation) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.speech.v1p1beta1.SpeechAdaptation) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -753,21 +823,29 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.util.List phraseSets_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensurePhraseSetsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - phraseSets_ = new java.util.ArrayList(phraseSets_); + phraseSets_ = + new java.util.ArrayList(phraseSets_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.PhraseSet, com.google.cloud.speech.v1p1beta1.PhraseSet.Builder, com.google.cloud.speech.v1p1beta1.PhraseSetOrBuilder> phraseSetsBuilder_; + com.google.cloud.speech.v1p1beta1.PhraseSet, + com.google.cloud.speech.v1p1beta1.PhraseSet.Builder, + com.google.cloud.speech.v1p1beta1.PhraseSetOrBuilder> + phraseSetsBuilder_; /** + * + * *
      * A collection of phrase sets. To specify the hints inline, leave the
      * phrase set's `name` blank and fill in the rest of its fields. Any
@@ -784,6 +862,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
@@ -800,6 +880,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
@@ -816,6 +898,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
@@ -824,8 +908,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();
@@ -839,6 +922,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
@@ -859,6 +944,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
@@ -881,6 +968,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
@@ -889,8 +978,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();
@@ -904,6 +992,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
@@ -924,6 +1014,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
@@ -944,6 +1036,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
@@ -956,8 +1050,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);
@@ -965,6 +1058,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
@@ -984,6 +1079,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
@@ -1003,6 +1100,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
@@ -1011,11 +1110,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
@@ -1024,14 +1124,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
@@ -1040,8 +1142,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 {
@@ -1049,6 +1151,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
@@ -1058,10 +1162,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
@@ -1070,12 +1176,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
@@ -1084,61 +1191,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. */ @@ -1146,80 +1269,95 @@ public java.lang.String getPhraseSetReferences(int index) { return phraseSetReferences_.get(index); } /** + * + * *
      * A collection of phrase set resource names to use.
      * 
* - * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } + * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } + * + * * @param index The index of the value to return. * @return The bytes of the phraseSetReferences at the given index. */ - public com.google.protobuf.ByteString - getPhraseSetReferencesBytes(int index) { + public com.google.protobuf.ByteString getPhraseSetReferencesBytes(int index) { return phraseSetReferences_.getByteString(index); } /** + * + * *
      * A collection of phrase set resource names to use.
      * 
* - * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } + * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } + * + * * @param index The index to set the value at. * @param value The phraseSetReferences to set. * @return This builder for chaining. */ - public Builder setPhraseSetReferences( - int index, java.lang.String value) { + public Builder setPhraseSetReferences(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensurePhraseSetReferencesIsMutable(); + throw new NullPointerException(); + } + ensurePhraseSetReferencesIsMutable(); phraseSetReferences_.set(index, value); onChanged(); return this; } /** + * + * *
      * A collection of phrase set resource names to use.
      * 
* - * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } + * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } + * + * * @param value The phraseSetReferences to add. * @return This builder for chaining. */ - public Builder addPhraseSetReferences( - java.lang.String value) { + public Builder addPhraseSetReferences(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensurePhraseSetReferencesIsMutable(); + throw new NullPointerException(); + } + ensurePhraseSetReferencesIsMutable(); phraseSetReferences_.add(value); onChanged(); return this; } /** + * + * *
      * A collection of phrase set resource names to use.
      * 
* - * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } + * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } + * + * * @param values The phraseSetReferences to add. * @return This builder for chaining. */ - public Builder addAllPhraseSetReferences( - java.lang.Iterable values) { + public Builder addAllPhraseSetReferences(java.lang.Iterable values) { ensurePhraseSetReferencesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, phraseSetReferences_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, phraseSetReferences_); onChanged(); return this; } /** + * + * *
      * A collection of phrase set resource names to use.
      * 
* - * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } + * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearPhraseSetReferences() { @@ -1229,20 +1367,23 @@ public Builder clearPhraseSetReferences() { return this; } /** + * + * *
      * A collection of phrase set resource names to use.
      * 
* - * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } + * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } + * + * * @param value The bytes of the phraseSetReferences to add. * @return This builder for chaining. */ - public Builder addPhraseSetReferencesBytes( - com.google.protobuf.ByteString value) { + public Builder addPhraseSetReferencesBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensurePhraseSetReferencesIsMutable(); phraseSetReferences_.add(value); onChanged(); @@ -1250,18 +1391,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
@@ -1279,6 +1427,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
@@ -1296,6 +1446,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
@@ -1313,6 +1465,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
@@ -1337,6 +1491,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
@@ -1358,6 +1514,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
@@ -1381,6 +1539,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
@@ -1405,6 +1565,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
@@ -1426,6 +1588,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
@@ -1447,6 +1611,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
@@ -1460,8 +1626,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);
@@ -1469,6 +1634,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
@@ -1489,6 +1656,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
@@ -1509,6 +1678,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
@@ -1523,6 +1694,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
@@ -1535,11 +1708,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
@@ -1549,8 +1725,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 {
@@ -1558,6 +1734,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
@@ -1568,10 +1746,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
@@ -1583,10 +1763,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
@@ -1596,16 +1778,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(),
@@ -1614,9 +1802,9 @@ public com.google.cloud.speech.v1p1beta1.CustomClass.Builder addCustomClassesBui
       }
       return customClassesBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1626,12 +1814,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();
   }
@@ -1640,16 +1828,16 @@ public static com.google.cloud.speech.v1p1beta1.SpeechAdaptation getDefaultInsta
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public SpeechAdaptation parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return new SpeechAdaptation(input, extensionRegistry);
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public SpeechAdaptation parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          return new SpeechAdaptation(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1664,6 +1852,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.speech.v1p1beta1.SpeechAdaptation getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptationOrBuilder.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptationOrBuilder.java
similarity index 80%
rename from owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptationOrBuilder.java
rename to proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptationOrBuilder.java
index 64b0f0cb1..b808e4167 100644
--- a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptationOrBuilder.java
+++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptationOrBuilder.java
@@ -1,13 +1,31 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/speech/v1p1beta1/resource.proto
 
 package com.google.cloud.speech.v1p1beta1;
 
-public interface SpeechAdaptationOrBuilder extends
+public interface SpeechAdaptationOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1p1beta1.SpeechAdaptation)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * A collection of phrase sets. To specify the hints inline, leave the
    * phrase set's `name` blank and fill in the rest of its fields. Any
@@ -16,9 +34,10 @@ public interface SpeechAdaptationOrBuilder extends
    *
    * repeated .google.cloud.speech.v1p1beta1.PhraseSet phrase_sets = 1;
    */
-  java.util.List 
-      getPhraseSetsList();
+  java.util.List getPhraseSetsList();
   /**
+   *
+   *
    * 
    * A collection of phrase sets. To specify the hints inline, leave the
    * phrase set's `name` blank and fill in the rest of its fields. Any
@@ -29,6 +48,8 @@ public interface SpeechAdaptationOrBuilder extends
    */
   com.google.cloud.speech.v1p1beta1.PhraseSet getPhraseSets(int index);
   /**
+   *
+   *
    * 
    * A collection of phrase sets. To specify the hints inline, leave the
    * phrase set's `name` blank and fill in the rest of its fields. Any
@@ -39,6 +60,8 @@ public interface SpeechAdaptationOrBuilder extends
    */
   int getPhraseSetsCount();
   /**
+   *
+   *
    * 
    * A collection of phrase sets. To specify the hints inline, leave the
    * phrase set's `name` blank and fill in the rest of its fields. Any
@@ -47,9 +70,11 @@ public interface SpeechAdaptationOrBuilder extends
    *
    * repeated .google.cloud.speech.v1p1beta1.PhraseSet phrase_sets = 1;
    */
-  java.util.List 
+  java.util.List
       getPhraseSetsOrBuilderList();
   /**
+   *
+   *
    * 
    * A collection of phrase sets. To specify the hints inline, leave the
    * phrase set's `name` blank and fill in the rest of its fields. Any
@@ -58,51 +83,66 @@ public interface SpeechAdaptationOrBuilder extends
    *
    * repeated .google.cloud.speech.v1p1beta1.PhraseSet phrase_sets = 1;
    */
-  com.google.cloud.speech.v1p1beta1.PhraseSetOrBuilder getPhraseSetsOrBuilder(
-      int index);
+  com.google.cloud.speech.v1p1beta1.PhraseSetOrBuilder getPhraseSetsOrBuilder(int index);
 
   /**
+   *
+   *
    * 
    * A collection of phrase set resource names to use.
    * 
* - * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } + * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } + * + * * @return A list containing the phraseSetReferences. */ - java.util.List - getPhraseSetReferencesList(); + java.util.List getPhraseSetReferencesList(); /** + * + * *
    * A collection of phrase set resource names to use.
    * 
* - * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } + * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } + * + * * @return The count of phraseSetReferences. */ int getPhraseSetReferencesCount(); /** + * + * *
    * A collection of phrase set resource names to use.
    * 
* - * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } + * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } + * + * * @param index The index of the element to return. * @return The phraseSetReferences at the given index. */ java.lang.String getPhraseSetReferences(int index); /** + * + * *
    * A collection of phrase set resource names to use.
    * 
* - * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } + * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } + * + * * @param index The index of the value to return. * @return The bytes of the phraseSetReferences at the given index. */ - com.google.protobuf.ByteString - getPhraseSetReferencesBytes(int index); + com.google.protobuf.ByteString getPhraseSetReferencesBytes(int index); /** + * + * *
    * A collection of custom classes. To specify the classes inline, leave the
    * class' `name` blank and fill in the rest of its fields, giving it a unique
@@ -112,9 +152,10 @@ com.google.cloud.speech.v1p1beta1.PhraseSetOrBuilder getPhraseSetsOrBuilder(
    *
    * repeated .google.cloud.speech.v1p1beta1.CustomClass custom_classes = 3;
    */
-  java.util.List 
-      getCustomClassesList();
+  java.util.List getCustomClassesList();
   /**
+   *
+   *
    * 
    * A collection of custom classes. To specify the classes inline, leave the
    * class' `name` blank and fill in the rest of its fields, giving it a unique
@@ -126,6 +167,8 @@ com.google.cloud.speech.v1p1beta1.PhraseSetOrBuilder getPhraseSetsOrBuilder(
    */
   com.google.cloud.speech.v1p1beta1.CustomClass getCustomClasses(int index);
   /**
+   *
+   *
    * 
    * A collection of custom classes. To specify the classes inline, leave the
    * class' `name` blank and fill in the rest of its fields, giving it a unique
@@ -137,6 +180,8 @@ com.google.cloud.speech.v1p1beta1.PhraseSetOrBuilder getPhraseSetsOrBuilder(
    */
   int getCustomClassesCount();
   /**
+   *
+   *
    * 
    * A collection of custom classes. To specify the classes inline, leave the
    * class' `name` blank and fill in the rest of its fields, giving it a unique
@@ -146,9 +191,11 @@ com.google.cloud.speech.v1p1beta1.PhraseSetOrBuilder getPhraseSetsOrBuilder(
    *
    * repeated .google.cloud.speech.v1p1beta1.CustomClass custom_classes = 3;
    */
-  java.util.List 
+  java.util.List
       getCustomClassesOrBuilderList();
   /**
+   *
+   *
    * 
    * A collection of custom classes. To specify the classes inline, leave the
    * class' `name` blank and fill in the rest of its fields, giving it a unique
@@ -158,6 +205,5 @@ com.google.cloud.speech.v1p1beta1.PhraseSetOrBuilder getPhraseSetsOrBuilder(
    *
    * repeated .google.cloud.speech.v1p1beta1.CustomClass custom_classes = 3;
    */
-  com.google.cloud.speech.v1p1beta1.CustomClassOrBuilder getCustomClassesOrBuilder(
-      int index);
+  com.google.cloud.speech.v1p1beta1.CustomClassOrBuilder getCustomClassesOrBuilder(int index);
 }
diff --git a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptationProto.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptationProto.java
new file mode 100644
index 000000000..2d3104cbb
--- /dev/null
+++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptationProto.java
@@ -0,0 +1,318 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: google/cloud/speech/v1p1beta1/cloud_speech_adaptation.proto
+
+package com.google.cloud.speech.v1p1beta1;
+
+public final class SpeechAdaptationProto {
+  private SpeechAdaptationProto() {}
+
+  public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {}
+
+  public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) {
+    registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry);
+  }
+
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_speech_v1p1beta1_CreatePhraseSetRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_speech_v1p1beta1_CreatePhraseSetRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_speech_v1p1beta1_UpdatePhraseSetRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_speech_v1p1beta1_UpdatePhraseSetRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_speech_v1p1beta1_GetPhraseSetRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_speech_v1p1beta1_GetPhraseSetRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_speech_v1p1beta1_ListPhraseSetRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_speech_v1p1beta1_ListPhraseSetRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_speech_v1p1beta1_ListPhraseSetResponse_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_speech_v1p1beta1_ListPhraseSetResponse_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_speech_v1p1beta1_DeletePhraseSetRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_speech_v1p1beta1_DeletePhraseSetRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_speech_v1p1beta1_CreateCustomClassRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_speech_v1p1beta1_CreateCustomClassRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_speech_v1p1beta1_UpdateCustomClassRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_speech_v1p1beta1_UpdateCustomClassRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_speech_v1p1beta1_GetCustomClassRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_speech_v1p1beta1_GetCustomClassRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_speech_v1p1beta1_ListCustomClassesRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_speech_v1p1beta1_ListCustomClassesRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_speech_v1p1beta1_ListCustomClassesResponse_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_speech_v1p1beta1_ListCustomClassesResponse_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_speech_v1p1beta1_DeleteCustomClassRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_speech_v1p1beta1_DeleteCustomClassRequest_fieldAccessorTable;
+
+  public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+    return descriptor;
+  }
+
+  private static com.google.protobuf.Descriptors.FileDescriptor descriptor;
+
+  static {
+    java.lang.String[] descriptorData = {
+      "\n;google/cloud/speech/v1p1beta1/cloud_sp"
+          + "eech_adaptation.proto\022\035google.cloud.spee"
+          + "ch.v1p1beta1\032\034google/api/annotations.pro"
+          + "to\032\027google/api/client.proto\032\037google/api/"
+          + "field_behavior.proto\032\031google/api/resourc"
+          + "e.proto\032,google/cloud/speech/v1p1beta1/r"
+          + "esource.proto\032\033google/protobuf/empty.pro"
+          + "to\032 google/protobuf/field_mask.proto\"\260\001\n"
+          + "\026CreatePhraseSetRequest\0227\n\006parent\030\001 \001(\tB"
+          + "\'\340A\002\372A!\022\037speech.googleapis.com/PhraseSet"
+          + "\022\032\n\rphrase_set_id\030\002 \001(\tB\003\340A\002\022A\n\nphrase_s"
+          + "et\030\003 \001(\0132(.google.cloud.speech.v1p1beta1"
+          + ".PhraseSetB\003\340A\002\"\214\001\n\026UpdatePhraseSetReque"
+          + "st\022A\n\nphrase_set\030\001 \001(\0132(.google.cloud.sp"
+          + "eech.v1p1beta1.PhraseSetB\003\340A\002\022/\n\013update_"
+          + "mask\030\002 \001(\0132\032.google.protobuf.FieldMask\"L"
+          + "\n\023GetPhraseSetRequest\0225\n\004name\030\001 \001(\tB\'\340A\002"
+          + "\372A!\n\037speech.googleapis.com/PhraseSet\"v\n\024"
+          + "ListPhraseSetRequest\0227\n\006parent\030\001 \001(\tB\'\340A"
+          + "\002\372A!\022\037speech.googleapis.com/PhraseSet\022\021\n"
+          + "\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"o\n\025"
+          + "ListPhraseSetResponse\022=\n\013phrase_sets\030\001 \003"
+          + "(\0132(.google.cloud.speech.v1p1beta1.Phras"
+          + "eSet\022\027\n\017next_page_token\030\002 \001(\t\"O\n\026DeleteP"
+          + "hraseSetRequest\0225\n\004name\030\001 \001(\tB\'\340A\002\372A!\n\037s"
+          + "peech.googleapis.com/PhraseSet\"\272\001\n\030Creat"
+          + "eCustomClassRequest\0229\n\006parent\030\001 \001(\tB)\340A\002"
+          + "\372A#\022!speech.googleapis.com/CustomClass\022\034"
+          + "\n\017custom_class_id\030\002 \001(\tB\003\340A\002\022E\n\014custom_c"
+          + "lass\030\003 \001(\0132*.google.cloud.speech.v1p1bet"
+          + "a1.CustomClassB\003\340A\002\"\222\001\n\030UpdateCustomClas"
+          + "sRequest\022E\n\014custom_class\030\001 \001(\0132*.google."
+          + "cloud.speech.v1p1beta1.CustomClassB\003\340A\002\022"
+          + "/\n\013update_mask\030\002 \001(\0132\032.google.protobuf.F"
+          + "ieldMask\"P\n\025GetCustomClassRequest\0227\n\004nam"
+          + "e\030\001 \001(\tB)\340A\002\372A#\n!speech.googleapis.com/C"
+          + "ustomClass\"|\n\030ListCustomClassesRequest\0229"
+          + "\n\006parent\030\001 \001(\tB)\340A\002\372A#\022!speech.googleapi"
+          + "s.com/CustomClass\022\021\n\tpage_size\030\002 \001(\005\022\022\n\n"
+          + "page_token\030\003 \001(\t\"x\n\031ListCustomClassesRes"
+          + "ponse\022B\n\016custom_classes\030\001 \003(\0132*.google.c"
+          + "loud.speech.v1p1beta1.CustomClass\022\027\n\017nex"
+          + "t_page_token\030\002 \001(\t\"S\n\030DeleteCustomClassR"
+          + "equest\0227\n\004name\030\001 \001(\tB)\340A\002\372A#\n!speech.goo"
+          + "gleapis.com/CustomClass2\322\020\n\nAdaptation\022\326"
+          + "\001\n\017CreatePhraseSet\0225.google.cloud.speech"
+          + ".v1p1beta1.CreatePhraseSetRequest\032(.goog"
+          + "le.cloud.speech.v1p1beta1.PhraseSet\"b\202\323\344"
+          + "\223\002:\"5/v1p1beta1/{parent=projects/*/locat"
+          + "ions/*}/phraseSets:\001*\332A\037parent,phrase_se"
+          + "t,phrase_set_id\022\262\001\n\014GetPhraseSet\0222.googl"
+          + "e.cloud.speech.v1p1beta1.GetPhraseSetReq"
+          + "uest\032(.google.cloud.speech.v1p1beta1.Phr"
+          + "aseSet\"D\202\323\344\223\0027\0225/v1p1beta1/{name=project"
+          + "s/*/locations/*/phraseSets/*}\332A\004name\022\302\001\n"
+          + "\rListPhraseSet\0223.google.cloud.speech.v1p"
+          + "1beta1.ListPhraseSetRequest\0324.google.clo"
+          + "ud.speech.v1p1beta1.ListPhraseSetRespons"
+          + "e\"F\202\323\344\223\0027\0225/v1p1beta1/{parent=projects/*"
+          + "/locations/*}/phraseSets\332A\006parent\022\341\001\n\017Up"
+          + "datePhraseSet\0225.google.cloud.speech.v1p1"
+          + "beta1.UpdatePhraseSetRequest\032(.google.cl"
+          + "oud.speech.v1p1beta1.PhraseSet\"m\202\323\344\223\002N2@"
+          + "/v1p1beta1/{phrase_set.name=projects/*/l"
+          + "ocations/*/phraseSets/*}:\nphrase_set\332A\026p"
+          + "hrase_set,update_mask\022\246\001\n\017DeletePhraseSe"
+          + "t\0225.google.cloud.speech.v1p1beta1.Delete"
+          + "PhraseSetRequest\032\026.google.protobuf.Empty"
+          + "\"D\202\323\344\223\0027*5/v1p1beta1/{name=projects/*/lo"
+          + "cations/*/phraseSets/*}\332A\004name\022\343\001\n\021Creat"
+          + "eCustomClass\0227.google.cloud.speech.v1p1b"
+          + "eta1.CreateCustomClassRequest\032*.google.c"
+          + "loud.speech.v1p1beta1.CustomClass\"i\202\323\344\223\002"
+          + "=\"8/v1p1beta1/{parent=projects/*/locatio"
+          + "ns/*}/customClasses:\001*\332A#parent,custom_c"
+          + "lass,custom_class_id\022\273\001\n\016GetCustomClass\022"
+          + "4.google.cloud.speech.v1p1beta1.GetCusto"
+          + "mClassRequest\032*.google.cloud.speech.v1p1"
+          + "beta1.CustomClass\"G\202\323\344\223\002:\0228/v1p1beta1/{n"
+          + "ame=projects/*/locations/*/customClasses"
+          + "/*}\332A\004name\022\321\001\n\021ListCustomClasses\0227.googl"
+          + "e.cloud.speech.v1p1beta1.ListCustomClass"
+          + "esRequest\0328.google.cloud.speech.v1p1beta"
+          + "1.ListCustomClassesResponse\"I\202\323\344\223\002:\0228/v1"
+          + "p1beta1/{parent=projects/*/locations/*}/"
+          + "customClasses\332A\006parent\022\360\001\n\021UpdateCustomC"
+          + "lass\0227.google.cloud.speech.v1p1beta1.Upd"
+          + "ateCustomClassRequest\032*.google.cloud.spe"
+          + "ech.v1p1beta1.CustomClass\"v\202\323\344\223\002U2E/v1p1"
+          + "beta1/{custom_class.name=projects/*/loca"
+          + "tions/*/customClasses/*}:\014custom_class\332A"
+          + "\030custom_class,update_mask\022\255\001\n\021DeleteCust"
+          + "omClass\0227.google.cloud.speech.v1p1beta1."
+          + "DeleteCustomClassRequest\032\026.google.protob"
+          + "uf.Empty\"G\202\323\344\223\002:*8/v1p1beta1/{name=proje"
+          + "cts/*/locations/*/customClasses/*}\332A\004nam"
+          + "e\032I\312A\025speech.googleapis.com\322A.https://ww"
+          + "w.googleapis.com/auth/cloud-platformB\212\001\n"
+          + "!com.google.cloud.speech.v1p1beta1B\025Spee"
+          + "chAdaptationProtoP\001ZCgoogle.golang.org/g"
+          + "enproto/googleapis/cloud/speech/v1p1beta"
+          + "1;speech\370\001\001\242\002\003GCSb\006proto3"
+    };
+    descriptor =
+        com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
+            descriptorData,
+            new com.google.protobuf.Descriptors.FileDescriptor[] {
+              com.google.api.AnnotationsProto.getDescriptor(),
+              com.google.api.ClientProto.getDescriptor(),
+              com.google.api.FieldBehaviorProto.getDescriptor(),
+              com.google.api.ResourceProto.getDescriptor(),
+              com.google.cloud.speech.v1p1beta1.SpeechResourceProto.getDescriptor(),
+              com.google.protobuf.EmptyProto.getDescriptor(),
+              com.google.protobuf.FieldMaskProto.getDescriptor(),
+            });
+    internal_static_google_cloud_speech_v1p1beta1_CreatePhraseSetRequest_descriptor =
+        getDescriptor().getMessageTypes().get(0);
+    internal_static_google_cloud_speech_v1p1beta1_CreatePhraseSetRequest_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_speech_v1p1beta1_CreatePhraseSetRequest_descriptor,
+            new java.lang.String[] {
+              "Parent", "PhraseSetId", "PhraseSet",
+            });
+    internal_static_google_cloud_speech_v1p1beta1_UpdatePhraseSetRequest_descriptor =
+        getDescriptor().getMessageTypes().get(1);
+    internal_static_google_cloud_speech_v1p1beta1_UpdatePhraseSetRequest_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_speech_v1p1beta1_UpdatePhraseSetRequest_descriptor,
+            new java.lang.String[] {
+              "PhraseSet", "UpdateMask",
+            });
+    internal_static_google_cloud_speech_v1p1beta1_GetPhraseSetRequest_descriptor =
+        getDescriptor().getMessageTypes().get(2);
+    internal_static_google_cloud_speech_v1p1beta1_GetPhraseSetRequest_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_speech_v1p1beta1_GetPhraseSetRequest_descriptor,
+            new java.lang.String[] {
+              "Name",
+            });
+    internal_static_google_cloud_speech_v1p1beta1_ListPhraseSetRequest_descriptor =
+        getDescriptor().getMessageTypes().get(3);
+    internal_static_google_cloud_speech_v1p1beta1_ListPhraseSetRequest_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_speech_v1p1beta1_ListPhraseSetRequest_descriptor,
+            new java.lang.String[] {
+              "Parent", "PageSize", "PageToken",
+            });
+    internal_static_google_cloud_speech_v1p1beta1_ListPhraseSetResponse_descriptor =
+        getDescriptor().getMessageTypes().get(4);
+    internal_static_google_cloud_speech_v1p1beta1_ListPhraseSetResponse_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_speech_v1p1beta1_ListPhraseSetResponse_descriptor,
+            new java.lang.String[] {
+              "PhraseSets", "NextPageToken",
+            });
+    internal_static_google_cloud_speech_v1p1beta1_DeletePhraseSetRequest_descriptor =
+        getDescriptor().getMessageTypes().get(5);
+    internal_static_google_cloud_speech_v1p1beta1_DeletePhraseSetRequest_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_speech_v1p1beta1_DeletePhraseSetRequest_descriptor,
+            new java.lang.String[] {
+              "Name",
+            });
+    internal_static_google_cloud_speech_v1p1beta1_CreateCustomClassRequest_descriptor =
+        getDescriptor().getMessageTypes().get(6);
+    internal_static_google_cloud_speech_v1p1beta1_CreateCustomClassRequest_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_speech_v1p1beta1_CreateCustomClassRequest_descriptor,
+            new java.lang.String[] {
+              "Parent", "CustomClassId", "CustomClass",
+            });
+    internal_static_google_cloud_speech_v1p1beta1_UpdateCustomClassRequest_descriptor =
+        getDescriptor().getMessageTypes().get(7);
+    internal_static_google_cloud_speech_v1p1beta1_UpdateCustomClassRequest_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_speech_v1p1beta1_UpdateCustomClassRequest_descriptor,
+            new java.lang.String[] {
+              "CustomClass", "UpdateMask",
+            });
+    internal_static_google_cloud_speech_v1p1beta1_GetCustomClassRequest_descriptor =
+        getDescriptor().getMessageTypes().get(8);
+    internal_static_google_cloud_speech_v1p1beta1_GetCustomClassRequest_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_speech_v1p1beta1_GetCustomClassRequest_descriptor,
+            new java.lang.String[] {
+              "Name",
+            });
+    internal_static_google_cloud_speech_v1p1beta1_ListCustomClassesRequest_descriptor =
+        getDescriptor().getMessageTypes().get(9);
+    internal_static_google_cloud_speech_v1p1beta1_ListCustomClassesRequest_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_speech_v1p1beta1_ListCustomClassesRequest_descriptor,
+            new java.lang.String[] {
+              "Parent", "PageSize", "PageToken",
+            });
+    internal_static_google_cloud_speech_v1p1beta1_ListCustomClassesResponse_descriptor =
+        getDescriptor().getMessageTypes().get(10);
+    internal_static_google_cloud_speech_v1p1beta1_ListCustomClassesResponse_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_speech_v1p1beta1_ListCustomClassesResponse_descriptor,
+            new java.lang.String[] {
+              "CustomClasses", "NextPageToken",
+            });
+    internal_static_google_cloud_speech_v1p1beta1_DeleteCustomClassRequest_descriptor =
+        getDescriptor().getMessageTypes().get(11);
+    internal_static_google_cloud_speech_v1p1beta1_DeleteCustomClassRequest_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_speech_v1p1beta1_DeleteCustomClassRequest_descriptor,
+            new java.lang.String[] {
+              "Name",
+            });
+    com.google.protobuf.ExtensionRegistry registry =
+        com.google.protobuf.ExtensionRegistry.newInstance();
+    registry.add(com.google.api.ClientProto.defaultHost);
+    registry.add(com.google.api.FieldBehaviorProto.fieldBehavior);
+    registry.add(com.google.api.AnnotationsProto.http);
+    registry.add(com.google.api.ClientProto.methodSignature);
+    registry.add(com.google.api.ClientProto.oauthScopes);
+    registry.add(com.google.api.ResourceProto.resourceReference);
+    com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor(
+        descriptor, registry);
+    com.google.api.AnnotationsProto.getDescriptor();
+    com.google.api.ClientProto.getDescriptor();
+    com.google.api.FieldBehaviorProto.getDescriptor();
+    com.google.api.ResourceProto.getDescriptor();
+    com.google.cloud.speech.v1p1beta1.SpeechResourceProto.getDescriptor();
+    com.google.protobuf.EmptyProto.getDescriptor();
+    com.google.protobuf.FieldMaskProto.getDescriptor();
+  }
+
+  // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechContext.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechContext.java
similarity index 80%
rename from owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechContext.java
rename to proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechContext.java
index 1ffccd1f7..c420a3366 100644
--- a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechContext.java
+++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechContext.java
@@ -1,9 +1,26 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/speech/v1p1beta1/cloud_speech.proto
 
 package com.google.cloud.speech.v1p1beta1;
 
 /**
+ *
+ *
  * 
  * Provides "hints" to the speech recognizer to favor specific words and phrases
  * in the results.
@@ -11,31 +28,31 @@
  *
  * Protobuf type {@code google.cloud.speech.v1p1beta1.SpeechContext}
  */
-public final class SpeechContext extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class SpeechContext extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.speech.v1p1beta1.SpeechContext)
     SpeechContextOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use SpeechContext.newBuilder() to construct.
   private SpeechContext(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private SpeechContext() {
     phrases_ = com.google.protobuf.LazyStringArrayList.EMPTY;
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new SpeechContext();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private SpeechContext(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -55,34 +72,34 @@ private SpeechContext(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              phrases_ = new com.google.protobuf.LazyStringArrayList();
-              mutable_bitField0_ |= 0x00000001;
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                phrases_ = new com.google.protobuf.LazyStringArrayList();
+                mutable_bitField0_ |= 0x00000001;
+              }
+              phrases_.add(s);
+              break;
             }
-            phrases_.add(s);
-            break;
-          }
-          case 37: {
-
-            boost_ = input.readFloat();
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          case 37:
+            {
+              boost_ = input.readFloat();
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         phrases_ = phrases_.getUnmodifiableView();
@@ -91,22 +108,27 @@ private SpeechContext(
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_SpeechContext_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.speech.v1p1beta1.SpeechProto
+        .internal_static_google_cloud_speech_v1p1beta1_SpeechContext_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_SpeechContext_fieldAccessorTable
+    return com.google.cloud.speech.v1p1beta1.SpeechProto
+        .internal_static_google_cloud_speech_v1p1beta1_SpeechContext_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v1p1beta1.SpeechContext.class, com.google.cloud.speech.v1p1beta1.SpeechContext.Builder.class);
+            com.google.cloud.speech.v1p1beta1.SpeechContext.class,
+            com.google.cloud.speech.v1p1beta1.SpeechContext.Builder.class);
   }
 
   public static final int PHRASES_FIELD_NUMBER = 1;
   private com.google.protobuf.LazyStringList phrases_;
   /**
+   *
+   *
    * 
    * A list of strings containing words and phrases "hints" so that
    * the speech recognition is more likely to recognize them. This can be used
@@ -122,13 +144,15 @@ private SpeechContext(
    * 
* * repeated string phrases = 1; + * * @return A list containing the phrases. */ - public com.google.protobuf.ProtocolStringList - getPhrasesList() { + public com.google.protobuf.ProtocolStringList getPhrasesList() { return phrases_; } /** + * + * *
    * A list of strings containing words and phrases "hints" so that
    * the speech recognition is more likely to recognize them. This can be used
@@ -144,12 +168,15 @@ private SpeechContext(
    * 
* * repeated string phrases = 1; + * * @return The count of phrases. */ public int getPhrasesCount() { return phrases_.size(); } /** + * + * *
    * A list of strings containing words and phrases "hints" so that
    * the speech recognition is more likely to recognize them. This can be used
@@ -165,6 +192,7 @@ public int getPhrasesCount() {
    * 
* * repeated string phrases = 1; + * * @param index The index of the element to return. * @return The phrases at the given index. */ @@ -172,6 +200,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
@@ -187,17 +217,19 @@ public java.lang.String getPhrases(int index) {
    * 
* * repeated string phrases = 1; + * * @param index The index of the value to return. * @return The bytes of the phrases at the given index. */ - public com.google.protobuf.ByteString - getPhrasesBytes(int index) { + public com.google.protobuf.ByteString getPhrasesBytes(int index) { return phrases_.getByteString(index); } public static final int BOOST_FIELD_NUMBER = 4; private float boost_; /** + * + * *
    * Hint Boost. Positive value will increase the probability that a specific
    * phrase will be recognized over other similar sounding phrases. The higher
@@ -210,6 +242,7 @@ public java.lang.String getPhrases(int index) {
    * 
* * float boost = 4; + * * @return The boost. */ @java.lang.Override @@ -218,6 +251,7 @@ public float getBoost() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -229,8 +263,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < phrases_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, phrases_.getRaw(i)); } @@ -255,8 +288,7 @@ public int getSerializedSize() { size += 1 * getPhrasesList().size(); } if (boost_ != 0F) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(4, boost_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(4, boost_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -266,18 +298,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1p1beta1.SpeechContext)) { return super.equals(obj); } - com.google.cloud.speech.v1p1beta1.SpeechContext other = (com.google.cloud.speech.v1p1beta1.SpeechContext) obj; + com.google.cloud.speech.v1p1beta1.SpeechContext other = + (com.google.cloud.speech.v1p1beta1.SpeechContext) obj; - if (!getPhrasesList() - .equals(other.getPhrasesList())) return false; + if (!getPhrasesList().equals(other.getPhrasesList())) return false; if (java.lang.Float.floatToIntBits(getBoost()) - != java.lang.Float.floatToIntBits( - other.getBoost())) return false; + != java.lang.Float.floatToIntBits(other.getBoost())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -294,104 +325,110 @@ public int hashCode() { hash = (53 * hash) + getPhrasesList().hashCode(); } hash = (37 * hash) + BOOST_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getBoost()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getBoost()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.speech.v1p1beta1.SpeechContext parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.speech.v1p1beta1.SpeechContext parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.SpeechContext parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.SpeechContext parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.SpeechContext parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.SpeechContext parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.SpeechContext parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.SpeechContext parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.SpeechContext parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.SpeechContext parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1p1beta1.SpeechContext parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.SpeechContext parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.SpeechContext parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.SpeechContext parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.speech.v1p1beta1.SpeechContext prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Provides "hints" to the speech recognizer to favor specific words and phrases
    * in the results.
@@ -399,21 +436,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.speech.v1p1beta1.SpeechContext}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1p1beta1.SpeechContext)
       com.google.cloud.speech.v1p1beta1.SpeechContextOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_SpeechContext_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.speech.v1p1beta1.SpeechProto
+          .internal_static_google_cloud_speech_v1p1beta1_SpeechContext_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_SpeechContext_fieldAccessorTable
+      return com.google.cloud.speech.v1p1beta1.SpeechProto
+          .internal_static_google_cloud_speech_v1p1beta1_SpeechContext_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v1p1beta1.SpeechContext.class, com.google.cloud.speech.v1p1beta1.SpeechContext.Builder.class);
+              com.google.cloud.speech.v1p1beta1.SpeechContext.class,
+              com.google.cloud.speech.v1p1beta1.SpeechContext.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v1p1beta1.SpeechContext.newBuilder()
@@ -421,16 +460,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -442,9 +480,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
@@ -463,7 +501,8 @@ public com.google.cloud.speech.v1p1beta1.SpeechContext build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v1p1beta1.SpeechContext buildPartial() {
-      com.google.cloud.speech.v1p1beta1.SpeechContext result = new com.google.cloud.speech.v1p1beta1.SpeechContext(this);
+      com.google.cloud.speech.v1p1beta1.SpeechContext result =
+          new com.google.cloud.speech.v1p1beta1.SpeechContext(this);
       int from_bitField0_ = bitField0_;
       if (((bitField0_ & 0x00000001) != 0)) {
         phrases_ = phrases_.getUnmodifiableView();
@@ -479,38 +518,39 @@ public com.google.cloud.speech.v1p1beta1.SpeechContext buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.speech.v1p1beta1.SpeechContext) {
-        return mergeFrom((com.google.cloud.speech.v1p1beta1.SpeechContext)other);
+        return mergeFrom((com.google.cloud.speech.v1p1beta1.SpeechContext) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -518,7 +558,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_;
@@ -560,16 +601,21 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
-    private com.google.protobuf.LazyStringList phrases_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+    private com.google.protobuf.LazyStringList phrases_ =
+        com.google.protobuf.LazyStringArrayList.EMPTY;
+
     private void ensurePhrasesIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
         phrases_ = new com.google.protobuf.LazyStringArrayList(phrases_);
         bitField0_ |= 0x00000001;
-       }
+      }
     }
     /**
+     *
+     *
      * 
      * A list of strings containing words and phrases "hints" so that
      * the speech recognition is more likely to recognize them. This can be used
@@ -585,13 +631,15 @@ private void ensurePhrasesIsMutable() {
      * 
* * repeated string phrases = 1; + * * @return A list containing the phrases. */ - public com.google.protobuf.ProtocolStringList - getPhrasesList() { + public com.google.protobuf.ProtocolStringList getPhrasesList() { return phrases_.getUnmodifiableView(); } /** + * + * *
      * A list of strings containing words and phrases "hints" so that
      * the speech recognition is more likely to recognize them. This can be used
@@ -607,12 +655,15 @@ private void ensurePhrasesIsMutable() {
      * 
* * repeated string phrases = 1; + * * @return The count of phrases. */ public int getPhrasesCount() { return phrases_.size(); } /** + * + * *
      * A list of strings containing words and phrases "hints" so that
      * the speech recognition is more likely to recognize them. This can be used
@@ -628,6 +679,7 @@ public int getPhrasesCount() {
      * 
* * repeated string phrases = 1; + * * @param index The index of the element to return. * @return The phrases at the given index. */ @@ -635,6 +687,8 @@ public java.lang.String getPhrases(int index) { return phrases_.get(index); } /** + * + * *
      * A list of strings containing words and phrases "hints" so that
      * the speech recognition is more likely to recognize them. This can be used
@@ -650,14 +704,16 @@ public java.lang.String getPhrases(int index) {
      * 
* * repeated string phrases = 1; + * * @param index The index of the value to return. * @return The bytes of the phrases at the given index. */ - public com.google.protobuf.ByteString - getPhrasesBytes(int index) { + public com.google.protobuf.ByteString getPhrasesBytes(int index) { return phrases_.getByteString(index); } /** + * + * *
      * A list of strings containing words and phrases "hints" so that
      * the speech recognition is more likely to recognize them. This can be used
@@ -673,21 +729,23 @@ public java.lang.String getPhrases(int index) {
      * 
* * repeated string phrases = 1; + * * @param index The index to set the value at. * @param value The phrases to set. * @return This builder for chaining. */ - public Builder setPhrases( - int index, java.lang.String value) { + public Builder setPhrases(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensurePhrasesIsMutable(); + throw new NullPointerException(); + } + ensurePhrasesIsMutable(); phrases_.set(index, value); onChanged(); return this; } /** + * + * *
      * A list of strings containing words and phrases "hints" so that
      * the speech recognition is more likely to recognize them. This can be used
@@ -703,20 +761,22 @@ public Builder setPhrases(
      * 
* * repeated string phrases = 1; + * * @param value The phrases to add. * @return This builder for chaining. */ - public Builder addPhrases( - java.lang.String value) { + public Builder addPhrases(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensurePhrasesIsMutable(); + throw new NullPointerException(); + } + ensurePhrasesIsMutable(); phrases_.add(value); onChanged(); return this; } /** + * + * *
      * A list of strings containing words and phrases "hints" so that
      * the speech recognition is more likely to recognize them. This can be used
@@ -732,18 +792,19 @@ public Builder addPhrases(
      * 
* * repeated string phrases = 1; + * * @param values The phrases to add. * @return This builder for chaining. */ - public Builder addAllPhrases( - java.lang.Iterable values) { + public Builder addAllPhrases(java.lang.Iterable values) { ensurePhrasesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, phrases_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, phrases_); onChanged(); return this; } /** + * + * *
      * A list of strings containing words and phrases "hints" so that
      * the speech recognition is more likely to recognize them. This can be used
@@ -759,6 +820,7 @@ public Builder addAllPhrases(
      * 
* * repeated string phrases = 1; + * * @return This builder for chaining. */ public Builder clearPhrases() { @@ -768,6 +830,8 @@ public Builder clearPhrases() { return this; } /** + * + * *
      * A list of strings containing words and phrases "hints" so that
      * the speech recognition is more likely to recognize them. This can be used
@@ -783,23 +847,25 @@ public Builder clearPhrases() {
      * 
* * repeated string phrases = 1; + * * @param value The bytes of the phrases to add. * @return This builder for chaining. */ - public Builder addPhrasesBytes( - com.google.protobuf.ByteString value) { + public Builder addPhrasesBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensurePhrasesIsMutable(); phrases_.add(value); onChanged(); return this; } - private float boost_ ; + private float boost_; /** + * + * *
      * Hint Boost. Positive value will increase the probability that a specific
      * phrase will be recognized over other similar sounding phrases. The higher
@@ -812,6 +878,7 @@ public Builder addPhrasesBytes(
      * 
* * float boost = 4; + * * @return The boost. */ @java.lang.Override @@ -819,6 +886,8 @@ public float getBoost() { return boost_; } /** + * + * *
      * Hint Boost. Positive value will increase the probability that a specific
      * phrase will be recognized over other similar sounding phrases. The higher
@@ -831,16 +900,19 @@ public float getBoost() {
      * 
* * float boost = 4; + * * @param value The boost to set. * @return This builder for chaining. */ public Builder setBoost(float value) { - + boost_ = value; onChanged(); return this; } /** + * + * *
      * Hint Boost. Positive value will increase the probability that a specific
      * phrase will be recognized over other similar sounding phrases. The higher
@@ -853,17 +925,18 @@ public Builder setBoost(float value) {
      * 
* * float boost = 4; + * * @return This builder for chaining. */ public Builder clearBoost() { - + boost_ = 0F; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -873,12 +946,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(); } @@ -887,16 +960,16 @@ public static com.google.cloud.speech.v1p1beta1.SpeechContext getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SpeechContext parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SpeechContext(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SpeechContext parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SpeechContext(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -911,6 +984,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.SpeechContext getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechContextOrBuilder.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechContextOrBuilder.java similarity index 85% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechContextOrBuilder.java rename to proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechContextOrBuilder.java index 1daae97d3..9c1e1ba58 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechContextOrBuilder.java +++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechContextOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech.proto package com.google.cloud.speech.v1p1beta1; -public interface SpeechContextOrBuilder extends +public interface SpeechContextOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1p1beta1.SpeechContext) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * A list of strings containing words and phrases "hints" so that
    * the speech recognition is more likely to recognize them. This can be used
@@ -23,11 +41,13 @@ public interface SpeechContextOrBuilder extends
    * 
* * repeated string phrases = 1; + * * @return A list containing the phrases. */ - java.util.List - getPhrasesList(); + java.util.List getPhrasesList(); /** + * + * *
    * A list of strings containing words and phrases "hints" so that
    * the speech recognition is more likely to recognize them. This can be used
@@ -43,10 +63,13 @@ public interface SpeechContextOrBuilder extends
    * 
* * repeated string phrases = 1; + * * @return The count of phrases. */ int getPhrasesCount(); /** + * + * *
    * A list of strings containing words and phrases "hints" so that
    * the speech recognition is more likely to recognize them. This can be used
@@ -62,11 +85,14 @@ public interface SpeechContextOrBuilder extends
    * 
* * repeated string phrases = 1; + * * @param index The index of the element to return. * @return The phrases at the given index. */ java.lang.String getPhrases(int index); /** + * + * *
    * A list of strings containing words and phrases "hints" so that
    * the speech recognition is more likely to recognize them. This can be used
@@ -82,13 +108,15 @@ public interface SpeechContextOrBuilder extends
    * 
* * repeated string phrases = 1; + * * @param index The index of the value to return. * @return The bytes of the phrases at the given index. */ - com.google.protobuf.ByteString - getPhrasesBytes(int index); + com.google.protobuf.ByteString getPhrasesBytes(int index); /** + * + * *
    * Hint Boost. Positive value will increase the probability that a specific
    * phrase will be recognized over other similar sounding phrases. The higher
@@ -101,6 +129,7 @@ public interface SpeechContextOrBuilder extends
    * 
* * float boost = 4; + * * @return The boost. */ float getBoost(); diff --git a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechProto.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechProto.java new file mode 100644 index 000000000..e858c793b --- /dev/null +++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechProto.java @@ -0,0 +1,483 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/speech/v1p1beta1/cloud_speech.proto + +package com.google.cloud.speech.v1p1beta1; + +public final class SpeechProto { + private SpeechProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1p1beta1_RecognizeRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1p1beta1_RecognizeRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1p1beta1_TranscriptOutputConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1p1beta1_TranscriptOutputConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1p1beta1_StreamingRecognizeRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1p1beta1_StreamingRecognizeRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1p1beta1_StreamingRecognitionConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1p1beta1_StreamingRecognitionConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1p1beta1_RecognitionConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1p1beta1_RecognitionConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1p1beta1_SpeakerDiarizationConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1p1beta1_SpeakerDiarizationConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1p1beta1_RecognitionMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1p1beta1_RecognitionMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1p1beta1_SpeechContext_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1p1beta1_SpeechContext_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1p1beta1_RecognitionAudio_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1p1beta1_RecognitionAudio_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1p1beta1_RecognizeResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1p1beta1_RecognizeResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1p1beta1_StreamingRecognizeResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1p1beta1_StreamingRecognizeResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1p1beta1_StreamingRecognitionResult_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1p1beta1_StreamingRecognitionResult_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1p1beta1_SpeechRecognitionResult_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1p1beta1_SpeechRecognitionResult_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1p1beta1_SpeechRecognitionAlternative_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1p1beta1_SpeechRecognitionAlternative_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1p1beta1_WordInfo_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1p1beta1_WordInfo_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n0google/cloud/speech/v1p1beta1/cloud_sp" + + "eech.proto\022\035google.cloud.speech.v1p1beta" + + "1\032\034google/api/annotations.proto\032\027google/" + + "api/client.proto\032\037google/api/field_behav" + + "ior.proto\032,google/cloud/speech/v1p1beta1" + + "/resource.proto\032#google/longrunning/oper" + + "ations.proto\032\031google/protobuf/any.proto\032" + + "\036google/protobuf/duration.proto\032\037google/" + + "protobuf/timestamp.proto\032\036google/protobu" + + "f/wrappers.proto\032\027google/rpc/status.prot" + + "o\"\236\001\n\020RecognizeRequest\022E\n\006config\030\001 \001(\01320" + + ".google.cloud.speech.v1p1beta1.Recogniti" + + "onConfigB\003\340A\002\022C\n\005audio\030\002 \001(\0132/.google.cl" + + "oud.speech.v1p1beta1.RecognitionAudioB\003\340" + + "A\002\"\374\001\n\033LongRunningRecognizeRequest\022E\n\006co" + + "nfig\030\001 \001(\01320.google.cloud.speech.v1p1bet" + + "a1.RecognitionConfigB\003\340A\002\022C\n\005audio\030\002 \001(\013" + + "2/.google.cloud.speech.v1p1beta1.Recogni" + + "tionAudioB\003\340A\002\022Q\n\routput_config\030\004 \001(\01325." + + "google.cloud.speech.v1p1beta1.Transcript" + + "OutputConfigB\003\340A\001\":\n\026TranscriptOutputCon" + + "fig\022\021\n\007gcs_uri\030\001 \001(\tH\000B\r\n\013output_type\"\240\001" + + "\n\031StreamingRecognizeRequest\022U\n\020streaming" + + "_config\030\001 \001(\01329.google.cloud.speech.v1p1" + + "beta1.StreamingRecognitionConfigH\000\022\027\n\rau" + + "dio_content\030\002 \001(\014H\000B\023\n\021streaming_request" + + "\"\226\001\n\032StreamingRecognitionConfig\022E\n\006confi" + + "g\030\001 \001(\01320.google.cloud.speech.v1p1beta1." + + "RecognitionConfigB\003\340A\002\022\030\n\020single_utteran" + + "ce\030\002 \001(\010\022\027\n\017interim_results\030\003 \001(\010\"\276\t\n\021Re" + + "cognitionConfig\022P\n\010encoding\030\001 \001(\0162>.goog" + + "le.cloud.speech.v1p1beta1.RecognitionCon" + + "fig.AudioEncoding\022\031\n\021sample_rate_hertz\030\002" + + " \001(\005\022\033\n\023audio_channel_count\030\007 \001(\005\022/\n\'ena" + + "ble_separate_recognition_per_channel\030\014 \001" + + "(\010\022\032\n\rlanguage_code\030\003 \001(\tB\003\340A\002\022\"\n\032altern" + + "ative_language_codes\030\022 \003(\t\022\030\n\020max_altern" + + "atives\030\004 \001(\005\022\030\n\020profanity_filter\030\005 \001(\010\022C" + + "\n\nadaptation\030\024 \001(\0132/.google.cloud.speech" + + ".v1p1beta1.SpeechAdaptation\022X\n\030transcrip" + + "t_normalization\030\030 \001(\01326.google.cloud.spe" + + "ech.v1p1beta1.TranscriptNormalization\022E\n" + + "\017speech_contexts\030\006 \003(\0132,.google.cloud.sp" + + "eech.v1p1beta1.SpeechContext\022 \n\030enable_w" + + "ord_time_offsets\030\010 \001(\010\022\036\n\026enable_word_co" + + "nfidence\030\017 \001(\010\022$\n\034enable_automatic_punct" + + "uation\030\013 \001(\010\022=\n\031enable_spoken_punctuatio" + + "n\030\026 \001(\0132\032.google.protobuf.BoolValue\0228\n\024e" + + "nable_spoken_emojis\030\027 \001(\0132\032.google.proto" + + "buf.BoolValue\022&\n\032enable_speaker_diarizat" + + "ion\030\020 \001(\010B\002\030\001\022%\n\031diarization_speaker_cou" + + "nt\030\021 \001(\005B\002\030\001\022S\n\022diarization_config\030\023 \001(\013" + + "27.google.cloud.speech.v1p1beta1.Speaker" + + "DiarizationConfig\022D\n\010metadata\030\t \001(\01322.go" + + "ogle.cloud.speech.v1p1beta1.RecognitionM" + + "etadata\022\r\n\005model\030\r \001(\t\022\024\n\014use_enhanced\030\016" + + " \001(\010\"\243\001\n\rAudioEncoding\022\030\n\024ENCODING_UNSPE" + + "CIFIED\020\000\022\014\n\010LINEAR16\020\001\022\010\n\004FLAC\020\002\022\t\n\005MULA" + + "W\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\tW" + + "EBM_OPUS\020\t\"\220\001\n\030SpeakerDiarizationConfig\022" + + "\"\n\032enable_speaker_diarization\030\001 \001(\010\022\031\n\021m" + + "in_speaker_count\030\002 \001(\005\022\031\n\021max_speaker_co" + + "unt\030\003 \001(\005\022\032\n\013speaker_tag\030\005 \001(\005B\005\030\001\340A\003\"\327\010" + + "\n\023RecognitionMetadata\022\\\n\020interaction_typ" + + "e\030\001 \001(\0162B.google.cloud.speech.v1p1beta1." + + "RecognitionMetadata.InteractionType\022$\n\034i" + + "ndustry_naics_code_of_audio\030\003 \001(\r\022b\n\023mic" + + "rophone_distance\030\004 \001(\0162E.google.cloud.sp" + + "eech.v1p1beta1.RecognitionMetadata.Micro" + + "phoneDistance\022a\n\023original_media_type\030\005 \001" + + "(\0162D.google.cloud.speech.v1p1beta1.Recog" + + "nitionMetadata.OriginalMediaType\022e\n\025reco" + + "rding_device_type\030\006 \001(\0162F.google.cloud.s" + + "peech.v1p1beta1.RecognitionMetadata.Reco" + + "rdingDeviceType\022\035\n\025recording_device_name" + + "\030\007 \001(\t\022\032\n\022original_mime_type\030\010 \001(\t\022\031\n\rob" + + "fuscated_id\030\t \001(\003B\002\030\001\022\023\n\013audio_topic\030\n \001" + + "(\t\"\305\001\n\017InteractionType\022 \n\034INTERACTION_TY" + + "PE_UNSPECIFIED\020\000\022\016\n\nDISCUSSION\020\001\022\020\n\014PRES" + + "ENTATION\020\002\022\016\n\nPHONE_CALL\020\003\022\r\n\tVOICEMAIL\020" + + "\004\022\033\n\027PROFESSIONALLY_PRODUCED\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_D" + + "ISTANCE_UNSPECIFIED\020\000\022\r\n\tNEARFIELD\020\001\022\014\n\010" + + "MIDFIELD\020\002\022\014\n\010FARFIELD\020\003\"N\n\021OriginalMedi" + + "aType\022#\n\037ORIGINAL_MEDIA_TYPE_UNSPECIFIED" + + "\020\000\022\t\n\005AUDIO\020\001\022\t\n\005VIDEO\020\002\"\244\001\n\023RecordingDe" + + "viceType\022%\n!RECORDING_DEVICE_TYPE_UNSPEC" + + "IFIED\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_DE" + + "VICE\020\005\022\027\n\023OTHER_INDOOR_DEVICE\020\006\"/\n\rSpeec" + + "hContext\022\017\n\007phrases\030\001 \003(\t\022\r\n\005boost\030\004 \001(\002" + + "\"D\n\020RecognitionAudio\022\021\n\007content\030\001 \001(\014H\000\022" + + "\r\n\003uri\030\002 \001(\tH\000B\016\n\014audio_source\"\222\001\n\021Recog" + + "nizeResponse\022G\n\007results\030\002 \003(\01326.google.c" + + "loud.speech.v1p1beta1.SpeechRecognitionR" + + "esult\0224\n\021total_billed_time\030\003 \001(\0132\031.googl" + + "e.protobuf.Duration\"\225\002\n\034LongRunningRecog" + + "nizeResponse\022G\n\007results\030\002 \003(\01326.google.c" + + "loud.speech.v1p1beta1.SpeechRecognitionR" + + "esult\0224\n\021total_billed_time\030\003 \001(\0132\031.googl" + + "e.protobuf.Duration\022L\n\routput_config\030\006 \001" + + "(\01325.google.cloud.speech.v1p1beta1.Trans" + + "criptOutputConfig\022(\n\014output_error\030\007 \001(\0132" + + "\022.google.rpc.Status\"\203\002\n\034LongRunningRecog" + + "nizeMetadata\022\030\n\020progress_percent\030\001 \001(\005\022." + + "\n\nstart_time\030\002 \001(\0132\032.google.protobuf.Tim" + + "estamp\0224\n\020last_update_time\030\003 \001(\0132\032.googl" + + "e.protobuf.Timestamp\022\020\n\003uri\030\004 \001(\tB\003\340A\003\022Q" + + "\n\routput_config\030\005 \001(\01325.google.cloud.spe" + + "ech.v1p1beta1.TranscriptOutputConfigB\003\340A" + + "\003\"\365\002\n\032StreamingRecognizeResponse\022!\n\005erro" + + "r\030\001 \001(\0132\022.google.rpc.Status\022J\n\007results\030\002" + + " \003(\01329.google.cloud.speech.v1p1beta1.Str" + + "eamingRecognitionResult\022d\n\021speech_event_" + + "type\030\004 \001(\0162I.google.cloud.speech.v1p1bet" + + "a1.StreamingRecognizeResponse.SpeechEven" + + "tType\0224\n\021total_billed_time\030\005 \001(\0132\031.googl" + + "e.protobuf.Duration\"L\n\017SpeechEventType\022\034" + + "\n\030SPEECH_EVENT_UNSPECIFIED\020\000\022\033\n\027END_OF_S" + + "INGLE_UTTERANCE\020\001\"\371\001\n\032StreamingRecogniti" + + "onResult\022Q\n\014alternatives\030\001 \003(\0132;.google." + + "cloud.speech.v1p1beta1.SpeechRecognition" + + "Alternative\022\020\n\010is_final\030\002 \001(\010\022\021\n\tstabili" + + "ty\030\003 \001(\002\0222\n\017result_end_time\030\004 \001(\0132\031.goog" + + "le.protobuf.Duration\022\023\n\013channel_tag\030\005 \001(" + + "\005\022\032\n\rlanguage_code\030\006 \001(\tB\003\340A\003\"\321\001\n\027Speech" + + "RecognitionResult\022Q\n\014alternatives\030\001 \003(\0132" + + ";.google.cloud.speech.v1p1beta1.SpeechRe" + + "cognitionAlternative\022\023\n\013channel_tag\030\002 \001(" + + "\005\0222\n\017result_end_time\030\004 \001(\0132\031.google.prot" + + "obuf.Duration\022\032\n\rlanguage_code\030\005 \001(\tB\003\340A" + + "\003\"~\n\034SpeechRecognitionAlternative\022\022\n\ntra" + + "nscript\030\001 \001(\t\022\022\n\nconfidence\030\002 \001(\002\0226\n\005wor" + + "ds\030\003 \003(\0132\'.google.cloud.speech.v1p1beta1" + + ".WordInfo\"\242\001\n\010WordInfo\022-\n\nstart_time\030\001 \001" + + "(\0132\031.google.protobuf.Duration\022+\n\010end_tim" + + "e\030\002 \001(\0132\031.google.protobuf.Duration\022\014\n\004wo" + + "rd\030\003 \001(\t\022\022\n\nconfidence\030\004 \001(\002\022\030\n\013speaker_" + + "tag\030\005 \001(\005B\003\340A\0032\202\005\n\006Speech\022\245\001\n\tRecognize\022" + + "/.google.cloud.speech.v1p1beta1.Recogniz" + + "eRequest\0320.google.cloud.speech.v1p1beta1" + + ".RecognizeResponse\"5\202\323\344\223\002 \"\033/v1p1beta1/s" + + "peech:recognize:\001*\332A\014config,audio\022\362\001\n\024Lo" + + "ngRunningRecognize\022:.google.cloud.speech" + + ".v1p1beta1.LongRunningRecognizeRequest\032\035" + + ".google.longrunning.Operation\"\177\202\323\344\223\002+\"&/" + + "v1p1beta1/speech:longrunningrecognize:\001*" + + "\332A\014config,audio\312A<\n\034LongRunningRecognize" + + "Response\022\034LongRunningRecognizeMetadata\022\217" + + "\001\n\022StreamingRecognize\0228.google.cloud.spe" + + "ech.v1p1beta1.StreamingRecognizeRequest\032" + + "9.google.cloud.speech.v1p1beta1.Streamin" + + "gRecognizeResponse\"\000(\0010\001\032I\312A\025speech.goog" + + "leapis.com\322A.https://www.googleapis.com/" + + "auth/cloud-platformB\200\001\n!com.google.cloud" + + ".speech.v1p1beta1B\013SpeechProtoP\001ZCgoogle" + + ".golang.org/genproto/googleapis/cloud/sp" + + "eech/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.AnyProto.getDescriptor(), + com.google.protobuf.DurationProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.protobuf.WrappersProto.getDescriptor(), + com.google.rpc.StatusProto.getDescriptor(), + }); + internal_static_google_cloud_speech_v1p1beta1_RecognizeRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_speech_v1p1beta1_RecognizeRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_speech_v1p1beta1_RecognizeRequest_descriptor, + new java.lang.String[] { + "Config", "Audio", + }); + internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeRequest_descriptor, + new java.lang.String[] { + "Config", "Audio", "OutputConfig", + }); + internal_static_google_cloud_speech_v1p1beta1_TranscriptOutputConfig_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_speech_v1p1beta1_TranscriptOutputConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_speech_v1p1beta1_TranscriptOutputConfig_descriptor, + new java.lang.String[] { + "GcsUri", "OutputType", + }); + internal_static_google_cloud_speech_v1p1beta1_StreamingRecognizeRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_speech_v1p1beta1_StreamingRecognizeRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_speech_v1p1beta1_StreamingRecognizeRequest_descriptor, + new java.lang.String[] { + "StreamingConfig", "AudioContent", "StreamingRequest", + }); + internal_static_google_cloud_speech_v1p1beta1_StreamingRecognitionConfig_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_speech_v1p1beta1_StreamingRecognitionConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_speech_v1p1beta1_StreamingRecognitionConfig_descriptor, + new java.lang.String[] { + "Config", "SingleUtterance", "InterimResults", + }); + internal_static_google_cloud_speech_v1p1beta1_RecognitionConfig_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_speech_v1p1beta1_RecognitionConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_speech_v1p1beta1_RecognitionConfig_descriptor, + new java.lang.String[] { + "Encoding", + "SampleRateHertz", + "AudioChannelCount", + "EnableSeparateRecognitionPerChannel", + "LanguageCode", + "AlternativeLanguageCodes", + "MaxAlternatives", + "ProfanityFilter", + "Adaptation", + "TranscriptNormalization", + "SpeechContexts", + "EnableWordTimeOffsets", + "EnableWordConfidence", + "EnableAutomaticPunctuation", + "EnableSpokenPunctuation", + "EnableSpokenEmojis", + "EnableSpeakerDiarization", + "DiarizationSpeakerCount", + "DiarizationConfig", + "Metadata", + "Model", + "UseEnhanced", + }); + internal_static_google_cloud_speech_v1p1beta1_SpeakerDiarizationConfig_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_speech_v1p1beta1_SpeakerDiarizationConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_speech_v1p1beta1_SpeakerDiarizationConfig_descriptor, + new java.lang.String[] { + "EnableSpeakerDiarization", "MinSpeakerCount", "MaxSpeakerCount", "SpeakerTag", + }); + internal_static_google_cloud_speech_v1p1beta1_RecognitionMetadata_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_speech_v1p1beta1_RecognitionMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_speech_v1p1beta1_RecognitionMetadata_descriptor, + new java.lang.String[] { + "InteractionType", + "IndustryNaicsCodeOfAudio", + "MicrophoneDistance", + "OriginalMediaType", + "RecordingDeviceType", + "RecordingDeviceName", + "OriginalMimeType", + "ObfuscatedId", + "AudioTopic", + }); + internal_static_google_cloud_speech_v1p1beta1_SpeechContext_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_speech_v1p1beta1_SpeechContext_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_speech_v1p1beta1_SpeechContext_descriptor, + new java.lang.String[] { + "Phrases", "Boost", + }); + internal_static_google_cloud_speech_v1p1beta1_RecognitionAudio_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_speech_v1p1beta1_RecognitionAudio_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_speech_v1p1beta1_RecognitionAudio_descriptor, + new java.lang.String[] { + "Content", "Uri", "AudioSource", + }); + internal_static_google_cloud_speech_v1p1beta1_RecognizeResponse_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_speech_v1p1beta1_RecognizeResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_speech_v1p1beta1_RecognizeResponse_descriptor, + new java.lang.String[] { + "Results", "TotalBilledTime", + }); + internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeResponse_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeResponse_descriptor, + new java.lang.String[] { + "Results", "TotalBilledTime", "OutputConfig", "OutputError", + }); + internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeMetadata_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeMetadata_descriptor, + new java.lang.String[] { + "ProgressPercent", "StartTime", "LastUpdateTime", "Uri", "OutputConfig", + }); + internal_static_google_cloud_speech_v1p1beta1_StreamingRecognizeResponse_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_cloud_speech_v1p1beta1_StreamingRecognizeResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_speech_v1p1beta1_StreamingRecognizeResponse_descriptor, + new java.lang.String[] { + "Error", "Results", "SpeechEventType", "TotalBilledTime", + }); + internal_static_google_cloud_speech_v1p1beta1_StreamingRecognitionResult_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_cloud_speech_v1p1beta1_StreamingRecognitionResult_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_speech_v1p1beta1_StreamingRecognitionResult_descriptor, + new java.lang.String[] { + "Alternatives", "IsFinal", "Stability", "ResultEndTime", "ChannelTag", "LanguageCode", + }); + internal_static_google_cloud_speech_v1p1beta1_SpeechRecognitionResult_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_google_cloud_speech_v1p1beta1_SpeechRecognitionResult_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_speech_v1p1beta1_SpeechRecognitionResult_descriptor, + new java.lang.String[] { + "Alternatives", "ChannelTag", "ResultEndTime", "LanguageCode", + }); + internal_static_google_cloud_speech_v1p1beta1_SpeechRecognitionAlternative_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_google_cloud_speech_v1p1beta1_SpeechRecognitionAlternative_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_speech_v1p1beta1_SpeechRecognitionAlternative_descriptor, + new java.lang.String[] { + "Transcript", "Confidence", "Words", + }); + internal_static_google_cloud_speech_v1p1beta1_WordInfo_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_google_cloud_speech_v1p1beta1_WordInfo_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_speech_v1p1beta1_WordInfo_descriptor, + new java.lang.String[] { + "StartTime", "EndTime", "Word", "Confidence", "SpeakerTag", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.longrunning.OperationsProto.operationInfo); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.cloud.speech.v1p1beta1.SpeechResourceProto.getDescriptor(); + com.google.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.AnyProto.getDescriptor(); + com.google.protobuf.DurationProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.protobuf.WrappersProto.getDescriptor(); + com.google.rpc.StatusProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionAlternative.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionAlternative.java similarity index 75% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionAlternative.java rename to proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionAlternative.java index 28e43be4c..526199d20 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionAlternative.java +++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionAlternative.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech.proto package com.google.cloud.speech.v1p1beta1; /** + * + * *
  * Alternative hypotheses (a.k.a. n-best list).
  * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative} */ -public final class SpeechRecognitionAlternative extends - com.google.protobuf.GeneratedMessageV3 implements +public final class SpeechRecognitionAlternative extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative) SpeechRecognitionAlternativeOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use SpeechRecognitionAlternative.newBuilder() to construct. private SpeechRecognitionAlternative(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private SpeechRecognitionAlternative() { transcript_ = ""; words_ = java.util.Collections.emptyList(); @@ -26,16 +44,15 @@ private SpeechRecognitionAlternative() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new SpeechRecognitionAlternative(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private SpeechRecognitionAlternative( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,40 +72,42 @@ private SpeechRecognitionAlternative( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - transcript_ = s; - break; - } - case 21: { + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - confidence_ = input.readFloat(); - break; - } - case 26: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - words_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + transcript_ = s; + break; } - words_.add( - input.readMessage(com.google.cloud.speech.v1p1beta1.WordInfo.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 21: + { + confidence_ = input.readFloat(); + break; + } + case 26: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + words_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + words_.add( + input.readMessage( + com.google.cloud.speech.v1p1beta1.WordInfo.parser(), extensionRegistry)); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { words_ = java.util.Collections.unmodifiableList(words_); @@ -97,27 +116,33 @@ private SpeechRecognitionAlternative( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_SpeechRecognitionAlternative_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechProto + .internal_static_google_cloud_speech_v1p1beta1_SpeechRecognitionAlternative_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_SpeechRecognitionAlternative_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechProto + .internal_static_google_cloud_speech_v1p1beta1_SpeechRecognitionAlternative_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.class, com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.Builder.class); + com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.class, + com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.Builder.class); } public static final int TRANSCRIPT_FIELD_NUMBER = 1; private volatile java.lang.Object transcript_; /** + * + * *
    * Transcript text representing the words that the user spoke.
    * 
* * string transcript = 1; + * * @return The transcript. */ @java.lang.Override @@ -126,29 +151,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 { @@ -159,6 +184,8 @@ public java.lang.String getTranscript() { public static final int CONFIDENCE_FIELD_NUMBER = 2; private float confidence_; /** + * + * *
    * The confidence estimate between 0.0 and 1.0. A higher number
    * indicates an estimated greater likelihood that the recognized words are
@@ -170,6 +197,7 @@ public java.lang.String getTranscript() {
    * 
* * float confidence = 2; + * * @return The confidence. */ @java.lang.Override @@ -180,6 +208,8 @@ public float getConfidence() { public static final int WORDS_FIELD_NUMBER = 3; private java.util.List words_; /** + * + * *
    * A list of word-specific information for each recognized word.
    * Note: When `enable_speaker_diarization` is true, you will see all the words
@@ -193,6 +223,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
@@ -202,11 +234,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
@@ -220,6 +254,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
@@ -233,6 +269,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
@@ -242,12 +280,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;
@@ -259,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 {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(transcript_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, transcript_);
     }
@@ -283,12 +320,10 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, transcript_);
     }
     if (confidence_ != 0F) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeFloatSize(2, confidence_);
+      size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, confidence_);
     }
     for (int i = 0; i < words_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(3, words_.get(i));
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, words_.get(i));
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -298,20 +333,18 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative)) {
       return super.equals(obj);
     }
-    com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative other = (com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative) obj;
+    com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative other =
+        (com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative) obj;
 
-    if (!getTranscript()
-        .equals(other.getTranscript())) return false;
+    if (!getTranscript().equals(other.getTranscript())) return false;
     if (java.lang.Float.floatToIntBits(getConfidence())
-        != java.lang.Float.floatToIntBits(
-            other.getConfidence())) return false;
-    if (!getWordsList()
-        .equals(other.getWordsList())) return false;
+        != java.lang.Float.floatToIntBits(other.getConfidence())) return false;
+    if (!getWordsList().equals(other.getWordsList())) return false;
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
   }
@@ -326,8 +359,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();
@@ -338,117 +370,127 @@ public int hashCode() {
   }
 
   public static com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative parseFrom(
-      java.nio.ByteBuffer data)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative parseFrom(byte[] data)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+
+  public static com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative parseFrom(
+      byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
-  public static com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+
+  public static com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-  public static Builder newBuilder(com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative prototype) {
+
+  public static Builder newBuilder(
+      com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * Alternative hypotheses (a.k.a. n-best list).
    * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative) com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternativeOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_SpeechRecognitionAlternative_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechProto + .internal_static_google_cloud_speech_v1p1beta1_SpeechRecognitionAlternative_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_SpeechRecognitionAlternative_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechProto + .internal_static_google_cloud_speech_v1p1beta1_SpeechRecognitionAlternative_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.class, com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.Builder.class); + com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.class, + com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.Builder.class); } // Construct using com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.newBuilder() @@ -456,17 +498,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getWordsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -484,13 +526,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(); } @@ -505,7 +548,8 @@ public com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative build() { @java.lang.Override public com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative buildPartial() { - com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative result = new com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative(this); + com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative result = + new com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative(this); int from_bitField0_ = bitField0_; result.transcript_ = transcript_; result.confidence_ = confidence_; @@ -526,38 +570,39 @@ public com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative buildParti public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative) { - return mergeFrom((com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative)other); + return mergeFrom((com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative) other); } else { super.mergeFrom(other); return this; @@ -565,7 +610,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative other) { - if (other == com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.getDefaultInstance()) return this; + if (other + == com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.getDefaultInstance()) + return this; if (!other.getTranscript().isEmpty()) { transcript_ = other.transcript_; onChanged(); @@ -591,9 +638,10 @@ public Builder mergeFrom(com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlte wordsBuilder_ = null; words_ = other.words_; bitField0_ = (bitField0_ & ~0x00000001); - wordsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getWordsFieldBuilder() : null; + wordsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getWordsFieldBuilder() + : null; } else { wordsBuilder_.addAllMessages(other.words_); } @@ -618,7 +666,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -627,22 +677,25 @@ public Builder mergeFrom( } 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; @@ -651,20 +704,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 { @@ -672,61 +726,70 @@ 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) { + public Builder setTranscript(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + transcript_ = value; onChanged(); return this; } /** + * + * *
      * Transcript text representing the words that the user spoke.
      * 
* * string transcript = 1; + * * @return This builder for chaining. */ public Builder clearTranscript() { - + transcript_ = getDefaultInstance().getTranscript(); onChanged(); return this; } /** + * + * *
      * Transcript text representing the words that the user spoke.
      * 
* * string transcript = 1; + * * @param value The bytes for transcript to set. * @return This builder for chaining. */ - public Builder setTranscriptBytes( - com.google.protobuf.ByteString value) { + public Builder setTranscriptBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + transcript_ = value; onChanged(); return this; } - private float confidence_ ; + private float confidence_; /** + * + * *
      * The confidence estimate between 0.0 and 1.0. A higher number
      * indicates an estimated greater likelihood that the recognized words are
@@ -738,6 +801,7 @@ public Builder setTranscriptBytes(
      * 
* * float confidence = 2; + * * @return The confidence. */ @java.lang.Override @@ -745,6 +809,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
@@ -756,16 +822,19 @@ public float getConfidence() {
      * 
* * float confidence = 2; + * * @param value The confidence to set. * @return This builder for chaining. */ public Builder setConfidence(float value) { - + confidence_ = value; onChanged(); return this; } /** + * + * *
      * The confidence estimate between 0.0 and 1.0. A higher number
      * indicates an estimated greater likelihood that the recognized words are
@@ -777,28 +846,35 @@ public Builder setConfidence(float value) {
      * 
* * float confidence = 2; + * * @return This builder for chaining. */ public Builder clearConfidence() { - + confidence_ = 0F; onChanged(); return this; } private java.util.List words_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureWordsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { words_ = new java.util.ArrayList(words_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.WordInfo, com.google.cloud.speech.v1p1beta1.WordInfo.Builder, com.google.cloud.speech.v1p1beta1.WordInfoOrBuilder> wordsBuilder_; + com.google.cloud.speech.v1p1beta1.WordInfo, + com.google.cloud.speech.v1p1beta1.WordInfo.Builder, + com.google.cloud.speech.v1p1beta1.WordInfoOrBuilder> + wordsBuilder_; /** + * + * *
      * A list of word-specific information for each recognized word.
      * Note: When `enable_speaker_diarization` is true, you will see all the words
@@ -815,6 +891,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
@@ -831,6 +909,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
@@ -847,6 +927,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
@@ -855,8 +937,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();
@@ -870,6 +951,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
@@ -890,6 +973,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
@@ -912,6 +997,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
@@ -920,8 +1007,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();
@@ -935,6 +1021,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
@@ -943,8 +1031,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());
@@ -955,6 +1042,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
@@ -975,6 +1064,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
@@ -987,8 +1078,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 +1086,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
@@ -1015,6 +1107,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
@@ -1034,6 +1128,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
@@ -1042,11 +1138,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
@@ -1055,14 +1152,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
@@ -1071,8 +1170,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 {
@@ -1080,6 +1179,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
@@ -1089,10 +1190,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
@@ -1101,12 +1204,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
@@ -1115,27 +1219,30 @@ public com.google.cloud.speech.v1p1beta1.WordInfo.Builder addWordsBuilder(
      *
      * repeated .google.cloud.speech.v1p1beta1.WordInfo words = 3;
      */
-    public java.util.List 
-         getWordsBuilderList() {
+    public java.util.List
+        getWordsBuilderList() {
       return getWordsFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.speech.v1p1beta1.WordInfo, com.google.cloud.speech.v1p1beta1.WordInfo.Builder, com.google.cloud.speech.v1p1beta1.WordInfoOrBuilder> 
+            com.google.cloud.speech.v1p1beta1.WordInfo,
+            com.google.cloud.speech.v1p1beta1.WordInfo.Builder,
+            com.google.cloud.speech.v1p1beta1.WordInfoOrBuilder>
         getWordsFieldBuilder() {
       if (wordsBuilder_ == null) {
-        wordsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.speech.v1p1beta1.WordInfo, com.google.cloud.speech.v1p1beta1.WordInfo.Builder, com.google.cloud.speech.v1p1beta1.WordInfoOrBuilder>(
-                words_,
-                ((bitField0_ & 0x00000001) != 0),
-                getParentForChildren(),
-                isClean());
+        wordsBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.cloud.speech.v1p1beta1.WordInfo,
+                com.google.cloud.speech.v1p1beta1.WordInfo.Builder,
+                com.google.cloud.speech.v1p1beta1.WordInfoOrBuilder>(
+                words_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
         words_ = null;
       }
       return wordsBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1145,30 +1252,32 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative)
-  private static final com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative DEFAULT_INSTANCE;
+  private static final com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative
+      DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative();
   }
 
-  public static com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative getDefaultInstance() {
+  public static com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative
+      getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public SpeechRecognitionAlternative parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return new SpeechRecognitionAlternative(input, extensionRegistry);
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public SpeechRecognitionAlternative parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          return new SpeechRecognitionAlternative(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1180,9 +1289,8 @@ public com.google.protobuf.Parser getParserForType
   }
 
   @java.lang.Override
-  public com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative getDefaultInstanceForType() {
+  public com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative
+      getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionAlternativeOrBuilder.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionAlternativeOrBuilder.java
similarity index 76%
rename from owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionAlternativeOrBuilder.java
rename to proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionAlternativeOrBuilder.java
index 771996674..c2ff84253 100644
--- a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionAlternativeOrBuilder.java
+++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionAlternativeOrBuilder.java
@@ -1,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/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.
    * 
* * 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
@@ -39,11 +62,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
@@ -52,9 +78,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
@@ -65,6 +92,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
@@ -75,6 +104,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
@@ -83,9 +114,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
@@ -94,6 +127,5 @@ public interface SpeechRecognitionAlternativeOrBuilder extends
    *
    * repeated .google.cloud.speech.v1p1beta1.WordInfo words = 3;
    */
-  com.google.cloud.speech.v1p1beta1.WordInfoOrBuilder getWordsOrBuilder(
-      int index);
+  com.google.cloud.speech.v1p1beta1.WordInfoOrBuilder getWordsOrBuilder(int index);
 }
diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionResult.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionResult.java
similarity index 73%
rename from owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionResult.java
rename to proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionResult.java
index 55d3a6e69..50eda7566 100644
--- a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionResult.java
+++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionResult.java
@@ -1,24 +1,42 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/speech/v1p1beta1/cloud_speech.proto
 
 package com.google.cloud.speech.v1p1beta1;
 
 /**
+ *
+ *
  * 
  * A speech recognition result corresponding to a portion of the audio.
  * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.SpeechRecognitionResult} */ -public final class SpeechRecognitionResult extends - com.google.protobuf.GeneratedMessageV3 implements +public final class SpeechRecognitionResult extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v1p1beta1.SpeechRecognitionResult) SpeechRecognitionResultOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use SpeechRecognitionResult.newBuilder() to construct. private SpeechRecognitionResult(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private SpeechRecognitionResult() { alternatives_ = java.util.Collections.emptyList(); languageCode_ = ""; @@ -26,16 +44,15 @@ private SpeechRecognitionResult() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new SpeechRecognitionResult(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private SpeechRecognitionResult( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,53 +72,60 @@ private SpeechRecognitionResult( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - alternatives_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - alternatives_.add( - input.readMessage(com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.parser(), extensionRegistry)); - break; - } - case 16: { - - channelTag_ = input.readInt32(); - break; - } - case 34: { - com.google.protobuf.Duration.Builder subBuilder = null; - if (resultEndTime_ != null) { - subBuilder = resultEndTime_.toBuilder(); + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + alternatives_ = + new java.util.ArrayList< + com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative>(); + mutable_bitField0_ |= 0x00000001; + } + alternatives_.add( + input.readMessage( + com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.parser(), + extensionRegistry)); + break; } - resultEndTime_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(resultEndTime_); - resultEndTime_ = subBuilder.buildPartial(); + case 16: + { + channelTag_ = input.readInt32(); + break; } + case 34: + { + com.google.protobuf.Duration.Builder subBuilder = null; + if (resultEndTime_ != null) { + subBuilder = resultEndTime_.toBuilder(); + } + resultEndTime_ = + input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(resultEndTime_); + resultEndTime_ = subBuilder.buildPartial(); + } - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); - languageCode_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + languageCode_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { alternatives_ = java.util.Collections.unmodifiableList(alternatives_); @@ -110,22 +134,28 @@ private SpeechRecognitionResult( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_SpeechRecognitionResult_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechProto + .internal_static_google_cloud_speech_v1p1beta1_SpeechRecognitionResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_SpeechRecognitionResult_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechProto + .internal_static_google_cloud_speech_v1p1beta1_SpeechRecognitionResult_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult.class, com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult.Builder.class); + com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult.class, + com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult.Builder.class); } public static final int ALTERNATIVES_FIELD_NUMBER = 1; - private java.util.List alternatives_; + private java.util.List + alternatives_; /** + * + * *
    * May contain one or more recognition hypotheses (up to the
    * maximum specified in `max_alternatives`).
@@ -133,13 +163,17 @@ private SpeechRecognitionResult(
    * alternative being the most probable, as ranked by the recognizer.
    * 
* - * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; + * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; + * */ @java.lang.Override - public java.util.List getAlternativesList() { + public java.util.List + getAlternativesList() { return alternatives_; } /** + * + * *
    * May contain one or more recognition hypotheses (up to the
    * maximum specified in `max_alternatives`).
@@ -147,14 +181,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`).
@@ -162,13 +200,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`).
@@ -176,13 +217,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`).
@@ -190,17 +234,20 @@ public com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative getAlterna
    * alternative being the most probable, as ranked by the recognizer.
    * 
* - * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; + * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; + * */ @java.lang.Override - public com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternativeOrBuilder getAlternativesOrBuilder( - int index) { + public com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternativeOrBuilder + getAlternativesOrBuilder(int index) { return alternatives_.get(index); } public static final int CHANNEL_TAG_FIELD_NUMBER = 2; private int channelTag_; /** + * + * *
    * For multi-channel audio, this is the channel number corresponding to the
    * recognized result for the audio from that channel.
@@ -208,6 +255,7 @@ public com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternativeOrBuilder g
    * 
* * int32 channel_tag = 2; + * * @return The channelTag. */ @java.lang.Override @@ -218,12 +266,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 @@ -231,19 +282,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.
@@ -259,6 +317,8 @@ public com.google.protobuf.DurationOrBuilder getResultEndTimeOrBuilder() {
   public static final int LANGUAGE_CODE_FIELD_NUMBER = 5;
   private volatile java.lang.Object languageCode_;
   /**
+   *
+   *
    * 
    * Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag
    * of the language in this result. This language code was detected to have
@@ -266,6 +326,7 @@ public com.google.protobuf.DurationOrBuilder getResultEndTimeOrBuilder() {
    * 
* * string language_code = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The languageCode. */ @java.lang.Override @@ -274,14 +335,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
@@ -289,16 +351,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 { @@ -307,6 +368,7 @@ public java.lang.String getLanguageCode() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -318,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 < alternatives_.size(); i++) { output.writeMessage(1, alternatives_.get(i)); } @@ -342,16 +403,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_); @@ -364,24 +422,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult)) { return super.equals(obj); } - com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult other = (com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult) obj; + com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult other = + (com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult) obj; - if (!getAlternativesList() - .equals(other.getAlternativesList())) return false; - if (getChannelTag() - != other.getChannelTag()) return false; + if (!getAlternativesList().equals(other.getAlternativesList())) return false; + if (getChannelTag() != other.getChannelTag()) return false; if (hasResultEndTime() != other.hasResultEndTime()) return false; if (hasResultEndTime()) { - if (!getResultEndTime() - .equals(other.getResultEndTime())) return false; + if (!getResultEndTime().equals(other.getResultEndTime())) return false; } - if (!getLanguageCode() - .equals(other.getLanguageCode())) return false; + if (!getLanguageCode().equals(other.getLanguageCode())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -411,117 +466,127 @@ public int hashCode() { } public static com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult prototype) { + + public static Builder newBuilder( + com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A speech recognition result corresponding to a portion of the audio.
    * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.SpeechRecognitionResult} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1p1beta1.SpeechRecognitionResult) com.google.cloud.speech.v1p1beta1.SpeechRecognitionResultOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_SpeechRecognitionResult_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechProto + .internal_static_google_cloud_speech_v1p1beta1_SpeechRecognitionResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_SpeechRecognitionResult_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechProto + .internal_static_google_cloud_speech_v1p1beta1_SpeechRecognitionResult_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult.class, com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult.Builder.class); + com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult.class, + com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult.Builder.class); } // Construct using com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult.newBuilder() @@ -529,17 +594,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getAlternativesFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -563,9 +628,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 @@ -584,7 +649,8 @@ public com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult build() { @java.lang.Override public com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult buildPartial() { - com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult result = new com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult(this); + com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult result = + new com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult(this); int from_bitField0_ = bitField0_; if (alternativesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -610,38 +676,39 @@ public com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult buildPartial() public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult) { - return mergeFrom((com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult)other); + return mergeFrom((com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult) other); } else { super.mergeFrom(other); return this; @@ -649,7 +716,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()) { @@ -668,9 +736,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_); } @@ -705,7 +774,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -714,21 +784,30 @@ public Builder mergeFrom( } return this; } + private int bitField0_; - private java.util.List alternatives_ = - java.util.Collections.emptyList(); + private java.util.List + alternatives_ = java.util.Collections.emptyList(); + private void ensureAlternativesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - alternatives_ = new java.util.ArrayList(alternatives_); + alternatives_ = + new java.util.ArrayList( + alternatives_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative, com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.Builder, com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternativeOrBuilder> alternativesBuilder_; + com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative, + com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.Builder, + com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternativeOrBuilder> + alternativesBuilder_; /** + * + * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -736,9 +815,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 { @@ -746,6 +827,8 @@ public java.util.List * May contain one or more recognition hypotheses (up to the * maximum specified in `max_alternatives`). @@ -753,7 +836,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) { @@ -763,6 +847,8 @@ public int getAlternativesCount() { } } /** + * + * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -770,9 +856,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 { @@ -780,6 +868,8 @@ public com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative getAlterna } } /** + * + * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -787,7 +877,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) { @@ -804,6 +895,8 @@ public Builder setAlternatives( return this; } /** + * + * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -811,10 +904,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()); @@ -825,6 +920,8 @@ public Builder setAlternatives( return this; } /** + * + * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -832,9 +929,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(); @@ -848,6 +947,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`).
@@ -855,7 +956,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) { @@ -872,6 +974,8 @@ public Builder addAlternatives( return this; } /** + * + * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -879,7 +983,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) { @@ -893,6 +998,8 @@ public Builder addAlternatives( return this; } /** + * + * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -900,10 +1007,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()); @@ -914,6 +1023,8 @@ public Builder addAlternatives( return this; } /** + * + * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -921,14 +1032,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); @@ -936,6 +1048,8 @@ public Builder addAllAlternatives( return this; } /** + * + * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -943,7 +1057,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) { @@ -956,6 +1071,8 @@ public Builder clearAlternatives() { return this; } /** + * + * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -963,7 +1080,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) { @@ -976,6 +1094,8 @@ public Builder removeAlternatives(int index) { return this; } /** + * + * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -983,13 +1103,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`).
@@ -997,16 +1120,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`).
@@ -1014,10 +1141,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 { @@ -1025,6 +1154,8 @@ public com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternativeOrBuilder g } } /** + * + * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -1032,13 +1163,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`).
@@ -1046,14 +1182,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`).
@@ -1061,29 +1202,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.
@@ -1091,6 +1238,7 @@ public com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.Builder ad
      * 
* * int32 channel_tag = 2; + * * @return The channelTag. */ @java.lang.Override @@ -1098,6 +1246,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.
@@ -1105,16 +1255,19 @@ public int getChannelTag() {
      * 
* * int32 channel_tag = 2; + * * @param value The channelTag to set. * @return This builder for chaining. */ public Builder setChannelTag(int value) { - + channelTag_ = value; onChanged(); return this; } /** + * + * *
      * For multi-channel audio, this is the channel number corresponding to the
      * recognized result for the audio from that channel.
@@ -1122,10 +1275,11 @@ public Builder setChannelTag(int value) {
      * 
* * int32 channel_tag = 2; + * * @return This builder for chaining. */ public Builder clearChannelTag() { - + channelTag_ = 0; onChanged(); return this; @@ -1133,36 +1287,49 @@ public Builder clearChannelTag() { private com.google.protobuf.Duration resultEndTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> resultEndTimeBuilder_; + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + resultEndTimeBuilder_; /** + * + * *
      * Time offset of the end of this result relative to the
      * beginning of the audio.
      * 
* * .google.protobuf.Duration result_end_time = 4; + * * @return Whether the resultEndTime field is set. */ public boolean hasResultEndTime() { return resultEndTimeBuilder_ != null || resultEndTime_ != null; } /** + * + * *
      * Time offset of the end of this result relative to the
      * beginning of the audio.
      * 
* * .google.protobuf.Duration result_end_time = 4; + * * @return The resultEndTime. */ public com.google.protobuf.Duration getResultEndTime() { if (resultEndTimeBuilder_ == null) { - return resultEndTime_ == null ? com.google.protobuf.Duration.getDefaultInstance() : resultEndTime_; + return resultEndTime_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : resultEndTime_; } else { return resultEndTimeBuilder_.getMessage(); } } /** + * + * *
      * Time offset of the end of this result relative to the
      * beginning of the audio.
@@ -1184,6 +1351,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.
@@ -1191,8 +1360,7 @@ public Builder setResultEndTime(com.google.protobuf.Duration value) {
      *
      * .google.protobuf.Duration result_end_time = 4;
      */
-    public Builder setResultEndTime(
-        com.google.protobuf.Duration.Builder builderForValue) {
+    public Builder setResultEndTime(com.google.protobuf.Duration.Builder builderForValue) {
       if (resultEndTimeBuilder_ == null) {
         resultEndTime_ = builderForValue.build();
         onChanged();
@@ -1203,6 +1371,8 @@ public Builder setResultEndTime(
       return this;
     }
     /**
+     *
+     *
      * 
      * Time offset of the end of this result relative to the
      * beginning of the audio.
@@ -1214,7 +1384,9 @@ public Builder mergeResultEndTime(com.google.protobuf.Duration value) {
       if (resultEndTimeBuilder_ == null) {
         if (resultEndTime_ != null) {
           resultEndTime_ =
-            com.google.protobuf.Duration.newBuilder(resultEndTime_).mergeFrom(value).buildPartial();
+              com.google.protobuf.Duration.newBuilder(resultEndTime_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           resultEndTime_ = value;
         }
@@ -1226,6 +1398,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.
@@ -1245,6 +1419,8 @@ public Builder clearResultEndTime() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Time offset of the end of this result relative to the
      * beginning of the audio.
@@ -1253,11 +1429,13 @@ public Builder clearResultEndTime() {
      * .google.protobuf.Duration result_end_time = 4;
      */
     public com.google.protobuf.Duration.Builder getResultEndTimeBuilder() {
-      
+
       onChanged();
       return getResultEndTimeFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Time offset of the end of this result relative to the
      * beginning of the audio.
@@ -1269,11 +1447,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.
@@ -1282,14 +1463,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_;
@@ -1297,6 +1481,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
@@ -1304,13 +1490,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; @@ -1319,6 +1505,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
@@ -1326,15 +1514,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 { @@ -1342,6 +1529,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
@@ -1349,20 +1538,22 @@ public java.lang.String getLanguageCode() {
      * 
* * string language_code = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCode( - java.lang.String value) { + public Builder setLanguageCode(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + languageCode_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag
      * of the language in this result. This language code was detected to have
@@ -1370,15 +1561,18 @@ public Builder setLanguageCode(
      * 
* * string language_code = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearLanguageCode() { - + languageCode_ = getDefaultInstance().getLanguageCode(); onChanged(); return this; } /** + * + * *
      * Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag
      * of the language in this result. This language code was detected to have
@@ -1386,23 +1580,23 @@ public Builder clearLanguageCode() {
      * 
* * string language_code = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCodeBytes( - com.google.protobuf.ByteString value) { + public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + languageCode_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1412,12 +1606,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(); } @@ -1426,16 +1620,16 @@ public static com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SpeechRecognitionResult parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SpeechRecognitionResult(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SpeechRecognitionResult parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SpeechRecognitionResult(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1450,6 +1644,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionResultOrBuilder.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionResultOrBuilder.java similarity index 79% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionResultOrBuilder.java rename to proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionResultOrBuilder.java index 55e3c978e..b836a20e7 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionResultOrBuilder.java +++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionResultOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech.proto package com.google.cloud.speech.v1p1beta1; -public interface SpeechRecognitionResultOrBuilder extends +public interface SpeechRecognitionResultOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1p1beta1.SpeechRecognitionResult) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * May contain one or more recognition hypotheses (up to the
    * maximum specified in `max_alternatives`).
@@ -15,11 +33,14 @@ public interface SpeechRecognitionResultOrBuilder extends
    * alternative being the most probable, as ranked by the recognizer.
    * 
* - * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; + * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; + * */ - java.util.List + java.util.List getAlternativesList(); /** + * + * *
    * May contain one or more recognition hypotheses (up to the
    * maximum specified in `max_alternatives`).
@@ -27,10 +48,13 @@ public interface SpeechRecognitionResultOrBuilder extends
    * alternative being the most probable, as ranked by the recognizer.
    * 
* - * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; + * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; + * */ com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative getAlternatives(int index); /** + * + * *
    * May contain one or more recognition hypotheses (up to the
    * maximum specified in `max_alternatives`).
@@ -38,10 +62,13 @@ public interface SpeechRecognitionResultOrBuilder extends
    * alternative being the most probable, as ranked by the recognizer.
    * 
* - * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; + * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; + * */ int getAlternativesCount(); /** + * + * *
    * May contain one or more recognition hypotheses (up to the
    * maximum specified in `max_alternatives`).
@@ -49,11 +76,14 @@ public interface SpeechRecognitionResultOrBuilder extends
    * alternative being the most probable, as ranked by the recognizer.
    * 
* - * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; + * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; + * */ - java.util.List + java.util.List getAlternativesOrBuilderList(); /** + * + * *
    * May contain one or more recognition hypotheses (up to the
    * maximum specified in `max_alternatives`).
@@ -61,12 +91,15 @@ public interface SpeechRecognitionResultOrBuilder extends
    * alternative being the most probable, as ranked by the recognizer.
    * 
* - * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; + * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; + * */ com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternativeOrBuilder getAlternativesOrBuilder( int index); /** + * + * *
    * For multi-channel audio, this is the channel number corresponding to the
    * recognized result for the audio from that channel.
@@ -74,31 +107,40 @@ com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternativeOrBuilder getAlter
    * 
* * int32 channel_tag = 2; + * * @return The channelTag. */ int getChannelTag(); /** + * + * *
    * Time offset of the end of this result relative to the
    * beginning of the audio.
    * 
* * .google.protobuf.Duration result_end_time = 4; + * * @return Whether the resultEndTime field is set. */ boolean hasResultEndTime(); /** + * + * *
    * Time offset of the end of this result relative to the
    * beginning of the audio.
    * 
* * .google.protobuf.Duration result_end_time = 4; + * * @return The resultEndTime. */ com.google.protobuf.Duration getResultEndTime(); /** + * + * *
    * Time offset of the end of this result relative to the
    * beginning of the audio.
@@ -109,6 +151,8 @@ com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternativeOrBuilder getAlter
   com.google.protobuf.DurationOrBuilder getResultEndTimeOrBuilder();
 
   /**
+   *
+   *
    * 
    * Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag
    * of the language in this result. This language code was detected to have
@@ -116,10 +160,13 @@ com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternativeOrBuilder getAlter
    * 
* * string language_code = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The languageCode. */ java.lang.String getLanguageCode(); /** + * + * *
    * Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag
    * of the language in this result. This language code was detected to have
@@ -127,8 +174,8 @@ com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternativeOrBuilder getAlter
    * 
* * string language_code = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for languageCode. */ - com.google.protobuf.ByteString - getLanguageCodeBytes(); + com.google.protobuf.ByteString getLanguageCodeBytes(); } diff --git a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechResourceProto.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechResourceProto.java new file mode 100644 index 000000000..fd1fc79b9 --- /dev/null +++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechResourceProto.java @@ -0,0 +1,179 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/speech/v1p1beta1/resource.proto + +package com.google.cloud.speech.v1p1beta1; + +public final class SpeechResourceProto { + private SpeechResourceProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1p1beta1_CustomClass_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1p1beta1_CustomClass_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1p1beta1_CustomClass_ClassItem_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1p1beta1_CustomClass_ClassItem_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1p1beta1_PhraseSet_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1p1beta1_PhraseSet_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1p1beta1_PhraseSet_Phrase_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1p1beta1_PhraseSet_Phrase_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptation_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1p1beta1_TranscriptNormalization_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1p1beta1_TranscriptNormalization_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1p1beta1_TranscriptNormalization_Entry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1p1beta1_TranscriptNormalization_Entry_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n,google/cloud/speech/v1p1beta1/resource" + + ".proto\022\035google.cloud.speech.v1p1beta1\032\031g" + + "oogle/api/resource.proto\032\037google/protobu" + + "f/timestamp.proto\032\034google/api/annotation" + + "s.proto\"\203\002\n\013CustomClass\022\014\n\004name\030\001 \001(\t\022\027\n" + + "\017custom_class_id\030\002 \001(\t\022C\n\005items\030\003 \003(\01324." + + "google.cloud.speech.v1p1beta1.CustomClas" + + "s.ClassItem\032\032\n\tClassItem\022\r\n\005value\030\001 \001(\t:" + + "l\352Ai\n!speech.googleapis.com/CustomClass\022" + + "Dprojects/{project}/locations/{location}" + + "/customClasses/{custom_class}\"\371\001\n\tPhrase" + + "Set\022\014\n\004name\030\001 \001(\t\022@\n\007phrases\030\002 \003(\0132/.goo" + + "gle.cloud.speech.v1p1beta1.PhraseSet.Phr" + + "ase\022\r\n\005boost\030\004 \001(\002\032&\n\006Phrase\022\r\n\005value\030\001 " + + "\001(\t\022\r\n\005boost\030\002 \001(\002:e\352Ab\n\037speech.googleap" + + "is.com/PhraseSet\022?projects/{project}/loc" + + "ations/{location}/phraseSets/{phrase_set" + + "}\"\332\001\n\020SpeechAdaptation\022=\n\013phrase_sets\030\001 " + + "\003(\0132(.google.cloud.speech.v1p1beta1.Phra" + + "seSet\022C\n\025phrase_set_references\030\002 \003(\tB$\372A" + + "!\n\037speech.googleapis.com/PhraseSet\022B\n\016cu" + + "stom_classes\030\003 \003(\0132*.google.cloud.speech" + + ".v1p1beta1.CustomClass\"\252\001\n\027TranscriptNor" + + "malization\022M\n\007entries\030\001 \003(\0132<.google.clo" + + "ud.speech.v1p1beta1.TranscriptNormalizat" + + "ion.Entry\032@\n\005Entry\022\016\n\006search\030\001 \001(\t\022\017\n\007re" + + "place\030\002 \001(\t\022\026\n\016case_sensitive\030\003 \001(\010B\210\001\n!" + + "com.google.cloud.speech.v1p1beta1B\023Speec" + + "hResourceProtoP\001ZCgoogle.golang.org/genp" + + "roto/googleapis/cloud/speech/v1p1beta1;s" + + "peech\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(), + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.api.AnnotationsProto.getDescriptor(), + }); + internal_static_google_cloud_speech_v1p1beta1_CustomClass_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_speech_v1p1beta1_CustomClass_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_speech_v1p1beta1_CustomClass_descriptor, + new java.lang.String[] { + "Name", "CustomClassId", "Items", + }); + internal_static_google_cloud_speech_v1p1beta1_CustomClass_ClassItem_descriptor = + internal_static_google_cloud_speech_v1p1beta1_CustomClass_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_speech_v1p1beta1_CustomClass_ClassItem_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_speech_v1p1beta1_CustomClass_ClassItem_descriptor, + new java.lang.String[] { + "Value", + }); + internal_static_google_cloud_speech_v1p1beta1_PhraseSet_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_speech_v1p1beta1_PhraseSet_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_speech_v1p1beta1_PhraseSet_descriptor, + new java.lang.String[] { + "Name", "Phrases", "Boost", + }); + internal_static_google_cloud_speech_v1p1beta1_PhraseSet_Phrase_descriptor = + internal_static_google_cloud_speech_v1p1beta1_PhraseSet_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_speech_v1p1beta1_PhraseSet_Phrase_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_speech_v1p1beta1_PhraseSet_Phrase_descriptor, + new java.lang.String[] { + "Value", "Boost", + }); + internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptation_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptation_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptation_descriptor, + new java.lang.String[] { + "PhraseSets", "PhraseSetReferences", "CustomClasses", + }); + internal_static_google_cloud_speech_v1p1beta1_TranscriptNormalization_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_speech_v1p1beta1_TranscriptNormalization_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_speech_v1p1beta1_TranscriptNormalization_descriptor, + new java.lang.String[] { + "Entries", + }); + internal_static_google_cloud_speech_v1p1beta1_TranscriptNormalization_Entry_descriptor = + internal_static_google_cloud_speech_v1p1beta1_TranscriptNormalization_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_speech_v1p1beta1_TranscriptNormalization_Entry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_speech_v1p1beta1_TranscriptNormalization_Entry_descriptor, + new java.lang.String[] { + "Search", "Replace", "CaseSensitive", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.ResourceProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.api.AnnotationsProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionConfig.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionConfig.java similarity index 70% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionConfig.java rename to proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionConfig.java index 20d47c94d..2665d0f08 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionConfig.java +++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionConfig.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech.proto package com.google.cloud.speech.v1p1beta1; /** + * + * *
  * Provides information to the recognizer that specifies how to process the
  * request.
@@ -11,30 +28,29 @@
  *
  * Protobuf type {@code google.cloud.speech.v1p1beta1.StreamingRecognitionConfig}
  */
-public final class StreamingRecognitionConfig extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class StreamingRecognitionConfig extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.speech.v1p1beta1.StreamingRecognitionConfig)
     StreamingRecognitionConfigOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use StreamingRecognitionConfig.newBuilder() to construct.
   private StreamingRecognitionConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-  private StreamingRecognitionConfig() {
-  }
+
+  private StreamingRecognitionConfig() {}
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new StreamingRecognitionConfig();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private StreamingRecognitionConfig(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -53,70 +69,81 @@ private StreamingRecognitionConfig(
           case 0:
             done = true;
             break;
-          case 10: {
-            com.google.cloud.speech.v1p1beta1.RecognitionConfig.Builder subBuilder = null;
-            if (config_ != null) {
-              subBuilder = config_.toBuilder();
+          case 10:
+            {
+              com.google.cloud.speech.v1p1beta1.RecognitionConfig.Builder subBuilder = null;
+              if (config_ != null) {
+                subBuilder = config_.toBuilder();
+              }
+              config_ =
+                  input.readMessage(
+                      com.google.cloud.speech.v1p1beta1.RecognitionConfig.parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(config_);
+                config_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
-            config_ = input.readMessage(com.google.cloud.speech.v1p1beta1.RecognitionConfig.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(config_);
-              config_ = subBuilder.buildPartial();
+          case 16:
+            {
+              singleUtterance_ = input.readBool();
+              break;
             }
-
-            break;
-          }
-          case 16: {
-
-            singleUtterance_ = input.readBool();
-            break;
-          }
-          case 24: {
-
-            interimResults_ = input.readBool();
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          case 24:
+            {
+              interimResults_ = input.readBool();
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_StreamingRecognitionConfig_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.speech.v1p1beta1.SpeechProto
+        .internal_static_google_cloud_speech_v1p1beta1_StreamingRecognitionConfig_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_StreamingRecognitionConfig_fieldAccessorTable
+    return com.google.cloud.speech.v1p1beta1.SpeechProto
+        .internal_static_google_cloud_speech_v1p1beta1_StreamingRecognitionConfig_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig.class, com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig.Builder.class);
+            com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig.class,
+            com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig.Builder.class);
   }
 
   public static final int CONFIG_FIELD_NUMBER = 1;
   private com.google.cloud.speech.v1p1beta1.RecognitionConfig config_;
   /**
+   *
+   *
    * 
    * Required. Provides information to the recognizer that specifies how to
    * process the request.
    * 
* - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the config field is set. */ @java.lang.Override @@ -124,25 +151,36 @@ public boolean hasConfig() { return config_ != null; } /** + * + * *
    * Required. Provides information to the recognizer that specifies how to
    * process the request.
    * 
* - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The config. */ @java.lang.Override public com.google.cloud.speech.v1p1beta1.RecognitionConfig getConfig() { - return config_ == null ? com.google.cloud.speech.v1p1beta1.RecognitionConfig.getDefaultInstance() : config_; + return config_ == null + ? com.google.cloud.speech.v1p1beta1.RecognitionConfig.getDefaultInstance() + : config_; } /** + * + * *
    * Required. Provides information to the recognizer that specifies how to
    * process the request.
    * 
* - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.speech.v1p1beta1.RecognitionConfigOrBuilder getConfigOrBuilder() { @@ -152,6 +190,8 @@ public com.google.cloud.speech.v1p1beta1.RecognitionConfigOrBuilder getConfigOrB public static final int SINGLE_UTTERANCE_FIELD_NUMBER = 2; private boolean singleUtterance_; /** + * + * *
    * If `false` or omitted, the recognizer will perform continuous
    * recognition (continuing to wait for and process audio even if the user
@@ -174,6 +214,7 @@ public com.google.cloud.speech.v1p1beta1.RecognitionConfigOrBuilder getConfigOrB
    * 
* * bool single_utterance = 2; + * * @return The singleUtterance. */ @java.lang.Override @@ -184,6 +225,8 @@ public boolean getSingleUtterance() { public static final int INTERIM_RESULTS_FIELD_NUMBER = 3; private boolean interimResults_; /** + * + * *
    * If `true`, interim results (tentative hypotheses) may be
    * returned as they become available (these interim results are indicated with
@@ -192,6 +235,7 @@ public boolean getSingleUtterance() {
    * 
* * bool interim_results = 3; + * * @return The interimResults. */ @java.lang.Override @@ -200,6 +244,7 @@ public boolean getInterimResults() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -211,8 +256,7 @@ public final boolean isInitialized() { } @java.lang.Override - public 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()); } @@ -232,16 +276,13 @@ public int getSerializedSize() { size = 0; if (config_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getConfig()); } if (singleUtterance_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, singleUtterance_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, singleUtterance_); } if (interimResults_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(3, interimResults_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, interimResults_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -251,22 +292,20 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig)) { return super.equals(obj); } - com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig other = (com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig) obj; + com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig other = + (com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig) obj; if (hasConfig() != other.hasConfig()) return false; if (hasConfig()) { - if (!getConfig() - .equals(other.getConfig())) return false; + if (!getConfig().equals(other.getConfig())) return false; } - if (getSingleUtterance() - != other.getSingleUtterance()) return false; - if (getInterimResults() - != other.getInterimResults()) return false; + if (getSingleUtterance() != other.getSingleUtterance()) return false; + if (getInterimResults() != other.getInterimResults()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -283,107 +322,113 @@ public int hashCode() { hash = (53 * hash) + getConfig().hashCode(); } hash = (37 * hash) + SINGLE_UTTERANCE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getSingleUtterance()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSingleUtterance()); hash = (37 * hash) + INTERIM_RESULTS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getInterimResults()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getInterimResults()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig prototype) { + + public static Builder newBuilder( + com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Provides information to the recognizer that specifies how to process the
    * request.
@@ -391,21 +436,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.speech.v1p1beta1.StreamingRecognitionConfig}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1p1beta1.StreamingRecognitionConfig)
       com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfigOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_StreamingRecognitionConfig_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.speech.v1p1beta1.SpeechProto
+          .internal_static_google_cloud_speech_v1p1beta1_StreamingRecognitionConfig_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_StreamingRecognitionConfig_fieldAccessorTable
+      return com.google.cloud.speech.v1p1beta1.SpeechProto
+          .internal_static_google_cloud_speech_v1p1beta1_StreamingRecognitionConfig_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig.class, com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig.Builder.class);
+              com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig.class,
+              com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig.newBuilder()
@@ -413,16 +460,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -440,13 +486,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();
     }
 
@@ -461,7 +508,8 @@ public com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig buildPartial() {
-      com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig result = new com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig(this);
+      com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig result =
+          new com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig(this);
       if (configBuilder_ == null) {
         result.config_ = config_;
       } else {
@@ -477,38 +525,39 @@ public com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig buildPartial
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig) {
-        return mergeFrom((com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig)other);
+        return mergeFrom((com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -516,7 +565,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());
       }
@@ -545,7 +596,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -557,42 +609,61 @@ public Builder mergeFrom(
 
     private com.google.cloud.speech.v1p1beta1.RecognitionConfig config_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.speech.v1p1beta1.RecognitionConfig, com.google.cloud.speech.v1p1beta1.RecognitionConfig.Builder, com.google.cloud.speech.v1p1beta1.RecognitionConfigOrBuilder> configBuilder_;
+            com.google.cloud.speech.v1p1beta1.RecognitionConfig,
+            com.google.cloud.speech.v1p1beta1.RecognitionConfig.Builder,
+            com.google.cloud.speech.v1p1beta1.RecognitionConfigOrBuilder>
+        configBuilder_;
     /**
+     *
+     *
      * 
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the config field is set. */ public boolean hasConfig() { return configBuilder_ != null || config_ != null; } /** + * + * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The config. */ public com.google.cloud.speech.v1p1beta1.RecognitionConfig getConfig() { if (configBuilder_ == null) { - return config_ == null ? com.google.cloud.speech.v1p1beta1.RecognitionConfig.getDefaultInstance() : config_; + return config_ == null + ? com.google.cloud.speech.v1p1beta1.RecognitionConfig.getDefaultInstance() + : config_; } else { return configBuilder_.getMessage(); } } /** + * + * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setConfig(com.google.cloud.speech.v1p1beta1.RecognitionConfig value) { if (configBuilder_ == null) { @@ -608,12 +679,16 @@ public Builder setConfig(com.google.cloud.speech.v1p1beta1.RecognitionConfig val return this; } /** + * + * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setConfig( com.google.cloud.speech.v1p1beta1.RecognitionConfig.Builder builderForValue) { @@ -627,18 +702,24 @@ public Builder setConfig( return this; } /** + * + * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeConfig(com.google.cloud.speech.v1p1beta1.RecognitionConfig value) { if (configBuilder_ == null) { if (config_ != null) { config_ = - com.google.cloud.speech.v1p1beta1.RecognitionConfig.newBuilder(config_).mergeFrom(value).buildPartial(); + com.google.cloud.speech.v1p1beta1.RecognitionConfig.newBuilder(config_) + .mergeFrom(value) + .buildPartial(); } else { config_ = value; } @@ -650,12 +731,16 @@ public Builder mergeConfig(com.google.cloud.speech.v1p1beta1.RecognitionConfig v return this; } /** + * + * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearConfig() { if (configBuilder_ == null) { @@ -669,58 +754,76 @@ public Builder clearConfig() { return this; } /** + * + * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.speech.v1p1beta1.RecognitionConfig.Builder getConfigBuilder() { - + onChanged(); return getConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.speech.v1p1beta1.RecognitionConfigOrBuilder getConfigOrBuilder() { if (configBuilder_ != null) { return configBuilder_.getMessageOrBuilder(); } else { - return config_ == null ? - com.google.cloud.speech.v1p1beta1.RecognitionConfig.getDefaultInstance() : config_; + return config_ == null + ? com.google.cloud.speech.v1p1beta1.RecognitionConfig.getDefaultInstance() + : config_; } } /** + * + * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.RecognitionConfig, com.google.cloud.speech.v1p1beta1.RecognitionConfig.Builder, com.google.cloud.speech.v1p1beta1.RecognitionConfigOrBuilder> + com.google.cloud.speech.v1p1beta1.RecognitionConfig, + com.google.cloud.speech.v1p1beta1.RecognitionConfig.Builder, + com.google.cloud.speech.v1p1beta1.RecognitionConfigOrBuilder> getConfigFieldBuilder() { if (configBuilder_ == null) { - configBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.RecognitionConfig, com.google.cloud.speech.v1p1beta1.RecognitionConfig.Builder, com.google.cloud.speech.v1p1beta1.RecognitionConfigOrBuilder>( - getConfig(), - getParentForChildren(), - isClean()); + configBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v1p1beta1.RecognitionConfig, + com.google.cloud.speech.v1p1beta1.RecognitionConfig.Builder, + com.google.cloud.speech.v1p1beta1.RecognitionConfigOrBuilder>( + getConfig(), getParentForChildren(), isClean()); config_ = null; } return configBuilder_; } - private boolean singleUtterance_ ; + private boolean singleUtterance_; /** + * + * *
      * If `false` or omitted, the recognizer will perform continuous
      * recognition (continuing to wait for and process audio even if the user
@@ -743,6 +846,7 @@ public com.google.cloud.speech.v1p1beta1.RecognitionConfigOrBuilder getConfigOrB
      * 
* * bool single_utterance = 2; + * * @return The singleUtterance. */ @java.lang.Override @@ -750,6 +854,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
@@ -772,16 +878,19 @@ public boolean getSingleUtterance() {
      * 
* * bool single_utterance = 2; + * * @param value The singleUtterance to set. * @return This builder for chaining. */ public Builder setSingleUtterance(boolean value) { - + singleUtterance_ = value; onChanged(); return this; } /** + * + * *
      * If `false` or omitted, the recognizer will perform continuous
      * recognition (continuing to wait for and process audio even if the user
@@ -804,17 +913,20 @@ public Builder setSingleUtterance(boolean value) {
      * 
* * bool single_utterance = 2; + * * @return This builder for chaining. */ public Builder clearSingleUtterance() { - + singleUtterance_ = false; onChanged(); return this; } - private boolean interimResults_ ; + private boolean interimResults_; /** + * + * *
      * If `true`, interim results (tentative hypotheses) may be
      * returned as they become available (these interim results are indicated with
@@ -823,6 +935,7 @@ public Builder clearSingleUtterance() {
      * 
* * bool interim_results = 3; + * * @return The interimResults. */ @java.lang.Override @@ -830,6 +943,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
@@ -838,16 +953,19 @@ public boolean getInterimResults() {
      * 
* * bool interim_results = 3; + * * @param value The interimResults to set. * @return This builder for chaining. */ public Builder setInterimResults(boolean value) { - + interimResults_ = value; onChanged(); return this; } /** + * + * *
      * If `true`, interim results (tentative hypotheses) may be
      * returned as they become available (these interim results are indicated with
@@ -856,17 +974,18 @@ public Builder setInterimResults(boolean value) {
      * 
* * bool interim_results = 3; + * * @return This builder for chaining. */ public Builder clearInterimResults() { - + interimResults_ = false; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -876,12 +995,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(); } @@ -890,16 +1010,16 @@ public static com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig getDe return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StreamingRecognitionConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new StreamingRecognitionConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StreamingRecognitionConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new StreamingRecognitionConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -914,6 +1034,4 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionConfigOrBuilder.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionConfigOrBuilder.java similarity index 70% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionConfigOrBuilder.java rename to proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionConfigOrBuilder.java index 73a8d60b1..40aa63db7 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionConfigOrBuilder.java +++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionConfigOrBuilder.java @@ -1,43 +1,75 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech.proto package com.google.cloud.speech.v1p1beta1; -public interface StreamingRecognitionConfigOrBuilder extends +public interface StreamingRecognitionConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1p1beta1.StreamingRecognitionConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Provides information to the recognizer that specifies how to
    * process the request.
    * 
* - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the config field is set. */ boolean hasConfig(); /** + * + * *
    * Required. Provides information to the recognizer that specifies how to
    * process the request.
    * 
* - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The config. */ com.google.cloud.speech.v1p1beta1.RecognitionConfig getConfig(); /** + * + * *
    * Required. Provides information to the recognizer that specifies how to
    * process the request.
    * 
* - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.speech.v1p1beta1.RecognitionConfigOrBuilder getConfigOrBuilder(); /** + * + * *
    * If `false` or omitted, the recognizer will perform continuous
    * recognition (continuing to wait for and process audio even if the user
@@ -60,11 +92,14 @@ public interface StreamingRecognitionConfigOrBuilder extends
    * 
* * bool single_utterance = 2; + * * @return The singleUtterance. */ boolean getSingleUtterance(); /** + * + * *
    * If `true`, interim results (tentative hypotheses) may be
    * returned as they become available (these interim results are indicated with
@@ -73,6 +108,7 @@ public interface StreamingRecognitionConfigOrBuilder extends
    * 
* * bool interim_results = 3; + * * @return The interimResults. */ boolean getInterimResults(); diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionResult.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionResult.java similarity index 75% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionResult.java rename to proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionResult.java index d66a3bae5..3fe0804d6 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionResult.java +++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionResult.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech.proto package com.google.cloud.speech.v1p1beta1; /** + * + * *
  * A streaming speech recognition result corresponding to a portion of the audio
  * that is currently being processed.
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.cloud.speech.v1p1beta1.StreamingRecognitionResult}
  */
-public final class StreamingRecognitionResult extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class StreamingRecognitionResult extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.speech.v1p1beta1.StreamingRecognitionResult)
     StreamingRecognitionResultOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use StreamingRecognitionResult.newBuilder() to construct.
   private StreamingRecognitionResult(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private StreamingRecognitionResult() {
     alternatives_ = java.util.Collections.emptyList();
     languageCode_ = "";
@@ -27,16 +45,15 @@ private StreamingRecognitionResult() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new StreamingRecognitionResult();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private StreamingRecognitionResult(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -56,63 +73,70 @@ private StreamingRecognitionResult(
           case 0:
             done = true;
             break;
-          case 10: {
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              alternatives_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000001;
+          case 10:
+            {
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                alternatives_ =
+                    new java.util.ArrayList<
+                        com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative>();
+                mutable_bitField0_ |= 0x00000001;
+              }
+              alternatives_.add(
+                  input.readMessage(
+                      com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.parser(),
+                      extensionRegistry));
+              break;
             }
-            alternatives_.add(
-                input.readMessage(com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.parser(), extensionRegistry));
-            break;
-          }
-          case 16: {
-
-            isFinal_ = input.readBool();
-            break;
-          }
-          case 29: {
-
-            stability_ = input.readFloat();
-            break;
-          }
-          case 34: {
-            com.google.protobuf.Duration.Builder subBuilder = null;
-            if (resultEndTime_ != null) {
-              subBuilder = resultEndTime_.toBuilder();
+          case 16:
+            {
+              isFinal_ = input.readBool();
+              break;
             }
-            resultEndTime_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(resultEndTime_);
-              resultEndTime_ = subBuilder.buildPartial();
+          case 29:
+            {
+              stability_ = input.readFloat();
+              break;
             }
+          case 34:
+            {
+              com.google.protobuf.Duration.Builder subBuilder = null;
+              if (resultEndTime_ != null) {
+                subBuilder = resultEndTime_.toBuilder();
+              }
+              resultEndTime_ =
+                  input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(resultEndTime_);
+                resultEndTime_ = subBuilder.buildPartial();
+              }
+
+              break;
+            }
+          case 40:
+            {
+              channelTag_ = input.readInt32();
+              break;
+            }
+          case 50:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            break;
-          }
-          case 40: {
-
-            channelTag_ = input.readInt32();
-            break;
-          }
-          case 50: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            languageCode_ = s;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              languageCode_ = s;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         alternatives_ = java.util.Collections.unmodifiableList(alternatives_);
@@ -121,22 +145,28 @@ private StreamingRecognitionResult(
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_StreamingRecognitionResult_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.speech.v1p1beta1.SpeechProto
+        .internal_static_google_cloud_speech_v1p1beta1_StreamingRecognitionResult_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_StreamingRecognitionResult_fieldAccessorTable
+    return com.google.cloud.speech.v1p1beta1.SpeechProto
+        .internal_static_google_cloud_speech_v1p1beta1_StreamingRecognitionResult_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult.class, com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult.Builder.class);
+            com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult.class,
+            com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult.Builder.class);
   }
 
   public static final int ALTERNATIVES_FIELD_NUMBER = 1;
-  private java.util.List alternatives_;
+  private java.util.List
+      alternatives_;
   /**
+   *
+   *
    * 
    * May contain one or more recognition hypotheses (up to the
    * maximum specified in `max_alternatives`).
@@ -144,13 +174,17 @@ private StreamingRecognitionResult(
    * alternative being the most probable, as ranked by the recognizer.
    * 
* - * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; + * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; + * */ @java.lang.Override - public java.util.List getAlternativesList() { + public java.util.List + getAlternativesList() { return alternatives_; } /** + * + * *
    * May contain one or more recognition hypotheses (up to the
    * maximum specified in `max_alternatives`).
@@ -158,14 +192,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`).
@@ -173,13 +211,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`).
@@ -187,13 +228,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`).
@@ -201,17 +245,20 @@ public com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative getAlterna
    * alternative being the most probable, as ranked by the recognizer.
    * 
* - * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; + * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; + * */ @java.lang.Override - public com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternativeOrBuilder getAlternativesOrBuilder( - int index) { + public com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternativeOrBuilder + getAlternativesOrBuilder(int index) { return alternatives_.get(index); } public static final int IS_FINAL_FIELD_NUMBER = 2; private boolean isFinal_; /** + * + * *
    * If `false`, this `StreamingRecognitionResult` represents an
    * interim result that may change. If `true`, this is the final time the
@@ -221,6 +268,7 @@ public com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternativeOrBuilder g
    * 
* * bool is_final = 2; + * * @return The isFinal. */ @java.lang.Override @@ -231,6 +279,8 @@ public boolean getIsFinal() { public static final int STABILITY_FIELD_NUMBER = 3; private float stability_; /** + * + * *
    * An estimate of the likelihood that the recognizer will not
    * change its guess about this interim result. Values range from 0.0
@@ -240,6 +290,7 @@ public boolean getIsFinal() {
    * 
* * float stability = 3; + * * @return The stability. */ @java.lang.Override @@ -250,12 +301,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 @@ -263,19 +317,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.
@@ -291,6 +352,8 @@ public com.google.protobuf.DurationOrBuilder getResultEndTimeOrBuilder() {
   public static final int CHANNEL_TAG_FIELD_NUMBER = 5;
   private int channelTag_;
   /**
+   *
+   *
    * 
    * For multi-channel audio, this is the channel number corresponding to the
    * recognized result for the audio from that channel.
@@ -298,6 +361,7 @@ public com.google.protobuf.DurationOrBuilder getResultEndTimeOrBuilder() {
    * 
* * int32 channel_tag = 5; + * * @return The channelTag. */ @java.lang.Override @@ -308,6 +372,8 @@ public int getChannelTag() { public static final int LANGUAGE_CODE_FIELD_NUMBER = 6; private volatile java.lang.Object languageCode_; /** + * + * *
    * Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag
    * of the language in this result. This language code was detected to have
@@ -315,6 +381,7 @@ public int getChannelTag() {
    * 
* * string language_code = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The languageCode. */ @java.lang.Override @@ -323,14 +390,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
@@ -338,16 +406,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 { @@ -356,6 +423,7 @@ public java.lang.String getLanguageCode() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -367,8 +435,7 @@ public final boolean isInitialized() { } @java.lang.Override - 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)); } @@ -397,24 +464,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 (stability_ != 0F) { - 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_); @@ -427,29 +489,24 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult)) { return super.equals(obj); } - com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult other = (com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult) obj; + com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult other = + (com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult) obj; - if (!getAlternativesList() - .equals(other.getAlternativesList())) return false; - if (getIsFinal() - != other.getIsFinal()) return false; + if (!getAlternativesList().equals(other.getAlternativesList())) return false; + if (getIsFinal() != other.getIsFinal()) return false; if (java.lang.Float.floatToIntBits(getStability()) - != java.lang.Float.floatToIntBits( - other.getStability())) return false; + != java.lang.Float.floatToIntBits(other.getStability())) return false; if (hasResultEndTime() != other.hasResultEndTime()) return false; if (hasResultEndTime()) { - if (!getResultEndTime() - .equals(other.getResultEndTime())) return false; + if (!getResultEndTime().equals(other.getResultEndTime())) return false; } - if (getChannelTag() - != other.getChannelTag()) return false; - if (!getLanguageCode() - .equals(other.getLanguageCode())) return false; + if (getChannelTag() != other.getChannelTag()) return false; + if (!getLanguageCode().equals(other.getLanguageCode())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -466,11 +523,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(); @@ -485,96 +540,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.
@@ -582,21 +645,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.speech.v1p1beta1.StreamingRecognitionResult}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1p1beta1.StreamingRecognitionResult)
       com.google.cloud.speech.v1p1beta1.StreamingRecognitionResultOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_StreamingRecognitionResult_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.speech.v1p1beta1.SpeechProto
+          .internal_static_google_cloud_speech_v1p1beta1_StreamingRecognitionResult_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_StreamingRecognitionResult_fieldAccessorTable
+      return com.google.cloud.speech.v1p1beta1.SpeechProto
+          .internal_static_google_cloud_speech_v1p1beta1_StreamingRecognitionResult_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult.class, com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult.Builder.class);
+              com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult.class,
+              com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult.newBuilder()
@@ -604,17 +669,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
         getAlternativesFieldBuilder();
       }
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -642,13 +707,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();
     }
 
@@ -663,7 +729,8 @@ public com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult buildPartial() {
-      com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult result = new com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult(this);
+      com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult result =
+          new com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult(this);
       int from_bitField0_ = bitField0_;
       if (alternativesBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
@@ -691,38 +758,39 @@ public com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult buildPartial
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult) {
-        return mergeFrom((com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult)other);
+        return mergeFrom((com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -730,7 +798,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()) {
@@ -749,9 +819,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_);
           }
@@ -792,7 +863,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -801,21 +873,30 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
-    private java.util.List alternatives_ =
-      java.util.Collections.emptyList();
+    private java.util.List
+        alternatives_ = java.util.Collections.emptyList();
+
     private void ensureAlternativesIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
-        alternatives_ = new java.util.ArrayList(alternatives_);
+        alternatives_ =
+            new java.util.ArrayList(
+                alternatives_);
         bitField0_ |= 0x00000001;
-       }
+      }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative, com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.Builder, com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternativeOrBuilder> alternativesBuilder_;
+            com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative,
+            com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.Builder,
+            com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternativeOrBuilder>
+        alternativesBuilder_;
 
     /**
+     *
+     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -823,9 +904,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 { @@ -833,6 +916,8 @@ public java.util.List * May contain one or more recognition hypotheses (up to the * maximum specified in `max_alternatives`). @@ -840,7 +925,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) { @@ -850,6 +936,8 @@ public int getAlternativesCount() { } } /** + * + * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -857,9 +945,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 { @@ -867,6 +957,8 @@ public com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative getAlterna } } /** + * + * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -874,7 +966,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) { @@ -891,6 +984,8 @@ public Builder setAlternatives( return this; } /** + * + * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -898,10 +993,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()); @@ -912,6 +1009,8 @@ public Builder setAlternatives( return this; } /** + * + * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -919,9 +1018,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(); @@ -935,6 +1036,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`).
@@ -942,7 +1045,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) { @@ -959,6 +1063,8 @@ public Builder addAlternatives( return this; } /** + * + * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -966,7 +1072,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) { @@ -980,6 +1087,8 @@ public Builder addAlternatives( return this; } /** + * + * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -987,10 +1096,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()); @@ -1001,6 +1112,8 @@ public Builder addAlternatives( return this; } /** + * + * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -1008,14 +1121,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); @@ -1023,6 +1137,8 @@ public Builder addAllAlternatives( return this; } /** + * + * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -1030,7 +1146,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) { @@ -1043,6 +1160,8 @@ public Builder clearAlternatives() { return this; } /** + * + * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -1050,7 +1169,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) { @@ -1063,6 +1183,8 @@ public Builder removeAlternatives(int index) { return this; } /** + * + * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -1070,13 +1192,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`).
@@ -1084,16 +1209,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`).
@@ -1101,10 +1230,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 { @@ -1112,6 +1243,8 @@ public com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternativeOrBuilder g } } /** + * + * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -1119,13 +1252,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`).
@@ -1133,14 +1271,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`).
@@ -1148,29 +1291,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
@@ -1180,6 +1329,7 @@ public com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.Builder ad
      * 
* * bool is_final = 2; + * * @return The isFinal. */ @java.lang.Override @@ -1187,6 +1337,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
@@ -1196,16 +1348,19 @@ public boolean getIsFinal() {
      * 
* * bool is_final = 2; + * * @param value The isFinal to set. * @return This builder for chaining. */ public Builder setIsFinal(boolean value) { - + isFinal_ = value; onChanged(); return this; } /** + * + * *
      * If `false`, this `StreamingRecognitionResult` represents an
      * interim result that may change. If `true`, this is the final time the
@@ -1215,17 +1370,20 @@ public Builder setIsFinal(boolean value) {
      * 
* * bool is_final = 2; + * * @return This builder for chaining. */ public Builder clearIsFinal() { - + isFinal_ = false; onChanged(); return this; } - private float stability_ ; + private float stability_; /** + * + * *
      * An estimate of the likelihood that the recognizer will not
      * change its guess about this interim result. Values range from 0.0
@@ -1235,6 +1393,7 @@ public Builder clearIsFinal() {
      * 
* * float stability = 3; + * * @return The stability. */ @java.lang.Override @@ -1242,6 +1401,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
@@ -1251,16 +1412,19 @@ public float getStability() {
      * 
* * float stability = 3; + * * @param value The stability to set. * @return This builder for chaining. */ public Builder setStability(float value) { - + stability_ = value; onChanged(); return this; } /** + * + * *
      * An estimate of the likelihood that the recognizer will not
      * change its guess about this interim result. Values range from 0.0
@@ -1270,10 +1434,11 @@ public Builder setStability(float value) {
      * 
* * float stability = 3; + * * @return This builder for chaining. */ public Builder clearStability() { - + stability_ = 0F; onChanged(); return this; @@ -1281,36 +1446,49 @@ public Builder clearStability() { private com.google.protobuf.Duration resultEndTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> resultEndTimeBuilder_; + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + resultEndTimeBuilder_; /** + * + * *
      * Time offset of the end of this result relative to the
      * beginning of the audio.
      * 
* * .google.protobuf.Duration result_end_time = 4; + * * @return Whether the resultEndTime field is set. */ public boolean hasResultEndTime() { return resultEndTimeBuilder_ != null || resultEndTime_ != null; } /** + * + * *
      * Time offset of the end of this result relative to the
      * beginning of the audio.
      * 
* * .google.protobuf.Duration result_end_time = 4; + * * @return The resultEndTime. */ public com.google.protobuf.Duration getResultEndTime() { if (resultEndTimeBuilder_ == null) { - return resultEndTime_ == null ? com.google.protobuf.Duration.getDefaultInstance() : resultEndTime_; + return resultEndTime_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : resultEndTime_; } else { return resultEndTimeBuilder_.getMessage(); } } /** + * + * *
      * Time offset of the end of this result relative to the
      * beginning of the audio.
@@ -1332,6 +1510,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.
@@ -1339,8 +1519,7 @@ public Builder setResultEndTime(com.google.protobuf.Duration value) {
      *
      * .google.protobuf.Duration result_end_time = 4;
      */
-    public Builder setResultEndTime(
-        com.google.protobuf.Duration.Builder builderForValue) {
+    public Builder setResultEndTime(com.google.protobuf.Duration.Builder builderForValue) {
       if (resultEndTimeBuilder_ == null) {
         resultEndTime_ = builderForValue.build();
         onChanged();
@@ -1351,6 +1530,8 @@ public Builder setResultEndTime(
       return this;
     }
     /**
+     *
+     *
      * 
      * Time offset of the end of this result relative to the
      * beginning of the audio.
@@ -1362,7 +1543,9 @@ public Builder mergeResultEndTime(com.google.protobuf.Duration value) {
       if (resultEndTimeBuilder_ == null) {
         if (resultEndTime_ != null) {
           resultEndTime_ =
-            com.google.protobuf.Duration.newBuilder(resultEndTime_).mergeFrom(value).buildPartial();
+              com.google.protobuf.Duration.newBuilder(resultEndTime_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           resultEndTime_ = value;
         }
@@ -1374,6 +1557,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.
@@ -1393,6 +1578,8 @@ public Builder clearResultEndTime() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Time offset of the end of this result relative to the
      * beginning of the audio.
@@ -1401,11 +1588,13 @@ public Builder clearResultEndTime() {
      * .google.protobuf.Duration result_end_time = 4;
      */
     public com.google.protobuf.Duration.Builder getResultEndTimeBuilder() {
-      
+
       onChanged();
       return getResultEndTimeFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Time offset of the end of this result relative to the
      * beginning of the audio.
@@ -1417,11 +1606,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.
@@ -1430,21 +1622,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.
@@ -1452,6 +1649,7 @@ public com.google.protobuf.DurationOrBuilder getResultEndTimeOrBuilder() {
      * 
* * int32 channel_tag = 5; + * * @return The channelTag. */ @java.lang.Override @@ -1459,6 +1657,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.
@@ -1466,16 +1666,19 @@ public int getChannelTag() {
      * 
* * int32 channel_tag = 5; + * * @param value The channelTag to set. * @return This builder for chaining. */ public Builder setChannelTag(int value) { - + channelTag_ = value; onChanged(); return this; } /** + * + * *
      * For multi-channel audio, this is the channel number corresponding to the
      * recognized result for the audio from that channel.
@@ -1483,10 +1686,11 @@ public Builder setChannelTag(int value) {
      * 
* * int32 channel_tag = 5; + * * @return This builder for chaining. */ public Builder clearChannelTag() { - + channelTag_ = 0; onChanged(); return this; @@ -1494,6 +1698,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
@@ -1501,13 +1707,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; @@ -1516,6 +1722,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
@@ -1523,15 +1731,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 { @@ -1539,6 +1746,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
@@ -1546,20 +1755,22 @@ public java.lang.String getLanguageCode() {
      * 
* * string language_code = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCode( - java.lang.String value) { + public Builder setLanguageCode(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + languageCode_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag
      * of the language in this result. This language code was detected to have
@@ -1567,15 +1778,18 @@ public Builder setLanguageCode(
      * 
* * string language_code = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearLanguageCode() { - + languageCode_ = getDefaultInstance().getLanguageCode(); onChanged(); return this; } /** + * + * *
      * Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag
      * of the language in this result. This language code was detected to have
@@ -1583,23 +1797,23 @@ public Builder clearLanguageCode() {
      * 
* * string language_code = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCodeBytes( - com.google.protobuf.ByteString value) { + public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + languageCode_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1609,12 +1823,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(); } @@ -1623,16 +1838,16 @@ public static com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult getDe return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StreamingRecognitionResult parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new StreamingRecognitionResult(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StreamingRecognitionResult parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new StreamingRecognitionResult(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1647,6 +1862,4 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionResultOrBuilder.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionResultOrBuilder.java similarity index 82% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionResultOrBuilder.java rename to proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionResultOrBuilder.java index 3d6da9c0a..8a2935d37 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionResultOrBuilder.java +++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionResultOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech.proto package com.google.cloud.speech.v1p1beta1; -public interface StreamingRecognitionResultOrBuilder extends +public interface StreamingRecognitionResultOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1p1beta1.StreamingRecognitionResult) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * May contain one or more recognition hypotheses (up to the
    * maximum specified in `max_alternatives`).
@@ -15,11 +33,14 @@ public interface StreamingRecognitionResultOrBuilder extends
    * alternative being the most probable, as ranked by the recognizer.
    * 
* - * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; + * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; + * */ - java.util.List + java.util.List getAlternativesList(); /** + * + * *
    * May contain one or more recognition hypotheses (up to the
    * maximum specified in `max_alternatives`).
@@ -27,10 +48,13 @@ public interface StreamingRecognitionResultOrBuilder extends
    * alternative being the most probable, as ranked by the recognizer.
    * 
* - * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; + * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; + * */ com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative getAlternatives(int index); /** + * + * *
    * May contain one or more recognition hypotheses (up to the
    * maximum specified in `max_alternatives`).
@@ -38,10 +62,13 @@ public interface StreamingRecognitionResultOrBuilder extends
    * alternative being the most probable, as ranked by the recognizer.
    * 
* - * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; + * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; + * */ int getAlternativesCount(); /** + * + * *
    * May contain one or more recognition hypotheses (up to the
    * maximum specified in `max_alternatives`).
@@ -49,11 +76,14 @@ public interface StreamingRecognitionResultOrBuilder extends
    * alternative being the most probable, as ranked by the recognizer.
    * 
* - * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; + * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; + * */ - java.util.List + java.util.List getAlternativesOrBuilderList(); /** + * + * *
    * May contain one or more recognition hypotheses (up to the
    * maximum specified in `max_alternatives`).
@@ -61,12 +91,15 @@ public interface StreamingRecognitionResultOrBuilder extends
    * alternative being the most probable, as ranked by the recognizer.
    * 
* - * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; + * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; + * */ com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternativeOrBuilder getAlternativesOrBuilder( int index); /** + * + * *
    * If `false`, this `StreamingRecognitionResult` represents an
    * interim result that may change. If `true`, this is the final time the
@@ -76,11 +109,14 @@ com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternativeOrBuilder getAlter
    * 
* * bool is_final = 2; + * * @return The isFinal. */ boolean getIsFinal(); /** + * + * *
    * An estimate of the likelihood that the recognizer will not
    * change its guess about this interim result. Values range from 0.0
@@ -90,31 +126,40 @@ com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternativeOrBuilder getAlter
    * 
* * float stability = 3; + * * @return The stability. */ float getStability(); /** + * + * *
    * Time offset of the end of this result relative to the
    * beginning of the audio.
    * 
* * .google.protobuf.Duration result_end_time = 4; + * * @return Whether the resultEndTime field is set. */ boolean hasResultEndTime(); /** + * + * *
    * Time offset of the end of this result relative to the
    * beginning of the audio.
    * 
* * .google.protobuf.Duration result_end_time = 4; + * * @return The resultEndTime. */ com.google.protobuf.Duration getResultEndTime(); /** + * + * *
    * Time offset of the end of this result relative to the
    * beginning of the audio.
@@ -125,6 +170,8 @@ com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternativeOrBuilder getAlter
   com.google.protobuf.DurationOrBuilder getResultEndTimeOrBuilder();
 
   /**
+   *
+   *
    * 
    * For multi-channel audio, this is the channel number corresponding to the
    * recognized result for the audio from that channel.
@@ -132,11 +179,14 @@ com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternativeOrBuilder getAlter
    * 
* * int32 channel_tag = 5; + * * @return The channelTag. */ int getChannelTag(); /** + * + * *
    * Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag
    * of the language in this result. This language code was detected to have
@@ -144,10 +194,13 @@ com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternativeOrBuilder getAlter
    * 
* * string language_code = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The languageCode. */ java.lang.String getLanguageCode(); /** + * + * *
    * Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag
    * of the language in this result. This language code was detected to have
@@ -155,8 +208,8 @@ com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternativeOrBuilder getAlter
    * 
* * string language_code = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for languageCode. */ - com.google.protobuf.ByteString - getLanguageCodeBytes(); + com.google.protobuf.ByteString getLanguageCodeBytes(); } diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeRequest.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeRequest.java similarity index 72% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeRequest.java rename to proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeRequest.java index 977d7d916..e9f014285 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeRequest.java +++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeRequest.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech.proto package com.google.cloud.speech.v1p1beta1; /** + * + * *
  * The top-level message sent by the client for the `StreamingRecognize` method.
  * Multiple `StreamingRecognizeRequest` messages are sent. The first message
@@ -14,30 +31,29 @@
  *
  * Protobuf type {@code google.cloud.speech.v1p1beta1.StreamingRecognizeRequest}
  */
-public final class StreamingRecognizeRequest extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class StreamingRecognizeRequest extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.speech.v1p1beta1.StreamingRecognizeRequest)
     StreamingRecognizeRequestOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use StreamingRecognizeRequest.newBuilder() to construct.
   private StreamingRecognizeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-  private StreamingRecognizeRequest() {
-  }
+
+  private StreamingRecognizeRequest() {}
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new StreamingRecognizeRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private StreamingRecognizeRequest(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -56,66 +72,81 @@ private StreamingRecognizeRequest(
           case 0:
             done = true;
             break;
-          case 10: {
-            com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig.Builder subBuilder = null;
-            if (streamingRequestCase_ == 1) {
-              subBuilder = ((com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig) streamingRequest_).toBuilder();
+          case 10:
+            {
+              com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig.Builder subBuilder =
+                  null;
+              if (streamingRequestCase_ == 1) {
+                subBuilder =
+                    ((com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig)
+                            streamingRequest_)
+                        .toBuilder();
+              }
+              streamingRequest_ =
+                  input.readMessage(
+                      com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig.parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(
+                    (com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig)
+                        streamingRequest_);
+                streamingRequest_ = subBuilder.buildPartial();
+              }
+              streamingRequestCase_ = 1;
+              break;
             }
-            streamingRequest_ =
-                input.readMessage(com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom((com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig) streamingRequest_);
-              streamingRequest_ = subBuilder.buildPartial();
+          case 18:
+            {
+              streamingRequestCase_ = 2;
+              streamingRequest_ = input.readBytes();
+              break;
             }
-            streamingRequestCase_ = 1;
-            break;
-          }
-          case 18: {
-            streamingRequestCase_ = 2;
-            streamingRequest_ = input.readBytes();
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_StreamingRecognizeRequest_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.speech.v1p1beta1.SpeechProto
+        .internal_static_google_cloud_speech_v1p1beta1_StreamingRecognizeRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_StreamingRecognizeRequest_fieldAccessorTable
+    return com.google.cloud.speech.v1p1beta1.SpeechProto
+        .internal_static_google_cloud_speech_v1p1beta1_StreamingRecognizeRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest.class, com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest.Builder.class);
+            com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest.class,
+            com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest.Builder.class);
   }
 
   private int streamingRequestCase_ = 0;
   private java.lang.Object streamingRequest_;
+
   public enum StreamingRequestCase
-      implements com.google.protobuf.Internal.EnumLite,
+      implements
+          com.google.protobuf.Internal.EnumLite,
           com.google.protobuf.AbstractMessage.InternalOneOfEnum {
     STREAMING_CONFIG(1),
     AUDIO_CONTENT(2),
     STREAMINGREQUEST_NOT_SET(0);
     private final int value;
+
     private StreamingRequestCase(int value) {
       this.value = value;
     }
@@ -131,25 +162,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
@@ -157,6 +193,7 @@ public int getNumber() {
    * 
* * .google.cloud.speech.v1p1beta1.StreamingRecognitionConfig streaming_config = 1; + * * @return Whether the streamingConfig field is set. */ @java.lang.Override @@ -164,6 +201,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
@@ -171,16 +210,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
@@ -190,15 +232,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
@@ -211,6 +256,7 @@ public com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfigOrBuilder get
    * 
* * bytes audio_content = 2; + * * @return Whether the audioContent field is set. */ @java.lang.Override @@ -218,6 +264,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
@@ -230,6 +278,7 @@ public boolean hasAudioContent() {
    * 
* * bytes audio_content = 2; + * * @return The audioContent. */ @java.lang.Override @@ -241,6 +290,7 @@ public com.google.protobuf.ByteString getAudioContent() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -252,14 +302,13 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (streamingRequestCase_ == 1) { - output.writeMessage(1, (com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig) streamingRequest_); + output.writeMessage( + 1, (com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig) streamingRequest_); } if (streamingRequestCase_ == 2) { - output.writeBytes( - 2, (com.google.protobuf.ByteString) streamingRequest_); + output.writeBytes(2, (com.google.protobuf.ByteString) streamingRequest_); } unknownFields.writeTo(output); } @@ -271,13 +320,14 @@ public int getSerializedSize() { size = 0; if (streamingRequestCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, (com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig) streamingRequest_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, (com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig) streamingRequest_); } if (streamingRequestCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize( - 2, (com.google.protobuf.ByteString) streamingRequest_); + size += + com.google.protobuf.CodedOutputStream.computeBytesSize( + 2, (com.google.protobuf.ByteString) streamingRequest_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -287,22 +337,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: @@ -336,96 +385,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
@@ -436,21 +493,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.speech.v1p1beta1.StreamingRecognizeRequest}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1p1beta1.StreamingRecognizeRequest)
       com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_StreamingRecognizeRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.speech.v1p1beta1.SpeechProto
+          .internal_static_google_cloud_speech_v1p1beta1_StreamingRecognizeRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_StreamingRecognizeRequest_fieldAccessorTable
+      return com.google.cloud.speech.v1p1beta1.SpeechProto
+          .internal_static_google_cloud_speech_v1p1beta1_StreamingRecognizeRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest.class, com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest.Builder.class);
+              com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest.class,
+              com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest.newBuilder()
@@ -458,16 +517,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -477,9 +535,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_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
@@ -498,7 +556,8 @@ public com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest buildPartial() {
-      com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest result = new com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest(this);
+      com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest result =
+          new com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest(this);
       if (streamingRequestCase_ == 1) {
         if (streamingConfigBuilder_ == null) {
           result.streamingRequest_ = streamingRequest_;
@@ -518,38 +577,39 @@ public com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest buildPartial(
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest) {
-        return mergeFrom((com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest)other);
+        return mergeFrom((com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -557,19 +617,23 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest other) {
-      if (other == com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest.getDefaultInstance()) return this;
+      if (other == com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest.getDefaultInstance())
+        return this;
       switch (other.getStreamingRequestCase()) {
-        case STREAMING_CONFIG: {
-          mergeStreamingConfig(other.getStreamingConfig());
-          break;
-        }
-        case AUDIO_CONTENT: {
-          setAudioContent(other.getAudioContent());
-          break;
-        }
-        case STREAMINGREQUEST_NOT_SET: {
-          break;
-        }
+        case STREAMING_CONFIG:
+          {
+            mergeStreamingConfig(other.getStreamingConfig());
+            break;
+          }
+        case AUDIO_CONTENT:
+          {
+            setAudioContent(other.getAudioContent());
+            break;
+          }
+        case STREAMINGREQUEST_NOT_SET:
+          {
+            break;
+          }
       }
       this.mergeUnknownFields(other.unknownFields);
       onChanged();
@@ -590,7 +654,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -599,12 +664,12 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int streamingRequestCase_ = 0;
     private java.lang.Object streamingRequest_;
-    public StreamingRequestCase
-        getStreamingRequestCase() {
-      return StreamingRequestCase.forNumber(
-          streamingRequestCase_);
+
+    public StreamingRequestCase getStreamingRequestCase() {
+      return StreamingRequestCase.forNumber(streamingRequestCase_);
     }
 
     public Builder clearStreamingRequest() {
@@ -614,10 +679,14 @@ public Builder clearStreamingRequest() {
       return this;
     }
 
-
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig, com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig.Builder, com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfigOrBuilder> streamingConfigBuilder_;
+            com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig,
+            com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig.Builder,
+            com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfigOrBuilder>
+        streamingConfigBuilder_;
     /**
+     *
+     *
      * 
      * Provides information to the recognizer that specifies how to process the
      * request. The first `StreamingRecognizeRequest` message must contain a
@@ -625,6 +694,7 @@ public Builder clearStreamingRequest() {
      * 
* * .google.cloud.speech.v1p1beta1.StreamingRecognitionConfig streaming_config = 1; + * * @return Whether the streamingConfig field is set. */ @java.lang.Override @@ -632,6 +702,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
@@ -639,6 +711,7 @@ public boolean hasStreamingConfig() {
      * 
* * .google.cloud.speech.v1p1beta1.StreamingRecognitionConfig streaming_config = 1; + * * @return The streamingConfig. */ @java.lang.Override @@ -656,6 +729,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
@@ -664,7 +739,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();
@@ -678,6 +754,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
@@ -698,6 +776,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
@@ -706,12 +786,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;
         }
@@ -726,6 +813,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
@@ -751,6 +840,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
@@ -759,10 +850,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
@@ -772,7 +866,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 {
@@ -783,6 +878,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
@@ -792,25 +889,34 @@ public com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfigOrBuilder get
      * .google.cloud.speech.v1p1beta1.StreamingRecognitionConfig streaming_config = 1;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig, com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig.Builder, com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfigOrBuilder> 
+            com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig,
+            com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig.Builder,
+            com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfigOrBuilder>
         getStreamingConfigFieldBuilder() {
       if (streamingConfigBuilder_ == null) {
         if (!(streamingRequestCase_ == 1)) {
-          streamingRequest_ = com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig.getDefaultInstance();
+          streamingRequest_ =
+              com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig.getDefaultInstance();
         }
-        streamingConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig, com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig.Builder, com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfigOrBuilder>(
+        streamingConfigBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig,
+                com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig.Builder,
+                com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfigOrBuilder>(
                 (com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig) streamingRequest_,
                 getParentForChildren(),
                 isClean());
         streamingRequest_ = null;
       }
       streamingRequestCase_ = 1;
-      onChanged();;
+      onChanged();
+      ;
       return streamingConfigBuilder_;
     }
 
     /**
+     *
+     *
      * 
      * The audio data to be recognized. Sequential chunks of audio data are sent
      * in sequential `StreamingRecognizeRequest` messages. The first
@@ -823,12 +929,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
@@ -841,6 +950,7 @@ public boolean hasAudioContent() {
      * 
* * bytes audio_content = 2; + * * @return The audioContent. */ public com.google.protobuf.ByteString getAudioContent() { @@ -850,6 +960,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
@@ -862,19 +974,22 @@ public com.google.protobuf.ByteString getAudioContent() {
      * 
* * bytes audio_content = 2; + * * @param value The audioContent to set. * @return This builder for chaining. */ public Builder setAudioContent(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - streamingRequestCase_ = 2; + throw new NullPointerException(); + } + streamingRequestCase_ = 2; streamingRequest_ = value; onChanged(); return this; } /** + * + * *
      * The audio data to be recognized. Sequential chunks of audio data are sent
      * in sequential `StreamingRecognizeRequest` messages. The first
@@ -887,6 +1002,7 @@ public Builder setAudioContent(com.google.protobuf.ByteString value) {
      * 
* * bytes audio_content = 2; + * * @return This builder for chaining. */ public Builder clearAudioContent() { @@ -897,9 +1013,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); } @@ -909,12 +1025,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(); } @@ -923,16 +1039,16 @@ public static com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StreamingRecognizeRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new StreamingRecognizeRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StreamingRecognizeRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new StreamingRecognizeRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -947,6 +1063,4 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeRequestOrBuilder.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeRequestOrBuilder.java similarity index 78% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeRequestOrBuilder.java rename to proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeRequestOrBuilder.java index e77bf66cf..f6b61734f 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeRequestOrBuilder.java +++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeRequestOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech.proto package com.google.cloud.speech.v1p1beta1; -public interface StreamingRecognizeRequestOrBuilder extends +public interface StreamingRecognizeRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1p1beta1.StreamingRecognizeRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Provides information to the recognizer that specifies how to process the
    * request. The first `StreamingRecognizeRequest` message must contain a
@@ -15,10 +33,13 @@ public interface StreamingRecognizeRequestOrBuilder extends
    * 
* * .google.cloud.speech.v1p1beta1.StreamingRecognitionConfig streaming_config = 1; + * * @return Whether the streamingConfig field is set. */ boolean hasStreamingConfig(); /** + * + * *
    * Provides information to the recognizer that specifies how to process the
    * request. The first `StreamingRecognizeRequest` message must contain a
@@ -26,10 +47,13 @@ public interface StreamingRecognizeRequestOrBuilder extends
    * 
* * .google.cloud.speech.v1p1beta1.StreamingRecognitionConfig streaming_config = 1; + * * @return The streamingConfig. */ com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig getStreamingConfig(); /** + * + * *
    * Provides information to the recognizer that specifies how to process the
    * request. The first `StreamingRecognizeRequest` message must contain a
@@ -38,9 +62,12 @@ public interface StreamingRecognizeRequestOrBuilder extends
    *
    * .google.cloud.speech.v1p1beta1.StreamingRecognitionConfig streaming_config = 1;
    */
-  com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfigOrBuilder getStreamingConfigOrBuilder();
+  com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfigOrBuilder
+      getStreamingConfigOrBuilder();
 
   /**
+   *
+   *
    * 
    * The audio data to be recognized. Sequential chunks of audio data are sent
    * in sequential `StreamingRecognizeRequest` messages. The first
@@ -53,10 +80,13 @@ public interface StreamingRecognizeRequestOrBuilder extends
    * 
* * bytes audio_content = 2; + * * @return Whether the audioContent field is set. */ boolean hasAudioContent(); /** + * + * *
    * The audio data to be recognized. Sequential chunks of audio data are sent
    * in sequential `StreamingRecognizeRequest` messages. The first
@@ -69,9 +99,11 @@ public interface StreamingRecognizeRequestOrBuilder extends
    * 
* * bytes audio_content = 2; + * * @return The audioContent. */ com.google.protobuf.ByteString getAudioContent(); - public com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest.StreamingRequestCase getStreamingRequestCase(); + public com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest.StreamingRequestCase + getStreamingRequestCase(); } diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeResponse.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeResponse.java similarity index 75% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeResponse.java rename to proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeResponse.java index f978fe4f6..8ad4ceba0 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeResponse.java +++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeResponse.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech.proto package com.google.cloud.speech.v1p1beta1; /** + * + * *
  * `StreamingRecognizeResponse` is the only message returned to the client by
  * `StreamingRecognize`. A series of zero or more `StreamingRecognizeResponse`
@@ -45,15 +62,16 @@
  *
  * Protobuf type {@code google.cloud.speech.v1p1beta1.StreamingRecognizeResponse}
  */
-public final class StreamingRecognizeResponse extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class StreamingRecognizeResponse extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.speech.v1p1beta1.StreamingRecognizeResponse)
     StreamingRecognizeResponseOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use StreamingRecognizeResponse.newBuilder() to construct.
   private StreamingRecognizeResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private StreamingRecognizeResponse() {
     results_ = java.util.Collections.emptyList();
     speechEventType_ = 0;
@@ -61,16 +79,15 @@ private StreamingRecognizeResponse() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new StreamingRecognizeResponse();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private StreamingRecognizeResponse(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -90,61 +107,69 @@ private StreamingRecognizeResponse(
           case 0:
             done = true;
             break;
-          case 10: {
-            com.google.rpc.Status.Builder subBuilder = null;
-            if (error_ != null) {
-              subBuilder = error_.toBuilder();
+          case 10:
+            {
+              com.google.rpc.Status.Builder subBuilder = null;
+              if (error_ != null) {
+                subBuilder = error_.toBuilder();
+              }
+              error_ = input.readMessage(com.google.rpc.Status.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(error_);
+                error_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
-            error_ = input.readMessage(com.google.rpc.Status.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(error_);
-              error_ = subBuilder.buildPartial();
+          case 18:
+            {
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                results_ =
+                    new java.util.ArrayList<
+                        com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult>();
+                mutable_bitField0_ |= 0x00000001;
+              }
+              results_.add(
+                  input.readMessage(
+                      com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult.parser(),
+                      extensionRegistry));
+              break;
             }
+          case 32:
+            {
+              int rawValue = input.readEnum();
 
-            break;
-          }
-          case 18: {
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              results_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000001;
+              speechEventType_ = rawValue;
+              break;
             }
-            results_.add(
-                input.readMessage(com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult.parser(), extensionRegistry));
-            break;
-          }
-          case 32: {
-            int rawValue = input.readEnum();
-
-            speechEventType_ = rawValue;
-            break;
-          }
-          case 42: {
-            com.google.protobuf.Duration.Builder subBuilder = null;
-            if (totalBilledTime_ != null) {
-              subBuilder = totalBilledTime_.toBuilder();
+          case 42:
+            {
+              com.google.protobuf.Duration.Builder subBuilder = null;
+              if (totalBilledTime_ != null) {
+                subBuilder = totalBilledTime_.toBuilder();
+              }
+              totalBilledTime_ =
+                  input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(totalBilledTime_);
+                totalBilledTime_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
-            totalBilledTime_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(totalBilledTime_);
-              totalBilledTime_ = subBuilder.buildPartial();
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
-            }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         results_ = java.util.Collections.unmodifiableList(results_);
@@ -153,29 +178,35 @@ private StreamingRecognizeResponse(
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_StreamingRecognizeResponse_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.speech.v1p1beta1.SpeechProto
+        .internal_static_google_cloud_speech_v1p1beta1_StreamingRecognizeResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_StreamingRecognizeResponse_fieldAccessorTable
+    return com.google.cloud.speech.v1p1beta1.SpeechProto
+        .internal_static_google_cloud_speech_v1p1beta1_StreamingRecognizeResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.class, com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.Builder.class);
+            com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.class,
+            com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.Builder.class);
   }
 
   /**
+   *
+   *
    * 
    * Indicates the type of speech event.
    * 
* * Protobuf enum {@code google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType} */ - public enum SpeechEventType - implements com.google.protobuf.ProtocolMessageEnum { + public enum SpeechEventType implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * No speech event specified.
      * 
@@ -184,6 +215,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
@@ -201,6 +234,8 @@ public enum SpeechEventType
     ;
 
     /**
+     *
+     *
      * 
      * No speech event specified.
      * 
@@ -209,6 +244,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
@@ -223,7 +260,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(
@@ -248,39 +284,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();
@@ -288,8 +328,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;
@@ -309,12 +348,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 @@ -322,12 +364,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 @@ -335,6 +380,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.
@@ -350,6 +397,8 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() {
   public static final int RESULTS_FIELD_NUMBER = 2;
   private java.util.List results_;
   /**
+   *
+   *
    * 
    * This repeated list contains zero or more results that
    * correspond to consecutive portions of the audio currently being processed.
@@ -360,10 +409,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.
@@ -374,11 +426,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.
@@ -393,6 +448,8 @@ public int getResultsCount() {
     return results_.size();
   }
   /**
+   *
+   *
    * 
    * This repeated list contains zero or more results that
    * correspond to consecutive portions of the audio currently being processed.
@@ -407,6 +464,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.
@@ -425,39 +484,59 @@ public com.google.cloud.speech.v1p1beta1.StreamingRecognitionResultOrBuilder get
   public static final int SPEECH_EVENT_TYPE_FIELD_NUMBER = 4;
   private int speechEventType_;
   /**
+   *
+   *
    * 
    * Indicates the type of speech event.
    * 
* - * .google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType speech_event_type = 4; + * + * .google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType speech_event_type = 4; + * + * * @return The enum numeric value on the wire for speechEventType. */ - @java.lang.Override public int getSpeechEventTypeValue() { + @java.lang.Override + public int getSpeechEventTypeValue() { return speechEventType_; } /** + * + * *
    * Indicates the type of speech event.
    * 
* - * .google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType speech_event_type = 4; + * + * .google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType speech_event_type = 4; + * + * * @return The speechEventType. */ - @java.lang.Override public com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType getSpeechEventType() { + @java.lang.Override + public com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType + getSpeechEventType() { @SuppressWarnings("deprecation") - com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType result = com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType.valueOf(speechEventType_); - return result == null ? com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType.UNRECOGNIZED : result; + com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType result = + com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType.valueOf( + speechEventType_); + return result == null + ? com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType.UNRECOGNIZED + : result; } public static final int TOTAL_BILLED_TIME_FIELD_NUMBER = 5; private com.google.protobuf.Duration totalBilledTime_; /** + * + * *
    * When available, billed audio seconds for the stream.
    * Set only if this is the last response in the stream.
    * 
* * .google.protobuf.Duration total_billed_time = 5; + * * @return Whether the totalBilledTime field is set. */ @java.lang.Override @@ -465,19 +544,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.
@@ -491,6 +577,7 @@ public com.google.protobuf.DurationOrBuilder getTotalBilledTimeOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -502,15 +589,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) {
@@ -526,20 +615,19 @@ public int getSerializedSize() {
 
     size = 0;
     if (error_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(1, getError());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getError());
     }
     for (int i = 0; i < results_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(2, results_.get(i));
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, results_.get(i));
     }
-    if (speechEventType_ != com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType.SPEECH_EVENT_UNSPECIFIED.getNumber()) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeEnumSize(4, speechEventType_);
+    if (speechEventType_
+        != com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType
+            .SPEECH_EVENT_UNSPECIFIED
+            .getNumber()) {
+      size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, speechEventType_);
     }
     if (totalBilledTime_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(5, getTotalBilledTime());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getTotalBilledTime());
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -549,25 +637,23 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse)) {
       return super.equals(obj);
     }
-    com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse other = (com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse) obj;
+    com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse other =
+        (com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse) obj;
 
     if (hasError() != other.hasError()) return false;
     if (hasError()) {
-      if (!getError()
-          .equals(other.getError())) return false;
+      if (!getError().equals(other.getError())) return false;
     }
-    if (!getResultsList()
-        .equals(other.getResultsList())) return false;
+    if (!getResultsList().equals(other.getResultsList())) return false;
     if (speechEventType_ != other.speechEventType_) return false;
     if (hasTotalBilledTime() != other.hasTotalBilledTime()) return false;
     if (hasTotalBilledTime()) {
-      if (!getTotalBilledTime()
-          .equals(other.getTotalBilledTime())) return false;
+      if (!getTotalBilledTime().equals(other.getTotalBilledTime())) return false;
     }
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
@@ -600,96 +686,104 @@ public int hashCode() {
   }
 
   public static com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse parseFrom(
-      java.nio.ByteBuffer data)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
-  public static com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+
+  public static com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-  public static Builder newBuilder(com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse prototype) {
+
+  public static Builder newBuilder(
+      com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * `StreamingRecognizeResponse` is the only message returned to the client by
    * `StreamingRecognize`. A series of zero or more `StreamingRecognizeResponse`
@@ -731,21 +825,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.speech.v1p1beta1.StreamingRecognizeResponse}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1p1beta1.StreamingRecognizeResponse)
       com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_StreamingRecognizeResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.speech.v1p1beta1.SpeechProto
+          .internal_static_google_cloud_speech_v1p1beta1_StreamingRecognizeResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_StreamingRecognizeResponse_fieldAccessorTable
+      return com.google.cloud.speech.v1p1beta1.SpeechProto
+          .internal_static_google_cloud_speech_v1p1beta1_StreamingRecognizeResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.class, com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.Builder.class);
+              com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.class,
+              com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.newBuilder()
@@ -753,17 +849,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
         getResultsFieldBuilder();
       }
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -791,13 +887,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();
     }
 
@@ -812,7 +909,8 @@ public com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse buildPartial() {
-      com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse result = new com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse(this);
+      com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse result =
+          new com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse(this);
       int from_bitField0_ = bitField0_;
       if (errorBuilder_ == null) {
         result.error_ = error_;
@@ -842,38 +940,39 @@ public com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse buildPartial
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse) {
-        return mergeFrom((com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse)other);
+        return mergeFrom((com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -881,7 +980,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());
       }
@@ -903,9 +1004,10 @@ public Builder mergeFrom(com.google.cloud.speech.v1p1beta1.StreamingRecognizeRes
             resultsBuilder_ = null;
             results_ = other.results_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            resultsBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getResultsFieldBuilder() : null;
+            resultsBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getResultsFieldBuilder()
+                    : null;
           } else {
             resultsBuilder_.addAllMessages(other.results_);
           }
@@ -936,7 +1038,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -945,30 +1048,38 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
     private com.google.rpc.Status error_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> errorBuilder_;
+            com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>
+        errorBuilder_;
     /**
+     *
+     *
      * 
      * If set, returns a [google.rpc.Status][google.rpc.Status] message that
      * specifies the error for the operation.
      * 
* * .google.rpc.Status error = 1; + * * @return Whether the error field is set. */ public boolean hasError() { return errorBuilder_ != null || error_ != null; } /** + * + * *
      * If set, returns a [google.rpc.Status][google.rpc.Status] message that
      * specifies the error for the operation.
      * 
* * .google.rpc.Status error = 1; + * * @return The error. */ public com.google.rpc.Status getError() { @@ -979,6 +1090,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.
@@ -1000,6 +1113,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.
@@ -1007,8 +1122,7 @@ public Builder setError(com.google.rpc.Status value) {
      *
      * .google.rpc.Status error = 1;
      */
-    public Builder setError(
-        com.google.rpc.Status.Builder builderForValue) {
+    public Builder setError(com.google.rpc.Status.Builder builderForValue) {
       if (errorBuilder_ == null) {
         error_ = builderForValue.build();
         onChanged();
@@ -1019,6 +1133,8 @@ public Builder setError(
       return this;
     }
     /**
+     *
+     *
      * 
      * If set, returns a [google.rpc.Status][google.rpc.Status] message that
      * specifies the error for the operation.
@@ -1029,8 +1145,7 @@ public Builder setError(
     public Builder mergeError(com.google.rpc.Status value) {
       if (errorBuilder_ == null) {
         if (error_ != null) {
-          error_ =
-            com.google.rpc.Status.newBuilder(error_).mergeFrom(value).buildPartial();
+          error_ = com.google.rpc.Status.newBuilder(error_).mergeFrom(value).buildPartial();
         } else {
           error_ = value;
         }
@@ -1042,6 +1157,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.
@@ -1061,6 +1178,8 @@ public Builder clearError() {
       return this;
     }
     /**
+     *
+     *
      * 
      * If set, returns a [google.rpc.Status][google.rpc.Status] message that
      * specifies the error for the operation.
@@ -1069,11 +1188,13 @@ public Builder clearError() {
      * .google.rpc.Status error = 1;
      */
     public com.google.rpc.Status.Builder getErrorBuilder() {
-      
+
       onChanged();
       return getErrorFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * If set, returns a [google.rpc.Status][google.rpc.Status] message that
      * specifies the error for the operation.
@@ -1085,11 +1206,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.
@@ -1098,32 +1220,40 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() {
      * .google.rpc.Status error = 1;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> 
+            com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>
         getErrorFieldBuilder() {
       if (errorBuilder_ == null) {
-        errorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>(
-                getError(),
-                getParentForChildren(),
-                isClean());
+        errorBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.rpc.Status,
+                com.google.rpc.Status.Builder,
+                com.google.rpc.StatusOrBuilder>(getError(), getParentForChildren(), isClean());
         error_ = null;
       }
       return errorBuilder_;
     }
 
     private java.util.List results_ =
-      java.util.Collections.emptyList();
+        java.util.Collections.emptyList();
+
     private void ensureResultsIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
-        results_ = new java.util.ArrayList(results_);
+        results_ =
+            new java.util.ArrayList(
+                results_);
         bitField0_ |= 0x00000001;
-       }
+      }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult, com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult.Builder, com.google.cloud.speech.v1p1beta1.StreamingRecognitionResultOrBuilder> resultsBuilder_;
+            com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult,
+            com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult.Builder,
+            com.google.cloud.speech.v1p1beta1.StreamingRecognitionResultOrBuilder>
+        resultsBuilder_;
 
     /**
+     *
+     *
      * 
      * This repeated list contains zero or more results that
      * correspond to consecutive portions of the audio currently being processed.
@@ -1133,7 +1263,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 {
@@ -1141,6 +1272,8 @@ public java.util.List
      * This repeated list contains zero or more results that
      * correspond to consecutive portions of the audio currently being processed.
@@ -1158,6 +1291,8 @@ public int getResultsCount() {
       }
     }
     /**
+     *
+     *
      * 
      * This repeated list contains zero or more results that
      * correspond to consecutive portions of the audio currently being processed.
@@ -1175,6 +1310,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.
@@ -1199,6 +1336,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.
@@ -1209,7 +1348,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());
@@ -1220,6 +1360,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.
@@ -1243,6 +1385,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.
@@ -1267,6 +1411,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.
@@ -1288,6 +1434,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.
@@ -1298,7 +1446,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());
@@ -1309,6 +1458,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.
@@ -1319,11 +1470,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);
@@ -1331,6 +1482,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.
@@ -1351,6 +1504,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.
@@ -1371,6 +1526,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.
@@ -1385,6 +1542,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.
@@ -1394,14 +1553,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.
@@ -1411,8 +1573,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 {
@@ -1420,6 +1583,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.
@@ -1429,11 +1594,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.
@@ -1445,10 +1614,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.
@@ -1458,20 +1631,23 @@ public com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult.Builder addR
      *
      * repeated .google.cloud.speech.v1p1beta1.StreamingRecognitionResult results = 2;
      */
-    public java.util.List 
-         getResultsBuilderList() {
+    public java.util.List
+        getResultsBuilderList() {
       return getResultsFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult, com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult.Builder, com.google.cloud.speech.v1p1beta1.StreamingRecognitionResultOrBuilder> 
+            com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult,
+            com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult.Builder,
+            com.google.cloud.speech.v1p1beta1.StreamingRecognitionResultOrBuilder>
         getResultsFieldBuilder() {
       if (resultsBuilder_ == null) {
-        resultsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult, com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult.Builder, com.google.cloud.speech.v1p1beta1.StreamingRecognitionResultOrBuilder>(
-                results_,
-                ((bitField0_ & 0x00000001) != 0),
-                getParentForChildren(),
-                isClean());
+        resultsBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult,
+                com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult.Builder,
+                com.google.cloud.speech.v1p1beta1.StreamingRecognitionResultOrBuilder>(
+                results_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
         results_ = null;
       }
       return resultsBuilder_;
@@ -1479,73 +1655,106 @@ public com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult.Builder addR
 
     private int speechEventType_ = 0;
     /**
+     *
+     *
      * 
      * Indicates the type of speech event.
      * 
* - * .google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType speech_event_type = 4; + * + * .google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType speech_event_type = 4; + * + * * @return The enum numeric value on the wire for speechEventType. */ - @java.lang.Override public int getSpeechEventTypeValue() { + @java.lang.Override + public int getSpeechEventTypeValue() { return speechEventType_; } /** + * + * *
      * Indicates the type of speech event.
      * 
* - * .google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType speech_event_type = 4; + * + * .google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType speech_event_type = 4; + * + * * @param value The enum numeric value on the wire for speechEventType to set. * @return This builder for chaining. */ public Builder setSpeechEventTypeValue(int value) { - + speechEventType_ = value; onChanged(); return this; } /** + * + * *
      * Indicates the type of speech event.
      * 
* - * .google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType speech_event_type = 4; + * + * .google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType speech_event_type = 4; + * + * * @return The speechEventType. */ @java.lang.Override - public com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType getSpeechEventType() { + public com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType + getSpeechEventType() { @SuppressWarnings("deprecation") - com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType result = com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType.valueOf(speechEventType_); - return result == null ? com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType.UNRECOGNIZED : result; + com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType result = + com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType.valueOf( + speechEventType_); + return result == null + ? com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType + .UNRECOGNIZED + : result; } /** + * + * *
      * Indicates the type of speech event.
      * 
* - * .google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType speech_event_type = 4; + * + * .google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType speech_event_type = 4; + * + * * @param value The speechEventType to set. * @return This builder for chaining. */ - public Builder setSpeechEventType(com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType value) { + public Builder setSpeechEventType( + com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType value) { if (value == null) { throw new NullPointerException(); } - + speechEventType_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Indicates the type of speech event.
      * 
* - * .google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType speech_event_type = 4; + * + * .google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType speech_event_type = 4; + * + * * @return This builder for chaining. */ public Builder clearSpeechEventType() { - + speechEventType_ = 0; onChanged(); return this; @@ -1553,36 +1762,49 @@ public Builder clearSpeechEventType() { private com.google.protobuf.Duration totalBilledTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> totalBilledTimeBuilder_; + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + totalBilledTimeBuilder_; /** + * + * *
      * When available, billed audio seconds for the stream.
      * Set only if this is the last response in the stream.
      * 
* * .google.protobuf.Duration total_billed_time = 5; + * * @return Whether the totalBilledTime field is set. */ public boolean hasTotalBilledTime() { return totalBilledTimeBuilder_ != null || totalBilledTime_ != null; } /** + * + * *
      * When available, billed audio seconds for the stream.
      * Set only if this is the last response in the stream.
      * 
* * .google.protobuf.Duration total_billed_time = 5; + * * @return The totalBilledTime. */ public com.google.protobuf.Duration getTotalBilledTime() { if (totalBilledTimeBuilder_ == null) { - return totalBilledTime_ == null ? com.google.protobuf.Duration.getDefaultInstance() : totalBilledTime_; + return totalBilledTime_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : totalBilledTime_; } else { return totalBilledTimeBuilder_.getMessage(); } } /** + * + * *
      * When available, billed audio seconds for the stream.
      * Set only if this is the last response in the stream.
@@ -1604,6 +1826,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.
@@ -1611,8 +1835,7 @@ public Builder setTotalBilledTime(com.google.protobuf.Duration value) {
      *
      * .google.protobuf.Duration total_billed_time = 5;
      */
-    public Builder setTotalBilledTime(
-        com.google.protobuf.Duration.Builder builderForValue) {
+    public Builder setTotalBilledTime(com.google.protobuf.Duration.Builder builderForValue) {
       if (totalBilledTimeBuilder_ == null) {
         totalBilledTime_ = builderForValue.build();
         onChanged();
@@ -1623,6 +1846,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.
@@ -1634,7 +1859,9 @@ public Builder mergeTotalBilledTime(com.google.protobuf.Duration value) {
       if (totalBilledTimeBuilder_ == null) {
         if (totalBilledTime_ != null) {
           totalBilledTime_ =
-            com.google.protobuf.Duration.newBuilder(totalBilledTime_).mergeFrom(value).buildPartial();
+              com.google.protobuf.Duration.newBuilder(totalBilledTime_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           totalBilledTime_ = value;
         }
@@ -1646,6 +1873,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.
@@ -1665,6 +1894,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.
@@ -1673,11 +1904,13 @@ public Builder clearTotalBilledTime() {
      * .google.protobuf.Duration total_billed_time = 5;
      */
     public com.google.protobuf.Duration.Builder getTotalBilledTimeBuilder() {
-      
+
       onChanged();
       return getTotalBilledTimeFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * When available, billed audio seconds for the stream.
      * Set only if this is the last response in the stream.
@@ -1689,11 +1922,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.
@@ -1702,21 +1938,24 @@ public com.google.protobuf.DurationOrBuilder getTotalBilledTimeOrBuilder() {
      * .google.protobuf.Duration total_billed_time = 5;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> 
+            com.google.protobuf.Duration,
+            com.google.protobuf.Duration.Builder,
+            com.google.protobuf.DurationOrBuilder>
         getTotalBilledTimeFieldBuilder() {
       if (totalBilledTimeBuilder_ == null) {
-        totalBilledTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
-                getTotalBilledTime(),
-                getParentForChildren(),
-                isClean());
+        totalBilledTimeBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.Duration,
+                com.google.protobuf.Duration.Builder,
+                com.google.protobuf.DurationOrBuilder>(
+                getTotalBilledTime(), getParentForChildren(), isClean());
         totalBilledTime_ = null;
       }
       return totalBilledTimeBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1726,12 +1965,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();
   }
@@ -1740,16 +1980,16 @@ public static com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse getDe
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public StreamingRecognizeResponse parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return new StreamingRecognizeResponse(input, extensionRegistry);
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public StreamingRecognizeResponse parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          return new StreamingRecognizeResponse(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1764,6 +2004,4 @@ public com.google.protobuf.Parser getParserForType()
   public com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeResponseOrBuilder.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeResponseOrBuilder.java
similarity index 81%
rename from owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeResponseOrBuilder.java
rename to proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeResponseOrBuilder.java
index f8b30e427..d58bc6551 100644
--- a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeResponseOrBuilder.java
+++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeResponseOrBuilder.java
@@ -1,33 +1,57 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/speech/v1p1beta1/cloud_speech.proto
 
 package com.google.cloud.speech.v1p1beta1;
 
-public interface StreamingRecognizeResponseOrBuilder extends
+public interface StreamingRecognizeResponseOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1p1beta1.StreamingRecognizeResponse)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * If set, returns a [google.rpc.Status][google.rpc.Status] message that
    * specifies the error for the operation.
    * 
* * .google.rpc.Status error = 1; + * * @return Whether the error field is set. */ boolean hasError(); /** + * + * *
    * If set, returns a [google.rpc.Status][google.rpc.Status] message that
    * specifies the error for the operation.
    * 
* * .google.rpc.Status error = 1; + * * @return The error. */ com.google.rpc.Status getError(); /** + * + * *
    * If set, returns a [google.rpc.Status][google.rpc.Status] message that
    * specifies the error for the operation.
@@ -38,6 +62,8 @@ public interface StreamingRecognizeResponseOrBuilder extends
   com.google.rpc.StatusOrBuilder getErrorOrBuilder();
 
   /**
+   *
+   *
    * 
    * This repeated list contains zero or more results that
    * correspond to consecutive portions of the audio currently being processed.
@@ -47,9 +73,10 @@ public interface StreamingRecognizeResponseOrBuilder extends
    *
    * repeated .google.cloud.speech.v1p1beta1.StreamingRecognitionResult results = 2;
    */
-  java.util.List 
-      getResultsList();
+  java.util.List getResultsList();
   /**
+   *
+   *
    * 
    * This repeated list contains zero or more results that
    * correspond to consecutive portions of the audio currently being processed.
@@ -61,6 +88,8 @@ public interface StreamingRecognizeResponseOrBuilder extends
    */
   com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult getResults(int index);
   /**
+   *
+   *
    * 
    * This repeated list contains zero or more results that
    * correspond to consecutive portions of the audio currently being processed.
@@ -72,6 +101,8 @@ public interface StreamingRecognizeResponseOrBuilder extends
    */
   int getResultsCount();
   /**
+   *
+   *
    * 
    * This repeated list contains zero or more results that
    * correspond to consecutive portions of the audio currently being processed.
@@ -81,9 +112,11 @@ public interface StreamingRecognizeResponseOrBuilder extends
    *
    * repeated .google.cloud.speech.v1p1beta1.StreamingRecognitionResult results = 2;
    */
-  java.util.List 
+  java.util.List
       getResultsOrBuilderList();
   /**
+   *
+   *
    * 
    * This repeated list contains zero or more results that
    * correspond to consecutive portions of the audio currently being processed.
@@ -97,45 +130,63 @@ com.google.cloud.speech.v1p1beta1.StreamingRecognitionResultOrBuilder getResults
       int index);
 
   /**
+   *
+   *
    * 
    * Indicates the type of speech event.
    * 
* - * .google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType speech_event_type = 4; + * + * .google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType speech_event_type = 4; + * + * * @return The enum numeric value on the wire for speechEventType. */ int getSpeechEventTypeValue(); /** + * + * *
    * Indicates the type of speech event.
    * 
* - * .google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType speech_event_type = 4; + * + * .google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType speech_event_type = 4; + * + * * @return The speechEventType. */ com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType getSpeechEventType(); /** + * + * *
    * When available, billed audio seconds for the stream.
    * Set only if this is the last response in the stream.
    * 
* * .google.protobuf.Duration total_billed_time = 5; + * * @return Whether the totalBilledTime field is set. */ boolean hasTotalBilledTime(); /** + * + * *
    * When available, billed audio seconds for the stream.
    * Set only if this is the last response in the stream.
    * 
* * .google.protobuf.Duration total_billed_time = 5; + * * @return The totalBilledTime. */ com.google.protobuf.Duration getTotalBilledTime(); /** + * + * *
    * When available, billed audio seconds for the stream.
    * Set only if this is the last response in the stream.
diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptNormalization.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptNormalization.java
similarity index 73%
rename from owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptNormalization.java
rename to proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptNormalization.java
index b50006be7..3eb99c278 100644
--- a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptNormalization.java
+++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptNormalization.java
@@ -1,9 +1,26 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/speech/v1p1beta1/resource.proto
 
 package com.google.cloud.speech.v1p1beta1;
 
 /**
+ *
+ *
  * 
  * Transcription normalization configuration. Use transcription normalization
  * to automatically replace parts of the transcript with phrases of your
@@ -13,31 +30,31 @@
  *
  * Protobuf type {@code google.cloud.speech.v1p1beta1.TranscriptNormalization}
  */
-public final class TranscriptNormalization extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class TranscriptNormalization extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.speech.v1p1beta1.TranscriptNormalization)
     TranscriptNormalizationOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use TranscriptNormalization.newBuilder() to construct.
   private TranscriptNormalization(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private TranscriptNormalization() {
     entries_ = java.util.Collections.emptyList();
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new TranscriptNormalization();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private TranscriptNormalization(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -57,29 +74,33 @@ private TranscriptNormalization(
           case 0:
             done = true;
             break;
-          case 10: {
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              entries_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000001;
+          case 10:
+            {
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                entries_ =
+                    new java.util.ArrayList<
+                        com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry>();
+                mutable_bitField0_ |= 0x00000001;
+              }
+              entries_.add(
+                  input.readMessage(
+                      com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry.parser(),
+                      extensionRegistry));
+              break;
             }
-            entries_.add(
-                input.readMessage(com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry.parser(), extensionRegistry));
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         entries_ = java.util.Collections.unmodifiableList(entries_);
@@ -88,89 +109,109 @@ private TranscriptNormalization(
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.speech.v1p1beta1.SpeechResourceProto.internal_static_google_cloud_speech_v1p1beta1_TranscriptNormalization_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.speech.v1p1beta1.SpeechResourceProto
+        .internal_static_google_cloud_speech_v1p1beta1_TranscriptNormalization_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v1p1beta1.SpeechResourceProto.internal_static_google_cloud_speech_v1p1beta1_TranscriptNormalization_fieldAccessorTable
+    return com.google.cloud.speech.v1p1beta1.SpeechResourceProto
+        .internal_static_google_cloud_speech_v1p1beta1_TranscriptNormalization_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v1p1beta1.TranscriptNormalization.class, com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Builder.class);
+            com.google.cloud.speech.v1p1beta1.TranscriptNormalization.class,
+            com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Builder.class);
   }
 
-  public interface EntryOrBuilder extends
+  public interface EntryOrBuilder
+      extends
       // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry)
       com.google.protobuf.MessageOrBuilder {
 
     /**
+     *
+     *
      * 
      * What to replace. Max length is 100 characters.
      * 
* * string search = 1; + * * @return The search. */ java.lang.String getSearch(); /** + * + * *
      * What to replace. Max length is 100 characters.
      * 
* * string search = 1; + * * @return The bytes for search. */ - com.google.protobuf.ByteString - getSearchBytes(); + com.google.protobuf.ByteString getSearchBytes(); /** + * + * *
      * What to replace with. Max length is 100 characters.
      * 
* * string replace = 2; + * * @return The replace. */ java.lang.String getReplace(); /** + * + * *
      * What to replace with. Max length is 100 characters.
      * 
* * string replace = 2; + * * @return The bytes for replace. */ - com.google.protobuf.ByteString - getReplaceBytes(); + com.google.protobuf.ByteString getReplaceBytes(); /** + * + * *
      * Whether the search is case sensitive.
      * 
* * bool case_sensitive = 3; + * * @return The caseSensitive. */ boolean getCaseSensitive(); } /** + * + * *
    * A single replacement configuration.
    * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry} */ - public static final class Entry extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class Entry extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry) EntryOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Entry.newBuilder() to construct. private Entry(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Entry() { search_ = ""; replace_ = ""; @@ -178,16 +219,15 @@ private Entry() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Entry(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private Entry( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -206,63 +246,70 @@ private Entry( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - search_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - replace_ = s; - break; - } - case 24: { + search_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - caseSensitive_ = input.readBool(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + replace_ = s; + break; + } + case 24: + { + caseSensitive_ = input.readBool(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechResourceProto.internal_static_google_cloud_speech_v1p1beta1_TranscriptNormalization_Entry_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechResourceProto + .internal_static_google_cloud_speech_v1p1beta1_TranscriptNormalization_Entry_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechResourceProto.internal_static_google_cloud_speech_v1p1beta1_TranscriptNormalization_Entry_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechResourceProto + .internal_static_google_cloud_speech_v1p1beta1_TranscriptNormalization_Entry_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry.class, com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry.Builder.class); + com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry.class, + com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry.Builder.class); } public static final int SEARCH_FIELD_NUMBER = 1; private volatile java.lang.Object search_; /** + * + * *
      * What to replace. Max length is 100 characters.
      * 
* * string search = 1; + * * @return The search. */ @java.lang.Override @@ -271,29 +318,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 { @@ -304,11 +351,14 @@ public java.lang.String getSearch() { public static final int REPLACE_FIELD_NUMBER = 2; private volatile java.lang.Object replace_; /** + * + * *
      * What to replace with. Max length is 100 characters.
      * 
* * string replace = 2; + * * @return The replace. */ @java.lang.Override @@ -317,29 +367,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 { @@ -350,11 +400,14 @@ public java.lang.String getReplace() { public static final int CASE_SENSITIVE_FIELD_NUMBER = 3; private boolean caseSensitive_; /** + * + * *
      * Whether the search is case sensitive.
      * 
* * bool case_sensitive = 3; + * * @return The caseSensitive. */ @java.lang.Override @@ -363,6 +416,7 @@ public boolean getCaseSensitive() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -374,8 +428,7 @@ public final boolean isInitialized() { } @java.lang.Override - public 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_); } @@ -401,8 +454,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, replace_); } if (caseSensitive_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(3, caseSensitive_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, caseSensitive_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -412,19 +464,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry)) { return super.equals(obj); } - com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry other = (com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry) obj; + com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry other = + (com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry) obj; - if (!getSearch() - .equals(other.getSearch())) return false; - if (!getReplace() - .equals(other.getReplace())) return false; - if (getCaseSensitive() - != other.getCaseSensitive()) return false; + if (!getSearch().equals(other.getSearch())) return false; + if (!getReplace().equals(other.getReplace())) return false; + if (getCaseSensitive() != other.getCaseSensitive()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -441,95 +491,102 @@ public int hashCode() { hash = (37 * hash) + REPLACE_FIELD_NUMBER; hash = (53 * hash) + getReplace().hashCode(); hash = (37 * hash) + CASE_SENSITIVE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getCaseSensitive()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getCaseSensitive()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry prototype) { + + public static Builder newBuilder( + com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -539,44 +596,49 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * A single replacement configuration.
      * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry) com.google.cloud.speech.v1p1beta1.TranscriptNormalization.EntryOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechResourceProto.internal_static_google_cloud_speech_v1p1beta1_TranscriptNormalization_Entry_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechResourceProto + .internal_static_google_cloud_speech_v1p1beta1_TranscriptNormalization_Entry_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechResourceProto.internal_static_google_cloud_speech_v1p1beta1_TranscriptNormalization_Entry_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechResourceProto + .internal_static_google_cloud_speech_v1p1beta1_TranscriptNormalization_Entry_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry.class, com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry.Builder.class); + com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry.class, + com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry.Builder.class); } - // Construct using com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry.newBuilder() + // Construct using + // com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -590,13 +652,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(); } @@ -611,7 +674,8 @@ public com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry build() { @java.lang.Override public com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry buildPartial() { - com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry result = new com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry(this); + com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry result = + new com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry(this); result.search_ = search_; result.replace_ = replace_; result.caseSensitive_ = caseSensitive_; @@ -623,46 +687,52 @@ public com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry buildPart public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry) { - return mergeFrom((com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry)other); + return mergeFrom((com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry other) { - if (other == com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry other) { + if (other + == com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry.getDefaultInstance()) + return this; if (!other.getSearch().isEmpty()) { search_ = other.search_; onChanged(); @@ -693,7 +763,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -705,18 +777,20 @@ public Builder mergeFrom( private java.lang.Object search_ = ""; /** + * + * *
        * What to replace. Max length is 100 characters.
        * 
* * string search = 1; + * * @return The search. */ public java.lang.String getSearch() { java.lang.Object ref = search_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); search_ = s; return s; @@ -725,20 +799,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 { @@ -746,54 +821,61 @@ public java.lang.String getSearch() { } } /** + * + * *
        * What to replace. Max length is 100 characters.
        * 
* * string search = 1; + * * @param value The search to set. * @return This builder for chaining. */ - public Builder setSearch( - java.lang.String value) { + public Builder setSearch(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + search_ = value; onChanged(); return this; } /** + * + * *
        * What to replace. Max length is 100 characters.
        * 
* * string search = 1; + * * @return This builder for chaining. */ public Builder clearSearch() { - + search_ = getDefaultInstance().getSearch(); onChanged(); return this; } /** + * + * *
        * What to replace. Max length is 100 characters.
        * 
* * string search = 1; + * * @param value The bytes for search to set. * @return This builder for chaining. */ - public Builder setSearchBytes( - com.google.protobuf.ByteString value) { + public Builder setSearchBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + search_ = value; onChanged(); return this; @@ -801,18 +883,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; @@ -821,20 +905,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 { @@ -842,66 +927,76 @@ public java.lang.String getReplace() { } } /** + * + * *
        * What to replace with. Max length is 100 characters.
        * 
* * string replace = 2; + * * @param value The replace to set. * @return This builder for chaining. */ - public Builder setReplace( - java.lang.String value) { + public Builder setReplace(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + replace_ = value; onChanged(); return this; } /** + * + * *
        * What to replace with. Max length is 100 characters.
        * 
* * string replace = 2; + * * @return This builder for chaining. */ public Builder clearReplace() { - + replace_ = getDefaultInstance().getReplace(); onChanged(); return this; } /** + * + * *
        * What to replace with. Max length is 100 characters.
        * 
* * string replace = 2; + * * @param value The bytes for replace to set. * @return This builder for chaining. */ - public Builder setReplaceBytes( - com.google.protobuf.ByteString value) { + public Builder setReplaceBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + replace_ = value; onChanged(); return this; } - private boolean caseSensitive_ ; + private boolean caseSensitive_; /** + * + * *
        * Whether the search is case sensitive.
        * 
* * bool case_sensitive = 3; + * * @return The caseSensitive. */ @java.lang.Override @@ -909,34 +1004,41 @@ public boolean getCaseSensitive() { return caseSensitive_; } /** + * + * *
        * Whether the search is case sensitive.
        * 
* * bool case_sensitive = 3; + * * @param value The caseSensitive to set. * @return This builder for chaining. */ public Builder setCaseSensitive(boolean value) { - + caseSensitive_ = value; onChanged(); return this; } /** + * + * *
        * Whether the search is case sensitive.
        * 
* * bool case_sensitive = 3; + * * @return This builder for chaining. */ public Builder clearCaseSensitive() { - + caseSensitive_ = false; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -949,30 +1051,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry) - private static final com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry DEFAULT_INSTANCE; + private static final com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry(); } - public static com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry getDefaultInstance() { + public static com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Entry parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Entry(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Entry parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Entry(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -984,15 +1088,17 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry getDefaultInstanceForType() { + public com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } public static final int ENTRIES_FIELD_NUMBER = 1; private java.util.List entries_; /** + * + * *
    * A list of replacement entries. We will perform replacement with one entry
    * at a time. For example, the second entry in ["cat" => "dog", "mountain cat"
@@ -1003,10 +1109,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"
@@ -1017,11 +1126,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"
@@ -1036,6 +1148,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"
@@ -1050,6 +1164,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"
@@ -1060,12 +1176,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;
@@ -1077,8 +1194,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  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));
     }
@@ -1092,8 +1208,7 @@ public int getSerializedSize() {
 
     size = 0;
     for (int i = 0; i < entries_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(1, entries_.get(i));
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, entries_.get(i));
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -1103,15 +1218,15 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.speech.v1p1beta1.TranscriptNormalization)) {
       return super.equals(obj);
     }
-    com.google.cloud.speech.v1p1beta1.TranscriptNormalization other = (com.google.cloud.speech.v1p1beta1.TranscriptNormalization) obj;
+    com.google.cloud.speech.v1p1beta1.TranscriptNormalization other =
+        (com.google.cloud.speech.v1p1beta1.TranscriptNormalization) obj;
 
-    if (!getEntriesList()
-        .equals(other.getEntriesList())) return false;
+    if (!getEntriesList().equals(other.getEntriesList())) return false;
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
   }
@@ -1133,96 +1248,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
@@ -1232,21 +1355,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.speech.v1p1beta1.TranscriptNormalization}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1p1beta1.TranscriptNormalization)
       com.google.cloud.speech.v1p1beta1.TranscriptNormalizationOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.speech.v1p1beta1.SpeechResourceProto.internal_static_google_cloud_speech_v1p1beta1_TranscriptNormalization_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.speech.v1p1beta1.SpeechResourceProto
+          .internal_static_google_cloud_speech_v1p1beta1_TranscriptNormalization_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v1p1beta1.SpeechResourceProto.internal_static_google_cloud_speech_v1p1beta1_TranscriptNormalization_fieldAccessorTable
+      return com.google.cloud.speech.v1p1beta1.SpeechResourceProto
+          .internal_static_google_cloud_speech_v1p1beta1_TranscriptNormalization_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v1p1beta1.TranscriptNormalization.class, com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Builder.class);
+              com.google.cloud.speech.v1p1beta1.TranscriptNormalization.class,
+              com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v1p1beta1.TranscriptNormalization.newBuilder()
@@ -1254,17 +1379,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
         getEntriesFieldBuilder();
       }
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1278,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_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
@@ -1299,7 +1424,8 @@ public com.google.cloud.speech.v1p1beta1.TranscriptNormalization build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v1p1beta1.TranscriptNormalization buildPartial() {
-      com.google.cloud.speech.v1p1beta1.TranscriptNormalization result = new com.google.cloud.speech.v1p1beta1.TranscriptNormalization(this);
+      com.google.cloud.speech.v1p1beta1.TranscriptNormalization result =
+          new com.google.cloud.speech.v1p1beta1.TranscriptNormalization(this);
       int from_bitField0_ = bitField0_;
       if (entriesBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
@@ -1318,38 +1444,39 @@ public com.google.cloud.speech.v1p1beta1.TranscriptNormalization buildPartial()
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.speech.v1p1beta1.TranscriptNormalization) {
-        return mergeFrom((com.google.cloud.speech.v1p1beta1.TranscriptNormalization)other);
+        return mergeFrom((com.google.cloud.speech.v1p1beta1.TranscriptNormalization) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1357,7 +1484,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()) {
@@ -1376,9 +1504,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_);
           }
@@ -1403,7 +1532,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.speech.v1p1beta1.TranscriptNormalization) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.speech.v1p1beta1.TranscriptNormalization) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -1412,21 +1542,30 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
-    private java.util.List entries_ =
-      java.util.Collections.emptyList();
+    private java.util.List
+        entries_ = java.util.Collections.emptyList();
+
     private void ensureEntriesIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
-        entries_ = new java.util.ArrayList(entries_);
+        entries_ =
+            new java.util.ArrayList<
+                com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry>(entries_);
         bitField0_ |= 0x00000001;
-       }
+      }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry, com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry.Builder, com.google.cloud.speech.v1p1beta1.TranscriptNormalization.EntryOrBuilder> entriesBuilder_;
+            com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry,
+            com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry.Builder,
+            com.google.cloud.speech.v1p1beta1.TranscriptNormalization.EntryOrBuilder>
+        entriesBuilder_;
 
     /**
+     *
+     *
      * 
      * A list of replacement entries. We will perform replacement with one entry
      * at a time. For example, the second entry in ["cat" => "dog", "mountain cat"
@@ -1434,9 +1573,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 { @@ -1444,6 +1585,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" @@ -1451,7 +1594,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) { @@ -1461,6 +1605,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"
@@ -1468,7 +1614,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) { @@ -1478,6 +1625,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"
@@ -1485,7 +1634,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) { @@ -1502,6 +1652,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"
@@ -1509,10 +1661,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()); @@ -1523,6 +1677,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"
@@ -1530,9 +1686,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(); @@ -1546,6 +1704,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"
@@ -1553,7 +1713,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) { @@ -1570,6 +1731,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"
@@ -1577,7 +1740,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) { @@ -1591,6 +1755,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"
@@ -1598,10 +1764,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()); @@ -1612,6 +1780,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"
@@ -1619,14 +1789,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); @@ -1634,6 +1806,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"
@@ -1641,7 +1815,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) { @@ -1654,6 +1829,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"
@@ -1661,7 +1838,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) { @@ -1674,6 +1852,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"
@@ -1681,13 +1861,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"
@@ -1695,16 +1878,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"
@@ -1712,10 +1899,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 { @@ -1723,6 +1912,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"
@@ -1730,13 +1921,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"
@@ -1744,14 +1940,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"
@@ -1759,29 +1960,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); } @@ -1791,12 +1996,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(); } @@ -1805,16 +2010,16 @@ public static com.google.cloud.speech.v1p1beta1.TranscriptNormalization getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TranscriptNormalization parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TranscriptNormalization(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TranscriptNormalization parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TranscriptNormalization(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1829,6 +2034,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.TranscriptNormalization getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptNormalizationOrBuilder.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptNormalizationOrBuilder.java similarity index 78% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptNormalizationOrBuilder.java rename to proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptNormalizationOrBuilder.java index fa51b40b7..11549b4c3 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptNormalizationOrBuilder.java +++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptNormalizationOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/resource.proto package com.google.cloud.speech.v1p1beta1; -public interface TranscriptNormalizationOrBuilder extends +public interface TranscriptNormalizationOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1p1beta1.TranscriptNormalization) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * A list of replacement entries. We will perform replacement with one entry
    * at a time. For example, the second entry in ["cat" => "dog", "mountain cat"
@@ -17,9 +35,10 @@ public interface TranscriptNormalizationOrBuilder extends
    *
    * repeated .google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry entries = 1;
    */
-  java.util.List 
-      getEntriesList();
+  java.util.List getEntriesList();
   /**
+   *
+   *
    * 
    * A list of replacement entries. We will perform replacement with one entry
    * at a time. For example, the second entry in ["cat" => "dog", "mountain cat"
@@ -31,6 +50,8 @@ public interface TranscriptNormalizationOrBuilder extends
    */
   com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry getEntries(int index);
   /**
+   *
+   *
    * 
    * A list of replacement entries. We will perform replacement with one entry
    * at a time. For example, the second entry in ["cat" => "dog", "mountain cat"
@@ -42,6 +63,8 @@ public interface TranscriptNormalizationOrBuilder extends
    */
   int getEntriesCount();
   /**
+   *
+   *
    * 
    * A list of replacement entries. We will perform replacement with one entry
    * at a time. For example, the second entry in ["cat" => "dog", "mountain cat"
@@ -51,9 +74,11 @@ public interface TranscriptNormalizationOrBuilder extends
    *
    * repeated .google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry entries = 1;
    */
-  java.util.List 
+  java.util.List
       getEntriesOrBuilderList();
   /**
+   *
+   *
    * 
    * A list of replacement entries. We will perform replacement with one entry
    * at a time. For example, the second entry in ["cat" => "dog", "mountain cat"
diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptOutputConfig.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptOutputConfig.java
similarity index 70%
rename from owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptOutputConfig.java
rename to proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptOutputConfig.java
index 21deb461b..1fc12e9f4 100644
--- a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptOutputConfig.java
+++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptOutputConfig.java
@@ -1,39 +1,55 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/speech/v1p1beta1/cloud_speech.proto
 
 package com.google.cloud.speech.v1p1beta1;
 
 /**
+ *
+ *
  * 
  * Specifies an optional destination for the recognition results.
  * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.TranscriptOutputConfig} */ -public final class TranscriptOutputConfig extends - com.google.protobuf.GeneratedMessageV3 implements +public final class TranscriptOutputConfig extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v1p1beta1.TranscriptOutputConfig) TranscriptOutputConfigOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use TranscriptOutputConfig.newBuilder() to construct. private TranscriptOutputConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private TranscriptOutputConfig() { - } + + private TranscriptOutputConfig() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new TranscriptOutputConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private TranscriptOutputConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,52 +68,58 @@ private TranscriptOutputConfig( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - outputTypeCase_ = 1; - outputType_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + outputTypeCase_ = 1; + outputType_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_TranscriptOutputConfig_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechProto + .internal_static_google_cloud_speech_v1p1beta1_TranscriptOutputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_TranscriptOutputConfig_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechProto + .internal_static_google_cloud_speech_v1p1beta1_TranscriptOutputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.class, com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.Builder.class); + com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.class, + com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.Builder.class); } private int outputTypeCase_ = 0; private java.lang.Object outputType_; + public enum OutputTypeCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { GCS_URI(1), OUTPUTTYPE_NOT_SET(0); private final int value; + private OutputTypeCase(int value) { this.value = value; } @@ -113,24 +135,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
@@ -138,12 +164,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
@@ -151,6 +180,7 @@ public boolean hasGcsUri() {
    * 
* * string gcs_uri = 1; + * * @return The gcsUri. */ public java.lang.String getGcsUri() { @@ -161,8 +191,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; @@ -171,6 +200,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
@@ -178,18 +209,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; } @@ -200,6 +230,7 @@ public java.lang.String getGcsUri() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -211,8 +242,7 @@ public final boolean isInitialized() { } @java.lang.Override - public 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_); } @@ -236,18 +266,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: @@ -277,117 +307,127 @@ public int hashCode() { } public static com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig prototype) { + + public static Builder newBuilder( + com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Specifies an optional destination for the recognition results.
    * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.TranscriptOutputConfig} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1p1beta1.TranscriptOutputConfig) com.google.cloud.speech.v1p1beta1.TranscriptOutputConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_TranscriptOutputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechProto + .internal_static_google_cloud_speech_v1p1beta1_TranscriptOutputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_TranscriptOutputConfig_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechProto + .internal_static_google_cloud_speech_v1p1beta1_TranscriptOutputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.class, com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.Builder.class); + com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.class, + com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.Builder.class); } // Construct using com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.newBuilder() @@ -395,16 +435,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -414,9 +453,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 @@ -435,7 +474,8 @@ public com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig build() { @java.lang.Override public com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig buildPartial() { - com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig result = new com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig(this); + com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig result = + new com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig(this); if (outputTypeCase_ == 1) { result.outputType_ = outputType_; } @@ -448,38 +488,39 @@ public com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig) { - return mergeFrom((com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig)other); + return mergeFrom((com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig) other); } else { super.mergeFrom(other); return this; @@ -487,17 +528,20 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig other) { - if (other == com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.getDefaultInstance()) return this; + if (other == com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.getDefaultInstance()) + return this; switch (other.getOutputTypeCase()) { - case GCS_URI: { - outputTypeCase_ = 1; - outputType_ = other.outputType_; - onChanged(); - break; - } - case OUTPUTTYPE_NOT_SET: { - break; - } + case GCS_URI: + { + outputTypeCase_ = 1; + outputType_ = other.outputType_; + onChanged(); + break; + } + case OUTPUTTYPE_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -518,7 +562,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -527,12 +572,12 @@ public Builder mergeFrom( } return this; } + private int outputTypeCase_ = 0; private java.lang.Object outputType_; - public OutputTypeCase - getOutputTypeCase() { - return OutputTypeCase.forNumber( - outputTypeCase_); + + public OutputTypeCase getOutputTypeCase() { + return OutputTypeCase.forNumber(outputTypeCase_); } public Builder clearOutputType() { @@ -542,8 +587,9 @@ public Builder clearOutputType() { return this; } - /** + * + * *
      * Specifies a Cloud Storage URI for the recognition results. Must be
      * specified in the format: `gs://bucket_name/object_name`, and the bucket
@@ -551,6 +597,7 @@ public Builder clearOutputType() {
      * 
* * string gcs_uri = 1; + * * @return Whether the gcsUri field is set. */ @java.lang.Override @@ -558,6 +605,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
@@ -565,6 +614,7 @@ public boolean hasGcsUri() {
      * 
* * string gcs_uri = 1; + * * @return The gcsUri. */ @java.lang.Override @@ -574,8 +624,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; @@ -586,6 +635,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
@@ -593,19 +644,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; } @@ -615,6 +665,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
@@ -622,20 +674,22 @@ public java.lang.String getGcsUri() {
      * 
* * string gcs_uri = 1; + * * @param value The gcsUri to set. * @return This builder for chaining. */ - public Builder setGcsUri( - java.lang.String value) { + public Builder setGcsUri(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - outputTypeCase_ = 1; + throw new NullPointerException(); + } + outputTypeCase_ = 1; outputType_ = value; onChanged(); return this; } /** + * + * *
      * Specifies a Cloud Storage URI for the recognition results. Must be
      * specified in the format: `gs://bucket_name/object_name`, and the bucket
@@ -643,6 +697,7 @@ public Builder setGcsUri(
      * 
* * string gcs_uri = 1; + * * @return This builder for chaining. */ public Builder clearGcsUri() { @@ -654,6 +709,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
@@ -661,23 +718,23 @@ public Builder clearGcsUri() {
      * 
* * string gcs_uri = 1; + * * @param value The bytes for gcsUri to set. * @return This builder for chaining. */ - public Builder setGcsUriBytes( - com.google.protobuf.ByteString value) { + public Builder setGcsUriBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); outputTypeCase_ = 1; outputType_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -687,12 +744,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(); } @@ -701,16 +758,16 @@ public static com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TranscriptOutputConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TranscriptOutputConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TranscriptOutputConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TranscriptOutputConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -725,6 +782,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptOutputConfigOrBuilder.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptOutputConfigOrBuilder.java similarity index 61% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptOutputConfigOrBuilder.java rename to proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptOutputConfigOrBuilder.java index 3733fac7b..102d1f01e 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptOutputConfigOrBuilder.java +++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptOutputConfigOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech.proto package com.google.cloud.speech.v1p1beta1; -public interface TranscriptOutputConfigOrBuilder extends +public interface TranscriptOutputConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1p1beta1.TranscriptOutputConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Specifies a Cloud Storage URI for the recognition results. Must be
    * specified in the format: `gs://bucket_name/object_name`, and the bucket
@@ -15,10 +33,13 @@ public interface TranscriptOutputConfigOrBuilder extends
    * 
* * string gcs_uri = 1; + * * @return Whether the gcsUri field is set. */ boolean hasGcsUri(); /** + * + * *
    * Specifies a Cloud Storage URI for the recognition results. Must be
    * specified in the format: `gs://bucket_name/object_name`, and the bucket
@@ -26,10 +47,13 @@ public interface TranscriptOutputConfigOrBuilder extends
    * 
* * string gcs_uri = 1; + * * @return The gcsUri. */ java.lang.String getGcsUri(); /** + * + * *
    * Specifies a Cloud Storage URI for the recognition results. Must be
    * specified in the format: `gs://bucket_name/object_name`, and the bucket
@@ -37,10 +61,11 @@ public interface TranscriptOutputConfigOrBuilder extends
    * 
* * string gcs_uri = 1; + * * @return The bytes for gcsUri. */ - com.google.protobuf.ByteString - getGcsUriBytes(); + com.google.protobuf.ByteString getGcsUriBytes(); - public com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.OutputTypeCase getOutputTypeCase(); + public com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.OutputTypeCase + getOutputTypeCase(); } diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdateCustomClassRequest.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdateCustomClassRequest.java similarity index 71% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdateCustomClassRequest.java rename to proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdateCustomClassRequest.java index 526bfc112..f230d3ae4 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdateCustomClassRequest.java +++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdateCustomClassRequest.java @@ -1,39 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech_adaptation.proto package com.google.cloud.speech.v1p1beta1; /** + * + * *
  * Message sent by the client for the `UpdateCustomClass` method.
  * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.UpdateCustomClassRequest} */ -public final class UpdateCustomClassRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class UpdateCustomClassRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v1p1beta1.UpdateCustomClassRequest) UpdateCustomClassRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use UpdateCustomClassRequest.newBuilder() to construct. private UpdateCustomClassRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private UpdateCustomClassRequest() { - } + + private UpdateCustomClassRequest() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UpdateCustomClassRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private UpdateCustomClassRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,67 +68,76 @@ private UpdateCustomClassRequest( case 0: done = true; break; - case 10: { - com.google.cloud.speech.v1p1beta1.CustomClass.Builder subBuilder = null; - if (customClass_ != null) { - subBuilder = customClass_.toBuilder(); - } - customClass_ = input.readMessage(com.google.cloud.speech.v1p1beta1.CustomClass.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(customClass_); - customClass_ = subBuilder.buildPartial(); - } + case 10: + { + com.google.cloud.speech.v1p1beta1.CustomClass.Builder subBuilder = null; + if (customClass_ != null) { + subBuilder = customClass_.toBuilder(); + } + customClass_ = + input.readMessage( + com.google.cloud.speech.v1p1beta1.CustomClass.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(customClass_); + customClass_ = subBuilder.buildPartial(); + } - break; - } - case 18: { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (updateMask_ != null) { - subBuilder = updateMask_.toBuilder(); - } - updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateMask_); - updateMask_ = subBuilder.buildPartial(); + break; } + case 18: + { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); + } + updateMask_ = + input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); + } - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_UpdateCustomClassRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1p1beta1_UpdateCustomClassRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_UpdateCustomClassRequest_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1p1beta1_UpdateCustomClassRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest.class, com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest.Builder.class); + com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest.class, + com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest.Builder.class); } public static final int CUSTOM_CLASS_FIELD_NUMBER = 1; private com.google.cloud.speech.v1p1beta1.CustomClass customClass_; /** + * + * *
    * Required. The custom class to update.
    * The custom class's `name` field is used to identify the custom class to be
@@ -125,7 +150,10 @@ private UpdateCustomClassRequest(
    * with matching `us` or `eu` location value.
    * 
* - * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the customClass field is set. */ @java.lang.Override @@ -133,6 +161,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
@@ -145,14 +175,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
@@ -165,7 +202,9 @@ public com.google.cloud.speech.v1p1beta1.CustomClass getCustomClass() {
    * with matching `us` or `eu` location value.
    * 
* - * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.speech.v1p1beta1.CustomClassOrBuilder getCustomClassOrBuilder() { @@ -175,11 +214,14 @@ public com.google.cloud.speech.v1p1beta1.CustomClassOrBuilder getCustomClassOrBu public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** + * + * *
    * The list of fields to be updated.
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -187,11 +229,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 @@ -199,6 +244,8 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** + * + * *
    * The list of fields to be updated.
    * 
@@ -211,6 +258,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -222,8 +270,7 @@ public final boolean isInitialized() { } @java.lang.Override - public 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()); } @@ -240,12 +287,10 @@ public int getSerializedSize() { size = 0; if (customClass_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getCustomClass()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCustomClass()); } if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -255,22 +300,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest)) { return super.equals(obj); } - com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest other = (com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest) obj; + com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest other = + (com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest) obj; if (hasCustomClass() != other.hasCustomClass()) return false; if (hasCustomClass()) { - if (!getCustomClass() - .equals(other.getCustomClass())) return false; + if (!getCustomClass().equals(other.getCustomClass())) return false; } if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask() - .equals(other.getUpdateMask())) return false; + if (!getUpdateMask().equals(other.getUpdateMask())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -297,117 +341,127 @@ public int hashCode() { } public static com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Message sent by the client for the `UpdateCustomClass` method.
    * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.UpdateCustomClassRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1p1beta1.UpdateCustomClassRequest) com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_UpdateCustomClassRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1p1beta1_UpdateCustomClassRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_UpdateCustomClassRequest_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1p1beta1_UpdateCustomClassRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest.class, com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest.Builder.class); + com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest.class, + com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest.Builder.class); } // Construct using com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest.newBuilder() @@ -415,16 +469,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -444,9 +497,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_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 @@ -465,7 +518,8 @@ public com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest build() { @java.lang.Override public com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest buildPartial() { - com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest result = new com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest(this); + com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest result = + new com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest(this); if (customClassBuilder_ == null) { result.customClass_ = customClass_; } else { @@ -484,38 +538,39 @@ public com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest buildPartial() public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest) { - return mergeFrom((com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest)other); + return mergeFrom((com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest) other); } else { super.mergeFrom(other); return this; @@ -523,7 +578,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()); } @@ -549,7 +605,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -561,8 +618,13 @@ public Builder mergeFrom( private com.google.cloud.speech.v1p1beta1.CustomClass customClass_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.CustomClass, com.google.cloud.speech.v1p1beta1.CustomClass.Builder, com.google.cloud.speech.v1p1beta1.CustomClassOrBuilder> customClassBuilder_; + com.google.cloud.speech.v1p1beta1.CustomClass, + com.google.cloud.speech.v1p1beta1.CustomClass.Builder, + com.google.cloud.speech.v1p1beta1.CustomClassOrBuilder> + customClassBuilder_; /** + * + * *
      * Required. The custom class to update.
      * The custom class's `name` field is used to identify the custom class to be
@@ -575,13 +637,18 @@ public Builder mergeFrom(
      * with matching `us` or `eu` location value.
      * 
* - * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the customClass field is set. */ public boolean hasCustomClass() { return customClassBuilder_ != null || customClass_ != null; } /** + * + * *
      * Required. The custom class to update.
      * The custom class's `name` field is used to identify the custom class to be
@@ -594,17 +661,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
@@ -617,7 +691,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) { @@ -633,6 +709,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
@@ -645,7 +723,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) { @@ -659,6 +739,8 @@ public Builder setCustomClass( return this; } /** + * + * *
      * Required. The custom class to update.
      * The custom class's `name` field is used to identify the custom class to be
@@ -671,13 +753,17 @@ public Builder setCustomClass(
      * with matching `us` or `eu` location value.
      * 
* - * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeCustomClass(com.google.cloud.speech.v1p1beta1.CustomClass value) { if (customClassBuilder_ == null) { if (customClass_ != null) { customClass_ = - com.google.cloud.speech.v1p1beta1.CustomClass.newBuilder(customClass_).mergeFrom(value).buildPartial(); + com.google.cloud.speech.v1p1beta1.CustomClass.newBuilder(customClass_) + .mergeFrom(value) + .buildPartial(); } else { customClass_ = value; } @@ -689,6 +775,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
@@ -701,7 +789,9 @@ public Builder mergeCustomClass(com.google.cloud.speech.v1p1beta1.CustomClass va
      * with matching `us` or `eu` location value.
      * 
* - * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearCustomClass() { if (customClassBuilder_ == null) { @@ -715,6 +805,8 @@ public Builder clearCustomClass() { return this; } /** + * + * *
      * Required. The custom class to update.
      * The custom class's `name` field is used to identify the custom class to be
@@ -727,14 +819,18 @@ public Builder clearCustomClass() {
      * with matching `us` or `eu` location value.
      * 
* - * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.speech.v1p1beta1.CustomClass.Builder getCustomClassBuilder() { - + onChanged(); return getCustomClassFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The custom class to update.
      * The custom class's `name` field is used to identify the custom class to be
@@ -747,17 +843,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
@@ -770,17 +871,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_; @@ -788,34 +894,47 @@ public com.google.cloud.speech.v1p1beta1.CustomClassOrBuilder getCustomClassOrBu private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; /** + * + * *
      * The list of fields to be updated.
      * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** + * + * *
      * The list of fields to be updated.
      * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** + * + * *
      * The list of fields to be updated.
      * 
@@ -836,14 +955,15 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * The list of fields to be updated.
      * 
* * .google.protobuf.FieldMask update_mask = 2; */ - public Builder setUpdateMask( - com.google.protobuf.FieldMask.Builder builderForValue) { + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); onChanged(); @@ -854,6 +974,8 @@ public Builder setUpdateMask( return this; } /** + * + * *
      * The list of fields to be updated.
      * 
@@ -864,7 +986,7 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { if (updateMask_ != null) { updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); } else { updateMask_ = value; } @@ -876,6 +998,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * The list of fields to be updated.
      * 
@@ -894,6 +1018,8 @@ public Builder clearUpdateMask() { return this; } /** + * + * *
      * The list of fields to be updated.
      * 
@@ -901,11 +1027,13 @@ public Builder clearUpdateMask() { * .google.protobuf.FieldMask update_mask = 2; */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - + onChanged(); return getUpdateMaskFieldBuilder().getBuilder(); } /** + * + * *
      * The list of fields to be updated.
      * 
@@ -916,11 +1044,14 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { if (updateMaskBuilder_ != null) { return updateMaskBuilder_.getMessageOrBuilder(); } else { - return updateMask_ == null ? - com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; } } /** + * + * *
      * The list of fields to be updated.
      * 
@@ -928,21 +1059,24 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { * .google.protobuf.FieldMask update_mask = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> getUpdateMaskFieldBuilder() { if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), - getParentForChildren(), - isClean()); + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); updateMask_ = null; } return updateMaskBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -952,12 +1086,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(); } @@ -966,16 +1100,16 @@ public static com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateCustomClassRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UpdateCustomClassRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateCustomClassRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpdateCustomClassRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -990,6 +1124,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdateCustomClassRequestOrBuilder.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdateCustomClassRequestOrBuilder.java similarity index 72% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdateCustomClassRequestOrBuilder.java rename to proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdateCustomClassRequestOrBuilder.java index 5ffdf4623..debebb143 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdateCustomClassRequestOrBuilder.java +++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdateCustomClassRequestOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech_adaptation.proto package com.google.cloud.speech.v1p1beta1; -public interface UpdateCustomClassRequestOrBuilder extends +public interface UpdateCustomClassRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1p1beta1.UpdateCustomClassRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The custom class to update.
    * The custom class's `name` field is used to identify the custom class to be
@@ -20,11 +38,16 @@ public interface UpdateCustomClassRequestOrBuilder extends
    * with matching `us` or `eu` location value.
    * 
* - * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the customClass field is set. */ boolean hasCustomClass(); /** + * + * *
    * Required. The custom class to update.
    * The custom class's `name` field is used to identify the custom class to be
@@ -37,11 +60,16 @@ public interface UpdateCustomClassRequestOrBuilder extends
    * with matching `us` or `eu` location value.
    * 
* - * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The customClass. */ com.google.cloud.speech.v1p1beta1.CustomClass getCustomClass(); /** + * + * *
    * Required. The custom class to update.
    * The custom class's `name` field is used to identify the custom class to be
@@ -54,29 +82,39 @@ public interface UpdateCustomClassRequestOrBuilder extends
    * with matching `us` or `eu` location value.
    * 
* - * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.speech.v1p1beta1.CustomClassOrBuilder getCustomClassOrBuilder(); /** + * + * *
    * The list of fields to be updated.
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** + * + * *
    * The list of fields to be updated.
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** + * + * *
    * The list of fields to be updated.
    * 
diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdatePhraseSetRequest.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdatePhraseSetRequest.java similarity index 71% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdatePhraseSetRequest.java rename to proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdatePhraseSetRequest.java index f7e0c565c..52fa0a1be 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdatePhraseSetRequest.java +++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdatePhraseSetRequest.java @@ -1,39 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech_adaptation.proto package com.google.cloud.speech.v1p1beta1; /** + * + * *
  * Message sent by the client for the `UpdatePhraseSet` method.
  * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest} */ -public final class UpdatePhraseSetRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class UpdatePhraseSetRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest) UpdatePhraseSetRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use UpdatePhraseSetRequest.newBuilder() to construct. private UpdatePhraseSetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private UpdatePhraseSetRequest() { - } + + private UpdatePhraseSetRequest() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UpdatePhraseSetRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private UpdatePhraseSetRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,67 +68,76 @@ private UpdatePhraseSetRequest( case 0: done = true; break; - case 10: { - com.google.cloud.speech.v1p1beta1.PhraseSet.Builder subBuilder = null; - if (phraseSet_ != null) { - subBuilder = phraseSet_.toBuilder(); - } - phraseSet_ = input.readMessage(com.google.cloud.speech.v1p1beta1.PhraseSet.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(phraseSet_); - phraseSet_ = subBuilder.buildPartial(); - } + case 10: + { + com.google.cloud.speech.v1p1beta1.PhraseSet.Builder subBuilder = null; + if (phraseSet_ != null) { + subBuilder = phraseSet_.toBuilder(); + } + phraseSet_ = + input.readMessage( + com.google.cloud.speech.v1p1beta1.PhraseSet.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(phraseSet_); + phraseSet_ = subBuilder.buildPartial(); + } - break; - } - case 18: { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (updateMask_ != null) { - subBuilder = updateMask_.toBuilder(); - } - updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateMask_); - updateMask_ = subBuilder.buildPartial(); + break; } + case 18: + { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); + } + updateMask_ = + input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); + } - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_UpdatePhraseSetRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1p1beta1_UpdatePhraseSetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_UpdatePhraseSetRequest_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1p1beta1_UpdatePhraseSetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest.class, com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest.Builder.class); + com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest.class, + com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest.Builder.class); } public static final int PHRASE_SET_FIELD_NUMBER = 1; private com.google.cloud.speech.v1p1beta1.PhraseSet phraseSet_; /** + * + * *
    * Required. The phrase set to update.
    * The phrase set's `name` field is used to identify the set to be
@@ -125,7 +150,10 @@ private UpdatePhraseSetRequest(
    * with matching `us` or `eu` location value.
    * 
* - * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the phraseSet field is set. */ @java.lang.Override @@ -133,6 +161,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
@@ -145,14 +175,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
@@ -165,7 +202,9 @@ public com.google.cloud.speech.v1p1beta1.PhraseSet getPhraseSet() {
    * with matching `us` or `eu` location value.
    * 
* - * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.speech.v1p1beta1.PhraseSetOrBuilder getPhraseSetOrBuilder() { @@ -175,11 +214,14 @@ public com.google.cloud.speech.v1p1beta1.PhraseSetOrBuilder getPhraseSetOrBuilde public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** + * + * *
    * The list of fields to be updated.
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -187,11 +229,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 @@ -199,6 +244,8 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** + * + * *
    * The list of fields to be updated.
    * 
@@ -211,6 +258,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -222,8 +270,7 @@ public final boolean isInitialized() { } @java.lang.Override - public 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()); } @@ -240,12 +287,10 @@ public int getSerializedSize() { size = 0; if (phraseSet_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getPhraseSet()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getPhraseSet()); } if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -255,22 +300,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest)) { return super.equals(obj); } - com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest other = (com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest) obj; + com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest other = + (com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest) obj; if (hasPhraseSet() != other.hasPhraseSet()) return false; if (hasPhraseSet()) { - if (!getPhraseSet() - .equals(other.getPhraseSet())) return false; + if (!getPhraseSet().equals(other.getPhraseSet())) return false; } if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask() - .equals(other.getUpdateMask())) return false; + if (!getUpdateMask().equals(other.getUpdateMask())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -297,117 +341,127 @@ public int hashCode() { } public static com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Message sent by the client for the `UpdatePhraseSet` method.
    * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest) com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_UpdatePhraseSetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1p1beta1_UpdatePhraseSetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_UpdatePhraseSetRequest_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1p1beta1_UpdatePhraseSetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest.class, com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest.Builder.class); + com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest.class, + com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest.Builder.class); } // Construct using com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest.newBuilder() @@ -415,16 +469,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -444,9 +497,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_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 @@ -465,7 +518,8 @@ public com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest build() { @java.lang.Override public com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest buildPartial() { - com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest result = new com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest(this); + com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest result = + new com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest(this); if (phraseSetBuilder_ == null) { result.phraseSet_ = phraseSet_; } else { @@ -484,38 +538,39 @@ public com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest) { - return mergeFrom((com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest)other); + return mergeFrom((com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest) other); } else { super.mergeFrom(other); return this; @@ -523,7 +578,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()); } @@ -549,7 +605,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -561,8 +618,13 @@ public Builder mergeFrom( private com.google.cloud.speech.v1p1beta1.PhraseSet phraseSet_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.PhraseSet, com.google.cloud.speech.v1p1beta1.PhraseSet.Builder, com.google.cloud.speech.v1p1beta1.PhraseSetOrBuilder> phraseSetBuilder_; + com.google.cloud.speech.v1p1beta1.PhraseSet, + com.google.cloud.speech.v1p1beta1.PhraseSet.Builder, + com.google.cloud.speech.v1p1beta1.PhraseSetOrBuilder> + phraseSetBuilder_; /** + * + * *
      * Required. The phrase set to update.
      * The phrase set's `name` field is used to identify the set to be
@@ -575,13 +637,18 @@ public Builder mergeFrom(
      * with matching `us` or `eu` location value.
      * 
* - * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the phraseSet field is set. */ public boolean hasPhraseSet() { return phraseSetBuilder_ != null || phraseSet_ != null; } /** + * + * *
      * Required. The phrase set to update.
      * The phrase set's `name` field is used to identify the set to be
@@ -594,17 +661,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
@@ -617,7 +691,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) { @@ -633,6 +709,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
@@ -645,7 +723,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) { @@ -659,6 +739,8 @@ public Builder setPhraseSet( return this; } /** + * + * *
      * Required. The phrase set to update.
      * The phrase set's `name` field is used to identify the set to be
@@ -671,13 +753,17 @@ public Builder setPhraseSet(
      * with matching `us` or `eu` location value.
      * 
* - * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergePhraseSet(com.google.cloud.speech.v1p1beta1.PhraseSet value) { if (phraseSetBuilder_ == null) { if (phraseSet_ != null) { phraseSet_ = - com.google.cloud.speech.v1p1beta1.PhraseSet.newBuilder(phraseSet_).mergeFrom(value).buildPartial(); + com.google.cloud.speech.v1p1beta1.PhraseSet.newBuilder(phraseSet_) + .mergeFrom(value) + .buildPartial(); } else { phraseSet_ = value; } @@ -689,6 +775,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
@@ -701,7 +789,9 @@ public Builder mergePhraseSet(com.google.cloud.speech.v1p1beta1.PhraseSet value)
      * with matching `us` or `eu` location value.
      * 
* - * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearPhraseSet() { if (phraseSetBuilder_ == null) { @@ -715,6 +805,8 @@ public Builder clearPhraseSet() { return this; } /** + * + * *
      * Required. The phrase set to update.
      * The phrase set's `name` field is used to identify the set to be
@@ -727,14 +819,18 @@ public Builder clearPhraseSet() {
      * with matching `us` or `eu` location value.
      * 
* - * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.speech.v1p1beta1.PhraseSet.Builder getPhraseSetBuilder() { - + onChanged(); return getPhraseSetFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The phrase set to update.
      * The phrase set's `name` field is used to identify the set to be
@@ -747,17 +843,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
@@ -770,17 +871,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_; @@ -788,34 +894,47 @@ public com.google.cloud.speech.v1p1beta1.PhraseSetOrBuilder getPhraseSetOrBuilde private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; /** + * + * *
      * The list of fields to be updated.
      * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** + * + * *
      * The list of fields to be updated.
      * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** + * + * *
      * The list of fields to be updated.
      * 
@@ -836,14 +955,15 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * The list of fields to be updated.
      * 
* * .google.protobuf.FieldMask update_mask = 2; */ - public Builder setUpdateMask( - com.google.protobuf.FieldMask.Builder builderForValue) { + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); onChanged(); @@ -854,6 +974,8 @@ public Builder setUpdateMask( return this; } /** + * + * *
      * The list of fields to be updated.
      * 
@@ -864,7 +986,7 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { if (updateMask_ != null) { updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); } else { updateMask_ = value; } @@ -876,6 +998,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * The list of fields to be updated.
      * 
@@ -894,6 +1018,8 @@ public Builder clearUpdateMask() { return this; } /** + * + * *
      * The list of fields to be updated.
      * 
@@ -901,11 +1027,13 @@ public Builder clearUpdateMask() { * .google.protobuf.FieldMask update_mask = 2; */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - + onChanged(); return getUpdateMaskFieldBuilder().getBuilder(); } /** + * + * *
      * The list of fields to be updated.
      * 
@@ -916,11 +1044,14 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { if (updateMaskBuilder_ != null) { return updateMaskBuilder_.getMessageOrBuilder(); } else { - return updateMask_ == null ? - com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; } } /** + * + * *
      * The list of fields to be updated.
      * 
@@ -928,21 +1059,24 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { * .google.protobuf.FieldMask update_mask = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> getUpdateMaskFieldBuilder() { if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), - getParentForChildren(), - isClean()); + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); updateMask_ = null; } return updateMaskBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -952,12 +1086,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(); } @@ -966,16 +1100,16 @@ public static com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdatePhraseSetRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UpdatePhraseSetRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdatePhraseSetRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpdatePhraseSetRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -990,6 +1124,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdatePhraseSetRequestOrBuilder.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdatePhraseSetRequestOrBuilder.java similarity index 72% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdatePhraseSetRequestOrBuilder.java rename to proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdatePhraseSetRequestOrBuilder.java index ae3c2a999..5bb289426 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdatePhraseSetRequestOrBuilder.java +++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdatePhraseSetRequestOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech_adaptation.proto package com.google.cloud.speech.v1p1beta1; -public interface UpdatePhraseSetRequestOrBuilder extends +public interface UpdatePhraseSetRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The phrase set to update.
    * The phrase set's `name` field is used to identify the set to be
@@ -20,11 +38,16 @@ public interface UpdatePhraseSetRequestOrBuilder extends
    * with matching `us` or `eu` location value.
    * 
* - * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the phraseSet field is set. */ boolean hasPhraseSet(); /** + * + * *
    * Required. The phrase set to update.
    * The phrase set's `name` field is used to identify the set to be
@@ -37,11 +60,16 @@ public interface UpdatePhraseSetRequestOrBuilder extends
    * with matching `us` or `eu` location value.
    * 
* - * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The phraseSet. */ com.google.cloud.speech.v1p1beta1.PhraseSet getPhraseSet(); /** + * + * *
    * Required. The phrase set to update.
    * The phrase set's `name` field is used to identify the set to be
@@ -54,29 +82,39 @@ public interface UpdatePhraseSetRequestOrBuilder extends
    * with matching `us` or `eu` location value.
    * 
* - * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.speech.v1p1beta1.PhraseSetOrBuilder getPhraseSetOrBuilder(); /** + * + * *
    * The list of fields to be updated.
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** + * + * *
    * The list of fields to be updated.
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** + * + * *
    * The list of fields to be updated.
    * 
diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/WordInfo.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/WordInfo.java similarity index 77% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/WordInfo.java rename to proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/WordInfo.java index f1431e288..92938a44c 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/WordInfo.java +++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/WordInfo.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech.proto package com.google.cloud.speech.v1p1beta1; /** + * + * *
  * Word-specific information for recognized words.
  * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.WordInfo} */ -public final class WordInfo extends - com.google.protobuf.GeneratedMessageV3 implements +public final class WordInfo extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v1p1beta1.WordInfo) WordInfoOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use WordInfo.newBuilder() to construct. private WordInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private WordInfo() { word_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new WordInfo(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private WordInfo( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,83 +70,92 @@ private WordInfo( case 0: done = true; break; - case 10: { - com.google.protobuf.Duration.Builder subBuilder = null; - if (startTime_ != null) { - subBuilder = startTime_.toBuilder(); + case 10: + { + com.google.protobuf.Duration.Builder subBuilder = null; + if (startTime_ != null) { + subBuilder = startTime_.toBuilder(); + } + startTime_ = + input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(startTime_); + startTime_ = subBuilder.buildPartial(); + } + + break; } - startTime_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(startTime_); - startTime_ = subBuilder.buildPartial(); + case 18: + { + com.google.protobuf.Duration.Builder subBuilder = null; + if (endTime_ != null) { + subBuilder = endTime_.toBuilder(); + } + endTime_ = + input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(endTime_); + endTime_ = subBuilder.buildPartial(); + } + + break; } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - break; - } - case 18: { - com.google.protobuf.Duration.Builder subBuilder = null; - if (endTime_ != null) { - subBuilder = endTime_.toBuilder(); + word_ = s; + break; } - endTime_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(endTime_); - endTime_ = subBuilder.buildPartial(); + case 37: + { + confidence_ = input.readFloat(); + break; } - - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - word_ = s; - break; - } - case 37: { - - confidence_ = input.readFloat(); - break; - } - case 40: { - - speakerTag_ = input.readInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 40: + { + speakerTag_ = input.readInt32(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_WordInfo_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechProto + .internal_static_google_cloud_speech_v1p1beta1_WordInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_WordInfo_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechProto + .internal_static_google_cloud_speech_v1p1beta1_WordInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.WordInfo.class, com.google.cloud.speech.v1p1beta1.WordInfo.Builder.class); + com.google.cloud.speech.v1p1beta1.WordInfo.class, + com.google.cloud.speech.v1p1beta1.WordInfo.Builder.class); } public static final int START_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Duration startTime_; /** + * + * *
    * Time offset relative to the beginning of the audio,
    * and corresponding to the start of the spoken word.
@@ -140,6 +166,7 @@ private WordInfo(
    * 
* * .google.protobuf.Duration start_time = 1; + * * @return Whether the startTime field is set. */ @java.lang.Override @@ -147,6 +174,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.
@@ -157,6 +186,7 @@ public boolean hasStartTime() {
    * 
* * .google.protobuf.Duration start_time = 1; + * * @return The startTime. */ @java.lang.Override @@ -164,6 +194,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.
@@ -183,6 +215,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.
@@ -193,6 +227,7 @@ public com.google.protobuf.DurationOrBuilder getStartTimeOrBuilder() {
    * 
* * .google.protobuf.Duration end_time = 2; + * * @return Whether the endTime field is set. */ @java.lang.Override @@ -200,6 +235,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.
@@ -210,6 +247,7 @@ public boolean hasEndTime() {
    * 
* * .google.protobuf.Duration end_time = 2; + * * @return The endTime. */ @java.lang.Override @@ -217,6 +255,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.
@@ -236,11 +276,14 @@ public com.google.protobuf.DurationOrBuilder getEndTimeOrBuilder() {
   public static final int WORD_FIELD_NUMBER = 3;
   private volatile java.lang.Object word_;
   /**
+   *
+   *
    * 
    * The word corresponding to this set of information.
    * 
* * string word = 3; + * * @return The word. */ @java.lang.Override @@ -249,29 +292,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 { @@ -282,6 +325,8 @@ public java.lang.String getWord() { public static final int CONFIDENCE_FIELD_NUMBER = 4; private float confidence_; /** + * + * *
    * The confidence estimate between 0.0 and 1.0. A higher number
    * indicates an estimated greater likelihood that the recognized words are
@@ -293,6 +338,7 @@ public java.lang.String getWord() {
    * 
* * float confidence = 4; + * * @return The confidence. */ @java.lang.Override @@ -303,6 +349,8 @@ public float getConfidence() { public static final int SPEAKER_TAG_FIELD_NUMBER = 5; private int speakerTag_; /** + * + * *
    * Output only. A distinct integer value is assigned for every speaker within
    * the audio. This field specifies which one of those speakers was detected to
@@ -312,6 +360,7 @@ public float getConfidence() {
    * 
* * int32 speaker_tag = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The speakerTag. */ @java.lang.Override @@ -320,6 +369,7 @@ public int getSpeakerTag() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -331,8 +381,7 @@ public final boolean isInitialized() { } @java.lang.Override - public 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()); } @@ -358,23 +407,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 (confidence_ != 0F) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(4, confidence_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(4, confidence_); } if (speakerTag_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(5, speakerTag_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, speakerTag_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -384,30 +429,26 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1p1beta1.WordInfo)) { return super.equals(obj); } - com.google.cloud.speech.v1p1beta1.WordInfo other = (com.google.cloud.speech.v1p1beta1.WordInfo) obj; + com.google.cloud.speech.v1p1beta1.WordInfo other = + (com.google.cloud.speech.v1p1beta1.WordInfo) obj; if (hasStartTime() != other.hasStartTime()) return false; if (hasStartTime()) { - if (!getStartTime() - .equals(other.getStartTime())) return false; + if (!getStartTime().equals(other.getStartTime())) return false; } if (hasEndTime() != other.hasEndTime()) return false; if (hasEndTime()) { - if (!getEndTime() - .equals(other.getEndTime())) return false; + if (!getEndTime().equals(other.getEndTime())) return false; } - if (!getWord() - .equals(other.getWord())) return false; + if (!getWord().equals(other.getWord())) return false; if (java.lang.Float.floatToIntBits(getConfidence()) - != java.lang.Float.floatToIntBits( - other.getConfidence())) return false; - if (getSpeakerTag() - != other.getSpeakerTag()) return false; + != java.lang.Float.floatToIntBits(other.getConfidence())) return false; + if (getSpeakerTag() != other.getSpeakerTag()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -430,8 +471,7 @@ public int hashCode() { hash = (37 * hash) + WORD_FIELD_NUMBER; hash = (53 * hash) + getWord().hashCode(); hash = (37 * hash) + CONFIDENCE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getConfidence()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getConfidence()); hash = (37 * hash) + SPEAKER_TAG_FIELD_NUMBER; hash = (53 * hash) + getSpeakerTag(); hash = (29 * hash) + unknownFields.hashCode(); @@ -439,118 +479,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.speech.v1p1beta1.WordInfo parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.speech.v1p1beta1.WordInfo parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.WordInfo parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.WordInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.WordInfo parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.WordInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.WordInfo parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.WordInfo parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.WordInfo parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.WordInfo parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1p1beta1.WordInfo parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.WordInfo parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.WordInfo parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.WordInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.speech.v1p1beta1.WordInfo prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Word-specific information for recognized words.
    * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.WordInfo} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1p1beta1.WordInfo) com.google.cloud.speech.v1p1beta1.WordInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_WordInfo_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechProto + .internal_static_google_cloud_speech_v1p1beta1_WordInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_WordInfo_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechProto + .internal_static_google_cloud_speech_v1p1beta1_WordInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.WordInfo.class, com.google.cloud.speech.v1p1beta1.WordInfo.Builder.class); + com.google.cloud.speech.v1p1beta1.WordInfo.class, + com.google.cloud.speech.v1p1beta1.WordInfo.Builder.class); } // Construct using com.google.cloud.speech.v1p1beta1.WordInfo.newBuilder() @@ -558,16 +607,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -593,9 +641,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 @@ -614,7 +662,8 @@ public com.google.cloud.speech.v1p1beta1.WordInfo build() { @java.lang.Override public com.google.cloud.speech.v1p1beta1.WordInfo buildPartial() { - com.google.cloud.speech.v1p1beta1.WordInfo result = new com.google.cloud.speech.v1p1beta1.WordInfo(this); + com.google.cloud.speech.v1p1beta1.WordInfo result = + new com.google.cloud.speech.v1p1beta1.WordInfo(this); if (startTimeBuilder_ == null) { result.startTime_ = startTime_; } else { @@ -636,38 +685,39 @@ public com.google.cloud.speech.v1p1beta1.WordInfo buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.speech.v1p1beta1.WordInfo) { - return mergeFrom((com.google.cloud.speech.v1p1beta1.WordInfo)other); + return mergeFrom((com.google.cloud.speech.v1p1beta1.WordInfo) other); } else { super.mergeFrom(other); return this; @@ -723,8 +773,13 @@ public Builder mergeFrom( private com.google.protobuf.Duration startTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> startTimeBuilder_; + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + startTimeBuilder_; /** + * + * *
      * Time offset relative to the beginning of the audio,
      * and corresponding to the start of the spoken word.
@@ -735,12 +790,15 @@ public Builder mergeFrom(
      * 
* * .google.protobuf.Duration start_time = 1; + * * @return Whether the startTime field is set. */ public boolean hasStartTime() { return startTimeBuilder_ != null || startTime_ != null; } /** + * + * *
      * Time offset relative to the beginning of the audio,
      * and corresponding to the start of the spoken word.
@@ -751,6 +809,7 @@ public boolean hasStartTime() {
      * 
* * .google.protobuf.Duration start_time = 1; + * * @return The startTime. */ public com.google.protobuf.Duration getStartTime() { @@ -761,6 +820,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.
@@ -786,6 +847,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.
@@ -797,8 +860,7 @@ public Builder setStartTime(com.google.protobuf.Duration value) {
      *
      * .google.protobuf.Duration start_time = 1;
      */
-    public Builder setStartTime(
-        com.google.protobuf.Duration.Builder builderForValue) {
+    public Builder setStartTime(com.google.protobuf.Duration.Builder builderForValue) {
       if (startTimeBuilder_ == null) {
         startTime_ = builderForValue.build();
         onChanged();
@@ -809,6 +871,8 @@ public Builder setStartTime(
       return this;
     }
     /**
+     *
+     *
      * 
      * Time offset relative to the beginning of the audio,
      * and corresponding to the start of the spoken word.
@@ -824,7 +888,7 @@ public Builder mergeStartTime(com.google.protobuf.Duration value) {
       if (startTimeBuilder_ == null) {
         if (startTime_ != null) {
           startTime_ =
-            com.google.protobuf.Duration.newBuilder(startTime_).mergeFrom(value).buildPartial();
+              com.google.protobuf.Duration.newBuilder(startTime_).mergeFrom(value).buildPartial();
         } else {
           startTime_ = value;
         }
@@ -836,6 +900,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.
@@ -859,6 +925,8 @@ public Builder clearStartTime() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Time offset relative to the beginning of the audio,
      * and corresponding to the start of the spoken word.
@@ -871,11 +939,13 @@ public Builder clearStartTime() {
      * .google.protobuf.Duration start_time = 1;
      */
     public com.google.protobuf.Duration.Builder getStartTimeBuilder() {
-      
+
       onChanged();
       return getStartTimeFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Time offset relative to the beginning of the audio,
      * and corresponding to the start of the spoken word.
@@ -891,11 +961,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.
@@ -908,14 +979,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_;
@@ -923,8 +997,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.
@@ -935,12 +1014,15 @@ public com.google.protobuf.DurationOrBuilder getStartTimeOrBuilder() {
      * 
* * .google.protobuf.Duration end_time = 2; + * * @return Whether the endTime field is set. */ public boolean hasEndTime() { return endTimeBuilder_ != null || endTime_ != null; } /** + * + * *
      * Time offset relative to the beginning of the audio,
      * and corresponding to the end of the spoken word.
@@ -951,6 +1033,7 @@ public boolean hasEndTime() {
      * 
* * .google.protobuf.Duration end_time = 2; + * * @return The endTime. */ public com.google.protobuf.Duration getEndTime() { @@ -961,6 +1044,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.
@@ -986,6 +1071,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.
@@ -997,8 +1084,7 @@ public Builder setEndTime(com.google.protobuf.Duration value) {
      *
      * .google.protobuf.Duration end_time = 2;
      */
-    public Builder setEndTime(
-        com.google.protobuf.Duration.Builder builderForValue) {
+    public Builder setEndTime(com.google.protobuf.Duration.Builder builderForValue) {
       if (endTimeBuilder_ == null) {
         endTime_ = builderForValue.build();
         onChanged();
@@ -1009,6 +1095,8 @@ public Builder setEndTime(
       return this;
     }
     /**
+     *
+     *
      * 
      * Time offset relative to the beginning of the audio,
      * and corresponding to the end of the spoken word.
@@ -1024,7 +1112,7 @@ public Builder mergeEndTime(com.google.protobuf.Duration value) {
       if (endTimeBuilder_ == null) {
         if (endTime_ != null) {
           endTime_ =
-            com.google.protobuf.Duration.newBuilder(endTime_).mergeFrom(value).buildPartial();
+              com.google.protobuf.Duration.newBuilder(endTime_).mergeFrom(value).buildPartial();
         } else {
           endTime_ = value;
         }
@@ -1036,6 +1124,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.
@@ -1059,6 +1149,8 @@ public Builder clearEndTime() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Time offset relative to the beginning of the audio,
      * and corresponding to the end of the spoken word.
@@ -1071,11 +1163,13 @@ public Builder clearEndTime() {
      * .google.protobuf.Duration end_time = 2;
      */
     public com.google.protobuf.Duration.Builder getEndTimeBuilder() {
-      
+
       onChanged();
       return getEndTimeFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Time offset relative to the beginning of the audio,
      * and corresponding to the end of the spoken word.
@@ -1091,11 +1185,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.
@@ -1108,14 +1203,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_;
@@ -1123,18 +1221,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; @@ -1143,20 +1243,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 { @@ -1164,61 +1265,70 @@ public java.lang.String getWord() { } } /** + * + * *
      * The word corresponding to this set of information.
      * 
* * string word = 3; + * * @param value The word to set. * @return This builder for chaining. */ - public Builder setWord( - java.lang.String value) { + public Builder setWord(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + word_ = value; onChanged(); return this; } /** + * + * *
      * The word corresponding to this set of information.
      * 
* * string word = 3; + * * @return This builder for chaining. */ public Builder clearWord() { - + word_ = getDefaultInstance().getWord(); onChanged(); return this; } /** + * + * *
      * The word corresponding to this set of information.
      * 
* * string word = 3; + * * @param value The bytes for word to set. * @return This builder for chaining. */ - public Builder setWordBytes( - com.google.protobuf.ByteString value) { + public Builder setWordBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + word_ = value; onChanged(); return this; } - private float confidence_ ; + private float confidence_; /** + * + * *
      * The confidence estimate between 0.0 and 1.0. A higher number
      * indicates an estimated greater likelihood that the recognized words are
@@ -1230,6 +1340,7 @@ public Builder setWordBytes(
      * 
* * float confidence = 4; + * * @return The confidence. */ @java.lang.Override @@ -1237,6 +1348,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
@@ -1248,16 +1361,19 @@ public float getConfidence() {
      * 
* * float confidence = 4; + * * @param value The confidence to set. * @return This builder for chaining. */ public Builder setConfidence(float value) { - + confidence_ = value; onChanged(); return this; } /** + * + * *
      * The confidence estimate between 0.0 and 1.0. A higher number
      * indicates an estimated greater likelihood that the recognized words are
@@ -1269,17 +1385,20 @@ public Builder setConfidence(float value) {
      * 
* * float confidence = 4; + * * @return This builder for chaining. */ public Builder clearConfidence() { - + confidence_ = 0F; onChanged(); return this; } - private int speakerTag_ ; + private int speakerTag_; /** + * + * *
      * Output only. A distinct integer value is assigned for every speaker within
      * the audio. This field specifies which one of those speakers was detected to
@@ -1289,6 +1408,7 @@ public Builder clearConfidence() {
      * 
* * int32 speaker_tag = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The speakerTag. */ @java.lang.Override @@ -1296,6 +1416,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
@@ -1305,16 +1427,19 @@ public int getSpeakerTag() {
      * 
* * int32 speaker_tag = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The speakerTag to set. * @return This builder for chaining. */ public Builder setSpeakerTag(int value) { - + speakerTag_ = value; onChanged(); return this; } /** + * + * *
      * Output only. A distinct integer value is assigned for every speaker within
      * the audio. This field specifies which one of those speakers was detected to
@@ -1324,17 +1449,18 @@ public Builder setSpeakerTag(int value) {
      * 
* * int32 speaker_tag = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearSpeakerTag() { - + speakerTag_ = 0; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1344,12 +1470,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(); } @@ -1358,16 +1484,16 @@ public static com.google.cloud.speech.v1p1beta1.WordInfo getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WordInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new WordInfo(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WordInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WordInfo(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1382,6 +1508,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.WordInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/WordInfoOrBuilder.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/WordInfoOrBuilder.java similarity index 84% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/WordInfoOrBuilder.java rename to proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/WordInfoOrBuilder.java index b811f0f30..0bdb11ab4 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/WordInfoOrBuilder.java +++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/WordInfoOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech.proto package com.google.cloud.speech.v1p1beta1; -public interface WordInfoOrBuilder extends +public interface WordInfoOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1p1beta1.WordInfo) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Time offset relative to the beginning of the audio,
    * and corresponding to the start of the spoken word.
@@ -18,10 +36,13 @@ public interface WordInfoOrBuilder extends
    * 
* * .google.protobuf.Duration start_time = 1; + * * @return Whether the startTime field is set. */ boolean hasStartTime(); /** + * + * *
    * Time offset relative to the beginning of the audio,
    * and corresponding to the start of the spoken word.
@@ -32,10 +53,13 @@ public interface WordInfoOrBuilder extends
    * 
* * .google.protobuf.Duration start_time = 1; + * * @return The startTime. */ com.google.protobuf.Duration getStartTime(); /** + * + * *
    * Time offset relative to the beginning of the audio,
    * and corresponding to the start of the spoken word.
@@ -50,6 +74,8 @@ public interface WordInfoOrBuilder extends
   com.google.protobuf.DurationOrBuilder getStartTimeOrBuilder();
 
   /**
+   *
+   *
    * 
    * Time offset relative to the beginning of the audio,
    * and corresponding to the end of the spoken word.
@@ -60,10 +86,13 @@ public interface WordInfoOrBuilder extends
    * 
* * .google.protobuf.Duration end_time = 2; + * * @return Whether the endTime field is set. */ boolean hasEndTime(); /** + * + * *
    * Time offset relative to the beginning of the audio,
    * and corresponding to the end of the spoken word.
@@ -74,10 +103,13 @@ public interface WordInfoOrBuilder extends
    * 
* * .google.protobuf.Duration end_time = 2; + * * @return The endTime. */ com.google.protobuf.Duration getEndTime(); /** + * + * *
    * Time offset relative to the beginning of the audio,
    * and corresponding to the end of the spoken word.
@@ -92,26 +124,33 @@ public interface WordInfoOrBuilder extends
   com.google.protobuf.DurationOrBuilder getEndTimeOrBuilder();
 
   /**
+   *
+   *
    * 
    * The word corresponding to this set of information.
    * 
* * string word = 3; + * * @return The word. */ java.lang.String getWord(); /** + * + * *
    * The word corresponding to this set of information.
    * 
* * string word = 3; + * * @return The bytes for word. */ - com.google.protobuf.ByteString - getWordBytes(); + com.google.protobuf.ByteString getWordBytes(); /** + * + * *
    * The confidence estimate between 0.0 and 1.0. A higher number
    * indicates an estimated greater likelihood that the recognized words are
@@ -123,11 +162,14 @@ public interface WordInfoOrBuilder extends
    * 
* * float confidence = 4; + * * @return The confidence. */ float getConfidence(); /** + * + * *
    * Output only. A distinct integer value is assigned for every speaker within
    * the audio. This field specifies which one of those speakers was detected to
@@ -137,6 +179,7 @@ public interface WordInfoOrBuilder extends
    * 
* * int32 speaker_tag = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The speakerTag. */ int getSpeakerTag(); diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/proto/google/cloud/speech/v1p1beta1/cloud_speech.proto b/proto-google-cloud-speech-v1p1beta1/src/main/proto/google/cloud/speech/v1p1beta1/cloud_speech.proto similarity index 100% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/proto/google/cloud/speech/v1p1beta1/cloud_speech.proto rename to proto-google-cloud-speech-v1p1beta1/src/main/proto/google/cloud/speech/v1p1beta1/cloud_speech.proto diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/proto/google/cloud/speech/v1p1beta1/cloud_speech_adaptation.proto b/proto-google-cloud-speech-v1p1beta1/src/main/proto/google/cloud/speech/v1p1beta1/cloud_speech_adaptation.proto similarity index 100% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/proto/google/cloud/speech/v1p1beta1/cloud_speech_adaptation.proto rename to proto-google-cloud-speech-v1p1beta1/src/main/proto/google/cloud/speech/v1p1beta1/cloud_speech_adaptation.proto diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/proto/google/cloud/speech/v1p1beta1/resource.proto b/proto-google-cloud-speech-v1p1beta1/src/main/proto/google/cloud/speech/v1p1beta1/resource.proto similarity index 100% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/proto/google/cloud/speech/v1p1beta1/resource.proto rename to proto-google-cloud-speech-v1p1beta1/src/main/proto/google/cloud/speech/v1p1beta1/resource.proto From b433778a0ff4c547f16808d92fa77c1c17596101 Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Sat, 9 Apr 2022 00:52:53 +0000 Subject: [PATCH 3/3] =?UTF-8?q?=F0=9F=A6=89=20Updates=20from=20OwlBot=20po?= =?UTF-8?q?st-processor?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --- README.md | 4 +- .../google/cloud/speech/v1/SpeechClient.java | 6 +- .../cloud/speech/v1/SpeechSettings.java | 7 +- .../cloud/speech/v1/gapic_metadata.json | 0 .../google/cloud/speech/v1/package-info.java | 0 .../v1/stub/GrpcSpeechCallableFactory.java | 0 .../cloud/speech/v1/stub/GrpcSpeechStub.java | 0 .../cloud/speech/v1/stub/SpeechStub.java | 0 .../speech/v1/stub/SpeechStubSettings.java | 6 +- .../speech/v1p1beta1/AdaptationClient.java | 26 +- .../speech/v1p1beta1/AdaptationSettings.java | 7 +- .../cloud/speech/v1p1beta1/SpeechClient.java | 6 +- .../speech/v1p1beta1/SpeechSettings.java | 7 +- .../speech/v1p1beta1/gapic_metadata.json | 0 .../cloud/speech/v1p1beta1/package-info.java | 0 .../speech/v1p1beta1/stub/AdaptationStub.java | 0 .../stub/AdaptationStubSettings.java | 9 +- .../stub/GrpcAdaptationCallableFactory.java | 0 .../v1p1beta1/stub/GrpcAdaptationStub.java | 1 - .../stub/GrpcSpeechCallableFactory.java | 0 .../speech/v1p1beta1/stub/GrpcSpeechStub.java | 0 .../speech/v1p1beta1/stub/SpeechStub.java | 0 .../v1p1beta1/stub/SpeechStubSettings.java | 6 +- .../google/cloud/speech/v1/MockSpeech.java | 0 .../cloud/speech/v1/MockSpeechImpl.java | 0 .../cloud/speech/v1/SpeechClientTest.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 .../speech/v1p1beta1/SpeechClientTest.java | 0 .../google/cloud/speech/v1/SpeechGrpc.java | 579 +++++ .../speech/v1p1beta1/AdaptationGrpc.java | 1424 ++++++++++++ .../cloud/speech/v1p1beta1/SpeechGrpc.java | 589 +++++ .../google/cloud/speech/v1/SpeechGrpc.java | 479 ---- .../speech/v1/RecognizeRequestOrBuilder.java | 66 - .../google/cloud/speech/v1/SpeechProto.java | 406 ---- .../cloud/speech/v1/SpeechResourceProto.java | 121 -- .../speech/v1p1beta1/AdaptationGrpc.java | 1085 ---------- .../cloud/speech/v1p1beta1/SpeechGrpc.java | 479 ---- .../DeletePhraseSetRequestOrBuilder.java | 31 - .../GetCustomClassRequestOrBuilder.java | 31 - .../v1p1beta1/RecognizeRequestOrBuilder.java | 66 - .../v1p1beta1/SpeechAdaptationProto.java | 292 --- .../cloud/speech/v1p1beta1/SpeechProto.java | 422 ---- .../speech/v1p1beta1/SpeechResourceProto.java | 154 -- .../google/cloud/speech/v1/CustomClass.java | 823 ++++--- .../cloud/speech/v1/CustomClassOrBuilder.java | 54 +- .../v1/LongRunningRecognizeMetadata.java | 536 +++-- ...LongRunningRecognizeMetadataOrBuilder.java | 46 +- .../v1/LongRunningRecognizeRequest.java | 685 ++++-- .../LongRunningRecognizeRequestOrBuilder.java | 78 +- .../v1/LongRunningRecognizeResponse.java | 665 ++++-- ...LongRunningRecognizeResponseOrBuilder.java | 60 +- .../com/google/cloud/speech/v1/PhraseSet.java | 812 ++++--- .../cloud/speech/v1/PhraseSetOrBuilder.java | 48 +- .../cloud/speech/v1/RecognitionAudio.java | 417 ++-- .../speech/v1/RecognitionAudioOrBuilder.java | 36 +- .../cloud/speech/v1/RecognitionConfig.java | 1658 +++++++++----- .../speech/v1/RecognitionConfigOrBuilder.java | 145 +- .../cloud/speech/v1/RecognitionMetadata.java | 1221 +++++++---- .../v1/RecognitionMetadataOrBuilder.java | 92 +- .../cloud/speech/v1/RecognizeRequest.java | 525 +++-- .../speech/v1/RecognizeRequestOrBuilder.java | 110 + .../cloud/speech/v1/RecognizeResponse.java | 470 ++-- .../speech/v1/RecognizeResponseOrBuilder.java | 44 +- .../speech/v1/SpeakerDiarizationConfig.java | 398 ++-- .../v1/SpeakerDiarizationConfigOrBuilder.java | 36 +- .../cloud/speech/v1/SpeechAdaptation.java | 663 +++--- .../speech/v1/SpeechAdaptationOrBuilder.java | 84 +- .../google/cloud/speech/v1/SpeechContext.java | 367 ++-- .../speech/v1/SpeechContextOrBuilder.java | 39 +- .../google/cloud/speech/v1/SpeechProto.java | 463 ++++ .../v1/SpeechRecognitionAlternative.java | 499 +++-- ...SpeechRecognitionAlternativeOrBuilder.java | 49 +- .../speech/v1/SpeechRecognitionResult.java | 604 ++++-- .../v1/SpeechRecognitionResultOrBuilder.java | 53 +- .../cloud/speech/v1/SpeechResourceProto.java | 140 ++ .../speech/v1/StreamingRecognitionConfig.java | 461 ++-- .../StreamingRecognitionConfigOrBuilder.java | 44 +- .../speech/v1/StreamingRecognitionResult.java | 681 +++--- .../StreamingRecognitionResultOrBuilder.java | 59 +- .../speech/v1/StreamingRecognizeRequest.java | 459 ++-- .../StreamingRecognizeRequestOrBuilder.java | 35 +- .../speech/v1/StreamingRecognizeResponse.java | 727 ++++--- .../StreamingRecognizeResponseOrBuilder.java | 64 +- .../speech/v1/TranscriptOutputConfig.java | 368 ++-- .../v1/TranscriptOutputConfigOrBuilder.java | 30 +- .../com/google/cloud/speech/v1/WordInfo.java | 541 +++-- .../cloud/speech/v1/WordInfoOrBuilder.java | 49 +- .../google/cloud/speech/v1/cloud_speech.proto | 0 .../google/cloud/speech/v1/resource.proto | 0 .../v1p1beta1/CreateCustomClassRequest.java | 567 +++-- .../CreateCustomClassRequestOrBuilder.java | 64 +- .../v1p1beta1/CreatePhraseSetRequest.java | 567 +++-- .../CreatePhraseSetRequestOrBuilder.java | 64 +- .../cloud/speech/v1p1beta1/CustomClass.java | 831 ++++--- .../speech/v1p1beta1/CustomClassName.java | 0 .../v1p1beta1/CustomClassOrBuilder.java | 54 +- .../v1p1beta1/DeleteCustomClassRequest.java | 342 +-- .../DeleteCustomClassRequestOrBuilder.java | 35 +- .../v1p1beta1/DeletePhraseSetRequest.java | 342 +-- .../DeletePhraseSetRequestOrBuilder.java | 56 + .../v1p1beta1/GetCustomClassRequest.java | 342 +-- .../GetCustomClassRequestOrBuilder.java | 56 + .../speech/v1p1beta1/GetPhraseSetRequest.java | 342 +-- .../GetPhraseSetRequestOrBuilder.java | 35 +- .../v1p1beta1/ListCustomClassesRequest.java | 455 ++-- .../ListCustomClassesRequestOrBuilder.java | 47 +- .../v1p1beta1/ListCustomClassesResponse.java | 441 ++-- .../ListCustomClassesResponseOrBuilder.java | 45 +- .../v1p1beta1/ListPhraseSetRequest.java | 455 ++-- .../ListPhraseSetRequestOrBuilder.java | 47 +- .../v1p1beta1/ListPhraseSetResponse.java | 464 ++-- .../ListPhraseSetResponseOrBuilder.java | 45 +- .../cloud/speech/v1p1beta1/LocationName.java | 0 .../LongRunningRecognizeMetadata.java | 715 +++--- ...LongRunningRecognizeMetadataOrBuilder.java | 66 +- .../LongRunningRecognizeRequest.java | 701 ++++-- .../LongRunningRecognizeRequestOrBuilder.java | 78 +- .../LongRunningRecognizeResponse.java | 704 +++--- ...LongRunningRecognizeResponseOrBuilder.java | 60 +- .../cloud/speech/v1p1beta1/PhraseSet.java | 826 ++++--- .../cloud/speech/v1p1beta1/PhraseSetName.java | 0 .../speech/v1p1beta1/PhraseSetOrBuilder.java | 48 +- .../speech/v1p1beta1/RecognitionAudio.java | 427 ++-- .../v1p1beta1/RecognitionAudioOrBuilder.java | 36 +- .../speech/v1p1beta1/RecognitionConfig.java | 1919 +++++++++++------ .../v1p1beta1/RecognitionConfigOrBuilder.java | 180 +- .../speech/v1p1beta1/RecognitionMetadata.java | 1335 ++++++++---- .../RecognitionMetadataOrBuilder.java | 111 +- .../speech/v1p1beta1/RecognizeRequest.java | 531 +++-- .../v1p1beta1/RecognizeRequestOrBuilder.java | 110 + .../speech/v1p1beta1/RecognizeResponse.java | 489 +++-- .../v1p1beta1/RecognizeResponseOrBuilder.java | 44 +- .../v1p1beta1/SpeakerDiarizationConfig.java | 401 ++-- .../SpeakerDiarizationConfigOrBuilder.java | 36 +- .../speech/v1p1beta1/SpeechAdaptation.java | 658 ++++-- .../v1p1beta1/SpeechAdaptationOrBuilder.java | 84 +- .../v1p1beta1/SpeechAdaptationProto.java | 318 +++ .../cloud/speech/v1p1beta1/SpeechContext.java | 373 ++-- .../v1p1beta1/SpeechContextOrBuilder.java | 39 +- .../cloud/speech/v1p1beta1/SpeechProto.java | 483 +++++ .../SpeechRecognitionAlternative.java | 518 +++-- ...SpeechRecognitionAlternativeOrBuilder.java | 48 +- .../v1p1beta1/SpeechRecognitionResult.java | 702 +++--- .../SpeechRecognitionResultOrBuilder.java | 67 +- .../speech/v1p1beta1/SpeechResourceProto.java | 179 ++ .../v1p1beta1/StreamingRecognitionConfig.java | 466 ++-- .../StreamingRecognitionConfigOrBuilder.java | 44 +- .../v1p1beta1/StreamingRecognitionResult.java | 783 ++++--- .../StreamingRecognitionResultOrBuilder.java | 73 +- .../v1p1beta1/StreamingRecognizeRequest.java | 470 ++-- .../StreamingRecognizeRequestOrBuilder.java | 38 +- .../v1p1beta1/StreamingRecognizeResponse.java | 760 ++++--- .../StreamingRecognizeResponseOrBuilder.java | 63 +- .../v1p1beta1/TranscriptNormalization.java | 931 ++++---- .../TranscriptNormalizationOrBuilder.java | 33 +- .../v1p1beta1/TranscriptOutputConfig.java | 371 ++-- .../TranscriptOutputConfigOrBuilder.java | 33 +- .../v1p1beta1/UpdateCustomClassRequest.java | 480 +++-- .../UpdateCustomClassRequestOrBuilder.java | 46 +- .../v1p1beta1/UpdatePhraseSetRequest.java | 480 +++-- .../UpdatePhraseSetRequestOrBuilder.java | 46 +- .../cloud/speech/v1p1beta1/WordInfo.java | 548 +++-- .../speech/v1p1beta1/WordInfoOrBuilder.java | 49 +- .../cloud/speech/v1p1beta1/cloud_speech.proto | 0 .../v1p1beta1/cloud_speech_adaptation.proto | 0 .../cloud/speech/v1p1beta1/resource.proto | 0 170 files changed, 28609 insertions(+), 16834 deletions(-) rename {owl-bot-staging/v1/google-cloud-speech => google-cloud-speech}/src/main/java/com/google/cloud/speech/v1/SpeechClient.java (98%) rename {owl-bot-staging/v1/google-cloud-speech => google-cloud-speech}/src/main/java/com/google/cloud/speech/v1/SpeechSettings.java (96%) rename {owl-bot-staging/v1/google-cloud-speech => google-cloud-speech}/src/main/java/com/google/cloud/speech/v1/gapic_metadata.json (100%) rename {owl-bot-staging/v1/google-cloud-speech => google-cloud-speech}/src/main/java/com/google/cloud/speech/v1/package-info.java (100%) rename {owl-bot-staging/v1/google-cloud-speech => google-cloud-speech}/src/main/java/com/google/cloud/speech/v1/stub/GrpcSpeechCallableFactory.java (100%) rename {owl-bot-staging/v1/google-cloud-speech => google-cloud-speech}/src/main/java/com/google/cloud/speech/v1/stub/GrpcSpeechStub.java (100%) rename {owl-bot-staging/v1/google-cloud-speech => google-cloud-speech}/src/main/java/com/google/cloud/speech/v1/stub/SpeechStub.java (100%) rename {owl-bot-staging/v1/google-cloud-speech => google-cloud-speech}/src/main/java/com/google/cloud/speech/v1/stub/SpeechStubSettings.java (98%) rename {owl-bot-staging/v1p1beta1/google-cloud-speech => google-cloud-speech}/src/main/java/com/google/cloud/speech/v1p1beta1/AdaptationClient.java (98%) rename {owl-bot-staging/v1p1beta1/google-cloud-speech => google-cloud-speech}/src/main/java/com/google/cloud/speech/v1p1beta1/AdaptationSettings.java (97%) rename {owl-bot-staging/v1p1beta1/google-cloud-speech => google-cloud-speech}/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechClient.java (98%) rename {owl-bot-staging/v1p1beta1/google-cloud-speech => google-cloud-speech}/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechSettings.java (96%) rename {owl-bot-staging/v1p1beta1/google-cloud-speech => google-cloud-speech}/src/main/java/com/google/cloud/speech/v1p1beta1/gapic_metadata.json (100%) rename {owl-bot-staging/v1p1beta1/google-cloud-speech => google-cloud-speech}/src/main/java/com/google/cloud/speech/v1p1beta1/package-info.java (100%) rename {owl-bot-staging/v1p1beta1/google-cloud-speech => google-cloud-speech}/src/main/java/com/google/cloud/speech/v1p1beta1/stub/AdaptationStub.java (100%) rename {owl-bot-staging/v1p1beta1/google-cloud-speech => google-cloud-speech}/src/main/java/com/google/cloud/speech/v1p1beta1/stub/AdaptationStubSettings.java (98%) rename {owl-bot-staging/v1p1beta1/google-cloud-speech => google-cloud-speech}/src/main/java/com/google/cloud/speech/v1p1beta1/stub/GrpcAdaptationCallableFactory.java (100%) rename {owl-bot-staging/v1p1beta1/google-cloud-speech => google-cloud-speech}/src/main/java/com/google/cloud/speech/v1p1beta1/stub/GrpcAdaptationStub.java (99%) rename {owl-bot-staging/v1p1beta1/google-cloud-speech => google-cloud-speech}/src/main/java/com/google/cloud/speech/v1p1beta1/stub/GrpcSpeechCallableFactory.java (100%) rename {owl-bot-staging/v1p1beta1/google-cloud-speech => google-cloud-speech}/src/main/java/com/google/cloud/speech/v1p1beta1/stub/GrpcSpeechStub.java (100%) rename {owl-bot-staging/v1p1beta1/google-cloud-speech => google-cloud-speech}/src/main/java/com/google/cloud/speech/v1p1beta1/stub/SpeechStub.java (100%) rename {owl-bot-staging/v1p1beta1/google-cloud-speech => google-cloud-speech}/src/main/java/com/google/cloud/speech/v1p1beta1/stub/SpeechStubSettings.java (98%) rename {owl-bot-staging/v1/google-cloud-speech => google-cloud-speech}/src/test/java/com/google/cloud/speech/v1/MockSpeech.java (100%) rename {owl-bot-staging/v1/google-cloud-speech => google-cloud-speech}/src/test/java/com/google/cloud/speech/v1/MockSpeechImpl.java (100%) rename {owl-bot-staging/v1/google-cloud-speech => google-cloud-speech}/src/test/java/com/google/cloud/speech/v1/SpeechClientTest.java (100%) rename {owl-bot-staging/v1p1beta1/google-cloud-speech => google-cloud-speech}/src/test/java/com/google/cloud/speech/v1p1beta1/AdaptationClientTest.java (100%) rename {owl-bot-staging/v1p1beta1/google-cloud-speech => google-cloud-speech}/src/test/java/com/google/cloud/speech/v1p1beta1/MockAdaptation.java (100%) rename {owl-bot-staging/v1p1beta1/google-cloud-speech => google-cloud-speech}/src/test/java/com/google/cloud/speech/v1p1beta1/MockAdaptationImpl.java (100%) rename {owl-bot-staging/v1p1beta1/google-cloud-speech => google-cloud-speech}/src/test/java/com/google/cloud/speech/v1p1beta1/MockSpeech.java (100%) rename {owl-bot-staging/v1p1beta1/google-cloud-speech => google-cloud-speech}/src/test/java/com/google/cloud/speech/v1p1beta1/MockSpeechImpl.java (100%) rename {owl-bot-staging/v1p1beta1/google-cloud-speech => google-cloud-speech}/src/test/java/com/google/cloud/speech/v1p1beta1/SpeechClientTest.java (100%) create mode 100644 grpc-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechGrpc.java create mode 100644 grpc-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/AdaptationGrpc.java create mode 100644 grpc-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechGrpc.java delete mode 100644 owl-bot-staging/v1/grpc-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechGrpc.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechProto.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechResourceProto.java delete mode 100644 owl-bot-staging/v1p1beta1/grpc-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/AdaptationGrpc.java delete mode 100644 owl-bot-staging/v1p1beta1/grpc-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechGrpc.java delete mode 100644 owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeletePhraseSetRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetCustomClassRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptationProto.java delete mode 100644 owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechProto.java delete mode 100644 owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechResourceProto.java rename {owl-bot-staging/v1/proto-google-cloud-speech-v1 => proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/CustomClass.java (73%) rename {owl-bot-staging/v1/proto-google-cloud-speech-v1 => proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/CustomClassOrBuilder.java (70%) rename {owl-bot-staging/v1/proto-google-cloud-speech-v1 => proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeMetadata.java (71%) rename {owl-bot-staging/v1/proto-google-cloud-speech-v1 => proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeMetadataOrBuilder.java (74%) rename {owl-bot-staging/v1/proto-google-cloud-speech-v1 => proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeRequest.java (60%) rename {owl-bot-staging/v1/proto-google-cloud-speech-v1 => proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeRequestOrBuilder.java (51%) rename {owl-bot-staging/v1/proto-google-cloud-speech-v1 => proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeResponse.java (74%) rename {owl-bot-staging/v1/proto-google-cloud-speech-v1 => proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeResponseOrBuilder.java (81%) rename {owl-bot-staging/v1/proto-google-cloud-speech-v1 => proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/PhraseSet.java (77%) rename {owl-bot-staging/v1/proto-google-cloud-speech-v1 => proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/PhraseSetOrBuilder.java (72%) rename {owl-bot-staging/v1/proto-google-cloud-speech-v1 => proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/RecognitionAudio.java (75%) rename {owl-bot-staging/v1/proto-google-cloud-speech-v1 => proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/RecognitionAudioOrBuilder.java (79%) rename {owl-bot-staging/v1/proto-google-cloud-speech-v1 => proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/RecognitionConfig.java (83%) rename {owl-bot-staging/v1/proto-google-cloud-speech-v1 => proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/RecognitionConfigOrBuilder.java (94%) rename {owl-bot-staging/v1/proto-google-cloud-speech-v1 => proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/RecognitionMetadata.java (72%) rename {owl-bot-staging/v1/proto-google-cloud-speech-v1 => proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/RecognitionMetadataOrBuilder.java (76%) rename {owl-bot-staging/v1/proto-google-cloud-speech-v1 => proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/RecognizeRequest.java (61%) create mode 100644 proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeRequestOrBuilder.java rename {owl-bot-staging/v1/proto-google-cloud-speech-v1 => proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/RecognizeResponse.java (74%) rename {owl-bot-staging/v1/proto-google-cloud-speech-v1 => proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/RecognizeResponseOrBuilder.java (75%) rename {owl-bot-staging/v1/proto-google-cloud-speech-v1 => proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/SpeakerDiarizationConfig.java (71%) rename {owl-bot-staging/v1/proto-google-cloud-speech-v1 => proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/SpeakerDiarizationConfigOrBuilder.java (65%) rename {owl-bot-staging/v1/proto-google-cloud-speech-v1 => proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/SpeechAdaptation.java (79%) rename {owl-bot-staging/v1/proto-google-cloud-speech-v1 => proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/SpeechAdaptationOrBuilder.java (79%) rename {owl-bot-staging/v1/proto-google-cloud-speech-v1 => proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/SpeechContext.java (80%) rename {owl-bot-staging/v1/proto-google-cloud-speech-v1 => proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/SpeechContextOrBuilder.java (85%) create mode 100644 proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechProto.java rename {owl-bot-staging/v1/proto-google-cloud-speech-v1 => proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/SpeechRecognitionAlternative.java (76%) rename {owl-bot-staging/v1/proto-google-cloud-speech-v1 => proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/SpeechRecognitionAlternativeOrBuilder.java (76%) rename {owl-bot-staging/v1/proto-google-cloud-speech-v1 => proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/SpeechRecognitionResult.java (76%) rename {owl-bot-staging/v1/proto-google-cloud-speech-v1 => proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/SpeechRecognitionResultOrBuilder.java (83%) create mode 100644 proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechResourceProto.java rename {owl-bot-staging/v1/proto-google-cloud-speech-v1 => proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/StreamingRecognitionConfig.java (70%) rename {owl-bot-staging/v1/proto-google-cloud-speech-v1 => proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/StreamingRecognitionConfigOrBuilder.java (70%) rename {owl-bot-staging/v1/proto-google-cloud-speech-v1 => proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/StreamingRecognitionResult.java (77%) rename {owl-bot-staging/v1/proto-google-cloud-speech-v1 => proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/StreamingRecognitionResultOrBuilder.java (85%) rename {owl-bot-staging/v1/proto-google-cloud-speech-v1 => proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeRequest.java (73%) rename {owl-bot-staging/v1/proto-google-cloud-speech-v1 => proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeRequestOrBuilder.java (79%) rename {owl-bot-staging/v1/proto-google-cloud-speech-v1 => proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeResponse.java (77%) rename {owl-bot-staging/v1/proto-google-cloud-speech-v1 => proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeResponseOrBuilder.java (83%) rename {owl-bot-staging/v1/proto-google-cloud-speech-v1 => proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/TranscriptOutputConfig.java (70%) rename {owl-bot-staging/v1/proto-google-cloud-speech-v1 => proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/TranscriptOutputConfigOrBuilder.java (63%) rename {owl-bot-staging/v1/proto-google-cloud-speech-v1 => proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/WordInfo.java (77%) rename {owl-bot-staging/v1/proto-google-cloud-speech-v1 => proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/WordInfoOrBuilder.java (84%) rename {owl-bot-staging/v1/proto-google-cloud-speech-v1 => proto-google-cloud-speech-v1}/src/main/proto/google/cloud/speech/v1/cloud_speech.proto (100%) rename {owl-bot-staging/v1/proto-google-cloud-speech-v1 => proto-google-cloud-speech-v1}/src/main/proto/google/cloud/speech/v1/resource.proto (100%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1 => proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/CreateCustomClassRequest.java (68%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1 => proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/CreateCustomClassRequestOrBuilder.java (64%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1 => proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/CreatePhraseSetRequest.java (68%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1 => proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/CreatePhraseSetRequestOrBuilder.java (64%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1 => proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/CustomClass.java (74%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1 => proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/CustomClassName.java (100%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1 => proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/CustomClassOrBuilder.java (70%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1 => proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/DeleteCustomClassRequest.java (69%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1 => proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/DeleteCustomClassRequestOrBuilder.java (59%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1 => proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/DeletePhraseSetRequest.java (66%) create mode 100644 proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeletePhraseSetRequestOrBuilder.java rename {owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1 => proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/GetCustomClassRequest.java (66%) create mode 100644 proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetCustomClassRequestOrBuilder.java rename {owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1 => proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/GetPhraseSetRequest.java (69%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1 => proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/GetPhraseSetRequestOrBuilder.java (59%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1 => proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesRequest.java (73%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1 => proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesRequestOrBuilder.java (70%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1 => proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesResponse.java (75%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1 => proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesResponseOrBuilder.java (69%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1 => proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetRequest.java (73%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1 => proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetRequestOrBuilder.java (69%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1 => proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetResponse.java (73%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1 => proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetResponseOrBuilder.java (67%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1 => proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/LocationName.java (100%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1 => proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeMetadata.java (68%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1 => proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeMetadataOrBuilder.java (70%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1 => proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeRequest.java (59%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1 => proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeRequestOrBuilder.java (51%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1 => proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeResponse.java (73%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1 => proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeResponseOrBuilder.java (81%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1 => proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/PhraseSet.java (77%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1 => proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/PhraseSetName.java (100%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1 => proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/PhraseSetOrBuilder.java (74%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1 => proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionAudio.java (75%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1 => proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionAudioOrBuilder.java (79%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1 => proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionConfig.java (82%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1 => proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionConfigOrBuilder.java (93%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1 => proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionMetadata.java (69%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1 => proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionMetadataOrBuilder.java (70%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1 => proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeRequest.java (61%) create mode 100644 proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeRequestOrBuilder.java rename {owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1 => proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeResponse.java (73%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1 => proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeResponseOrBuilder.java (75%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1 => proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/SpeakerDiarizationConfig.java (71%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1 => proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/SpeakerDiarizationConfigOrBuilder.java (65%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1 => proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptation.java (79%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1 => proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptationOrBuilder.java (80%) create mode 100644 proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptationProto.java rename {owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1 => proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechContext.java (80%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1 => proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechContextOrBuilder.java (85%) create mode 100644 proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechProto.java rename {owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1 => proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionAlternative.java (75%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1 => proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionAlternativeOrBuilder.java (76%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1 => proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionResult.java (73%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1 => proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionResultOrBuilder.java (79%) create mode 100644 proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechResourceProto.java rename {owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1 => proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionConfig.java (70%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1 => proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionConfigOrBuilder.java (70%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1 => proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionResult.java (75%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1 => proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionResultOrBuilder.java (82%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1 => proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeRequest.java (72%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1 => proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeRequestOrBuilder.java (78%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1 => proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeResponse.java (75%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1 => proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeResponseOrBuilder.java (81%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1 => proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptNormalization.java (73%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1 => proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptNormalizationOrBuilder.java (78%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1 => proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptOutputConfig.java (70%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1 => proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptOutputConfigOrBuilder.java (61%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1 => proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/UpdateCustomClassRequest.java (71%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1 => proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/UpdateCustomClassRequestOrBuilder.java (72%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1 => proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/UpdatePhraseSetRequest.java (71%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1 => proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/UpdatePhraseSetRequestOrBuilder.java (72%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1 => proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/WordInfo.java (77%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1 => proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/WordInfoOrBuilder.java (84%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1 => proto-google-cloud-speech-v1p1beta1}/src/main/proto/google/cloud/speech/v1p1beta1/cloud_speech.proto (100%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1 => proto-google-cloud-speech-v1p1beta1}/src/main/proto/google/cloud/speech/v1p1beta1/cloud_speech_adaptation.proto (100%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1 => proto-google-cloud-speech-v1p1beta1}/src/main/proto/google/cloud/speech/v1p1beta1/resource.proto (100%) diff --git a/README.md b/README.md index a54ca0ce1..e6fd7271f 100644 --- a/README.md +++ b/README.md @@ -62,13 +62,13 @@ implementation 'com.google.cloud:google-cloud-speech' If you are using Gradle without BOM, add this to your dependencies ```Groovy -implementation 'com.google.cloud:google-cloud-speech:2.2.13' +implementation 'com.google.cloud:google-cloud-speech:2.2.14' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-speech" % "2.2.13" +libraryDependencies += "com.google.cloud" % "google-cloud-speech" % "2.2.14" ``` ## Authentication diff --git a/owl-bot-staging/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/SpeechClient.java b/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/SpeechClient.java similarity index 98% rename from owl-bot-staging/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/SpeechClient.java rename to google-cloud-speech/src/main/java/com/google/cloud/speech/v1/SpeechClient.java index 414cd087f..186dd5aa2 100644 --- a/owl-bot-staging/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/SpeechClient.java +++ b/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/SpeechClient.java @@ -52,13 +52,13 @@ * methods: * *
    - *
  1. A "flattened" method. With this type of method, the fields of the request type have been + *
  2. A "flattened" method. With this type of method, the fields of the request type have been * converted into function parameters. It may be the case that not all fields are available as * parameters, and not every API method will have a flattened method entry point. - *
  3. A "request object" method. This type of method only takes one parameter, a request object, + *
  4. A "request object" method. This type of method only takes one parameter, a request object, * which must be constructed before the call. Not every API method will have a request object * method. - *
  5. A "callable" method. This type of method takes no parameters and returns an immutable API + *
  6. A "callable" method. This type of method takes no parameters and returns an immutable API * callable object, which can be used to initiate calls to the service. *
* diff --git a/owl-bot-staging/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/SpeechSettings.java b/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/SpeechSettings.java similarity index 96% rename from owl-bot-staging/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/SpeechSettings.java rename to google-cloud-speech/src/main/java/com/google/cloud/speech/v1/SpeechSettings.java index c8e69daaa..3234b5f66 100644 --- a/owl-bot-staging/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/SpeechSettings.java +++ b/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/SpeechSettings.java @@ -26,7 +26,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; @@ -42,9 +41,9 @@ *

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

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

The builder of this class is recursive, so contained classes are themselves builders. When diff --git a/owl-bot-staging/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/gapic_metadata.json b/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/gapic_metadata.json similarity index 100% rename from owl-bot-staging/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/gapic_metadata.json rename to google-cloud-speech/src/main/java/com/google/cloud/speech/v1/gapic_metadata.json diff --git a/owl-bot-staging/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/package-info.java b/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/package-info.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/package-info.java rename to google-cloud-speech/src/main/java/com/google/cloud/speech/v1/package-info.java diff --git a/owl-bot-staging/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/GrpcSpeechCallableFactory.java b/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/GrpcSpeechCallableFactory.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/GrpcSpeechCallableFactory.java rename to google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/GrpcSpeechCallableFactory.java diff --git a/owl-bot-staging/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/GrpcSpeechStub.java b/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/GrpcSpeechStub.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/GrpcSpeechStub.java rename to google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/GrpcSpeechStub.java diff --git a/owl-bot-staging/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/SpeechStub.java b/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/SpeechStub.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/SpeechStub.java rename to google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/SpeechStub.java diff --git a/owl-bot-staging/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/SpeechStubSettings.java b/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/SpeechStubSettings.java similarity index 98% rename from owl-bot-staging/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/SpeechStubSettings.java rename to google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/SpeechStubSettings.java index 3fe6ed944..c55156e5c 100644 --- a/owl-bot-staging/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/SpeechStubSettings.java +++ b/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/SpeechStubSettings.java @@ -60,9 +60,9 @@ *

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

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

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

    - *
  1. A "flattened" method. With this type of method, the fields of the request type have been + *
  2. A "flattened" method. With this type of method, the fields of the request type have been * converted into function parameters. It may be the case that not all fields are available as * parameters, and not every API method will have a flattened method entry point. - *
  3. A "request object" method. This type of method only takes one parameter, a request object, + *
  4. A "request object" method. This type of method only takes one parameter, a request object, * which must be constructed before the call. Not every API method will have a request object * method. - *
  5. A "callable" method. This type of method takes no parameters and returns an immutable API + *
  6. A "callable" method. This type of method takes no parameters and returns an immutable API * callable object, which can be used to initiate calls to the service. *
* @@ -1290,7 +1290,10 @@ public boolean awaitTermination(long duration, TimeUnit unit) throws Interrupted public static class ListPhraseSetPagedResponse extends AbstractPagedListResponse< - ListPhraseSetRequest, ListPhraseSetResponse, PhraseSet, ListPhraseSetPage, + ListPhraseSetRequest, + ListPhraseSetResponse, + PhraseSet, + ListPhraseSetPage, ListPhraseSetFixedSizeCollection> { public static ApiFuture createAsync( @@ -1340,7 +1343,10 @@ public ApiFuture createPageAsync( public static class ListPhraseSetFixedSizeCollection extends AbstractFixedSizeCollection< - ListPhraseSetRequest, ListPhraseSetResponse, PhraseSet, ListPhraseSetPage, + ListPhraseSetRequest, + ListPhraseSetResponse, + PhraseSet, + ListPhraseSetPage, ListPhraseSetFixedSizeCollection> { private ListPhraseSetFixedSizeCollection(List pages, int collectionSize) { @@ -1360,7 +1366,10 @@ protected ListPhraseSetFixedSizeCollection createCollection( public static class ListCustomClassesPagedResponse extends AbstractPagedListResponse< - ListCustomClassesRequest, ListCustomClassesResponse, CustomClass, ListCustomClassesPage, + ListCustomClassesRequest, + ListCustomClassesResponse, + CustomClass, + ListCustomClassesPage, ListCustomClassesFixedSizeCollection> { public static ApiFuture createAsync( @@ -1410,7 +1419,10 @@ public ApiFuture createPageAsync( public static class ListCustomClassesFixedSizeCollection extends AbstractFixedSizeCollection< - ListCustomClassesRequest, ListCustomClassesResponse, CustomClass, ListCustomClassesPage, + ListCustomClassesRequest, + ListCustomClassesResponse, + CustomClass, + ListCustomClassesPage, ListCustomClassesFixedSizeCollection> { private ListCustomClassesFixedSizeCollection( diff --git a/owl-bot-staging/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/AdaptationSettings.java b/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/AdaptationSettings.java similarity index 97% rename from owl-bot-staging/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/AdaptationSettings.java rename to google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/AdaptationSettings.java index aa70f94b6..b852275f2 100644 --- a/owl-bot-staging/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/AdaptationSettings.java +++ b/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/AdaptationSettings.java @@ -28,7 +28,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; @@ -44,9 +43,9 @@ *

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

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

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

    - *
  1. A "flattened" method. With this type of method, the fields of the request type have been + *
  2. A "flattened" method. With this type of method, the fields of the request type have been * converted into function parameters. It may be the case that not all fields are available as * parameters, and not every API method will have a flattened method entry point. - *
  3. A "request object" method. This type of method only takes one parameter, a request object, + *
  4. A "request object" method. This type of method only takes one parameter, a request object, * which must be constructed before the call. Not every API method will have a request object * method. - *
  5. A "callable" method. This type of method takes no parameters and returns an immutable API + *
  6. A "callable" method. This type of method takes no parameters and returns an immutable API * callable object, which can be used to initiate calls to the service. *
* diff --git a/owl-bot-staging/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechSettings.java b/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechSettings.java similarity index 96% rename from owl-bot-staging/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechSettings.java rename to google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechSettings.java index 1ed215f3d..2dad612a2 100644 --- a/owl-bot-staging/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechSettings.java +++ b/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechSettings.java @@ -26,7 +26,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; @@ -42,9 +41,9 @@ *

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

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

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

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

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

The builder of this class is recursive, so contained classes are themselves builders. When @@ -214,7 +214,8 @@ public ApiFuture getFuturePagedResponse( ListCustomClassesRequest, ListCustomClassesResponse, ListCustomClassesPagedResponse> LIST_CUSTOM_CLASSES_PAGE_STR_FACT = new PagedListResponseFactory< - ListCustomClassesRequest, ListCustomClassesResponse, + ListCustomClassesRequest, + ListCustomClassesResponse, ListCustomClassesPagedResponse>() { @Override public ApiFuture getFuturePagedResponse( diff --git a/owl-bot-staging/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/GrpcAdaptationCallableFactory.java b/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/GrpcAdaptationCallableFactory.java similarity index 100% rename from owl-bot-staging/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/GrpcAdaptationCallableFactory.java rename to google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/GrpcAdaptationCallableFactory.java diff --git a/owl-bot-staging/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/GrpcAdaptationStub.java b/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/GrpcAdaptationStub.java similarity index 99% rename from owl-bot-staging/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/GrpcAdaptationStub.java rename to google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/GrpcAdaptationStub.java index 8a46e9cfb..be361d622 100644 --- a/owl-bot-staging/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/GrpcAdaptationStub.java +++ b/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/GrpcAdaptationStub.java @@ -46,7 +46,6 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; -import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/owl-bot-staging/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/GrpcSpeechCallableFactory.java b/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/GrpcSpeechCallableFactory.java similarity index 100% rename from owl-bot-staging/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/GrpcSpeechCallableFactory.java rename to google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/GrpcSpeechCallableFactory.java diff --git a/owl-bot-staging/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/GrpcSpeechStub.java b/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/GrpcSpeechStub.java similarity index 100% rename from owl-bot-staging/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/GrpcSpeechStub.java rename to google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/GrpcSpeechStub.java diff --git a/owl-bot-staging/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/SpeechStub.java b/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/SpeechStub.java similarity index 100% rename from owl-bot-staging/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/SpeechStub.java rename to google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/SpeechStub.java diff --git a/owl-bot-staging/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/SpeechStubSettings.java b/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/SpeechStubSettings.java similarity index 98% rename from owl-bot-staging/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/SpeechStubSettings.java rename to google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/SpeechStubSettings.java index a1fcee665..b9a2aedb7 100644 --- a/owl-bot-staging/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/SpeechStubSettings.java +++ b/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/SpeechStubSettings.java @@ -60,9 +60,9 @@ *

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

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

The builder of this class is recursive, so contained classes are themselves builders. When diff --git a/owl-bot-staging/v1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/MockSpeech.java b/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/MockSpeech.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/MockSpeech.java rename to google-cloud-speech/src/test/java/com/google/cloud/speech/v1/MockSpeech.java diff --git a/owl-bot-staging/v1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/MockSpeechImpl.java b/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/MockSpeechImpl.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/MockSpeechImpl.java rename to google-cloud-speech/src/test/java/com/google/cloud/speech/v1/MockSpeechImpl.java diff --git a/owl-bot-staging/v1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/SpeechClientTest.java b/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/SpeechClientTest.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/SpeechClientTest.java rename to google-cloud-speech/src/test/java/com/google/cloud/speech/v1/SpeechClientTest.java diff --git a/owl-bot-staging/v1p1beta1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/AdaptationClientTest.java b/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/AdaptationClientTest.java similarity index 100% rename from owl-bot-staging/v1p1beta1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/AdaptationClientTest.java rename to google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/AdaptationClientTest.java diff --git a/owl-bot-staging/v1p1beta1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/MockAdaptation.java b/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/MockAdaptation.java similarity index 100% rename from owl-bot-staging/v1p1beta1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/MockAdaptation.java rename to google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/MockAdaptation.java diff --git a/owl-bot-staging/v1p1beta1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/MockAdaptationImpl.java b/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/MockAdaptationImpl.java similarity index 100% rename from owl-bot-staging/v1p1beta1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/MockAdaptationImpl.java rename to google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/MockAdaptationImpl.java diff --git a/owl-bot-staging/v1p1beta1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/MockSpeech.java b/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/MockSpeech.java similarity index 100% rename from owl-bot-staging/v1p1beta1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/MockSpeech.java rename to google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/MockSpeech.java diff --git a/owl-bot-staging/v1p1beta1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/MockSpeechImpl.java b/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/MockSpeechImpl.java similarity index 100% rename from owl-bot-staging/v1p1beta1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/MockSpeechImpl.java rename to google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/MockSpeechImpl.java diff --git a/owl-bot-staging/v1p1beta1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/SpeechClientTest.java b/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/SpeechClientTest.java similarity index 100% rename from owl-bot-staging/v1p1beta1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/SpeechClientTest.java rename to google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/SpeechClientTest.java diff --git a/grpc-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechGrpc.java b/grpc-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechGrpc.java new file mode 100644 index 000000000..846458da2 --- /dev/null +++ b/grpc-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechGrpc.java @@ -0,0 +1,579 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.speech.v1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *

+ * Service that implements Google Cloud Speech API.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/speech/v1/cloud_speech.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class SpeechGrpc { + + private SpeechGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.speech.v1.Speech"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.speech.v1.RecognizeRequest, com.google.cloud.speech.v1.RecognizeResponse> + getRecognizeMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "Recognize", + requestType = com.google.cloud.speech.v1.RecognizeRequest.class, + responseType = com.google.cloud.speech.v1.RecognizeResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.speech.v1.RecognizeRequest, com.google.cloud.speech.v1.RecognizeResponse> + getRecognizeMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.speech.v1.RecognizeRequest, + com.google.cloud.speech.v1.RecognizeResponse> + getRecognizeMethod; + if ((getRecognizeMethod = SpeechGrpc.getRecognizeMethod) == null) { + synchronized (SpeechGrpc.class) { + if ((getRecognizeMethod = SpeechGrpc.getRecognizeMethod) == null) { + SpeechGrpc.getRecognizeMethod = + getRecognizeMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Recognize")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v1.RecognizeRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v1.RecognizeResponse.getDefaultInstance())) + .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("Recognize")) + .build(); + } + } + } + return getRecognizeMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.speech.v1.LongRunningRecognizeRequest, com.google.longrunning.Operation> + getLongRunningRecognizeMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "LongRunningRecognize", + requestType = com.google.cloud.speech.v1.LongRunningRecognizeRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.speech.v1.LongRunningRecognizeRequest, com.google.longrunning.Operation> + getLongRunningRecognizeMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.speech.v1.LongRunningRecognizeRequest, + com.google.longrunning.Operation> + getLongRunningRecognizeMethod; + if ((getLongRunningRecognizeMethod = SpeechGrpc.getLongRunningRecognizeMethod) == null) { + synchronized (SpeechGrpc.class) { + if ((getLongRunningRecognizeMethod = SpeechGrpc.getLongRunningRecognizeMethod) == null) { + SpeechGrpc.getLongRunningRecognizeMethod = + getLongRunningRecognizeMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "LongRunningRecognize")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v1.LongRunningRecognizeRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new SpeechMethodDescriptorSupplier("LongRunningRecognize")) + .build(); + } + } + } + return getLongRunningRecognizeMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.speech.v1.StreamingRecognizeRequest, + com.google.cloud.speech.v1.StreamingRecognizeResponse> + getStreamingRecognizeMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "StreamingRecognize", + requestType = com.google.cloud.speech.v1.StreamingRecognizeRequest.class, + responseType = com.google.cloud.speech.v1.StreamingRecognizeResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING) + public static io.grpc.MethodDescriptor< + com.google.cloud.speech.v1.StreamingRecognizeRequest, + com.google.cloud.speech.v1.StreamingRecognizeResponse> + getStreamingRecognizeMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.speech.v1.StreamingRecognizeRequest, + com.google.cloud.speech.v1.StreamingRecognizeResponse> + getStreamingRecognizeMethod; + if ((getStreamingRecognizeMethod = SpeechGrpc.getStreamingRecognizeMethod) == null) { + synchronized (SpeechGrpc.class) { + if ((getStreamingRecognizeMethod = SpeechGrpc.getStreamingRecognizeMethod) == null) { + SpeechGrpc.getStreamingRecognizeMethod = + getStreamingRecognizeMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StreamingRecognize")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v1.StreamingRecognizeRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v1.StreamingRecognizeResponse + .getDefaultInstance())) + .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("StreamingRecognize")) + .build(); + } + } + } + return getStreamingRecognizeMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static SpeechStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public SpeechStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SpeechStub(channel, callOptions); + } + }; + return SpeechStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static SpeechBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public SpeechBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SpeechBlockingStub(channel, callOptions); + } + }; + return SpeechBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static SpeechFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public SpeechFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SpeechFutureStub(channel, callOptions); + } + }; + return SpeechFutureStub.newStub(factory, channel); + } + + /** + * + * + *
+   * Service that implements Google Cloud Speech API.
+   * 
+ */ + public abstract static class SpeechImplBase implements io.grpc.BindableService { + + /** + * + * + *
+     * Performs synchronous speech recognition: receive results after all audio
+     * has been sent and processed.
+     * 
+ */ + public void recognize( + com.google.cloud.speech.v1.RecognizeRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRecognizeMethod(), responseObserver); + } + + /** + * + * + *
+     * Performs asynchronous speech recognition: receive results via the
+     * google.longrunning.Operations interface. Returns either an
+     * `Operation.error` or an `Operation.response` which contains
+     * a `LongRunningRecognizeResponse` message.
+     * For more information on asynchronous speech recognition, see the
+     * [how-to](https://cloud.google.com/speech-to-text/docs/async-recognize).
+     * 
+ */ + public void longRunningRecognize( + com.google.cloud.speech.v1.LongRunningRecognizeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getLongRunningRecognizeMethod(), responseObserver); + } + + /** + * + * + *
+     * Performs bidirectional streaming speech recognition: receive results while
+     * sending audio. This method is only available via the gRPC API (not REST).
+     * 
+ */ + public io.grpc.stub.StreamObserver + streamingRecognize( + io.grpc.stub.StreamObserver + responseObserver) { + return io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall( + getStreamingRecognizeMethod(), responseObserver); + } + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getRecognizeMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.speech.v1.RecognizeRequest, + com.google.cloud.speech.v1.RecognizeResponse>(this, METHODID_RECOGNIZE))) + .addMethod( + getLongRunningRecognizeMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.speech.v1.LongRunningRecognizeRequest, + com.google.longrunning.Operation>(this, METHODID_LONG_RUNNING_RECOGNIZE))) + .addMethod( + getStreamingRecognizeMethod(), + io.grpc.stub.ServerCalls.asyncBidiStreamingCall( + new MethodHandlers< + com.google.cloud.speech.v1.StreamingRecognizeRequest, + com.google.cloud.speech.v1.StreamingRecognizeResponse>( + this, METHODID_STREAMING_RECOGNIZE))) + .build(); + } + } + + /** + * + * + *
+   * Service that implements Google Cloud Speech API.
+   * 
+ */ + public static final class SpeechStub extends io.grpc.stub.AbstractAsyncStub { + private SpeechStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected SpeechStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SpeechStub(channel, callOptions); + } + + /** + * + * + *
+     * Performs synchronous speech recognition: receive results after all audio
+     * has been sent and processed.
+     * 
+ */ + public void recognize( + com.google.cloud.speech.v1.RecognizeRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getRecognizeMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Performs asynchronous speech recognition: receive results via the
+     * google.longrunning.Operations interface. Returns either an
+     * `Operation.error` or an `Operation.response` which contains
+     * a `LongRunningRecognizeResponse` message.
+     * For more information on asynchronous speech recognition, see the
+     * [how-to](https://cloud.google.com/speech-to-text/docs/async-recognize).
+     * 
+ */ + public void longRunningRecognize( + com.google.cloud.speech.v1.LongRunningRecognizeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getLongRunningRecognizeMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Performs bidirectional streaming speech recognition: receive results while
+     * sending audio. This method is only available via the gRPC API (not REST).
+     * 
+ */ + public io.grpc.stub.StreamObserver + streamingRecognize( + io.grpc.stub.StreamObserver + responseObserver) { + return io.grpc.stub.ClientCalls.asyncBidiStreamingCall( + getChannel().newCall(getStreamingRecognizeMethod(), getCallOptions()), responseObserver); + } + } + + /** + * + * + *
+   * Service that implements Google Cloud Speech API.
+   * 
+ */ + public static final class SpeechBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private SpeechBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected SpeechBlockingStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SpeechBlockingStub(channel, callOptions); + } + + /** + * + * + *
+     * Performs synchronous speech recognition: receive results after all audio
+     * has been sent and processed.
+     * 
+ */ + public com.google.cloud.speech.v1.RecognizeResponse recognize( + com.google.cloud.speech.v1.RecognizeRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getRecognizeMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Performs asynchronous speech recognition: receive results via the
+     * google.longrunning.Operations interface. Returns either an
+     * `Operation.error` or an `Operation.response` which contains
+     * a `LongRunningRecognizeResponse` message.
+     * For more information on asynchronous speech recognition, see the
+     * [how-to](https://cloud.google.com/speech-to-text/docs/async-recognize).
+     * 
+ */ + public com.google.longrunning.Operation longRunningRecognize( + com.google.cloud.speech.v1.LongRunningRecognizeRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getLongRunningRecognizeMethod(), getCallOptions(), request); + } + } + + /** + * + * + *
+   * Service that implements Google Cloud Speech API.
+   * 
+ */ + public static final class SpeechFutureStub + extends io.grpc.stub.AbstractFutureStub { + private SpeechFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected SpeechFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SpeechFutureStub(channel, callOptions); + } + + /** + * + * + *
+     * Performs synchronous speech recognition: receive results after all audio
+     * has been sent and processed.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.speech.v1.RecognizeResponse> + recognize(com.google.cloud.speech.v1.RecognizeRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getRecognizeMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Performs asynchronous speech recognition: receive results via the
+     * google.longrunning.Operations interface. Returns either an
+     * `Operation.error` or an `Operation.response` which contains
+     * a `LongRunningRecognizeResponse` message.
+     * For more information on asynchronous speech recognition, see the
+     * [how-to](https://cloud.google.com/speech-to-text/docs/async-recognize).
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + longRunningRecognize(com.google.cloud.speech.v1.LongRunningRecognizeRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getLongRunningRecognizeMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_RECOGNIZE = 0; + private static final int METHODID_LONG_RUNNING_RECOGNIZE = 1; + private static final int METHODID_STREAMING_RECOGNIZE = 2; + + private static final class MethodHandlers + implements io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final SpeechImplBase serviceImpl; + private final int methodId; + + MethodHandlers(SpeechImplBase serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_RECOGNIZE: + serviceImpl.recognize( + (com.google.cloud.speech.v1.RecognizeRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LONG_RUNNING_RECOGNIZE: + serviceImpl.longRunningRecognize( + (com.google.cloud.speech.v1.LongRunningRecognizeRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_STREAMING_RECOGNIZE: + return (io.grpc.stub.StreamObserver) + serviceImpl.streamingRecognize( + (io.grpc.stub.StreamObserver< + com.google.cloud.speech.v1.StreamingRecognizeResponse>) + responseObserver); + default: + throw new AssertionError(); + } + } + } + + private abstract static class SpeechBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + SpeechBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.speech.v1.SpeechProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("Speech"); + } + } + + private static final class SpeechFileDescriptorSupplier extends SpeechBaseDescriptorSupplier { + SpeechFileDescriptorSupplier() {} + } + + private static final class SpeechMethodDescriptorSupplier extends SpeechBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + SpeechMethodDescriptorSupplier(String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (SpeechGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new SpeechFileDescriptorSupplier()) + .addMethod(getRecognizeMethod()) + .addMethod(getLongRunningRecognizeMethod()) + .addMethod(getStreamingRecognizeMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/grpc-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/AdaptationGrpc.java b/grpc-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/AdaptationGrpc.java new file mode 100644 index 000000000..5a5395620 --- /dev/null +++ b/grpc-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/AdaptationGrpc.java @@ -0,0 +1,1424 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.speech.v1p1beta1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *
+ * Service that implements Google Cloud Speech Adaptation API.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/speech/v1p1beta1/cloud_speech_adaptation.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class AdaptationGrpc { + + private AdaptationGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.speech.v1p1beta1.Adaptation"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest, + com.google.cloud.speech.v1p1beta1.PhraseSet> + getCreatePhraseSetMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreatePhraseSet", + requestType = com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest.class, + responseType = com.google.cloud.speech.v1p1beta1.PhraseSet.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest, + com.google.cloud.speech.v1p1beta1.PhraseSet> + getCreatePhraseSetMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest, + com.google.cloud.speech.v1p1beta1.PhraseSet> + getCreatePhraseSetMethod; + if ((getCreatePhraseSetMethod = AdaptationGrpc.getCreatePhraseSetMethod) == null) { + synchronized (AdaptationGrpc.class) { + if ((getCreatePhraseSetMethod = AdaptationGrpc.getCreatePhraseSetMethod) == null) { + AdaptationGrpc.getCreatePhraseSetMethod = + getCreatePhraseSetMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreatePhraseSet")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v1p1beta1.PhraseSet.getDefaultInstance())) + .setSchemaDescriptor( + new AdaptationMethodDescriptorSupplier("CreatePhraseSet")) + .build(); + } + } + } + return getCreatePhraseSetMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest, + com.google.cloud.speech.v1p1beta1.PhraseSet> + getGetPhraseSetMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetPhraseSet", + requestType = com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest.class, + responseType = com.google.cloud.speech.v1p1beta1.PhraseSet.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest, + com.google.cloud.speech.v1p1beta1.PhraseSet> + getGetPhraseSetMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest, + com.google.cloud.speech.v1p1beta1.PhraseSet> + getGetPhraseSetMethod; + if ((getGetPhraseSetMethod = AdaptationGrpc.getGetPhraseSetMethod) == null) { + synchronized (AdaptationGrpc.class) { + if ((getGetPhraseSetMethod = AdaptationGrpc.getGetPhraseSetMethod) == null) { + AdaptationGrpc.getGetPhraseSetMethod = + getGetPhraseSetMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetPhraseSet")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v1p1beta1.PhraseSet.getDefaultInstance())) + .setSchemaDescriptor(new AdaptationMethodDescriptorSupplier("GetPhraseSet")) + .build(); + } + } + } + return getGetPhraseSetMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest, + com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse> + getListPhraseSetMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListPhraseSet", + requestType = com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest.class, + responseType = com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest, + com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse> + getListPhraseSetMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest, + com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse> + getListPhraseSetMethod; + if ((getListPhraseSetMethod = AdaptationGrpc.getListPhraseSetMethod) == null) { + synchronized (AdaptationGrpc.class) { + if ((getListPhraseSetMethod = AdaptationGrpc.getListPhraseSetMethod) == null) { + AdaptationGrpc.getListPhraseSetMethod = + getListPhraseSetMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListPhraseSet")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse + .getDefaultInstance())) + .setSchemaDescriptor(new AdaptationMethodDescriptorSupplier("ListPhraseSet")) + .build(); + } + } + } + return getListPhraseSetMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest, + com.google.cloud.speech.v1p1beta1.PhraseSet> + getUpdatePhraseSetMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdatePhraseSet", + requestType = com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest.class, + responseType = com.google.cloud.speech.v1p1beta1.PhraseSet.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest, + com.google.cloud.speech.v1p1beta1.PhraseSet> + getUpdatePhraseSetMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest, + com.google.cloud.speech.v1p1beta1.PhraseSet> + getUpdatePhraseSetMethod; + if ((getUpdatePhraseSetMethod = AdaptationGrpc.getUpdatePhraseSetMethod) == null) { + synchronized (AdaptationGrpc.class) { + if ((getUpdatePhraseSetMethod = AdaptationGrpc.getUpdatePhraseSetMethod) == null) { + AdaptationGrpc.getUpdatePhraseSetMethod = + getUpdatePhraseSetMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdatePhraseSet")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v1p1beta1.PhraseSet.getDefaultInstance())) + .setSchemaDescriptor( + new AdaptationMethodDescriptorSupplier("UpdatePhraseSet")) + .build(); + } + } + } + return getUpdatePhraseSetMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest, com.google.protobuf.Empty> + getDeletePhraseSetMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeletePhraseSet", + requestType = com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest, com.google.protobuf.Empty> + getDeletePhraseSetMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest, com.google.protobuf.Empty> + getDeletePhraseSetMethod; + if ((getDeletePhraseSetMethod = AdaptationGrpc.getDeletePhraseSetMethod) == null) { + synchronized (AdaptationGrpc.class) { + if ((getDeletePhraseSetMethod = AdaptationGrpc.getDeletePhraseSetMethod) == null) { + AdaptationGrpc.getDeletePhraseSetMethod = + getDeletePhraseSetMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeletePhraseSet")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new AdaptationMethodDescriptorSupplier("DeletePhraseSet")) + .build(); + } + } + } + return getDeletePhraseSetMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest, + com.google.cloud.speech.v1p1beta1.CustomClass> + getCreateCustomClassMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateCustomClass", + requestType = com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest.class, + responseType = com.google.cloud.speech.v1p1beta1.CustomClass.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest, + com.google.cloud.speech.v1p1beta1.CustomClass> + getCreateCustomClassMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest, + com.google.cloud.speech.v1p1beta1.CustomClass> + getCreateCustomClassMethod; + if ((getCreateCustomClassMethod = AdaptationGrpc.getCreateCustomClassMethod) == null) { + synchronized (AdaptationGrpc.class) { + if ((getCreateCustomClassMethod = AdaptationGrpc.getCreateCustomClassMethod) == null) { + AdaptationGrpc.getCreateCustomClassMethod = + getCreateCustomClassMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateCustomClass")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v1p1beta1.CustomClass.getDefaultInstance())) + .setSchemaDescriptor( + new AdaptationMethodDescriptorSupplier("CreateCustomClass")) + .build(); + } + } + } + return getCreateCustomClassMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.speech.v1p1beta1.GetCustomClassRequest, + com.google.cloud.speech.v1p1beta1.CustomClass> + getGetCustomClassMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetCustomClass", + requestType = com.google.cloud.speech.v1p1beta1.GetCustomClassRequest.class, + responseType = com.google.cloud.speech.v1p1beta1.CustomClass.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.speech.v1p1beta1.GetCustomClassRequest, + com.google.cloud.speech.v1p1beta1.CustomClass> + getGetCustomClassMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.speech.v1p1beta1.GetCustomClassRequest, + com.google.cloud.speech.v1p1beta1.CustomClass> + getGetCustomClassMethod; + if ((getGetCustomClassMethod = AdaptationGrpc.getGetCustomClassMethod) == null) { + synchronized (AdaptationGrpc.class) { + if ((getGetCustomClassMethod = AdaptationGrpc.getGetCustomClassMethod) == null) { + AdaptationGrpc.getGetCustomClassMethod = + getGetCustomClassMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetCustomClass")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v1p1beta1.GetCustomClassRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v1p1beta1.CustomClass.getDefaultInstance())) + .setSchemaDescriptor(new AdaptationMethodDescriptorSupplier("GetCustomClass")) + .build(); + } + } + } + return getGetCustomClassMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest, + com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse> + getListCustomClassesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListCustomClasses", + requestType = com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest.class, + responseType = com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest, + com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse> + getListCustomClassesMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest, + com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse> + getListCustomClassesMethod; + if ((getListCustomClassesMethod = AdaptationGrpc.getListCustomClassesMethod) == null) { + synchronized (AdaptationGrpc.class) { + if ((getListCustomClassesMethod = AdaptationGrpc.getListCustomClassesMethod) == null) { + AdaptationGrpc.getListCustomClassesMethod = + getListCustomClassesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListCustomClasses")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new AdaptationMethodDescriptorSupplier("ListCustomClasses")) + .build(); + } + } + } + return getListCustomClassesMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest, + com.google.cloud.speech.v1p1beta1.CustomClass> + getUpdateCustomClassMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateCustomClass", + requestType = com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest.class, + responseType = com.google.cloud.speech.v1p1beta1.CustomClass.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest, + com.google.cloud.speech.v1p1beta1.CustomClass> + getUpdateCustomClassMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest, + com.google.cloud.speech.v1p1beta1.CustomClass> + getUpdateCustomClassMethod; + if ((getUpdateCustomClassMethod = AdaptationGrpc.getUpdateCustomClassMethod) == null) { + synchronized (AdaptationGrpc.class) { + if ((getUpdateCustomClassMethod = AdaptationGrpc.getUpdateCustomClassMethod) == null) { + AdaptationGrpc.getUpdateCustomClassMethod = + getUpdateCustomClassMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateCustomClass")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v1p1beta1.CustomClass.getDefaultInstance())) + .setSchemaDescriptor( + new AdaptationMethodDescriptorSupplier("UpdateCustomClass")) + .build(); + } + } + } + return getUpdateCustomClassMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest, com.google.protobuf.Empty> + getDeleteCustomClassMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteCustomClass", + requestType = com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest, com.google.protobuf.Empty> + getDeleteCustomClassMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest, com.google.protobuf.Empty> + getDeleteCustomClassMethod; + if ((getDeleteCustomClassMethod = AdaptationGrpc.getDeleteCustomClassMethod) == null) { + synchronized (AdaptationGrpc.class) { + if ((getDeleteCustomClassMethod = AdaptationGrpc.getDeleteCustomClassMethod) == null) { + AdaptationGrpc.getDeleteCustomClassMethod = + getDeleteCustomClassMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteCustomClass")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new AdaptationMethodDescriptorSupplier("DeleteCustomClass")) + .build(); + } + } + } + return getDeleteCustomClassMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static AdaptationStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public AdaptationStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AdaptationStub(channel, callOptions); + } + }; + return AdaptationStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static AdaptationBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public AdaptationBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AdaptationBlockingStub(channel, callOptions); + } + }; + return AdaptationBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static AdaptationFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public AdaptationFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AdaptationFutureStub(channel, callOptions); + } + }; + return AdaptationFutureStub.newStub(factory, channel); + } + + /** + * + * + *
+   * Service that implements Google Cloud Speech Adaptation API.
+   * 
+ */ + public abstract static class AdaptationImplBase implements io.grpc.BindableService { + + /** + * + * + *
+     * Create a set of phrase hints. Each item in the set can be a single word or
+     * a multi-word phrase. The items in the PhraseSet are favored by the
+     * recognition model when you send a call that includes the PhraseSet.
+     * 
+ */ + public void createPhraseSet( + com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreatePhraseSetMethod(), responseObserver); + } + + /** + * + * + *
+     * Get a phrase set.
+     * 
+ */ + public void getPhraseSet( + com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetPhraseSetMethod(), responseObserver); + } + + /** + * + * + *
+     * List phrase sets.
+     * 
+ */ + public void listPhraseSet( + com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListPhraseSetMethod(), responseObserver); + } + + /** + * + * + *
+     * Update a phrase set.
+     * 
+ */ + public void updatePhraseSet( + com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdatePhraseSetMethod(), responseObserver); + } + + /** + * + * + *
+     * Delete a phrase set.
+     * 
+ */ + public void deletePhraseSet( + com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeletePhraseSetMethod(), responseObserver); + } + + /** + * + * + *
+     * Create a custom class.
+     * 
+ */ + public void createCustomClass( + com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateCustomClassMethod(), responseObserver); + } + + /** + * + * + *
+     * Get a custom class.
+     * 
+ */ + public void getCustomClass( + com.google.cloud.speech.v1p1beta1.GetCustomClassRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetCustomClassMethod(), responseObserver); + } + + /** + * + * + *
+     * List custom classes.
+     * 
+ */ + public void listCustomClasses( + com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListCustomClassesMethod(), responseObserver); + } + + /** + * + * + *
+     * Update a custom class.
+     * 
+ */ + public void updateCustomClass( + com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateCustomClassMethod(), responseObserver); + } + + /** + * + * + *
+     * Delete a custom class.
+     * 
+ */ + public void deleteCustomClass( + com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteCustomClassMethod(), responseObserver); + } + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getCreatePhraseSetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest, + com.google.cloud.speech.v1p1beta1.PhraseSet>( + this, METHODID_CREATE_PHRASE_SET))) + .addMethod( + getGetPhraseSetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest, + com.google.cloud.speech.v1p1beta1.PhraseSet>(this, METHODID_GET_PHRASE_SET))) + .addMethod( + getListPhraseSetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest, + com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse>( + this, METHODID_LIST_PHRASE_SET))) + .addMethod( + getUpdatePhraseSetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest, + com.google.cloud.speech.v1p1beta1.PhraseSet>( + this, METHODID_UPDATE_PHRASE_SET))) + .addMethod( + getDeletePhraseSetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest, + com.google.protobuf.Empty>(this, METHODID_DELETE_PHRASE_SET))) + .addMethod( + getCreateCustomClassMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest, + com.google.cloud.speech.v1p1beta1.CustomClass>( + this, METHODID_CREATE_CUSTOM_CLASS))) + .addMethod( + getGetCustomClassMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.speech.v1p1beta1.GetCustomClassRequest, + com.google.cloud.speech.v1p1beta1.CustomClass>( + this, METHODID_GET_CUSTOM_CLASS))) + .addMethod( + getListCustomClassesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest, + com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse>( + this, METHODID_LIST_CUSTOM_CLASSES))) + .addMethod( + getUpdateCustomClassMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest, + com.google.cloud.speech.v1p1beta1.CustomClass>( + this, METHODID_UPDATE_CUSTOM_CLASS))) + .addMethod( + getDeleteCustomClassMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest, + com.google.protobuf.Empty>(this, METHODID_DELETE_CUSTOM_CLASS))) + .build(); + } + } + + /** + * + * + *
+   * Service that implements Google Cloud Speech Adaptation API.
+   * 
+ */ + public static final class AdaptationStub extends io.grpc.stub.AbstractAsyncStub { + private AdaptationStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected AdaptationStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AdaptationStub(channel, callOptions); + } + + /** + * + * + *
+     * Create a set of phrase hints. Each item in the set can be a single word or
+     * a multi-word phrase. The items in the PhraseSet are favored by the
+     * recognition model when you send a call that includes the PhraseSet.
+     * 
+ */ + public void createPhraseSet( + com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreatePhraseSetMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Get a phrase set.
+     * 
+ */ + public void getPhraseSet( + com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetPhraseSetMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * List phrase sets.
+     * 
+ */ + public void listPhraseSet( + com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListPhraseSetMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Update a phrase set.
+     * 
+ */ + public void updatePhraseSet( + com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdatePhraseSetMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Delete a phrase set.
+     * 
+ */ + public void deletePhraseSet( + com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeletePhraseSetMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Create a custom class.
+     * 
+ */ + public void createCustomClass( + com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateCustomClassMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Get a custom class.
+     * 
+ */ + public void getCustomClass( + com.google.cloud.speech.v1p1beta1.GetCustomClassRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetCustomClassMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * List custom classes.
+     * 
+ */ + public void listCustomClasses( + com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListCustomClassesMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Update a custom class.
+     * 
+ */ + public void updateCustomClass( + com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateCustomClassMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Delete a custom class.
+     * 
+ */ + public void deleteCustomClass( + com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteCustomClassMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * + * + *
+   * Service that implements Google Cloud Speech Adaptation API.
+   * 
+ */ + public static final class AdaptationBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private AdaptationBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected AdaptationBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AdaptationBlockingStub(channel, callOptions); + } + + /** + * + * + *
+     * Create a set of phrase hints. Each item in the set can be a single word or
+     * a multi-word phrase. The items in the PhraseSet are favored by the
+     * recognition model when you send a call that includes the PhraseSet.
+     * 
+ */ + public com.google.cloud.speech.v1p1beta1.PhraseSet createPhraseSet( + com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreatePhraseSetMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Get a phrase set.
+     * 
+ */ + public com.google.cloud.speech.v1p1beta1.PhraseSet getPhraseSet( + com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetPhraseSetMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * List phrase sets.
+     * 
+ */ + public com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse listPhraseSet( + com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListPhraseSetMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Update a phrase set.
+     * 
+ */ + public com.google.cloud.speech.v1p1beta1.PhraseSet updatePhraseSet( + com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdatePhraseSetMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Delete a phrase set.
+     * 
+ */ + public com.google.protobuf.Empty deletePhraseSet( + com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeletePhraseSetMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Create a custom class.
+     * 
+ */ + public com.google.cloud.speech.v1p1beta1.CustomClass createCustomClass( + com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateCustomClassMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Get a custom class.
+     * 
+ */ + public com.google.cloud.speech.v1p1beta1.CustomClass getCustomClass( + com.google.cloud.speech.v1p1beta1.GetCustomClassRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetCustomClassMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * List custom classes.
+     * 
+ */ + public com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse listCustomClasses( + com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListCustomClassesMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Update a custom class.
+     * 
+ */ + public com.google.cloud.speech.v1p1beta1.CustomClass updateCustomClass( + com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateCustomClassMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Delete a custom class.
+     * 
+ */ + public com.google.protobuf.Empty deleteCustomClass( + com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteCustomClassMethod(), getCallOptions(), request); + } + } + + /** + * + * + *
+   * Service that implements Google Cloud Speech Adaptation API.
+   * 
+ */ + public static final class AdaptationFutureStub + extends io.grpc.stub.AbstractFutureStub { + private AdaptationFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected AdaptationFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AdaptationFutureStub(channel, callOptions); + } + + /** + * + * + *
+     * Create a set of phrase hints. Each item in the set can be a single word or
+     * a multi-word phrase. The items in the PhraseSet are favored by the
+     * recognition model when you send a call that includes the PhraseSet.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.speech.v1p1beta1.PhraseSet> + createPhraseSet(com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreatePhraseSetMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Get a phrase set.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.speech.v1p1beta1.PhraseSet> + getPhraseSet(com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetPhraseSetMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * List phrase sets.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse> + listPhraseSet(com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListPhraseSetMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Update a phrase set.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.speech.v1p1beta1.PhraseSet> + updatePhraseSet(com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdatePhraseSetMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Delete a phrase set.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deletePhraseSet(com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeletePhraseSetMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Create a custom class.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.speech.v1p1beta1.CustomClass> + createCustomClass(com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateCustomClassMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Get a custom class.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.speech.v1p1beta1.CustomClass> + getCustomClass(com.google.cloud.speech.v1p1beta1.GetCustomClassRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetCustomClassMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * List custom classes.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse> + listCustomClasses(com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListCustomClassesMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Update a custom class.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.speech.v1p1beta1.CustomClass> + updateCustomClass(com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateCustomClassMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Delete a custom class.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteCustomClass(com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteCustomClassMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_CREATE_PHRASE_SET = 0; + private static final int METHODID_GET_PHRASE_SET = 1; + private static final int METHODID_LIST_PHRASE_SET = 2; + private static final int METHODID_UPDATE_PHRASE_SET = 3; + private static final int METHODID_DELETE_PHRASE_SET = 4; + private static final int METHODID_CREATE_CUSTOM_CLASS = 5; + private static final int METHODID_GET_CUSTOM_CLASS = 6; + private static final int METHODID_LIST_CUSTOM_CLASSES = 7; + private static final int METHODID_UPDATE_CUSTOM_CLASS = 8; + private static final int METHODID_DELETE_CUSTOM_CLASS = 9; + + private static final class MethodHandlers + implements io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final AdaptationImplBase serviceImpl; + private final int methodId; + + MethodHandlers(AdaptationImplBase serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_CREATE_PHRASE_SET: + serviceImpl.createPhraseSet( + (com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_PHRASE_SET: + serviceImpl.getPhraseSet( + (com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_PHRASE_SET: + serviceImpl.listPhraseSet( + (com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_UPDATE_PHRASE_SET: + serviceImpl.updatePhraseSet( + (com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_DELETE_PHRASE_SET: + serviceImpl.deletePhraseSet( + (com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_CUSTOM_CLASS: + serviceImpl.createCustomClass( + (com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_CUSTOM_CLASS: + serviceImpl.getCustomClass( + (com.google.cloud.speech.v1p1beta1.GetCustomClassRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_CUSTOM_CLASSES: + serviceImpl.listCustomClasses( + (com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse>) + responseObserver); + break; + case METHODID_UPDATE_CUSTOM_CLASS: + serviceImpl.updateCustomClass( + (com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_DELETE_CUSTOM_CLASS: + serviceImpl.deleteCustomClass( + (com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + private abstract static class AdaptationBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + AdaptationBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("Adaptation"); + } + } + + private static final class AdaptationFileDescriptorSupplier + extends AdaptationBaseDescriptorSupplier { + AdaptationFileDescriptorSupplier() {} + } + + private static final class AdaptationMethodDescriptorSupplier + extends AdaptationBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + AdaptationMethodDescriptorSupplier(String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (AdaptationGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new AdaptationFileDescriptorSupplier()) + .addMethod(getCreatePhraseSetMethod()) + .addMethod(getGetPhraseSetMethod()) + .addMethod(getListPhraseSetMethod()) + .addMethod(getUpdatePhraseSetMethod()) + .addMethod(getDeletePhraseSetMethod()) + .addMethod(getCreateCustomClassMethod()) + .addMethod(getGetCustomClassMethod()) + .addMethod(getListCustomClassesMethod()) + .addMethod(getUpdateCustomClassMethod()) + .addMethod(getDeleteCustomClassMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/grpc-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechGrpc.java b/grpc-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechGrpc.java new file mode 100644 index 000000000..c3bc87f0f --- /dev/null +++ b/grpc-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechGrpc.java @@ -0,0 +1,589 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.speech.v1p1beta1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *
+ * Service that implements Google Cloud Speech API.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/speech/v1p1beta1/cloud_speech.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class SpeechGrpc { + + private SpeechGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.speech.v1p1beta1.Speech"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.speech.v1p1beta1.RecognizeRequest, + com.google.cloud.speech.v1p1beta1.RecognizeResponse> + getRecognizeMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "Recognize", + requestType = com.google.cloud.speech.v1p1beta1.RecognizeRequest.class, + responseType = com.google.cloud.speech.v1p1beta1.RecognizeResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.speech.v1p1beta1.RecognizeRequest, + com.google.cloud.speech.v1p1beta1.RecognizeResponse> + getRecognizeMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.speech.v1p1beta1.RecognizeRequest, + com.google.cloud.speech.v1p1beta1.RecognizeResponse> + getRecognizeMethod; + if ((getRecognizeMethod = SpeechGrpc.getRecognizeMethod) == null) { + synchronized (SpeechGrpc.class) { + if ((getRecognizeMethod = SpeechGrpc.getRecognizeMethod) == null) { + SpeechGrpc.getRecognizeMethod = + getRecognizeMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Recognize")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v1p1beta1.RecognizeRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v1p1beta1.RecognizeResponse + .getDefaultInstance())) + .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("Recognize")) + .build(); + } + } + } + return getRecognizeMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest, + com.google.longrunning.Operation> + getLongRunningRecognizeMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "LongRunningRecognize", + requestType = com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest, + com.google.longrunning.Operation> + getLongRunningRecognizeMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest, + com.google.longrunning.Operation> + getLongRunningRecognizeMethod; + if ((getLongRunningRecognizeMethod = SpeechGrpc.getLongRunningRecognizeMethod) == null) { + synchronized (SpeechGrpc.class) { + if ((getLongRunningRecognizeMethod = SpeechGrpc.getLongRunningRecognizeMethod) == null) { + SpeechGrpc.getLongRunningRecognizeMethod = + getLongRunningRecognizeMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "LongRunningRecognize")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new SpeechMethodDescriptorSupplier("LongRunningRecognize")) + .build(); + } + } + } + return getLongRunningRecognizeMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest, + com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse> + getStreamingRecognizeMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "StreamingRecognize", + requestType = com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest.class, + responseType = com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING) + public static io.grpc.MethodDescriptor< + com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest, + com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse> + getStreamingRecognizeMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest, + com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse> + getStreamingRecognizeMethod; + if ((getStreamingRecognizeMethod = SpeechGrpc.getStreamingRecognizeMethod) == null) { + synchronized (SpeechGrpc.class) { + if ((getStreamingRecognizeMethod = SpeechGrpc.getStreamingRecognizeMethod) == null) { + SpeechGrpc.getStreamingRecognizeMethod = + getStreamingRecognizeMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StreamingRecognize")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse + .getDefaultInstance())) + .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("StreamingRecognize")) + .build(); + } + } + } + return getStreamingRecognizeMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static SpeechStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public SpeechStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SpeechStub(channel, callOptions); + } + }; + return SpeechStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static SpeechBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public SpeechBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SpeechBlockingStub(channel, callOptions); + } + }; + return SpeechBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static SpeechFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public SpeechFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SpeechFutureStub(channel, callOptions); + } + }; + return SpeechFutureStub.newStub(factory, channel); + } + + /** + * + * + *
+   * Service that implements Google Cloud Speech API.
+   * 
+ */ + public abstract static class SpeechImplBase implements io.grpc.BindableService { + + /** + * + * + *
+     * Performs synchronous speech recognition: receive results after all audio
+     * has been sent and processed.
+     * 
+ */ + public void recognize( + com.google.cloud.speech.v1p1beta1.RecognizeRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRecognizeMethod(), responseObserver); + } + + /** + * + * + *
+     * Performs asynchronous speech recognition: receive results via the
+     * google.longrunning.Operations interface. Returns either an
+     * `Operation.error` or an `Operation.response` which contains
+     * a `LongRunningRecognizeResponse` message.
+     * For more information on asynchronous speech recognition, see the
+     * [how-to](https://cloud.google.com/speech-to-text/docs/async-recognize).
+     * 
+ */ + public void longRunningRecognize( + com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getLongRunningRecognizeMethod(), responseObserver); + } + + /** + * + * + *
+     * Performs bidirectional streaming speech recognition: receive results while
+     * sending audio. This method is only available via the gRPC API (not REST).
+     * 
+ */ + public io.grpc.stub.StreamObserver + streamingRecognize( + io.grpc.stub.StreamObserver< + com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse> + responseObserver) { + return io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall( + getStreamingRecognizeMethod(), responseObserver); + } + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getRecognizeMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.speech.v1p1beta1.RecognizeRequest, + com.google.cloud.speech.v1p1beta1.RecognizeResponse>( + this, METHODID_RECOGNIZE))) + .addMethod( + getLongRunningRecognizeMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest, + com.google.longrunning.Operation>(this, METHODID_LONG_RUNNING_RECOGNIZE))) + .addMethod( + getStreamingRecognizeMethod(), + io.grpc.stub.ServerCalls.asyncBidiStreamingCall( + new MethodHandlers< + com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest, + com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse>( + this, METHODID_STREAMING_RECOGNIZE))) + .build(); + } + } + + /** + * + * + *
+   * Service that implements Google Cloud Speech API.
+   * 
+ */ + public static final class SpeechStub extends io.grpc.stub.AbstractAsyncStub { + private SpeechStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected SpeechStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SpeechStub(channel, callOptions); + } + + /** + * + * + *
+     * Performs synchronous speech recognition: receive results after all audio
+     * has been sent and processed.
+     * 
+ */ + public void recognize( + com.google.cloud.speech.v1p1beta1.RecognizeRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getRecognizeMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Performs asynchronous speech recognition: receive results via the
+     * google.longrunning.Operations interface. Returns either an
+     * `Operation.error` or an `Operation.response` which contains
+     * a `LongRunningRecognizeResponse` message.
+     * For more information on asynchronous speech recognition, see the
+     * [how-to](https://cloud.google.com/speech-to-text/docs/async-recognize).
+     * 
+ */ + public void longRunningRecognize( + com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getLongRunningRecognizeMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Performs bidirectional streaming speech recognition: receive results while
+     * sending audio. This method is only available via the gRPC API (not REST).
+     * 
+ */ + public io.grpc.stub.StreamObserver + streamingRecognize( + io.grpc.stub.StreamObserver< + com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse> + responseObserver) { + return io.grpc.stub.ClientCalls.asyncBidiStreamingCall( + getChannel().newCall(getStreamingRecognizeMethod(), getCallOptions()), responseObserver); + } + } + + /** + * + * + *
+   * Service that implements Google Cloud Speech API.
+   * 
+ */ + public static final class SpeechBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private SpeechBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected SpeechBlockingStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SpeechBlockingStub(channel, callOptions); + } + + /** + * + * + *
+     * Performs synchronous speech recognition: receive results after all audio
+     * has been sent and processed.
+     * 
+ */ + public com.google.cloud.speech.v1p1beta1.RecognizeResponse recognize( + com.google.cloud.speech.v1p1beta1.RecognizeRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getRecognizeMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Performs asynchronous speech recognition: receive results via the
+     * google.longrunning.Operations interface. Returns either an
+     * `Operation.error` or an `Operation.response` which contains
+     * a `LongRunningRecognizeResponse` message.
+     * For more information on asynchronous speech recognition, see the
+     * [how-to](https://cloud.google.com/speech-to-text/docs/async-recognize).
+     * 
+ */ + public com.google.longrunning.Operation longRunningRecognize( + com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getLongRunningRecognizeMethod(), getCallOptions(), request); + } + } + + /** + * + * + *
+   * Service that implements Google Cloud Speech API.
+   * 
+ */ + public static final class SpeechFutureStub + extends io.grpc.stub.AbstractFutureStub { + private SpeechFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected SpeechFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SpeechFutureStub(channel, callOptions); + } + + /** + * + * + *
+     * Performs synchronous speech recognition: receive results after all audio
+     * has been sent and processed.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.speech.v1p1beta1.RecognizeResponse> + recognize(com.google.cloud.speech.v1p1beta1.RecognizeRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getRecognizeMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Performs asynchronous speech recognition: receive results via the
+     * google.longrunning.Operations interface. Returns either an
+     * `Operation.error` or an `Operation.response` which contains
+     * a `LongRunningRecognizeResponse` message.
+     * For more information on asynchronous speech recognition, see the
+     * [how-to](https://cloud.google.com/speech-to-text/docs/async-recognize).
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + longRunningRecognize( + com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getLongRunningRecognizeMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_RECOGNIZE = 0; + private static final int METHODID_LONG_RUNNING_RECOGNIZE = 1; + private static final int METHODID_STREAMING_RECOGNIZE = 2; + + private static final class MethodHandlers + implements io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final SpeechImplBase serviceImpl; + private final int methodId; + + MethodHandlers(SpeechImplBase serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_RECOGNIZE: + serviceImpl.recognize( + (com.google.cloud.speech.v1p1beta1.RecognizeRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LONG_RUNNING_RECOGNIZE: + serviceImpl.longRunningRecognize( + (com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_STREAMING_RECOGNIZE: + return (io.grpc.stub.StreamObserver) + serviceImpl.streamingRecognize( + (io.grpc.stub.StreamObserver< + com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse>) + responseObserver); + default: + throw new AssertionError(); + } + } + } + + private abstract static class SpeechBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + SpeechBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("Speech"); + } + } + + private static final class SpeechFileDescriptorSupplier extends SpeechBaseDescriptorSupplier { + SpeechFileDescriptorSupplier() {} + } + + private static final class SpeechMethodDescriptorSupplier extends SpeechBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + SpeechMethodDescriptorSupplier(String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (SpeechGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new SpeechFileDescriptorSupplier()) + .addMethod(getRecognizeMethod()) + .addMethod(getLongRunningRecognizeMethod()) + .addMethod(getStreamingRecognizeMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/owl-bot-staging/v1/grpc-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechGrpc.java b/owl-bot-staging/v1/grpc-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechGrpc.java deleted file mode 100644 index 46b71822a..000000000 --- a/owl-bot-staging/v1/grpc-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechGrpc.java +++ /dev/null @@ -1,479 +0,0 @@ -package com.google.cloud.speech.v1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - *
- * Service that implements Google Cloud Speech API.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/speech/v1/cloud_speech.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class SpeechGrpc { - - private SpeechGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.speech.v1.Speech"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor getRecognizeMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "Recognize", - requestType = com.google.cloud.speech.v1.RecognizeRequest.class, - responseType = com.google.cloud.speech.v1.RecognizeResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getRecognizeMethod() { - io.grpc.MethodDescriptor getRecognizeMethod; - if ((getRecognizeMethod = SpeechGrpc.getRecognizeMethod) == null) { - synchronized (SpeechGrpc.class) { - if ((getRecognizeMethod = SpeechGrpc.getRecognizeMethod) == null) { - SpeechGrpc.getRecognizeMethod = getRecognizeMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Recognize")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v1.RecognizeRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v1.RecognizeResponse.getDefaultInstance())) - .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("Recognize")) - .build(); - } - } - } - return getRecognizeMethod; - } - - private static volatile io.grpc.MethodDescriptor getLongRunningRecognizeMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "LongRunningRecognize", - requestType = com.google.cloud.speech.v1.LongRunningRecognizeRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getLongRunningRecognizeMethod() { - io.grpc.MethodDescriptor getLongRunningRecognizeMethod; - if ((getLongRunningRecognizeMethod = SpeechGrpc.getLongRunningRecognizeMethod) == null) { - synchronized (SpeechGrpc.class) { - if ((getLongRunningRecognizeMethod = SpeechGrpc.getLongRunningRecognizeMethod) == null) { - SpeechGrpc.getLongRunningRecognizeMethod = getLongRunningRecognizeMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "LongRunningRecognize")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v1.LongRunningRecognizeRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("LongRunningRecognize")) - .build(); - } - } - } - return getLongRunningRecognizeMethod; - } - - private static volatile io.grpc.MethodDescriptor getStreamingRecognizeMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "StreamingRecognize", - requestType = com.google.cloud.speech.v1.StreamingRecognizeRequest.class, - responseType = com.google.cloud.speech.v1.StreamingRecognizeResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING) - public static io.grpc.MethodDescriptor getStreamingRecognizeMethod() { - io.grpc.MethodDescriptor getStreamingRecognizeMethod; - if ((getStreamingRecognizeMethod = SpeechGrpc.getStreamingRecognizeMethod) == null) { - synchronized (SpeechGrpc.class) { - if ((getStreamingRecognizeMethod = SpeechGrpc.getStreamingRecognizeMethod) == null) { - SpeechGrpc.getStreamingRecognizeMethod = getStreamingRecognizeMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StreamingRecognize")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v1.StreamingRecognizeRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v1.StreamingRecognizeResponse.getDefaultInstance())) - .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("StreamingRecognize")) - .build(); - } - } - } - return getStreamingRecognizeMethod; - } - - /** - * Creates a new async stub that supports all call types for the service - */ - public static SpeechStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public SpeechStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SpeechStub(channel, callOptions); - } - }; - return SpeechStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static SpeechBlockingStub newBlockingStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public SpeechBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SpeechBlockingStub(channel, callOptions); - } - }; - return SpeechBlockingStub.newStub(factory, channel); - } - - /** - * Creates a new ListenableFuture-style stub that supports unary calls on the service - */ - public static SpeechFutureStub newFutureStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public SpeechFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SpeechFutureStub(channel, callOptions); - } - }; - return SpeechFutureStub.newStub(factory, channel); - } - - /** - *
-   * Service that implements Google Cloud Speech API.
-   * 
- */ - public static abstract class SpeechImplBase implements io.grpc.BindableService { - - /** - *
-     * Performs synchronous speech recognition: receive results after all audio
-     * has been sent and processed.
-     * 
- */ - public void recognize(com.google.cloud.speech.v1.RecognizeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRecognizeMethod(), responseObserver); - } - - /** - *
-     * Performs asynchronous speech recognition: receive results via the
-     * google.longrunning.Operations interface. Returns either an
-     * `Operation.error` or an `Operation.response` which contains
-     * a `LongRunningRecognizeResponse` message.
-     * For more information on asynchronous speech recognition, see the
-     * [how-to](https://cloud.google.com/speech-to-text/docs/async-recognize).
-     * 
- */ - public void longRunningRecognize(com.google.cloud.speech.v1.LongRunningRecognizeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getLongRunningRecognizeMethod(), responseObserver); - } - - /** - *
-     * Performs bidirectional streaming speech recognition: receive results while
-     * sending audio. This method is only available via the gRPC API (not REST).
-     * 
- */ - public io.grpc.stub.StreamObserver streamingRecognize( - io.grpc.stub.StreamObserver responseObserver) { - return io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall(getStreamingRecognizeMethod(), responseObserver); - } - - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getRecognizeMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.speech.v1.RecognizeRequest, - com.google.cloud.speech.v1.RecognizeResponse>( - this, METHODID_RECOGNIZE))) - .addMethod( - getLongRunningRecognizeMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.speech.v1.LongRunningRecognizeRequest, - com.google.longrunning.Operation>( - this, METHODID_LONG_RUNNING_RECOGNIZE))) - .addMethod( - getStreamingRecognizeMethod(), - io.grpc.stub.ServerCalls.asyncBidiStreamingCall( - new MethodHandlers< - com.google.cloud.speech.v1.StreamingRecognizeRequest, - com.google.cloud.speech.v1.StreamingRecognizeResponse>( - this, METHODID_STREAMING_RECOGNIZE))) - .build(); - } - } - - /** - *
-   * Service that implements Google Cloud Speech API.
-   * 
- */ - public static final class SpeechStub extends io.grpc.stub.AbstractAsyncStub { - private SpeechStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected SpeechStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SpeechStub(channel, callOptions); - } - - /** - *
-     * Performs synchronous speech recognition: receive results after all audio
-     * has been sent and processed.
-     * 
- */ - public void recognize(com.google.cloud.speech.v1.RecognizeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getRecognizeMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Performs asynchronous speech recognition: receive results via the
-     * google.longrunning.Operations interface. Returns either an
-     * `Operation.error` or an `Operation.response` which contains
-     * a `LongRunningRecognizeResponse` message.
-     * For more information on asynchronous speech recognition, see the
-     * [how-to](https://cloud.google.com/speech-to-text/docs/async-recognize).
-     * 
- */ - public void longRunningRecognize(com.google.cloud.speech.v1.LongRunningRecognizeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getLongRunningRecognizeMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Performs bidirectional streaming speech recognition: receive results while
-     * sending audio. This method is only available via the gRPC API (not REST).
-     * 
- */ - public io.grpc.stub.StreamObserver streamingRecognize( - io.grpc.stub.StreamObserver responseObserver) { - return io.grpc.stub.ClientCalls.asyncBidiStreamingCall( - getChannel().newCall(getStreamingRecognizeMethod(), getCallOptions()), responseObserver); - } - } - - /** - *
-   * Service that implements Google Cloud Speech API.
-   * 
- */ - public static final class SpeechBlockingStub extends io.grpc.stub.AbstractBlockingStub { - private SpeechBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected SpeechBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SpeechBlockingStub(channel, callOptions); - } - - /** - *
-     * Performs synchronous speech recognition: receive results after all audio
-     * has been sent and processed.
-     * 
- */ - public com.google.cloud.speech.v1.RecognizeResponse recognize(com.google.cloud.speech.v1.RecognizeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getRecognizeMethod(), getCallOptions(), request); - } - - /** - *
-     * Performs asynchronous speech recognition: receive results via the
-     * google.longrunning.Operations interface. Returns either an
-     * `Operation.error` or an `Operation.response` which contains
-     * a `LongRunningRecognizeResponse` message.
-     * For more information on asynchronous speech recognition, see the
-     * [how-to](https://cloud.google.com/speech-to-text/docs/async-recognize).
-     * 
- */ - public com.google.longrunning.Operation longRunningRecognize(com.google.cloud.speech.v1.LongRunningRecognizeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getLongRunningRecognizeMethod(), getCallOptions(), request); - } - } - - /** - *
-   * Service that implements Google Cloud Speech API.
-   * 
- */ - public static final class SpeechFutureStub extends io.grpc.stub.AbstractFutureStub { - private SpeechFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected SpeechFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SpeechFutureStub(channel, callOptions); - } - - /** - *
-     * Performs synchronous speech recognition: receive results after all audio
-     * has been sent and processed.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture recognize( - com.google.cloud.speech.v1.RecognizeRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getRecognizeMethod(), getCallOptions()), request); - } - - /** - *
-     * Performs asynchronous speech recognition: receive results via the
-     * google.longrunning.Operations interface. Returns either an
-     * `Operation.error` or an `Operation.response` which contains
-     * a `LongRunningRecognizeResponse` message.
-     * For more information on asynchronous speech recognition, see the
-     * [how-to](https://cloud.google.com/speech-to-text/docs/async-recognize).
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture longRunningRecognize( - com.google.cloud.speech.v1.LongRunningRecognizeRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getLongRunningRecognizeMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_RECOGNIZE = 0; - private static final int METHODID_LONG_RUNNING_RECOGNIZE = 1; - private static final int METHODID_STREAMING_RECOGNIZE = 2; - - private static final class MethodHandlers implements - io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final SpeechImplBase serviceImpl; - private final int methodId; - - MethodHandlers(SpeechImplBase serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_RECOGNIZE: - serviceImpl.recognize((com.google.cloud.speech.v1.RecognizeRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LONG_RUNNING_RECOGNIZE: - serviceImpl.longRunningRecognize((com.google.cloud.speech.v1.LongRunningRecognizeRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_STREAMING_RECOGNIZE: - return (io.grpc.stub.StreamObserver) serviceImpl.streamingRecognize( - (io.grpc.stub.StreamObserver) responseObserver); - default: - throw new AssertionError(); - } - } - } - - private static abstract class SpeechBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { - SpeechBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.speech.v1.SpeechProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("Speech"); - } - } - - private static final class SpeechFileDescriptorSupplier - extends SpeechBaseDescriptorSupplier { - SpeechFileDescriptorSupplier() {} - } - - private static final class SpeechMethodDescriptorSupplier - extends SpeechBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - SpeechMethodDescriptorSupplier(String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (SpeechGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new SpeechFileDescriptorSupplier()) - .addMethod(getRecognizeMethod()) - .addMethod(getLongRunningRecognizeMethod()) - .addMethod(getStreamingRecognizeMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeRequestOrBuilder.java deleted file mode 100644 index 5811af703..000000000 --- a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeRequestOrBuilder.java +++ /dev/null @@ -1,66 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/speech/v1/cloud_speech.proto - -package com.google.cloud.speech.v1; - -public interface RecognizeRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1.RecognizeRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Provides information to the recognizer that specifies how to
-   * process the request.
-   * 
- * - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the config field is set. - */ - boolean hasConfig(); - /** - *
-   * Required. Provides information to the recognizer that specifies how to
-   * process the request.
-   * 
- * - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The config. - */ - com.google.cloud.speech.v1.RecognitionConfig getConfig(); - /** - *
-   * Required. Provides information to the recognizer that specifies how to
-   * process the request.
-   * 
- * - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - com.google.cloud.speech.v1.RecognitionConfigOrBuilder getConfigOrBuilder(); - - /** - *
-   * Required. The audio data to be recognized.
-   * 
- * - * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the audio field is set. - */ - boolean hasAudio(); - /** - *
-   * Required. The audio data to be recognized.
-   * 
- * - * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The audio. - */ - com.google.cloud.speech.v1.RecognitionAudio getAudio(); - /** - *
-   * Required. The audio data to be recognized.
-   * 
- * - * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - com.google.cloud.speech.v1.RecognitionAudioOrBuilder getAudioOrBuilder(); -} diff --git a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechProto.java b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechProto.java deleted file mode 100644 index eb13ab171..000000000 --- a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechProto.java +++ /dev/null @@ -1,406 +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 final class SpeechProto { - private SpeechProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1_RecognizeRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1_RecognizeRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1_LongRunningRecognizeRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1_LongRunningRecognizeRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1_TranscriptOutputConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1_TranscriptOutputConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1_StreamingRecognizeRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1_StreamingRecognizeRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1_StreamingRecognitionConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1_StreamingRecognitionConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1_RecognitionConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1_RecognitionConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1_SpeakerDiarizationConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1_SpeakerDiarizationConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1_RecognitionMetadata_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1_RecognitionMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1_SpeechContext_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1_SpeechContext_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1_RecognitionAudio_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1_RecognitionAudio_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1_RecognizeResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1_RecognizeResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1_LongRunningRecognizeResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1_LongRunningRecognizeResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1_LongRunningRecognizeMetadata_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1_LongRunningRecognizeMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1_StreamingRecognizeResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1_StreamingRecognizeResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1_StreamingRecognitionResult_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1_StreamingRecognitionResult_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1_SpeechRecognitionResult_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1_SpeechRecognitionResult_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1_SpeechRecognitionAlternative_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1_SpeechRecognitionAlternative_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1_WordInfo_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1_WordInfo_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n)google/cloud/speech/v1/cloud_speech.pr" + - "oto\022\026google.cloud.speech.v1\032\034google/api/" + - "annotations.proto\032\027google/api/client.pro" + - "to\032\037google/api/field_behavior.proto\032%goo" + - "gle/cloud/speech/v1/resource.proto\032#goog" + - "le/longrunning/operations.proto\032\036google/" + - "protobuf/duration.proto\032\037google/protobuf" + - "/timestamp.proto\032\036google/protobuf/wrappe" + - "rs.proto\032\027google/rpc/status.proto\"\220\001\n\020Re" + - "cognizeRequest\022>\n\006config\030\001 \001(\0132).google." + - "cloud.speech.v1.RecognitionConfigB\003\340A\002\022<" + - "\n\005audio\030\002 \001(\0132(.google.cloud.speech.v1.R" + - "ecognitionAudioB\003\340A\002\"\347\001\n\033LongRunningReco" + - "gnizeRequest\022>\n\006config\030\001 \001(\0132).google.cl" + - "oud.speech.v1.RecognitionConfigB\003\340A\002\022<\n\005" + - "audio\030\002 \001(\0132(.google.cloud.speech.v1.Rec" + - "ognitionAudioB\003\340A\002\022J\n\routput_config\030\004 \001(" + - "\0132..google.cloud.speech.v1.TranscriptOut" + - "putConfigB\003\340A\001\":\n\026TranscriptOutputConfig" + - "\022\021\n\007gcs_uri\030\001 \001(\tH\000B\r\n\013output_type\"\231\001\n\031S" + - "treamingRecognizeRequest\022N\n\020streaming_co" + - "nfig\030\001 \001(\01322.google.cloud.speech.v1.Stre" + - "amingRecognitionConfigH\000\022\027\n\raudio_conten" + - "t\030\002 \001(\014H\000B\023\n\021streaming_request\"\217\001\n\032Strea" + - "mingRecognitionConfig\022>\n\006config\030\001 \001(\0132)." + - "google.cloud.speech.v1.RecognitionConfig" + - "B\003\340A\002\022\030\n\020single_utterance\030\002 \001(\010\022\027\n\017inter" + - "im_results\030\003 \001(\010\"\351\007\n\021RecognitionConfig\022I" + - "\n\010encoding\030\001 \001(\01627.google.cloud.speech.v" + - "1.RecognitionConfig.AudioEncoding\022\031\n\021sam" + - "ple_rate_hertz\030\002 \001(\005\022\033\n\023audio_channel_co" + - "unt\030\007 \001(\005\022/\n\'enable_separate_recognition" + - "_per_channel\030\014 \001(\010\022\032\n\rlanguage_code\030\003 \001(" + - "\tB\003\340A\002\022\"\n\032alternative_language_codes\030\022 \003" + - "(\t\022\030\n\020max_alternatives\030\004 \001(\005\022\030\n\020profanit" + - "y_filter\030\005 \001(\010\022<\n\nadaptation\030\024 \001(\0132(.goo" + - "gle.cloud.speech.v1.SpeechAdaptation\022>\n\017" + - "speech_contexts\030\006 \003(\0132%.google.cloud.spe" + - "ech.v1.SpeechContext\022 \n\030enable_word_time" + - "_offsets\030\010 \001(\010\022\036\n\026enable_word_confidence" + - "\030\017 \001(\010\022$\n\034enable_automatic_punctuation\030\013" + - " \001(\010\022=\n\031enable_spoken_punctuation\030\026 \001(\0132" + - "\032.google.protobuf.BoolValue\0228\n\024enable_sp" + - "oken_emojis\030\027 \001(\0132\032.google.protobuf.Bool" + - "Value\022L\n\022diarization_config\030\023 \001(\01320.goog" + - "le.cloud.speech.v1.SpeakerDiarizationCon" + - "fig\022=\n\010metadata\030\t \001(\0132+.google.cloud.spe" + - "ech.v1.RecognitionMetadata\022\r\n\005model\030\r \001(" + - "\t\022\024\n\014use_enhanced\030\016 \001(\010\"\232\001\n\rAudioEncodin" + - "g\022\030\n\024ENCODING_UNSPECIFIED\020\000\022\014\n\010LINEAR16\020" + - "\001\022\010\n\004FLAC\020\002\022\t\n\005MULAW\020\003\022\007\n\003AMR\020\004\022\n\n\006AMR_W" + - "B\020\005\022\014\n\010OGG_OPUS\020\006\022\032\n\026SPEEX_WITH_HEADER_B" + - "YTE\020\007\022\r\n\tWEBM_OPUS\020\t\"\220\001\n\030SpeakerDiarizat" + - "ionConfig\022\"\n\032enable_speaker_diarization\030" + - "\001 \001(\010\022\031\n\021min_speaker_count\030\002 \001(\005\022\031\n\021max_" + - "speaker_count\030\003 \001(\005\022\032\n\013speaker_tag\030\005 \001(\005" + - "B\005\030\001\340A\003\"\240\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\"/\n\rSpeechCont" + - "ext\022\017\n\007phrases\030\001 \003(\t\022\r\n\005boost\030\004 \001(\002\"D\n\020R" + - "ecognitionAudio\022\021\n\007content\030\001 \001(\014H\000\022\r\n\003ur" + - "i\030\002 \001(\tH\000B\016\n\014audio_source\"\213\001\n\021RecognizeR" + - "esponse\022@\n\007results\030\002 \003(\0132/.google.cloud." + - "speech.v1.SpeechRecognitionResult\0224\n\021tot" + - "al_billed_time\030\003 \001(\0132\031.google.protobuf.D" + - "uration\"\207\002\n\034LongRunningRecognizeResponse" + - "\022@\n\007results\030\002 \003(\0132/.google.cloud.speech." + - "v1.SpeechRecognitionResult\0224\n\021total_bill" + - "ed_time\030\003 \001(\0132\031.google.protobuf.Duration" + - "\022E\n\routput_config\030\006 \001(\0132..google.cloud.s" + - "peech.v1.TranscriptOutputConfig\022(\n\014outpu" + - "t_error\030\007 \001(\0132\022.google.rpc.Status\"\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\"\347\002\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\"L\n\017SpeechEventType\022\034\n\030S" + - "PEECH_EVENT_UNSPECIFIED\020\000\022\033\n\027END_OF_SING" + - "LE_UTTERANCE\020\001\"\362\001\n\032StreamingRecognitionR" + - "esult\022J\n\014alternatives\030\001 \003(\01324.google.clo" + - "ud.speech.v1.SpeechRecognitionAlternativ" + - "e\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.protobu" + - "f.Duration\022\023\n\013channel_tag\030\005 \001(\005\022\032\n\rlangu" + - "age_code\030\006 \001(\tB\003\340A\003\"\312\001\n\027SpeechRecognitio" + - "nResult\022J\n\014alternatives\030\001 \003(\01324.google.c" + - "loud.speech.v1.SpeechRecognitionAlternat" + - "ive\022\023\n\013channel_tag\030\002 \001(\005\0222\n\017result_end_t" + - "ime\030\004 \001(\0132\031.google.protobuf.Duration\022\032\n\r" + - "language_code\030\005 \001(\tB\003\340A\003\"w\n\034SpeechRecogn" + - "itionAlternative\022\022\n\ntranscript\030\001 \001(\t\022\022\n\n" + - "confidence\030\002 \001(\002\022/\n\005words\030\003 \003(\0132 .google" + - ".cloud.speech.v1.WordInfo\"\242\001\n\010WordInfo\022-" + - "\n\nstart_time\030\001 \001(\0132\031.google.protobuf.Dur" + - "ation\022+\n\010end_time\030\002 \001(\0132\031.google.protobu" + - "f.Duration\022\014\n\004word\030\003 \001(\t\022\022\n\nconfidence\030\004" + - " \001(\002\022\030\n\013speaker_tag\030\005 \001(\005B\003\340A\0032\321\004\n\006Speec" + - "h\022\220\001\n\tRecognize\022(.google.cloud.speech.v1" + - ".RecognizeRequest\032).google.cloud.speech." + - "v1.RecognizeResponse\".\202\323\344\223\002\031\"\024/v1/speech" + - ":recognize:\001*\332A\014config,audio\022\344\001\n\024LongRun" + - "ningRecognize\0223.google.cloud.speech.v1.L" + - "ongRunningRecognizeRequest\032\035.google.long" + - "running.Operation\"x\202\323\344\223\002$\"\037/v1/speech:lo" + - "ngrunningrecognize:\001*\332A\014config,audio\312A<\n" + - "\034LongRunningRecognizeResponse\022\034LongRunni" + - "ngRecognizeMetadata\022\201\001\n\022StreamingRecogni" + - "ze\0221.google.cloud.speech.v1.StreamingRec" + - "ognizeRequest\0322.google.cloud.speech.v1.S" + - "treamingRecognizeResponse\"\000(\0010\001\032I\312A\025spee" + - "ch.googleapis.com\322A.https://www.googleap" + - "is.com/auth/cloud-platformBr\n\032com.google" + - ".cloud.speech.v1B\013SpeechProtoP\001Z - * Service that implements Google Cloud Speech Adaptation API. - *
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/speech/v1p1beta1/cloud_speech_adaptation.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class AdaptationGrpc { - - private AdaptationGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.speech.v1p1beta1.Adaptation"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor getCreatePhraseSetMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreatePhraseSet", - requestType = com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest.class, - responseType = com.google.cloud.speech.v1p1beta1.PhraseSet.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreatePhraseSetMethod() { - io.grpc.MethodDescriptor getCreatePhraseSetMethod; - if ((getCreatePhraseSetMethod = AdaptationGrpc.getCreatePhraseSetMethod) == null) { - synchronized (AdaptationGrpc.class) { - if ((getCreatePhraseSetMethod = AdaptationGrpc.getCreatePhraseSetMethod) == null) { - AdaptationGrpc.getCreatePhraseSetMethod = getCreatePhraseSetMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreatePhraseSet")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v1p1beta1.PhraseSet.getDefaultInstance())) - .setSchemaDescriptor(new AdaptationMethodDescriptorSupplier("CreatePhraseSet")) - .build(); - } - } - } - return getCreatePhraseSetMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetPhraseSetMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetPhraseSet", - requestType = com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest.class, - responseType = com.google.cloud.speech.v1p1beta1.PhraseSet.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetPhraseSetMethod() { - io.grpc.MethodDescriptor getGetPhraseSetMethod; - if ((getGetPhraseSetMethod = AdaptationGrpc.getGetPhraseSetMethod) == null) { - synchronized (AdaptationGrpc.class) { - if ((getGetPhraseSetMethod = AdaptationGrpc.getGetPhraseSetMethod) == null) { - AdaptationGrpc.getGetPhraseSetMethod = getGetPhraseSetMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetPhraseSet")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v1p1beta1.PhraseSet.getDefaultInstance())) - .setSchemaDescriptor(new AdaptationMethodDescriptorSupplier("GetPhraseSet")) - .build(); - } - } - } - return getGetPhraseSetMethod; - } - - private static volatile io.grpc.MethodDescriptor getListPhraseSetMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListPhraseSet", - requestType = com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest.class, - responseType = com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListPhraseSetMethod() { - io.grpc.MethodDescriptor getListPhraseSetMethod; - if ((getListPhraseSetMethod = AdaptationGrpc.getListPhraseSetMethod) == null) { - synchronized (AdaptationGrpc.class) { - if ((getListPhraseSetMethod = AdaptationGrpc.getListPhraseSetMethod) == null) { - AdaptationGrpc.getListPhraseSetMethod = getListPhraseSetMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListPhraseSet")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse.getDefaultInstance())) - .setSchemaDescriptor(new AdaptationMethodDescriptorSupplier("ListPhraseSet")) - .build(); - } - } - } - return getListPhraseSetMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpdatePhraseSetMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdatePhraseSet", - requestType = com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest.class, - responseType = com.google.cloud.speech.v1p1beta1.PhraseSet.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdatePhraseSetMethod() { - io.grpc.MethodDescriptor getUpdatePhraseSetMethod; - if ((getUpdatePhraseSetMethod = AdaptationGrpc.getUpdatePhraseSetMethod) == null) { - synchronized (AdaptationGrpc.class) { - if ((getUpdatePhraseSetMethod = AdaptationGrpc.getUpdatePhraseSetMethod) == null) { - AdaptationGrpc.getUpdatePhraseSetMethod = getUpdatePhraseSetMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdatePhraseSet")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v1p1beta1.PhraseSet.getDefaultInstance())) - .setSchemaDescriptor(new AdaptationMethodDescriptorSupplier("UpdatePhraseSet")) - .build(); - } - } - } - return getUpdatePhraseSetMethod; - } - - private static volatile io.grpc.MethodDescriptor getDeletePhraseSetMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeletePhraseSet", - requestType = com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeletePhraseSetMethod() { - io.grpc.MethodDescriptor getDeletePhraseSetMethod; - if ((getDeletePhraseSetMethod = AdaptationGrpc.getDeletePhraseSetMethod) == null) { - synchronized (AdaptationGrpc.class) { - if ((getDeletePhraseSetMethod = AdaptationGrpc.getDeletePhraseSetMethod) == null) { - AdaptationGrpc.getDeletePhraseSetMethod = getDeletePhraseSetMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeletePhraseSet")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor(new AdaptationMethodDescriptorSupplier("DeletePhraseSet")) - .build(); - } - } - } - return getDeletePhraseSetMethod; - } - - private static volatile io.grpc.MethodDescriptor getCreateCustomClassMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateCustomClass", - requestType = com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest.class, - responseType = com.google.cloud.speech.v1p1beta1.CustomClass.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateCustomClassMethod() { - io.grpc.MethodDescriptor getCreateCustomClassMethod; - if ((getCreateCustomClassMethod = AdaptationGrpc.getCreateCustomClassMethod) == null) { - synchronized (AdaptationGrpc.class) { - if ((getCreateCustomClassMethod = AdaptationGrpc.getCreateCustomClassMethod) == null) { - AdaptationGrpc.getCreateCustomClassMethod = getCreateCustomClassMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateCustomClass")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v1p1beta1.CustomClass.getDefaultInstance())) - .setSchemaDescriptor(new AdaptationMethodDescriptorSupplier("CreateCustomClass")) - .build(); - } - } - } - return getCreateCustomClassMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetCustomClassMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetCustomClass", - requestType = com.google.cloud.speech.v1p1beta1.GetCustomClassRequest.class, - responseType = com.google.cloud.speech.v1p1beta1.CustomClass.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetCustomClassMethod() { - io.grpc.MethodDescriptor getGetCustomClassMethod; - if ((getGetCustomClassMethod = AdaptationGrpc.getGetCustomClassMethod) == null) { - synchronized (AdaptationGrpc.class) { - if ((getGetCustomClassMethod = AdaptationGrpc.getGetCustomClassMethod) == null) { - AdaptationGrpc.getGetCustomClassMethod = getGetCustomClassMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetCustomClass")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v1p1beta1.GetCustomClassRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v1p1beta1.CustomClass.getDefaultInstance())) - .setSchemaDescriptor(new AdaptationMethodDescriptorSupplier("GetCustomClass")) - .build(); - } - } - } - return getGetCustomClassMethod; - } - - private static volatile io.grpc.MethodDescriptor getListCustomClassesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListCustomClasses", - requestType = com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest.class, - responseType = com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListCustomClassesMethod() { - io.grpc.MethodDescriptor getListCustomClassesMethod; - if ((getListCustomClassesMethod = AdaptationGrpc.getListCustomClassesMethod) == null) { - synchronized (AdaptationGrpc.class) { - if ((getListCustomClassesMethod = AdaptationGrpc.getListCustomClassesMethod) == null) { - AdaptationGrpc.getListCustomClassesMethod = getListCustomClassesMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListCustomClasses")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse.getDefaultInstance())) - .setSchemaDescriptor(new AdaptationMethodDescriptorSupplier("ListCustomClasses")) - .build(); - } - } - } - return getListCustomClassesMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpdateCustomClassMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateCustomClass", - requestType = com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest.class, - responseType = com.google.cloud.speech.v1p1beta1.CustomClass.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateCustomClassMethod() { - io.grpc.MethodDescriptor getUpdateCustomClassMethod; - if ((getUpdateCustomClassMethod = AdaptationGrpc.getUpdateCustomClassMethod) == null) { - synchronized (AdaptationGrpc.class) { - if ((getUpdateCustomClassMethod = AdaptationGrpc.getUpdateCustomClassMethod) == null) { - AdaptationGrpc.getUpdateCustomClassMethod = getUpdateCustomClassMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateCustomClass")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v1p1beta1.CustomClass.getDefaultInstance())) - .setSchemaDescriptor(new AdaptationMethodDescriptorSupplier("UpdateCustomClass")) - .build(); - } - } - } - return getUpdateCustomClassMethod; - } - - private static volatile io.grpc.MethodDescriptor getDeleteCustomClassMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteCustomClass", - requestType = com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeleteCustomClassMethod() { - io.grpc.MethodDescriptor getDeleteCustomClassMethod; - if ((getDeleteCustomClassMethod = AdaptationGrpc.getDeleteCustomClassMethod) == null) { - synchronized (AdaptationGrpc.class) { - if ((getDeleteCustomClassMethod = AdaptationGrpc.getDeleteCustomClassMethod) == null) { - AdaptationGrpc.getDeleteCustomClassMethod = getDeleteCustomClassMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteCustomClass")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor(new AdaptationMethodDescriptorSupplier("DeleteCustomClass")) - .build(); - } - } - } - return getDeleteCustomClassMethod; - } - - /** - * Creates a new async stub that supports all call types for the service - */ - public static AdaptationStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public AdaptationStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AdaptationStub(channel, callOptions); - } - }; - return AdaptationStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static AdaptationBlockingStub newBlockingStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public AdaptationBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AdaptationBlockingStub(channel, callOptions); - } - }; - return AdaptationBlockingStub.newStub(factory, channel); - } - - /** - * Creates a new ListenableFuture-style stub that supports unary calls on the service - */ - public static AdaptationFutureStub newFutureStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public AdaptationFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AdaptationFutureStub(channel, callOptions); - } - }; - return AdaptationFutureStub.newStub(factory, channel); - } - - /** - *
-   * Service that implements Google Cloud Speech Adaptation API.
-   * 
- */ - public static abstract class AdaptationImplBase implements io.grpc.BindableService { - - /** - *
-     * Create a set of phrase hints. Each item in the set can be a single word or
-     * a multi-word phrase. The items in the PhraseSet are favored by the
-     * recognition model when you send a call that includes the PhraseSet.
-     * 
- */ - public void createPhraseSet(com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreatePhraseSetMethod(), responseObserver); - } - - /** - *
-     * Get a phrase set.
-     * 
- */ - public void getPhraseSet(com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetPhraseSetMethod(), responseObserver); - } - - /** - *
-     * List phrase sets.
-     * 
- */ - public void listPhraseSet(com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListPhraseSetMethod(), responseObserver); - } - - /** - *
-     * Update a phrase set.
-     * 
- */ - public void updatePhraseSet(com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdatePhraseSetMethod(), responseObserver); - } - - /** - *
-     * Delete a phrase set.
-     * 
- */ - public void deletePhraseSet(com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeletePhraseSetMethod(), responseObserver); - } - - /** - *
-     * Create a custom class.
-     * 
- */ - public void createCustomClass(com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateCustomClassMethod(), responseObserver); - } - - /** - *
-     * Get a custom class.
-     * 
- */ - public void getCustomClass(com.google.cloud.speech.v1p1beta1.GetCustomClassRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetCustomClassMethod(), responseObserver); - } - - /** - *
-     * List custom classes.
-     * 
- */ - public void listCustomClasses(com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListCustomClassesMethod(), responseObserver); - } - - /** - *
-     * Update a custom class.
-     * 
- */ - public void updateCustomClass(com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateCustomClassMethod(), responseObserver); - } - - /** - *
-     * Delete a custom class.
-     * 
- */ - public void deleteCustomClass(com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteCustomClassMethod(), responseObserver); - } - - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getCreatePhraseSetMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest, - com.google.cloud.speech.v1p1beta1.PhraseSet>( - this, METHODID_CREATE_PHRASE_SET))) - .addMethod( - getGetPhraseSetMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest, - com.google.cloud.speech.v1p1beta1.PhraseSet>( - this, METHODID_GET_PHRASE_SET))) - .addMethod( - getListPhraseSetMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest, - com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse>( - this, METHODID_LIST_PHRASE_SET))) - .addMethod( - getUpdatePhraseSetMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest, - com.google.cloud.speech.v1p1beta1.PhraseSet>( - this, METHODID_UPDATE_PHRASE_SET))) - .addMethod( - getDeletePhraseSetMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest, - com.google.protobuf.Empty>( - this, METHODID_DELETE_PHRASE_SET))) - .addMethod( - getCreateCustomClassMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest, - com.google.cloud.speech.v1p1beta1.CustomClass>( - this, METHODID_CREATE_CUSTOM_CLASS))) - .addMethod( - getGetCustomClassMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.speech.v1p1beta1.GetCustomClassRequest, - com.google.cloud.speech.v1p1beta1.CustomClass>( - this, METHODID_GET_CUSTOM_CLASS))) - .addMethod( - getListCustomClassesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest, - com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse>( - this, METHODID_LIST_CUSTOM_CLASSES))) - .addMethod( - getUpdateCustomClassMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest, - com.google.cloud.speech.v1p1beta1.CustomClass>( - this, METHODID_UPDATE_CUSTOM_CLASS))) - .addMethod( - getDeleteCustomClassMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest, - com.google.protobuf.Empty>( - this, METHODID_DELETE_CUSTOM_CLASS))) - .build(); - } - } - - /** - *
-   * Service that implements Google Cloud Speech Adaptation API.
-   * 
- */ - public static final class AdaptationStub extends io.grpc.stub.AbstractAsyncStub { - private AdaptationStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected AdaptationStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AdaptationStub(channel, callOptions); - } - - /** - *
-     * Create a set of phrase hints. Each item in the set can be a single word or
-     * a multi-word phrase. The items in the PhraseSet are favored by the
-     * recognition model when you send a call that includes the PhraseSet.
-     * 
- */ - public void createPhraseSet(com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreatePhraseSetMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Get a phrase set.
-     * 
- */ - public void getPhraseSet(com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetPhraseSetMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * List phrase sets.
-     * 
- */ - public void listPhraseSet(com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListPhraseSetMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Update a phrase set.
-     * 
- */ - public void updatePhraseSet(com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdatePhraseSetMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Delete a phrase set.
-     * 
- */ - public void deletePhraseSet(com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeletePhraseSetMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Create a custom class.
-     * 
- */ - public void createCustomClass(com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateCustomClassMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Get a custom class.
-     * 
- */ - public void getCustomClass(com.google.cloud.speech.v1p1beta1.GetCustomClassRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetCustomClassMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * List custom classes.
-     * 
- */ - public void listCustomClasses(com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListCustomClassesMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Update a custom class.
-     * 
- */ - public void updateCustomClass(com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateCustomClassMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Delete a custom class.
-     * 
- */ - public void deleteCustomClass(com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteCustomClassMethod(), getCallOptions()), request, responseObserver); - } - } - - /** - *
-   * Service that implements Google Cloud Speech Adaptation API.
-   * 
- */ - public static final class AdaptationBlockingStub extends io.grpc.stub.AbstractBlockingStub { - private AdaptationBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected AdaptationBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AdaptationBlockingStub(channel, callOptions); - } - - /** - *
-     * Create a set of phrase hints. Each item in the set can be a single word or
-     * a multi-word phrase. The items in the PhraseSet are favored by the
-     * recognition model when you send a call that includes the PhraseSet.
-     * 
- */ - public com.google.cloud.speech.v1p1beta1.PhraseSet createPhraseSet(com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreatePhraseSetMethod(), getCallOptions(), request); - } - - /** - *
-     * Get a phrase set.
-     * 
- */ - public com.google.cloud.speech.v1p1beta1.PhraseSet getPhraseSet(com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetPhraseSetMethod(), getCallOptions(), request); - } - - /** - *
-     * List phrase sets.
-     * 
- */ - public com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse listPhraseSet(com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListPhraseSetMethod(), getCallOptions(), request); - } - - /** - *
-     * Update a phrase set.
-     * 
- */ - public com.google.cloud.speech.v1p1beta1.PhraseSet updatePhraseSet(com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdatePhraseSetMethod(), getCallOptions(), request); - } - - /** - *
-     * Delete a phrase set.
-     * 
- */ - public com.google.protobuf.Empty deletePhraseSet(com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeletePhraseSetMethod(), getCallOptions(), request); - } - - /** - *
-     * Create a custom class.
-     * 
- */ - public com.google.cloud.speech.v1p1beta1.CustomClass createCustomClass(com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateCustomClassMethod(), getCallOptions(), request); - } - - /** - *
-     * Get a custom class.
-     * 
- */ - public com.google.cloud.speech.v1p1beta1.CustomClass getCustomClass(com.google.cloud.speech.v1p1beta1.GetCustomClassRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetCustomClassMethod(), getCallOptions(), request); - } - - /** - *
-     * List custom classes.
-     * 
- */ - public com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse listCustomClasses(com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListCustomClassesMethod(), getCallOptions(), request); - } - - /** - *
-     * Update a custom class.
-     * 
- */ - public com.google.cloud.speech.v1p1beta1.CustomClass updateCustomClass(com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateCustomClassMethod(), getCallOptions(), request); - } - - /** - *
-     * Delete a custom class.
-     * 
- */ - public com.google.protobuf.Empty deleteCustomClass(com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteCustomClassMethod(), getCallOptions(), request); - } - } - - /** - *
-   * Service that implements Google Cloud Speech Adaptation API.
-   * 
- */ - public static final class AdaptationFutureStub extends io.grpc.stub.AbstractFutureStub { - private AdaptationFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected AdaptationFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AdaptationFutureStub(channel, callOptions); - } - - /** - *
-     * Create a set of phrase hints. Each item in the set can be a single word or
-     * a multi-word phrase. The items in the PhraseSet are favored by the
-     * recognition model when you send a call that includes the PhraseSet.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture createPhraseSet( - com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreatePhraseSetMethod(), getCallOptions()), request); - } - - /** - *
-     * Get a phrase set.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getPhraseSet( - com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetPhraseSetMethod(), getCallOptions()), request); - } - - /** - *
-     * List phrase sets.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listPhraseSet( - com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListPhraseSetMethod(), getCallOptions()), request); - } - - /** - *
-     * Update a phrase set.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture updatePhraseSet( - com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdatePhraseSetMethod(), getCallOptions()), request); - } - - /** - *
-     * Delete a phrase set.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture deletePhraseSet( - com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeletePhraseSetMethod(), getCallOptions()), request); - } - - /** - *
-     * Create a custom class.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture createCustomClass( - com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateCustomClassMethod(), getCallOptions()), request); - } - - /** - *
-     * Get a custom class.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getCustomClass( - com.google.cloud.speech.v1p1beta1.GetCustomClassRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetCustomClassMethod(), getCallOptions()), request); - } - - /** - *
-     * List custom classes.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listCustomClasses( - com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListCustomClassesMethod(), getCallOptions()), request); - } - - /** - *
-     * Update a custom class.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture updateCustomClass( - com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateCustomClassMethod(), getCallOptions()), request); - } - - /** - *
-     * Delete a custom class.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture deleteCustomClass( - com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteCustomClassMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_CREATE_PHRASE_SET = 0; - private static final int METHODID_GET_PHRASE_SET = 1; - private static final int METHODID_LIST_PHRASE_SET = 2; - private static final int METHODID_UPDATE_PHRASE_SET = 3; - private static final int METHODID_DELETE_PHRASE_SET = 4; - private static final int METHODID_CREATE_CUSTOM_CLASS = 5; - private static final int METHODID_GET_CUSTOM_CLASS = 6; - private static final int METHODID_LIST_CUSTOM_CLASSES = 7; - private static final int METHODID_UPDATE_CUSTOM_CLASS = 8; - private static final int METHODID_DELETE_CUSTOM_CLASS = 9; - - private static final class MethodHandlers implements - io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final AdaptationImplBase serviceImpl; - private final int methodId; - - MethodHandlers(AdaptationImplBase serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_CREATE_PHRASE_SET: - serviceImpl.createPhraseSet((com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_PHRASE_SET: - serviceImpl.getPhraseSet((com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_PHRASE_SET: - serviceImpl.listPhraseSet((com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_PHRASE_SET: - serviceImpl.updatePhraseSet((com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_PHRASE_SET: - serviceImpl.deletePhraseSet((com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_CUSTOM_CLASS: - serviceImpl.createCustomClass((com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_CUSTOM_CLASS: - serviceImpl.getCustomClass((com.google.cloud.speech.v1p1beta1.GetCustomClassRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_CUSTOM_CLASSES: - serviceImpl.listCustomClasses((com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_CUSTOM_CLASS: - serviceImpl.updateCustomClass((com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_CUSTOM_CLASS: - serviceImpl.deleteCustomClass((com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - default: - throw new AssertionError(); - } - } - } - - private static abstract class AdaptationBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { - AdaptationBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("Adaptation"); - } - } - - private static final class AdaptationFileDescriptorSupplier - extends AdaptationBaseDescriptorSupplier { - AdaptationFileDescriptorSupplier() {} - } - - private static final class AdaptationMethodDescriptorSupplier - extends AdaptationBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - AdaptationMethodDescriptorSupplier(String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (AdaptationGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new AdaptationFileDescriptorSupplier()) - .addMethod(getCreatePhraseSetMethod()) - .addMethod(getGetPhraseSetMethod()) - .addMethod(getListPhraseSetMethod()) - .addMethod(getUpdatePhraseSetMethod()) - .addMethod(getDeletePhraseSetMethod()) - .addMethod(getCreateCustomClassMethod()) - .addMethod(getGetCustomClassMethod()) - .addMethod(getListCustomClassesMethod()) - .addMethod(getUpdateCustomClassMethod()) - .addMethod(getDeleteCustomClassMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/owl-bot-staging/v1p1beta1/grpc-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechGrpc.java b/owl-bot-staging/v1p1beta1/grpc-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechGrpc.java deleted file mode 100644 index 5879fdc44..000000000 --- a/owl-bot-staging/v1p1beta1/grpc-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechGrpc.java +++ /dev/null @@ -1,479 +0,0 @@ -package com.google.cloud.speech.v1p1beta1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - *
- * Service that implements Google Cloud Speech API.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/speech/v1p1beta1/cloud_speech.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class SpeechGrpc { - - private SpeechGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.speech.v1p1beta1.Speech"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor getRecognizeMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "Recognize", - requestType = com.google.cloud.speech.v1p1beta1.RecognizeRequest.class, - responseType = com.google.cloud.speech.v1p1beta1.RecognizeResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getRecognizeMethod() { - io.grpc.MethodDescriptor getRecognizeMethod; - if ((getRecognizeMethod = SpeechGrpc.getRecognizeMethod) == null) { - synchronized (SpeechGrpc.class) { - if ((getRecognizeMethod = SpeechGrpc.getRecognizeMethod) == null) { - SpeechGrpc.getRecognizeMethod = getRecognizeMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Recognize")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v1p1beta1.RecognizeRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v1p1beta1.RecognizeResponse.getDefaultInstance())) - .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("Recognize")) - .build(); - } - } - } - return getRecognizeMethod; - } - - private static volatile io.grpc.MethodDescriptor getLongRunningRecognizeMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "LongRunningRecognize", - requestType = com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getLongRunningRecognizeMethod() { - io.grpc.MethodDescriptor getLongRunningRecognizeMethod; - if ((getLongRunningRecognizeMethod = SpeechGrpc.getLongRunningRecognizeMethod) == null) { - synchronized (SpeechGrpc.class) { - if ((getLongRunningRecognizeMethod = SpeechGrpc.getLongRunningRecognizeMethod) == null) { - SpeechGrpc.getLongRunningRecognizeMethod = getLongRunningRecognizeMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "LongRunningRecognize")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("LongRunningRecognize")) - .build(); - } - } - } - return getLongRunningRecognizeMethod; - } - - private static volatile io.grpc.MethodDescriptor getStreamingRecognizeMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "StreamingRecognize", - requestType = com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest.class, - responseType = com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING) - public static io.grpc.MethodDescriptor getStreamingRecognizeMethod() { - io.grpc.MethodDescriptor getStreamingRecognizeMethod; - if ((getStreamingRecognizeMethod = SpeechGrpc.getStreamingRecognizeMethod) == null) { - synchronized (SpeechGrpc.class) { - if ((getStreamingRecognizeMethod = SpeechGrpc.getStreamingRecognizeMethod) == null) { - SpeechGrpc.getStreamingRecognizeMethod = getStreamingRecognizeMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StreamingRecognize")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.getDefaultInstance())) - .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("StreamingRecognize")) - .build(); - } - } - } - return getStreamingRecognizeMethod; - } - - /** - * Creates a new async stub that supports all call types for the service - */ - public static SpeechStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public SpeechStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SpeechStub(channel, callOptions); - } - }; - return SpeechStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static SpeechBlockingStub newBlockingStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public SpeechBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SpeechBlockingStub(channel, callOptions); - } - }; - return SpeechBlockingStub.newStub(factory, channel); - } - - /** - * Creates a new ListenableFuture-style stub that supports unary calls on the service - */ - public static SpeechFutureStub newFutureStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public SpeechFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SpeechFutureStub(channel, callOptions); - } - }; - return SpeechFutureStub.newStub(factory, channel); - } - - /** - *
-   * Service that implements Google Cloud Speech API.
-   * 
- */ - public static abstract class SpeechImplBase implements io.grpc.BindableService { - - /** - *
-     * Performs synchronous speech recognition: receive results after all audio
-     * has been sent and processed.
-     * 
- */ - public void recognize(com.google.cloud.speech.v1p1beta1.RecognizeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRecognizeMethod(), responseObserver); - } - - /** - *
-     * Performs asynchronous speech recognition: receive results via the
-     * google.longrunning.Operations interface. Returns either an
-     * `Operation.error` or an `Operation.response` which contains
-     * a `LongRunningRecognizeResponse` message.
-     * For more information on asynchronous speech recognition, see the
-     * [how-to](https://cloud.google.com/speech-to-text/docs/async-recognize).
-     * 
- */ - public void longRunningRecognize(com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getLongRunningRecognizeMethod(), responseObserver); - } - - /** - *
-     * Performs bidirectional streaming speech recognition: receive results while
-     * sending audio. This method is only available via the gRPC API (not REST).
-     * 
- */ - public io.grpc.stub.StreamObserver streamingRecognize( - io.grpc.stub.StreamObserver responseObserver) { - return io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall(getStreamingRecognizeMethod(), responseObserver); - } - - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getRecognizeMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.speech.v1p1beta1.RecognizeRequest, - com.google.cloud.speech.v1p1beta1.RecognizeResponse>( - this, METHODID_RECOGNIZE))) - .addMethod( - getLongRunningRecognizeMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest, - com.google.longrunning.Operation>( - this, METHODID_LONG_RUNNING_RECOGNIZE))) - .addMethod( - getStreamingRecognizeMethod(), - io.grpc.stub.ServerCalls.asyncBidiStreamingCall( - new MethodHandlers< - com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest, - com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse>( - this, METHODID_STREAMING_RECOGNIZE))) - .build(); - } - } - - /** - *
-   * Service that implements Google Cloud Speech API.
-   * 
- */ - public static final class SpeechStub extends io.grpc.stub.AbstractAsyncStub { - private SpeechStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected SpeechStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SpeechStub(channel, callOptions); - } - - /** - *
-     * Performs synchronous speech recognition: receive results after all audio
-     * has been sent and processed.
-     * 
- */ - public void recognize(com.google.cloud.speech.v1p1beta1.RecognizeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getRecognizeMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Performs asynchronous speech recognition: receive results via the
-     * google.longrunning.Operations interface. Returns either an
-     * `Operation.error` or an `Operation.response` which contains
-     * a `LongRunningRecognizeResponse` message.
-     * For more information on asynchronous speech recognition, see the
-     * [how-to](https://cloud.google.com/speech-to-text/docs/async-recognize).
-     * 
- */ - public void longRunningRecognize(com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getLongRunningRecognizeMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Performs bidirectional streaming speech recognition: receive results while
-     * sending audio. This method is only available via the gRPC API (not REST).
-     * 
- */ - public io.grpc.stub.StreamObserver streamingRecognize( - io.grpc.stub.StreamObserver responseObserver) { - return io.grpc.stub.ClientCalls.asyncBidiStreamingCall( - getChannel().newCall(getStreamingRecognizeMethod(), getCallOptions()), responseObserver); - } - } - - /** - *
-   * Service that implements Google Cloud Speech API.
-   * 
- */ - public static final class SpeechBlockingStub extends io.grpc.stub.AbstractBlockingStub { - private SpeechBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected SpeechBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SpeechBlockingStub(channel, callOptions); - } - - /** - *
-     * Performs synchronous speech recognition: receive results after all audio
-     * has been sent and processed.
-     * 
- */ - public com.google.cloud.speech.v1p1beta1.RecognizeResponse recognize(com.google.cloud.speech.v1p1beta1.RecognizeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getRecognizeMethod(), getCallOptions(), request); - } - - /** - *
-     * Performs asynchronous speech recognition: receive results via the
-     * google.longrunning.Operations interface. Returns either an
-     * `Operation.error` or an `Operation.response` which contains
-     * a `LongRunningRecognizeResponse` message.
-     * For more information on asynchronous speech recognition, see the
-     * [how-to](https://cloud.google.com/speech-to-text/docs/async-recognize).
-     * 
- */ - public com.google.longrunning.Operation longRunningRecognize(com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getLongRunningRecognizeMethod(), getCallOptions(), request); - } - } - - /** - *
-   * Service that implements Google Cloud Speech API.
-   * 
- */ - public static final class SpeechFutureStub extends io.grpc.stub.AbstractFutureStub { - private SpeechFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected SpeechFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SpeechFutureStub(channel, callOptions); - } - - /** - *
-     * Performs synchronous speech recognition: receive results after all audio
-     * has been sent and processed.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture recognize( - com.google.cloud.speech.v1p1beta1.RecognizeRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getRecognizeMethod(), getCallOptions()), request); - } - - /** - *
-     * Performs asynchronous speech recognition: receive results via the
-     * google.longrunning.Operations interface. Returns either an
-     * `Operation.error` or an `Operation.response` which contains
-     * a `LongRunningRecognizeResponse` message.
-     * For more information on asynchronous speech recognition, see the
-     * [how-to](https://cloud.google.com/speech-to-text/docs/async-recognize).
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture longRunningRecognize( - com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getLongRunningRecognizeMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_RECOGNIZE = 0; - private static final int METHODID_LONG_RUNNING_RECOGNIZE = 1; - private static final int METHODID_STREAMING_RECOGNIZE = 2; - - private static final class MethodHandlers implements - io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final SpeechImplBase serviceImpl; - private final int methodId; - - MethodHandlers(SpeechImplBase serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_RECOGNIZE: - serviceImpl.recognize((com.google.cloud.speech.v1p1beta1.RecognizeRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LONG_RUNNING_RECOGNIZE: - serviceImpl.longRunningRecognize((com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_STREAMING_RECOGNIZE: - return (io.grpc.stub.StreamObserver) serviceImpl.streamingRecognize( - (io.grpc.stub.StreamObserver) responseObserver); - default: - throw new AssertionError(); - } - } - } - - private static abstract class SpeechBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { - SpeechBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("Speech"); - } - } - - private static final class SpeechFileDescriptorSupplier - extends SpeechBaseDescriptorSupplier { - SpeechFileDescriptorSupplier() {} - } - - private static final class SpeechMethodDescriptorSupplier - extends SpeechBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - SpeechMethodDescriptorSupplier(String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (SpeechGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new SpeechFileDescriptorSupplier()) - .addMethod(getRecognizeMethod()) - .addMethod(getLongRunningRecognizeMethod()) - .addMethod(getStreamingRecognizeMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeletePhraseSetRequestOrBuilder.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeletePhraseSetRequestOrBuilder.java deleted file mode 100644 index 246c425ca..000000000 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeletePhraseSetRequestOrBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/speech/v1p1beta1/cloud_speech_adaptation.proto - -package com.google.cloud.speech.v1p1beta1; - -public interface DeletePhraseSetRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1p1beta1.DeletePhraseSetRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The name of the phrase set to delete. Format:
-   * `projects/{project}/locations/{location}/phraseSets/{phrase_set}`
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The name of the phrase set to delete. Format:
-   * `projects/{project}/locations/{location}/phraseSets/{phrase_set}`
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetCustomClassRequestOrBuilder.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetCustomClassRequestOrBuilder.java deleted file mode 100644 index 721b97fda..000000000 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetCustomClassRequestOrBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/speech/v1p1beta1/cloud_speech_adaptation.proto - -package com.google.cloud.speech.v1p1beta1; - -public interface GetCustomClassRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1p1beta1.GetCustomClassRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The name of the custom class to retrieve. Format:
-   * `projects/{project}/locations/{location}/customClasses/{custom_class}`
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The name of the custom class to retrieve. Format:
-   * `projects/{project}/locations/{location}/customClasses/{custom_class}`
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeRequestOrBuilder.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeRequestOrBuilder.java deleted file mode 100644 index 2e594dfdd..000000000 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeRequestOrBuilder.java +++ /dev/null @@ -1,66 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/speech/v1p1beta1/cloud_speech.proto - -package com.google.cloud.speech.v1p1beta1; - -public interface RecognizeRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1p1beta1.RecognizeRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Provides information to the recognizer that specifies how to
-   * process the request.
-   * 
- * - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the config field is set. - */ - boolean hasConfig(); - /** - *
-   * Required. Provides information to the recognizer that specifies how to
-   * process the request.
-   * 
- * - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The config. - */ - com.google.cloud.speech.v1p1beta1.RecognitionConfig getConfig(); - /** - *
-   * Required. Provides information to the recognizer that specifies how to
-   * process the request.
-   * 
- * - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - com.google.cloud.speech.v1p1beta1.RecognitionConfigOrBuilder getConfigOrBuilder(); - - /** - *
-   * Required. The audio data to be recognized.
-   * 
- * - * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the audio field is set. - */ - boolean hasAudio(); - /** - *
-   * Required. The audio data to be recognized.
-   * 
- * - * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The audio. - */ - com.google.cloud.speech.v1p1beta1.RecognitionAudio getAudio(); - /** - *
-   * Required. The audio data to be recognized.
-   * 
- * - * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - com.google.cloud.speech.v1p1beta1.RecognitionAudioOrBuilder getAudioOrBuilder(); -} diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptationProto.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptationProto.java deleted file mode 100644 index 0322b2c20..000000000 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptationProto.java +++ /dev/null @@ -1,292 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/speech/v1p1beta1/cloud_speech_adaptation.proto - -package com.google.cloud.speech.v1p1beta1; - -public final class SpeechAdaptationProto { - private SpeechAdaptationProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1p1beta1_CreatePhraseSetRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1p1beta1_CreatePhraseSetRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1p1beta1_UpdatePhraseSetRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1p1beta1_UpdatePhraseSetRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1p1beta1_GetPhraseSetRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1p1beta1_GetPhraseSetRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1p1beta1_ListPhraseSetRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1p1beta1_ListPhraseSetRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1p1beta1_ListPhraseSetResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1p1beta1_ListPhraseSetResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1p1beta1_DeletePhraseSetRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1p1beta1_DeletePhraseSetRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1p1beta1_CreateCustomClassRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1p1beta1_CreateCustomClassRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1p1beta1_UpdateCustomClassRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1p1beta1_UpdateCustomClassRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1p1beta1_GetCustomClassRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1p1beta1_GetCustomClassRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1p1beta1_ListCustomClassesRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1p1beta1_ListCustomClassesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1p1beta1_ListCustomClassesResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1p1beta1_ListCustomClassesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1p1beta1_DeleteCustomClassRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1p1beta1_DeleteCustomClassRequest_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n;google/cloud/speech/v1p1beta1/cloud_sp" + - "eech_adaptation.proto\022\035google.cloud.spee" + - "ch.v1p1beta1\032\034google/api/annotations.pro" + - "to\032\027google/api/client.proto\032\037google/api/" + - "field_behavior.proto\032\031google/api/resourc" + - "e.proto\032,google/cloud/speech/v1p1beta1/r" + - "esource.proto\032\033google/protobuf/empty.pro" + - "to\032 google/protobuf/field_mask.proto\"\260\001\n" + - "\026CreatePhraseSetRequest\0227\n\006parent\030\001 \001(\tB" + - "\'\340A\002\372A!\022\037speech.googleapis.com/PhraseSet" + - "\022\032\n\rphrase_set_id\030\002 \001(\tB\003\340A\002\022A\n\nphrase_s" + - "et\030\003 \001(\0132(.google.cloud.speech.v1p1beta1" + - ".PhraseSetB\003\340A\002\"\214\001\n\026UpdatePhraseSetReque" + - "st\022A\n\nphrase_set\030\001 \001(\0132(.google.cloud.sp" + - "eech.v1p1beta1.PhraseSetB\003\340A\002\022/\n\013update_" + - "mask\030\002 \001(\0132\032.google.protobuf.FieldMask\"L" + - "\n\023GetPhraseSetRequest\0225\n\004name\030\001 \001(\tB\'\340A\002" + - "\372A!\n\037speech.googleapis.com/PhraseSet\"v\n\024" + - "ListPhraseSetRequest\0227\n\006parent\030\001 \001(\tB\'\340A" + - "\002\372A!\022\037speech.googleapis.com/PhraseSet\022\021\n" + - "\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"o\n\025" + - "ListPhraseSetResponse\022=\n\013phrase_sets\030\001 \003" + - "(\0132(.google.cloud.speech.v1p1beta1.Phras" + - "eSet\022\027\n\017next_page_token\030\002 \001(\t\"O\n\026DeleteP" + - "hraseSetRequest\0225\n\004name\030\001 \001(\tB\'\340A\002\372A!\n\037s" + - "peech.googleapis.com/PhraseSet\"\272\001\n\030Creat" + - "eCustomClassRequest\0229\n\006parent\030\001 \001(\tB)\340A\002" + - "\372A#\022!speech.googleapis.com/CustomClass\022\034" + - "\n\017custom_class_id\030\002 \001(\tB\003\340A\002\022E\n\014custom_c" + - "lass\030\003 \001(\0132*.google.cloud.speech.v1p1bet" + - "a1.CustomClassB\003\340A\002\"\222\001\n\030UpdateCustomClas" + - "sRequest\022E\n\014custom_class\030\001 \001(\0132*.google." + - "cloud.speech.v1p1beta1.CustomClassB\003\340A\002\022" + - "/\n\013update_mask\030\002 \001(\0132\032.google.protobuf.F" + - "ieldMask\"P\n\025GetCustomClassRequest\0227\n\004nam" + - "e\030\001 \001(\tB)\340A\002\372A#\n!speech.googleapis.com/C" + - "ustomClass\"|\n\030ListCustomClassesRequest\0229" + - "\n\006parent\030\001 \001(\tB)\340A\002\372A#\022!speech.googleapi" + - "s.com/CustomClass\022\021\n\tpage_size\030\002 \001(\005\022\022\n\n" + - "page_token\030\003 \001(\t\"x\n\031ListCustomClassesRes" + - "ponse\022B\n\016custom_classes\030\001 \003(\0132*.google.c" + - "loud.speech.v1p1beta1.CustomClass\022\027\n\017nex" + - "t_page_token\030\002 \001(\t\"S\n\030DeleteCustomClassR" + - "equest\0227\n\004name\030\001 \001(\tB)\340A\002\372A#\n!speech.goo" + - "gleapis.com/CustomClass2\322\020\n\nAdaptation\022\326" + - "\001\n\017CreatePhraseSet\0225.google.cloud.speech" + - ".v1p1beta1.CreatePhraseSetRequest\032(.goog" + - "le.cloud.speech.v1p1beta1.PhraseSet\"b\202\323\344" + - "\223\002:\"5/v1p1beta1/{parent=projects/*/locat" + - "ions/*}/phraseSets:\001*\332A\037parent,phrase_se" + - "t,phrase_set_id\022\262\001\n\014GetPhraseSet\0222.googl" + - "e.cloud.speech.v1p1beta1.GetPhraseSetReq" + - "uest\032(.google.cloud.speech.v1p1beta1.Phr" + - "aseSet\"D\202\323\344\223\0027\0225/v1p1beta1/{name=project" + - "s/*/locations/*/phraseSets/*}\332A\004name\022\302\001\n" + - "\rListPhraseSet\0223.google.cloud.speech.v1p" + - "1beta1.ListPhraseSetRequest\0324.google.clo" + - "ud.speech.v1p1beta1.ListPhraseSetRespons" + - "e\"F\202\323\344\223\0027\0225/v1p1beta1/{parent=projects/*" + - "/locations/*}/phraseSets\332A\006parent\022\341\001\n\017Up" + - "datePhraseSet\0225.google.cloud.speech.v1p1" + - "beta1.UpdatePhraseSetRequest\032(.google.cl" + - "oud.speech.v1p1beta1.PhraseSet\"m\202\323\344\223\002N2@" + - "/v1p1beta1/{phrase_set.name=projects/*/l" + - "ocations/*/phraseSets/*}:\nphrase_set\332A\026p" + - "hrase_set,update_mask\022\246\001\n\017DeletePhraseSe" + - "t\0225.google.cloud.speech.v1p1beta1.Delete" + - "PhraseSetRequest\032\026.google.protobuf.Empty" + - "\"D\202\323\344\223\0027*5/v1p1beta1/{name=projects/*/lo" + - "cations/*/phraseSets/*}\332A\004name\022\343\001\n\021Creat" + - "eCustomClass\0227.google.cloud.speech.v1p1b" + - "eta1.CreateCustomClassRequest\032*.google.c" + - "loud.speech.v1p1beta1.CustomClass\"i\202\323\344\223\002" + - "=\"8/v1p1beta1/{parent=projects/*/locatio" + - "ns/*}/customClasses:\001*\332A#parent,custom_c" + - "lass,custom_class_id\022\273\001\n\016GetCustomClass\022" + - "4.google.cloud.speech.v1p1beta1.GetCusto" + - "mClassRequest\032*.google.cloud.speech.v1p1" + - "beta1.CustomClass\"G\202\323\344\223\002:\0228/v1p1beta1/{n" + - "ame=projects/*/locations/*/customClasses" + - "/*}\332A\004name\022\321\001\n\021ListCustomClasses\0227.googl" + - "e.cloud.speech.v1p1beta1.ListCustomClass" + - "esRequest\0328.google.cloud.speech.v1p1beta" + - "1.ListCustomClassesResponse\"I\202\323\344\223\002:\0228/v1" + - "p1beta1/{parent=projects/*/locations/*}/" + - "customClasses\332A\006parent\022\360\001\n\021UpdateCustomC" + - "lass\0227.google.cloud.speech.v1p1beta1.Upd" + - "ateCustomClassRequest\032*.google.cloud.spe" + - "ech.v1p1beta1.CustomClass\"v\202\323\344\223\002U2E/v1p1" + - "beta1/{custom_class.name=projects/*/loca" + - "tions/*/customClasses/*}:\014custom_class\332A" + - "\030custom_class,update_mask\022\255\001\n\021DeleteCust" + - "omClass\0227.google.cloud.speech.v1p1beta1." + - "DeleteCustomClassRequest\032\026.google.protob" + - "uf.Empty\"G\202\323\344\223\002:*8/v1p1beta1/{name=proje" + - "cts/*/locations/*/customClasses/*}\332A\004nam" + - "e\032I\312A\025speech.googleapis.com\322A.https://ww" + - "w.googleapis.com/auth/cloud-platformB\212\001\n" + - "!com.google.cloud.speech.v1p1beta1B\025Spee" + - "chAdaptationProtoP\001ZCgoogle.golang.org/g" + - "enproto/googleapis/cloud/speech/v1p1beta" + - "1;speech\370\001\001\242\002\003GCSb\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.cloud.speech.v1p1beta1.SpeechResourceProto.getDescriptor(), - com.google.protobuf.EmptyProto.getDescriptor(), - com.google.protobuf.FieldMaskProto.getDescriptor(), - }); - internal_static_google_cloud_speech_v1p1beta1_CreatePhraseSetRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_speech_v1p1beta1_CreatePhraseSetRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_speech_v1p1beta1_CreatePhraseSetRequest_descriptor, - new java.lang.String[] { "Parent", "PhraseSetId", "PhraseSet", }); - internal_static_google_cloud_speech_v1p1beta1_UpdatePhraseSetRequest_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_speech_v1p1beta1_UpdatePhraseSetRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_speech_v1p1beta1_UpdatePhraseSetRequest_descriptor, - new java.lang.String[] { "PhraseSet", "UpdateMask", }); - internal_static_google_cloud_speech_v1p1beta1_GetPhraseSetRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_speech_v1p1beta1_GetPhraseSetRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_speech_v1p1beta1_GetPhraseSetRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_speech_v1p1beta1_ListPhraseSetRequest_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_speech_v1p1beta1_ListPhraseSetRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_speech_v1p1beta1_ListPhraseSetRequest_descriptor, - new java.lang.String[] { "Parent", "PageSize", "PageToken", }); - internal_static_google_cloud_speech_v1p1beta1_ListPhraseSetResponse_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_speech_v1p1beta1_ListPhraseSetResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_speech_v1p1beta1_ListPhraseSetResponse_descriptor, - new java.lang.String[] { "PhraseSets", "NextPageToken", }); - internal_static_google_cloud_speech_v1p1beta1_DeletePhraseSetRequest_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_speech_v1p1beta1_DeletePhraseSetRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_speech_v1p1beta1_DeletePhraseSetRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_speech_v1p1beta1_CreateCustomClassRequest_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_speech_v1p1beta1_CreateCustomClassRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_speech_v1p1beta1_CreateCustomClassRequest_descriptor, - new java.lang.String[] { "Parent", "CustomClassId", "CustomClass", }); - internal_static_google_cloud_speech_v1p1beta1_UpdateCustomClassRequest_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_speech_v1p1beta1_UpdateCustomClassRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_speech_v1p1beta1_UpdateCustomClassRequest_descriptor, - new java.lang.String[] { "CustomClass", "UpdateMask", }); - internal_static_google_cloud_speech_v1p1beta1_GetCustomClassRequest_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_speech_v1p1beta1_GetCustomClassRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_speech_v1p1beta1_GetCustomClassRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_speech_v1p1beta1_ListCustomClassesRequest_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_speech_v1p1beta1_ListCustomClassesRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_speech_v1p1beta1_ListCustomClassesRequest_descriptor, - new java.lang.String[] { "Parent", "PageSize", "PageToken", }); - internal_static_google_cloud_speech_v1p1beta1_ListCustomClassesResponse_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_speech_v1p1beta1_ListCustomClassesResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_speech_v1p1beta1_ListCustomClassesResponse_descriptor, - new java.lang.String[] { "CustomClasses", "NextPageToken", }); - internal_static_google_cloud_speech_v1p1beta1_DeleteCustomClassRequest_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_cloud_speech_v1p1beta1_DeleteCustomClassRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_speech_v1p1beta1_DeleteCustomClassRequest_descriptor, - new java.lang.String[] { "Name", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ClientProto.defaultHost); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.AnnotationsProto.http); - registry.add(com.google.api.ClientProto.methodSignature); - registry.add(com.google.api.ClientProto.oauthScopes); - registry.add(com.google.api.ResourceProto.resourceReference); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.cloud.speech.v1p1beta1.SpeechResourceProto.getDescriptor(); - com.google.protobuf.EmptyProto.getDescriptor(); - com.google.protobuf.FieldMaskProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechProto.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechProto.java deleted file mode 100644 index fa6b61566..000000000 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechProto.java +++ /dev/null @@ -1,422 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/speech/v1p1beta1/cloud_speech.proto - -package com.google.cloud.speech.v1p1beta1; - -public final class SpeechProto { - private SpeechProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1p1beta1_RecognizeRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1p1beta1_RecognizeRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1p1beta1_TranscriptOutputConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1p1beta1_TranscriptOutputConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1p1beta1_StreamingRecognizeRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1p1beta1_StreamingRecognizeRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1p1beta1_StreamingRecognitionConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1p1beta1_StreamingRecognitionConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1p1beta1_RecognitionConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1p1beta1_RecognitionConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1p1beta1_SpeakerDiarizationConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1p1beta1_SpeakerDiarizationConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1p1beta1_RecognitionMetadata_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1p1beta1_RecognitionMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1p1beta1_SpeechContext_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1p1beta1_SpeechContext_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1p1beta1_RecognitionAudio_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1p1beta1_RecognitionAudio_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1p1beta1_RecognizeResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1p1beta1_RecognizeResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeMetadata_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1p1beta1_StreamingRecognizeResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1p1beta1_StreamingRecognizeResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1p1beta1_StreamingRecognitionResult_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1p1beta1_StreamingRecognitionResult_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1p1beta1_SpeechRecognitionResult_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1p1beta1_SpeechRecognitionResult_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1p1beta1_SpeechRecognitionAlternative_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1p1beta1_SpeechRecognitionAlternative_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1p1beta1_WordInfo_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1p1beta1_WordInfo_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n0google/cloud/speech/v1p1beta1/cloud_sp" + - "eech.proto\022\035google.cloud.speech.v1p1beta" + - "1\032\034google/api/annotations.proto\032\027google/" + - "api/client.proto\032\037google/api/field_behav" + - "ior.proto\032,google/cloud/speech/v1p1beta1" + - "/resource.proto\032#google/longrunning/oper" + - "ations.proto\032\031google/protobuf/any.proto\032" + - "\036google/protobuf/duration.proto\032\037google/" + - "protobuf/timestamp.proto\032\036google/protobu" + - "f/wrappers.proto\032\027google/rpc/status.prot" + - "o\"\236\001\n\020RecognizeRequest\022E\n\006config\030\001 \001(\01320" + - ".google.cloud.speech.v1p1beta1.Recogniti" + - "onConfigB\003\340A\002\022C\n\005audio\030\002 \001(\0132/.google.cl" + - "oud.speech.v1p1beta1.RecognitionAudioB\003\340" + - "A\002\"\374\001\n\033LongRunningRecognizeRequest\022E\n\006co" + - "nfig\030\001 \001(\01320.google.cloud.speech.v1p1bet" + - "a1.RecognitionConfigB\003\340A\002\022C\n\005audio\030\002 \001(\013" + - "2/.google.cloud.speech.v1p1beta1.Recogni" + - "tionAudioB\003\340A\002\022Q\n\routput_config\030\004 \001(\01325." + - "google.cloud.speech.v1p1beta1.Transcript" + - "OutputConfigB\003\340A\001\":\n\026TranscriptOutputCon" + - "fig\022\021\n\007gcs_uri\030\001 \001(\tH\000B\r\n\013output_type\"\240\001" + - "\n\031StreamingRecognizeRequest\022U\n\020streaming" + - "_config\030\001 \001(\01329.google.cloud.speech.v1p1" + - "beta1.StreamingRecognitionConfigH\000\022\027\n\rau" + - "dio_content\030\002 \001(\014H\000B\023\n\021streaming_request" + - "\"\226\001\n\032StreamingRecognitionConfig\022E\n\006confi" + - "g\030\001 \001(\01320.google.cloud.speech.v1p1beta1." + - "RecognitionConfigB\003\340A\002\022\030\n\020single_utteran" + - "ce\030\002 \001(\010\022\027\n\017interim_results\030\003 \001(\010\"\276\t\n\021Re" + - "cognitionConfig\022P\n\010encoding\030\001 \001(\0162>.goog" + - "le.cloud.speech.v1p1beta1.RecognitionCon" + - "fig.AudioEncoding\022\031\n\021sample_rate_hertz\030\002" + - " \001(\005\022\033\n\023audio_channel_count\030\007 \001(\005\022/\n\'ena" + - "ble_separate_recognition_per_channel\030\014 \001" + - "(\010\022\032\n\rlanguage_code\030\003 \001(\tB\003\340A\002\022\"\n\032altern" + - "ative_language_codes\030\022 \003(\t\022\030\n\020max_altern" + - "atives\030\004 \001(\005\022\030\n\020profanity_filter\030\005 \001(\010\022C" + - "\n\nadaptation\030\024 \001(\0132/.google.cloud.speech" + - ".v1p1beta1.SpeechAdaptation\022X\n\030transcrip" + - "t_normalization\030\030 \001(\01326.google.cloud.spe" + - "ech.v1p1beta1.TranscriptNormalization\022E\n" + - "\017speech_contexts\030\006 \003(\0132,.google.cloud.sp" + - "eech.v1p1beta1.SpeechContext\022 \n\030enable_w" + - "ord_time_offsets\030\010 \001(\010\022\036\n\026enable_word_co" + - "nfidence\030\017 \001(\010\022$\n\034enable_automatic_punct" + - "uation\030\013 \001(\010\022=\n\031enable_spoken_punctuatio" + - "n\030\026 \001(\0132\032.google.protobuf.BoolValue\0228\n\024e" + - "nable_spoken_emojis\030\027 \001(\0132\032.google.proto" + - "buf.BoolValue\022&\n\032enable_speaker_diarizat" + - "ion\030\020 \001(\010B\002\030\001\022%\n\031diarization_speaker_cou" + - "nt\030\021 \001(\005B\002\030\001\022S\n\022diarization_config\030\023 \001(\013" + - "27.google.cloud.speech.v1p1beta1.Speaker" + - "DiarizationConfig\022D\n\010metadata\030\t \001(\01322.go" + - "ogle.cloud.speech.v1p1beta1.RecognitionM" + - "etadata\022\r\n\005model\030\r \001(\t\022\024\n\014use_enhanced\030\016" + - " \001(\010\"\243\001\n\rAudioEncoding\022\030\n\024ENCODING_UNSPE" + - "CIFIED\020\000\022\014\n\010LINEAR16\020\001\022\010\n\004FLAC\020\002\022\t\n\005MULA" + - "W\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\tW" + - "EBM_OPUS\020\t\"\220\001\n\030SpeakerDiarizationConfig\022" + - "\"\n\032enable_speaker_diarization\030\001 \001(\010\022\031\n\021m" + - "in_speaker_count\030\002 \001(\005\022\031\n\021max_speaker_co" + - "unt\030\003 \001(\005\022\032\n\013speaker_tag\030\005 \001(\005B\005\030\001\340A\003\"\327\010" + - "\n\023RecognitionMetadata\022\\\n\020interaction_typ" + - "e\030\001 \001(\0162B.google.cloud.speech.v1p1beta1." + - "RecognitionMetadata.InteractionType\022$\n\034i" + - "ndustry_naics_code_of_audio\030\003 \001(\r\022b\n\023mic" + - "rophone_distance\030\004 \001(\0162E.google.cloud.sp" + - "eech.v1p1beta1.RecognitionMetadata.Micro" + - "phoneDistance\022a\n\023original_media_type\030\005 \001" + - "(\0162D.google.cloud.speech.v1p1beta1.Recog" + - "nitionMetadata.OriginalMediaType\022e\n\025reco" + - "rding_device_type\030\006 \001(\0162F.google.cloud.s" + - "peech.v1p1beta1.RecognitionMetadata.Reco" + - "rdingDeviceType\022\035\n\025recording_device_name" + - "\030\007 \001(\t\022\032\n\022original_mime_type\030\010 \001(\t\022\031\n\rob" + - "fuscated_id\030\t \001(\003B\002\030\001\022\023\n\013audio_topic\030\n \001" + - "(\t\"\305\001\n\017InteractionType\022 \n\034INTERACTION_TY" + - "PE_UNSPECIFIED\020\000\022\016\n\nDISCUSSION\020\001\022\020\n\014PRES" + - "ENTATION\020\002\022\016\n\nPHONE_CALL\020\003\022\r\n\tVOICEMAIL\020" + - "\004\022\033\n\027PROFESSIONALLY_PRODUCED\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_D" + - "ISTANCE_UNSPECIFIED\020\000\022\r\n\tNEARFIELD\020\001\022\014\n\010" + - "MIDFIELD\020\002\022\014\n\010FARFIELD\020\003\"N\n\021OriginalMedi" + - "aType\022#\n\037ORIGINAL_MEDIA_TYPE_UNSPECIFIED" + - "\020\000\022\t\n\005AUDIO\020\001\022\t\n\005VIDEO\020\002\"\244\001\n\023RecordingDe" + - "viceType\022%\n!RECORDING_DEVICE_TYPE_UNSPEC" + - "IFIED\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_DE" + - "VICE\020\005\022\027\n\023OTHER_INDOOR_DEVICE\020\006\"/\n\rSpeec" + - "hContext\022\017\n\007phrases\030\001 \003(\t\022\r\n\005boost\030\004 \001(\002" + - "\"D\n\020RecognitionAudio\022\021\n\007content\030\001 \001(\014H\000\022" + - "\r\n\003uri\030\002 \001(\tH\000B\016\n\014audio_source\"\222\001\n\021Recog" + - "nizeResponse\022G\n\007results\030\002 \003(\01326.google.c" + - "loud.speech.v1p1beta1.SpeechRecognitionR" + - "esult\0224\n\021total_billed_time\030\003 \001(\0132\031.googl" + - "e.protobuf.Duration\"\225\002\n\034LongRunningRecog" + - "nizeResponse\022G\n\007results\030\002 \003(\01326.google.c" + - "loud.speech.v1p1beta1.SpeechRecognitionR" + - "esult\0224\n\021total_billed_time\030\003 \001(\0132\031.googl" + - "e.protobuf.Duration\022L\n\routput_config\030\006 \001" + - "(\01325.google.cloud.speech.v1p1beta1.Trans" + - "criptOutputConfig\022(\n\014output_error\030\007 \001(\0132" + - "\022.google.rpc.Status\"\203\002\n\034LongRunningRecog" + - "nizeMetadata\022\030\n\020progress_percent\030\001 \001(\005\022." + - "\n\nstart_time\030\002 \001(\0132\032.google.protobuf.Tim" + - "estamp\0224\n\020last_update_time\030\003 \001(\0132\032.googl" + - "e.protobuf.Timestamp\022\020\n\003uri\030\004 \001(\tB\003\340A\003\022Q" + - "\n\routput_config\030\005 \001(\01325.google.cloud.spe" + - "ech.v1p1beta1.TranscriptOutputConfigB\003\340A" + - "\003\"\365\002\n\032StreamingRecognizeResponse\022!\n\005erro" + - "r\030\001 \001(\0132\022.google.rpc.Status\022J\n\007results\030\002" + - " \003(\01329.google.cloud.speech.v1p1beta1.Str" + - "eamingRecognitionResult\022d\n\021speech_event_" + - "type\030\004 \001(\0162I.google.cloud.speech.v1p1bet" + - "a1.StreamingRecognizeResponse.SpeechEven" + - "tType\0224\n\021total_billed_time\030\005 \001(\0132\031.googl" + - "e.protobuf.Duration\"L\n\017SpeechEventType\022\034" + - "\n\030SPEECH_EVENT_UNSPECIFIED\020\000\022\033\n\027END_OF_S" + - "INGLE_UTTERANCE\020\001\"\371\001\n\032StreamingRecogniti" + - "onResult\022Q\n\014alternatives\030\001 \003(\0132;.google." + - "cloud.speech.v1p1beta1.SpeechRecognition" + - "Alternative\022\020\n\010is_final\030\002 \001(\010\022\021\n\tstabili" + - "ty\030\003 \001(\002\0222\n\017result_end_time\030\004 \001(\0132\031.goog" + - "le.protobuf.Duration\022\023\n\013channel_tag\030\005 \001(" + - "\005\022\032\n\rlanguage_code\030\006 \001(\tB\003\340A\003\"\321\001\n\027Speech" + - "RecognitionResult\022Q\n\014alternatives\030\001 \003(\0132" + - ";.google.cloud.speech.v1p1beta1.SpeechRe" + - "cognitionAlternative\022\023\n\013channel_tag\030\002 \001(" + - "\005\0222\n\017result_end_time\030\004 \001(\0132\031.google.prot" + - "obuf.Duration\022\032\n\rlanguage_code\030\005 \001(\tB\003\340A" + - "\003\"~\n\034SpeechRecognitionAlternative\022\022\n\ntra" + - "nscript\030\001 \001(\t\022\022\n\nconfidence\030\002 \001(\002\0226\n\005wor" + - "ds\030\003 \003(\0132\'.google.cloud.speech.v1p1beta1" + - ".WordInfo\"\242\001\n\010WordInfo\022-\n\nstart_time\030\001 \001" + - "(\0132\031.google.protobuf.Duration\022+\n\010end_tim" + - "e\030\002 \001(\0132\031.google.protobuf.Duration\022\014\n\004wo" + - "rd\030\003 \001(\t\022\022\n\nconfidence\030\004 \001(\002\022\030\n\013speaker_" + - "tag\030\005 \001(\005B\003\340A\0032\202\005\n\006Speech\022\245\001\n\tRecognize\022" + - "/.google.cloud.speech.v1p1beta1.Recogniz" + - "eRequest\0320.google.cloud.speech.v1p1beta1" + - ".RecognizeResponse\"5\202\323\344\223\002 \"\033/v1p1beta1/s" + - "peech:recognize:\001*\332A\014config,audio\022\362\001\n\024Lo" + - "ngRunningRecognize\022:.google.cloud.speech" + - ".v1p1beta1.LongRunningRecognizeRequest\032\035" + - ".google.longrunning.Operation\"\177\202\323\344\223\002+\"&/" + - "v1p1beta1/speech:longrunningrecognize:\001*" + - "\332A\014config,audio\312A<\n\034LongRunningRecognize" + - "Response\022\034LongRunningRecognizeMetadata\022\217" + - "\001\n\022StreamingRecognize\0228.google.cloud.spe" + - "ech.v1p1beta1.StreamingRecognizeRequest\032" + - "9.google.cloud.speech.v1p1beta1.Streamin" + - "gRecognizeResponse\"\000(\0010\001\032I\312A\025speech.goog" + - "leapis.com\322A.https://www.googleapis.com/" + - "auth/cloud-platformB\200\001\n!com.google.cloud" + - ".speech.v1p1beta1B\013SpeechProtoP\001ZCgoogle" + - ".golang.org/genproto/googleapis/cloud/sp" + - "eech/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.AnyProto.getDescriptor(), - com.google.protobuf.DurationProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - com.google.protobuf.WrappersProto.getDescriptor(), - com.google.rpc.StatusProto.getDescriptor(), - }); - internal_static_google_cloud_speech_v1p1beta1_RecognizeRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_speech_v1p1beta1_RecognizeRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_speech_v1p1beta1_RecognizeRequest_descriptor, - new java.lang.String[] { "Config", "Audio", }); - internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeRequest_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeRequest_descriptor, - new java.lang.String[] { "Config", "Audio", "OutputConfig", }); - internal_static_google_cloud_speech_v1p1beta1_TranscriptOutputConfig_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_speech_v1p1beta1_TranscriptOutputConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_speech_v1p1beta1_TranscriptOutputConfig_descriptor, - new java.lang.String[] { "GcsUri", "OutputType", }); - internal_static_google_cloud_speech_v1p1beta1_StreamingRecognizeRequest_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_speech_v1p1beta1_StreamingRecognizeRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_speech_v1p1beta1_StreamingRecognizeRequest_descriptor, - new java.lang.String[] { "StreamingConfig", "AudioContent", "StreamingRequest", }); - internal_static_google_cloud_speech_v1p1beta1_StreamingRecognitionConfig_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_speech_v1p1beta1_StreamingRecognitionConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_speech_v1p1beta1_StreamingRecognitionConfig_descriptor, - new java.lang.String[] { "Config", "SingleUtterance", "InterimResults", }); - internal_static_google_cloud_speech_v1p1beta1_RecognitionConfig_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_speech_v1p1beta1_RecognitionConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_speech_v1p1beta1_RecognitionConfig_descriptor, - new java.lang.String[] { "Encoding", "SampleRateHertz", "AudioChannelCount", "EnableSeparateRecognitionPerChannel", "LanguageCode", "AlternativeLanguageCodes", "MaxAlternatives", "ProfanityFilter", "Adaptation", "TranscriptNormalization", "SpeechContexts", "EnableWordTimeOffsets", "EnableWordConfidence", "EnableAutomaticPunctuation", "EnableSpokenPunctuation", "EnableSpokenEmojis", "EnableSpeakerDiarization", "DiarizationSpeakerCount", "DiarizationConfig", "Metadata", "Model", "UseEnhanced", }); - internal_static_google_cloud_speech_v1p1beta1_SpeakerDiarizationConfig_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_speech_v1p1beta1_SpeakerDiarizationConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_speech_v1p1beta1_SpeakerDiarizationConfig_descriptor, - new java.lang.String[] { "EnableSpeakerDiarization", "MinSpeakerCount", "MaxSpeakerCount", "SpeakerTag", }); - internal_static_google_cloud_speech_v1p1beta1_RecognitionMetadata_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_speech_v1p1beta1_RecognitionMetadata_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_speech_v1p1beta1_RecognitionMetadata_descriptor, - new java.lang.String[] { "InteractionType", "IndustryNaicsCodeOfAudio", "MicrophoneDistance", "OriginalMediaType", "RecordingDeviceType", "RecordingDeviceName", "OriginalMimeType", "ObfuscatedId", "AudioTopic", }); - internal_static_google_cloud_speech_v1p1beta1_SpeechContext_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_speech_v1p1beta1_SpeechContext_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_speech_v1p1beta1_SpeechContext_descriptor, - new java.lang.String[] { "Phrases", "Boost", }); - internal_static_google_cloud_speech_v1p1beta1_RecognitionAudio_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_speech_v1p1beta1_RecognitionAudio_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_speech_v1p1beta1_RecognitionAudio_descriptor, - new java.lang.String[] { "Content", "Uri", "AudioSource", }); - internal_static_google_cloud_speech_v1p1beta1_RecognizeResponse_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_speech_v1p1beta1_RecognizeResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_speech_v1p1beta1_RecognizeResponse_descriptor, - new java.lang.String[] { "Results", "TotalBilledTime", }); - internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeResponse_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeResponse_descriptor, - new java.lang.String[] { "Results", "TotalBilledTime", "OutputConfig", "OutputError", }); - internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeMetadata_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeMetadata_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeMetadata_descriptor, - new java.lang.String[] { "ProgressPercent", "StartTime", "LastUpdateTime", "Uri", "OutputConfig", }); - internal_static_google_cloud_speech_v1p1beta1_StreamingRecognizeResponse_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_google_cloud_speech_v1p1beta1_StreamingRecognizeResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_speech_v1p1beta1_StreamingRecognizeResponse_descriptor, - new java.lang.String[] { "Error", "Results", "SpeechEventType", "TotalBilledTime", }); - internal_static_google_cloud_speech_v1p1beta1_StreamingRecognitionResult_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_google_cloud_speech_v1p1beta1_StreamingRecognitionResult_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_speech_v1p1beta1_StreamingRecognitionResult_descriptor, - new java.lang.String[] { "Alternatives", "IsFinal", "Stability", "ResultEndTime", "ChannelTag", "LanguageCode", }); - internal_static_google_cloud_speech_v1p1beta1_SpeechRecognitionResult_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_google_cloud_speech_v1p1beta1_SpeechRecognitionResult_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_speech_v1p1beta1_SpeechRecognitionResult_descriptor, - new java.lang.String[] { "Alternatives", "ChannelTag", "ResultEndTime", "LanguageCode", }); - internal_static_google_cloud_speech_v1p1beta1_SpeechRecognitionAlternative_descriptor = - getDescriptor().getMessageTypes().get(16); - internal_static_google_cloud_speech_v1p1beta1_SpeechRecognitionAlternative_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_speech_v1p1beta1_SpeechRecognitionAlternative_descriptor, - new java.lang.String[] { "Transcript", "Confidence", "Words", }); - internal_static_google_cloud_speech_v1p1beta1_WordInfo_descriptor = - getDescriptor().getMessageTypes().get(17); - internal_static_google_cloud_speech_v1p1beta1_WordInfo_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_speech_v1p1beta1_WordInfo_descriptor, - new java.lang.String[] { "StartTime", "EndTime", "Word", "Confidence", "SpeakerTag", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ClientProto.defaultHost); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.AnnotationsProto.http); - registry.add(com.google.api.ClientProto.methodSignature); - registry.add(com.google.api.ClientProto.oauthScopes); - registry.add(com.google.longrunning.OperationsProto.operationInfo); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.cloud.speech.v1p1beta1.SpeechResourceProto.getDescriptor(); - com.google.longrunning.OperationsProto.getDescriptor(); - com.google.protobuf.AnyProto.getDescriptor(); - com.google.protobuf.DurationProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - com.google.protobuf.WrappersProto.getDescriptor(); - com.google.rpc.StatusProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechResourceProto.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechResourceProto.java deleted file mode 100644 index b835955e1..000000000 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechResourceProto.java +++ /dev/null @@ -1,154 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/speech/v1p1beta1/resource.proto - -package com.google.cloud.speech.v1p1beta1; - -public final class SpeechResourceProto { - private SpeechResourceProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1p1beta1_CustomClass_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1p1beta1_CustomClass_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1p1beta1_CustomClass_ClassItem_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1p1beta1_CustomClass_ClassItem_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1p1beta1_PhraseSet_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1p1beta1_PhraseSet_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1p1beta1_PhraseSet_Phrase_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1p1beta1_PhraseSet_Phrase_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptation_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptation_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1p1beta1_TranscriptNormalization_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1p1beta1_TranscriptNormalization_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1p1beta1_TranscriptNormalization_Entry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1p1beta1_TranscriptNormalization_Entry_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n,google/cloud/speech/v1p1beta1/resource" + - ".proto\022\035google.cloud.speech.v1p1beta1\032\031g" + - "oogle/api/resource.proto\032\037google/protobu" + - "f/timestamp.proto\032\034google/api/annotation" + - "s.proto\"\203\002\n\013CustomClass\022\014\n\004name\030\001 \001(\t\022\027\n" + - "\017custom_class_id\030\002 \001(\t\022C\n\005items\030\003 \003(\01324." + - "google.cloud.speech.v1p1beta1.CustomClas" + - "s.ClassItem\032\032\n\tClassItem\022\r\n\005value\030\001 \001(\t:" + - "l\352Ai\n!speech.googleapis.com/CustomClass\022" + - "Dprojects/{project}/locations/{location}" + - "/customClasses/{custom_class}\"\371\001\n\tPhrase" + - "Set\022\014\n\004name\030\001 \001(\t\022@\n\007phrases\030\002 \003(\0132/.goo" + - "gle.cloud.speech.v1p1beta1.PhraseSet.Phr" + - "ase\022\r\n\005boost\030\004 \001(\002\032&\n\006Phrase\022\r\n\005value\030\001 " + - "\001(\t\022\r\n\005boost\030\002 \001(\002:e\352Ab\n\037speech.googleap" + - "is.com/PhraseSet\022?projects/{project}/loc" + - "ations/{location}/phraseSets/{phrase_set" + - "}\"\332\001\n\020SpeechAdaptation\022=\n\013phrase_sets\030\001 " + - "\003(\0132(.google.cloud.speech.v1p1beta1.Phra" + - "seSet\022C\n\025phrase_set_references\030\002 \003(\tB$\372A" + - "!\n\037speech.googleapis.com/PhraseSet\022B\n\016cu" + - "stom_classes\030\003 \003(\0132*.google.cloud.speech" + - ".v1p1beta1.CustomClass\"\252\001\n\027TranscriptNor" + - "malization\022M\n\007entries\030\001 \003(\0132<.google.clo" + - "ud.speech.v1p1beta1.TranscriptNormalizat" + - "ion.Entry\032@\n\005Entry\022\016\n\006search\030\001 \001(\t\022\017\n\007re" + - "place\030\002 \001(\t\022\026\n\016case_sensitive\030\003 \001(\010B\210\001\n!" + - "com.google.cloud.speech.v1p1beta1B\023Speec" + - "hResourceProtoP\001ZCgoogle.golang.org/genp" + - "roto/googleapis/cloud/speech/v1p1beta1;s" + - "peech\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(), - com.google.protobuf.TimestampProto.getDescriptor(), - com.google.api.AnnotationsProto.getDescriptor(), - }); - internal_static_google_cloud_speech_v1p1beta1_CustomClass_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_speech_v1p1beta1_CustomClass_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_speech_v1p1beta1_CustomClass_descriptor, - new java.lang.String[] { "Name", "CustomClassId", "Items", }); - internal_static_google_cloud_speech_v1p1beta1_CustomClass_ClassItem_descriptor = - internal_static_google_cloud_speech_v1p1beta1_CustomClass_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_speech_v1p1beta1_CustomClass_ClassItem_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_speech_v1p1beta1_CustomClass_ClassItem_descriptor, - new java.lang.String[] { "Value", }); - internal_static_google_cloud_speech_v1p1beta1_PhraseSet_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_speech_v1p1beta1_PhraseSet_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_speech_v1p1beta1_PhraseSet_descriptor, - new java.lang.String[] { "Name", "Phrases", "Boost", }); - internal_static_google_cloud_speech_v1p1beta1_PhraseSet_Phrase_descriptor = - internal_static_google_cloud_speech_v1p1beta1_PhraseSet_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_speech_v1p1beta1_PhraseSet_Phrase_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_speech_v1p1beta1_PhraseSet_Phrase_descriptor, - new java.lang.String[] { "Value", "Boost", }); - internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptation_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptation_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptation_descriptor, - new java.lang.String[] { "PhraseSets", "PhraseSetReferences", "CustomClasses", }); - internal_static_google_cloud_speech_v1p1beta1_TranscriptNormalization_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_speech_v1p1beta1_TranscriptNormalization_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_speech_v1p1beta1_TranscriptNormalization_descriptor, - new java.lang.String[] { "Entries", }); - internal_static_google_cloud_speech_v1p1beta1_TranscriptNormalization_Entry_descriptor = - internal_static_google_cloud_speech_v1p1beta1_TranscriptNormalization_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_speech_v1p1beta1_TranscriptNormalization_Entry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_speech_v1p1beta1_TranscriptNormalization_Entry_descriptor, - new java.lang.String[] { "Search", "Replace", "CaseSensitive", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ResourceProto.resource); - registry.add(com.google.api.ResourceProto.resourceReference); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.ResourceProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - com.google.api.AnnotationsProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CustomClass.java b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CustomClass.java similarity index 73% rename from owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CustomClass.java rename to proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CustomClass.java index 3567bea88..4ecd622f2 100644 --- a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CustomClass.java +++ b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CustomClass.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1/resource.proto package com.google.cloud.speech.v1; /** + * + * *
  * A set of words or phrases that represents a common concept likely to appear
  * in your audio, for example a list of passenger ship names. CustomClass items
@@ -12,15 +29,16 @@
  *
  * Protobuf type {@code google.cloud.speech.v1.CustomClass}
  */
-public final class CustomClass extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class CustomClass extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.speech.v1.CustomClass)
     CustomClassOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use CustomClass.newBuilder() to construct.
   private CustomClass(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private CustomClass() {
     name_ = "";
     customClassId_ = "";
@@ -29,16 +47,15 @@ private CustomClass() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new CustomClass();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private CustomClass(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -58,41 +75,46 @@ private CustomClass(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            name_ = s;
-            break;
-          }
-          case 18: {
-            java.lang.String s = input.readStringRequireUtf8();
+              name_ = s;
+              break;
+            }
+          case 18:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            customClassId_ = s;
-            break;
-          }
-          case 26: {
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              items_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000001;
+              customClassId_ = s;
+              break;
             }
-            items_.add(
-                input.readMessage(com.google.cloud.speech.v1.CustomClass.ClassItem.parser(), extensionRegistry));
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          case 26:
+            {
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                items_ =
+                    new java.util.ArrayList();
+                mutable_bitField0_ |= 0x00000001;
+              }
+              items_.add(
+                  input.readMessage(
+                      com.google.cloud.speech.v1.CustomClass.ClassItem.parser(),
+                      extensionRegistry));
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         items_ = java.util.Collections.unmodifiableList(items_);
@@ -101,75 +123,86 @@ private CustomClass(
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.speech.v1.SpeechResourceProto.internal_static_google_cloud_speech_v1_CustomClass_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.speech.v1.SpeechResourceProto
+        .internal_static_google_cloud_speech_v1_CustomClass_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v1.SpeechResourceProto.internal_static_google_cloud_speech_v1_CustomClass_fieldAccessorTable
+    return com.google.cloud.speech.v1.SpeechResourceProto
+        .internal_static_google_cloud_speech_v1_CustomClass_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v1.CustomClass.class, com.google.cloud.speech.v1.CustomClass.Builder.class);
+            com.google.cloud.speech.v1.CustomClass.class,
+            com.google.cloud.speech.v1.CustomClass.Builder.class);
   }
 
-  public interface ClassItemOrBuilder extends
+  public interface ClassItemOrBuilder
+      extends
       // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1.CustomClass.ClassItem)
       com.google.protobuf.MessageOrBuilder {
 
     /**
+     *
+     *
      * 
      * The class item's value.
      * 
* * string value = 1; + * * @return The value. */ java.lang.String getValue(); /** + * + * *
      * The class item's value.
      * 
* * string value = 1; + * * @return The bytes for value. */ - com.google.protobuf.ByteString - getValueBytes(); + com.google.protobuf.ByteString getValueBytes(); } /** + * + * *
    * An item of the class.
    * 
* * Protobuf type {@code google.cloud.speech.v1.CustomClass.ClassItem} */ - public static final class ClassItem extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class ClassItem extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v1.CustomClass.ClassItem) ClassItemOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ClassItem.newBuilder() to construct. private ClassItem(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ClassItem() { value_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ClassItem(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ClassItem( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -188,52 +221,58 @@ private ClassItem( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - value_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + value_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1.SpeechResourceProto.internal_static_google_cloud_speech_v1_CustomClass_ClassItem_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1.SpeechResourceProto + .internal_static_google_cloud_speech_v1_CustomClass_ClassItem_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1.SpeechResourceProto.internal_static_google_cloud_speech_v1_CustomClass_ClassItem_fieldAccessorTable + return com.google.cloud.speech.v1.SpeechResourceProto + .internal_static_google_cloud_speech_v1_CustomClass_ClassItem_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1.CustomClass.ClassItem.class, com.google.cloud.speech.v1.CustomClass.ClassItem.Builder.class); + com.google.cloud.speech.v1.CustomClass.ClassItem.class, + com.google.cloud.speech.v1.CustomClass.ClassItem.Builder.class); } public static final int VALUE_FIELD_NUMBER = 1; private volatile java.lang.Object value_; /** + * + * *
      * The class item's value.
      * 
* * string value = 1; + * * @return The value. */ @java.lang.Override @@ -242,29 +281,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 { @@ -273,6 +312,7 @@ public java.lang.String getValue() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -284,8 +324,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(value_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, value_); } @@ -309,15 +348,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1.CustomClass.ClassItem)) { return super.equals(obj); } - com.google.cloud.speech.v1.CustomClass.ClassItem other = (com.google.cloud.speech.v1.CustomClass.ClassItem) obj; + com.google.cloud.speech.v1.CustomClass.ClassItem other = + (com.google.cloud.speech.v1.CustomClass.ClassItem) obj; - if (!getValue() - .equals(other.getValue())) return false; + if (!getValue().equals(other.getValue())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -337,87 +376,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 @@ -427,27 +472,32 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * An item of the class.
      * 
* * Protobuf type {@code google.cloud.speech.v1.CustomClass.ClassItem} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1.CustomClass.ClassItem) com.google.cloud.speech.v1.CustomClass.ClassItemOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1.SpeechResourceProto.internal_static_google_cloud_speech_v1_CustomClass_ClassItem_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1.SpeechResourceProto + .internal_static_google_cloud_speech_v1_CustomClass_ClassItem_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1.SpeechResourceProto.internal_static_google_cloud_speech_v1_CustomClass_ClassItem_fieldAccessorTable + return com.google.cloud.speech.v1.SpeechResourceProto + .internal_static_google_cloud_speech_v1_CustomClass_ClassItem_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1.CustomClass.ClassItem.class, com.google.cloud.speech.v1.CustomClass.ClassItem.Builder.class); + com.google.cloud.speech.v1.CustomClass.ClassItem.class, + com.google.cloud.speech.v1.CustomClass.ClassItem.Builder.class); } // Construct using com.google.cloud.speech.v1.CustomClass.ClassItem.newBuilder() @@ -455,16 +505,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -474,9 +523,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 @@ -495,7 +544,8 @@ public com.google.cloud.speech.v1.CustomClass.ClassItem build() { @java.lang.Override public com.google.cloud.speech.v1.CustomClass.ClassItem buildPartial() { - com.google.cloud.speech.v1.CustomClass.ClassItem result = new com.google.cloud.speech.v1.CustomClass.ClassItem(this); + com.google.cloud.speech.v1.CustomClass.ClassItem result = + new com.google.cloud.speech.v1.CustomClass.ClassItem(this); result.value_ = value_; onBuilt(); return result; @@ -505,38 +555,41 @@ public com.google.cloud.speech.v1.CustomClass.ClassItem buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.speech.v1.CustomClass.ClassItem) { - return mergeFrom((com.google.cloud.speech.v1.CustomClass.ClassItem)other); + return mergeFrom((com.google.cloud.speech.v1.CustomClass.ClassItem) other); } else { super.mergeFrom(other); return this; @@ -544,7 +597,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.speech.v1.CustomClass.ClassItem other) { - if (other == com.google.cloud.speech.v1.CustomClass.ClassItem.getDefaultInstance()) return this; + if (other == com.google.cloud.speech.v1.CustomClass.ClassItem.getDefaultInstance()) + return this; if (!other.getValue().isEmpty()) { value_ = other.value_; onChanged(); @@ -568,7 +622,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.speech.v1.CustomClass.ClassItem) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.speech.v1.CustomClass.ClassItem) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -580,18 +635,20 @@ public Builder mergeFrom( private java.lang.Object value_ = ""; /** + * + * *
        * The class item's value.
        * 
* * string value = 1; + * * @return The value. */ public java.lang.String getValue() { java.lang.Object ref = value_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); value_ = s; return s; @@ -600,20 +657,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 { @@ -621,58 +679,66 @@ public java.lang.String getValue() { } } /** + * + * *
        * The class item's value.
        * 
* * string value = 1; + * * @param value The value to set. * @return This builder for chaining. */ - public Builder setValue( - java.lang.String value) { + public Builder setValue(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + value_ = value; onChanged(); return this; } /** + * + * *
        * The class item's value.
        * 
* * string value = 1; + * * @return This builder for chaining. */ public Builder clearValue() { - + value_ = getDefaultInstance().getValue(); onChanged(); return this; } /** + * + * *
        * The class item's value.
        * 
* * string value = 1; + * * @param value The bytes for value to set. * @return This builder for chaining. */ - public Builder setValueBytes( - com.google.protobuf.ByteString value) { + public Builder setValueBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + value_ = value; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -685,12 +751,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(); } @@ -699,16 +765,16 @@ public static com.google.cloud.speech.v1.CustomClass.ClassItem getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ClassItem parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ClassItem(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ClassItem parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ClassItem(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -723,17 +789,19 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1.CustomClass.ClassItem getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * The resource name of the custom class.
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -742,29 +810,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 { @@ -775,12 +843,15 @@ public java.lang.String getName() { public static final int CUSTOM_CLASS_ID_FIELD_NUMBER = 2; private volatile java.lang.Object customClassId_; /** + * + * *
    * If this custom class is a resource, the custom_class_id is the resource id
    * of the CustomClass. Case sensitive.
    * 
* * string custom_class_id = 2; + * * @return The customClassId. */ @java.lang.Override @@ -789,30 +860,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,6 +894,8 @@ public java.lang.String getCustomClassId() { public static final int ITEMS_FIELD_NUMBER = 3; private java.util.List items_; /** + * + * *
    * A collection of class items.
    * 
@@ -834,6 +907,8 @@ public java.util.List getItems return items_; } /** + * + * *
    * A collection of class items.
    * 
@@ -841,11 +916,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.
    * 
@@ -857,6 +934,8 @@ public int getItemsCount() { return items_.size(); } /** + * + * *
    * A collection of class items.
    * 
@@ -868,6 +947,8 @@ public com.google.cloud.speech.v1.CustomClass.ClassItem getItems(int index) { return items_.get(index); } /** + * + * *
    * A collection of class items.
    * 
@@ -875,12 +956,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; @@ -892,8 +973,7 @@ public final boolean isInitialized() { } @java.lang.Override - public 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_); } @@ -919,8 +999,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, customClassId_); } for (int i = 0; i < items_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, items_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, items_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -930,19 +1009,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1.CustomClass)) { return super.equals(obj); } com.google.cloud.speech.v1.CustomClass other = (com.google.cloud.speech.v1.CustomClass) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getCustomClassId() - .equals(other.getCustomClassId())) return false; - if (!getItemsList() - .equals(other.getItemsList())) return false; + if (!getName().equals(other.getName())) return false; + if (!getCustomClassId().equals(other.getCustomClassId())) return false; + if (!getItemsList().equals(other.getItemsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -967,97 +1043,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
@@ -1066,21 +1149,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.speech.v1.CustomClass}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1.CustomClass)
       com.google.cloud.speech.v1.CustomClassOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.speech.v1.SpeechResourceProto.internal_static_google_cloud_speech_v1_CustomClass_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.speech.v1.SpeechResourceProto
+          .internal_static_google_cloud_speech_v1_CustomClass_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v1.SpeechResourceProto.internal_static_google_cloud_speech_v1_CustomClass_fieldAccessorTable
+      return com.google.cloud.speech.v1.SpeechResourceProto
+          .internal_static_google_cloud_speech_v1_CustomClass_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v1.CustomClass.class, com.google.cloud.speech.v1.CustomClass.Builder.class);
+              com.google.cloud.speech.v1.CustomClass.class,
+              com.google.cloud.speech.v1.CustomClass.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v1.CustomClass.newBuilder()
@@ -1088,17 +1173,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
         getItemsFieldBuilder();
       }
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1116,9 +1201,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
@@ -1137,7 +1222,8 @@ public com.google.cloud.speech.v1.CustomClass build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v1.CustomClass buildPartial() {
-      com.google.cloud.speech.v1.CustomClass result = new com.google.cloud.speech.v1.CustomClass(this);
+      com.google.cloud.speech.v1.CustomClass result =
+          new com.google.cloud.speech.v1.CustomClass(this);
       int from_bitField0_ = bitField0_;
       result.name_ = name_;
       result.customClassId_ = customClassId_;
@@ -1158,38 +1244,39 @@ public com.google.cloud.speech.v1.CustomClass buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.speech.v1.CustomClass) {
-        return mergeFrom((com.google.cloud.speech.v1.CustomClass)other);
+        return mergeFrom((com.google.cloud.speech.v1.CustomClass) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1224,9 +1311,10 @@ public Builder mergeFrom(com.google.cloud.speech.v1.CustomClass other) {
             itemsBuilder_ = null;
             items_ = other.items_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            itemsBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getItemsFieldBuilder() : null;
+            itemsBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getItemsFieldBuilder()
+                    : null;
           } else {
             itemsBuilder_.addAllMessages(other.items_);
           }
@@ -1260,22 +1348,25 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * The resource name of the custom class.
      * 
* * string name = 1; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1284,20 +1375,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 { @@ -1305,54 +1397,61 @@ public java.lang.String getName() { } } /** + * + * *
      * The resource name of the custom class.
      * 
* * string name = 1; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * The resource name of the custom class.
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * The resource name of the custom class.
      * 
* * string name = 1; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -1360,19 +1459,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; @@ -1381,21 +1482,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 { @@ -1403,75 +1505,88 @@ public java.lang.String getCustomClassId() { } } /** + * + * *
      * If this custom class is a resource, the custom_class_id is the resource id
      * of the CustomClass. Case sensitive.
      * 
* * string custom_class_id = 2; + * * @param value The customClassId to set. * @return This builder for chaining. */ - public Builder setCustomClassId( - java.lang.String value) { + public Builder setCustomClassId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + customClassId_ = value; onChanged(); return this; } /** + * + * *
      * If this custom class is a resource, the custom_class_id is the resource id
      * of the CustomClass. Case sensitive.
      * 
* * string custom_class_id = 2; + * * @return This builder for chaining. */ public Builder clearCustomClassId() { - + customClassId_ = getDefaultInstance().getCustomClassId(); onChanged(); return this; } /** + * + * *
      * If this custom class is a resource, the custom_class_id is the resource id
      * of the CustomClass. Case sensitive.
      * 
* * string custom_class_id = 2; + * * @param value The bytes for customClassId to set. * @return This builder for chaining. */ - public Builder setCustomClassIdBytes( - com.google.protobuf.ByteString value) { + public Builder setCustomClassIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + customClassId_ = value; onChanged(); return this; } private java.util.List items_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureItemsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { items_ = new java.util.ArrayList(items_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.speech.v1.CustomClass.ClassItem, com.google.cloud.speech.v1.CustomClass.ClassItem.Builder, com.google.cloud.speech.v1.CustomClass.ClassItemOrBuilder> itemsBuilder_; + com.google.cloud.speech.v1.CustomClass.ClassItem, + com.google.cloud.speech.v1.CustomClass.ClassItem.Builder, + com.google.cloud.speech.v1.CustomClass.ClassItemOrBuilder> + itemsBuilder_; /** + * + * *
      * A collection of class items.
      * 
@@ -1486,6 +1601,8 @@ public java.util.List getItems } } /** + * + * *
      * A collection of class items.
      * 
@@ -1500,6 +1617,8 @@ public int getItemsCount() { } } /** + * + * *
      * A collection of class items.
      * 
@@ -1514,14 +1633,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(); @@ -1535,6 +1655,8 @@ public Builder setItems( return this; } /** + * + * *
      * A collection of class items.
      * 
@@ -1553,6 +1675,8 @@ public Builder setItems( return this; } /** + * + * *
      * A collection of class items.
      * 
@@ -1573,14 +1697,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(); @@ -1594,6 +1719,8 @@ public Builder addItems( return this; } /** + * + * *
      * A collection of class items.
      * 
@@ -1612,6 +1739,8 @@ public Builder addItems( return this; } /** + * + * *
      * A collection of class items.
      * 
@@ -1630,6 +1759,8 @@ public Builder addItems( return this; } /** + * + * *
      * A collection of class items.
      * 
@@ -1640,8 +1771,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); @@ -1649,6 +1779,8 @@ public Builder addAllItems( return this; } /** + * + * *
      * A collection of class items.
      * 
@@ -1666,6 +1798,8 @@ public Builder clearItems() { return this; } /** + * + * *
      * A collection of class items.
      * 
@@ -1683,39 +1817,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 { @@ -1723,6 +1862,8 @@ public com.google.cloud.speech.v1.CustomClass.ClassItemOrBuilder getItemsOrBuild } } /** + * + * *
      * A collection of class items.
      * 
@@ -1730,49 +1871,55 @@ public com.google.cloud.speech.v1.CustomClass.ClassItemOrBuilder getItemsOrBuild * repeated .google.cloud.speech.v1.CustomClass.ClassItem items = 3; */ public com.google.cloud.speech.v1.CustomClass.ClassItem.Builder addItemsBuilder() { - return getItemsFieldBuilder().addBuilder( - com.google.cloud.speech.v1.CustomClass.ClassItem.getDefaultInstance()); + return getItemsFieldBuilder() + .addBuilder(com.google.cloud.speech.v1.CustomClass.ClassItem.getDefaultInstance()); } /** + * + * *
      * A collection of class items.
      * 
* * repeated .google.cloud.speech.v1.CustomClass.ClassItem items = 3; */ - public com.google.cloud.speech.v1.CustomClass.ClassItem.Builder addItemsBuilder( - int index) { - return getItemsFieldBuilder().addBuilder( - index, com.google.cloud.speech.v1.CustomClass.ClassItem.getDefaultInstance()); + public com.google.cloud.speech.v1.CustomClass.ClassItem.Builder addItemsBuilder(int index) { + return getItemsFieldBuilder() + .addBuilder(index, com.google.cloud.speech.v1.CustomClass.ClassItem.getDefaultInstance()); } /** + * + * *
      * A collection of class items.
      * 
* * repeated .google.cloud.speech.v1.CustomClass.ClassItem items = 3; */ - public java.util.List - getItemsBuilderList() { + public java.util.List + getItemsBuilderList() { return getItemsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.speech.v1.CustomClass.ClassItem, com.google.cloud.speech.v1.CustomClass.ClassItem.Builder, com.google.cloud.speech.v1.CustomClass.ClassItemOrBuilder> + com.google.cloud.speech.v1.CustomClass.ClassItem, + com.google.cloud.speech.v1.CustomClass.ClassItem.Builder, + com.google.cloud.speech.v1.CustomClass.ClassItemOrBuilder> getItemsFieldBuilder() { if (itemsBuilder_ == null) { - itemsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.speech.v1.CustomClass.ClassItem, com.google.cloud.speech.v1.CustomClass.ClassItem.Builder, com.google.cloud.speech.v1.CustomClass.ClassItemOrBuilder>( - items_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + itemsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.speech.v1.CustomClass.ClassItem, + com.google.cloud.speech.v1.CustomClass.ClassItem.Builder, + com.google.cloud.speech.v1.CustomClass.ClassItemOrBuilder>( + items_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); items_ = null; } return itemsBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1782,12 +1929,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(); } @@ -1796,16 +1943,16 @@ public static com.google.cloud.speech.v1.CustomClass getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CustomClass parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CustomClass(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CustomClass parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CustomClass(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1820,6 +1967,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1.CustomClass getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CustomClassOrBuilder.java b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CustomClassOrBuilder.java similarity index 70% rename from owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CustomClassOrBuilder.java rename to proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CustomClassOrBuilder.java index d22bd6cc0..a32a11ff4 100644 --- a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CustomClassOrBuilder.java +++ b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CustomClassOrBuilder.java @@ -1,64 +1,93 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1/resource.proto package com.google.cloud.speech.v1; -public interface CustomClassOrBuilder extends +public interface CustomClassOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1.CustomClass) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The resource name of the custom class.
    * 
* * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * The resource name of the custom class.
    * 
* * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * If this custom class is a resource, the custom_class_id is the resource id
    * of the CustomClass. Case sensitive.
    * 
* * string custom_class_id = 2; + * * @return The customClassId. */ java.lang.String getCustomClassId(); /** + * + * *
    * If this custom class is a resource, the custom_class_id is the resource id
    * of the CustomClass. Case sensitive.
    * 
* * string custom_class_id = 2; + * * @return The bytes for customClassId. */ - com.google.protobuf.ByteString - getCustomClassIdBytes(); + com.google.protobuf.ByteString getCustomClassIdBytes(); /** + * + * *
    * A collection of class items.
    * 
* * repeated .google.cloud.speech.v1.CustomClass.ClassItem items = 3; */ - java.util.List - getItemsList(); + java.util.List getItemsList(); /** + * + * *
    * A collection of class items.
    * 
@@ -67,6 +96,8 @@ public interface CustomClassOrBuilder extends */ com.google.cloud.speech.v1.CustomClass.ClassItem getItems(int index); /** + * + * *
    * A collection of class items.
    * 
@@ -75,21 +106,24 @@ public interface CustomClassOrBuilder extends */ int getItemsCount(); /** + * + * *
    * A collection of class items.
    * 
* * repeated .google.cloud.speech.v1.CustomClass.ClassItem items = 3; */ - java.util.List + java.util.List getItemsOrBuilderList(); /** + * + * *
    * A collection of class items.
    * 
* * repeated .google.cloud.speech.v1.CustomClass.ClassItem items = 3; */ - com.google.cloud.speech.v1.CustomClass.ClassItemOrBuilder getItemsOrBuilder( - int index); + com.google.cloud.speech.v1.CustomClass.ClassItemOrBuilder getItemsOrBuilder(int index); } diff --git a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeMetadata.java b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeMetadata.java similarity index 71% rename from owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeMetadata.java rename to proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeMetadata.java index d3aa482a2..3aaafc3df 100644 --- a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeMetadata.java +++ b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeMetadata.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1/cloud_speech.proto package com.google.cloud.speech.v1; /** + * + * *
  * Describes the progress of a long-running `LongRunningRecognize` call. It is
  * included in the `metadata` field of the `Operation` returned by the
@@ -12,31 +29,31 @@
  *
  * Protobuf type {@code google.cloud.speech.v1.LongRunningRecognizeMetadata}
  */
-public final class LongRunningRecognizeMetadata extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class LongRunningRecognizeMetadata extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.speech.v1.LongRunningRecognizeMetadata)
     LongRunningRecognizeMetadataOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use LongRunningRecognizeMetadata.newBuilder() to construct.
   private LongRunningRecognizeMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private LongRunningRecognizeMetadata() {
     uri_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new LongRunningRecognizeMetadata();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private LongRunningRecognizeMetadata(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -55,84 +72,94 @@ private LongRunningRecognizeMetadata(
           case 0:
             done = true;
             break;
-          case 8: {
-
-            progressPercent_ = input.readInt32();
-            break;
-          }
-          case 18: {
-            com.google.protobuf.Timestamp.Builder subBuilder = null;
-            if (startTime_ != null) {
-              subBuilder = startTime_.toBuilder();
-            }
-            startTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(startTime_);
-              startTime_ = subBuilder.buildPartial();
+          case 8:
+            {
+              progressPercent_ = input.readInt32();
+              break;
             }
+          case 18:
+            {
+              com.google.protobuf.Timestamp.Builder subBuilder = null;
+              if (startTime_ != null) {
+                subBuilder = startTime_.toBuilder();
+              }
+              startTime_ =
+                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(startTime_);
+                startTime_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          case 26: {
-            com.google.protobuf.Timestamp.Builder subBuilder = null;
-            if (lastUpdateTime_ != null) {
-              subBuilder = lastUpdateTime_.toBuilder();
-            }
-            lastUpdateTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(lastUpdateTime_);
-              lastUpdateTime_ = subBuilder.buildPartial();
+              break;
             }
+          case 26:
+            {
+              com.google.protobuf.Timestamp.Builder subBuilder = null;
+              if (lastUpdateTime_ != null) {
+                subBuilder = lastUpdateTime_.toBuilder();
+              }
+              lastUpdateTime_ =
+                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(lastUpdateTime_);
+                lastUpdateTime_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          case 34: {
-            java.lang.String s = input.readStringRequireUtf8();
+              break;
+            }
+          case 34:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            uri_ = s;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              uri_ = s;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_LongRunningRecognizeMetadata_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.speech.v1.SpeechProto
+        .internal_static_google_cloud_speech_v1_LongRunningRecognizeMetadata_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_LongRunningRecognizeMetadata_fieldAccessorTable
+    return com.google.cloud.speech.v1.SpeechProto
+        .internal_static_google_cloud_speech_v1_LongRunningRecognizeMetadata_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v1.LongRunningRecognizeMetadata.class, com.google.cloud.speech.v1.LongRunningRecognizeMetadata.Builder.class);
+            com.google.cloud.speech.v1.LongRunningRecognizeMetadata.class,
+            com.google.cloud.speech.v1.LongRunningRecognizeMetadata.Builder.class);
   }
 
   public static final int PROGRESS_PERCENT_FIELD_NUMBER = 1;
   private int progressPercent_;
   /**
+   *
+   *
    * 
    * Approximate percentage of audio processed thus far. Guaranteed to be 100
    * when the audio is fully processed and the results are available.
    * 
* * int32 progress_percent = 1; + * * @return The progressPercent. */ @java.lang.Override @@ -143,11 +170,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 @@ -155,11 +185,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 @@ -167,6 +200,8 @@ public com.google.protobuf.Timestamp getStartTime() { return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } /** + * + * *
    * Time when the request was received.
    * 
@@ -181,11 +216,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 @@ -193,18 +231,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.
    * 
@@ -219,12 +264,15 @@ public com.google.protobuf.TimestampOrBuilder getLastUpdateTimeOrBuilder() { public static final int URI_FIELD_NUMBER = 4; private volatile java.lang.Object uri_; /** + * + * *
    * Output only. The URI of the audio file being transcribed. Empty if the audio was sent
    * as byte content.
    * 
* * string uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The uri. */ @java.lang.Override @@ -233,30 +281,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 { @@ -265,6 +313,7 @@ public java.lang.String getUri() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -276,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 (progressPercent_ != 0) { output.writeInt32(1, progressPercent_); } @@ -300,16 +348,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_); @@ -322,27 +367,24 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1.LongRunningRecognizeMetadata)) { return super.equals(obj); } - com.google.cloud.speech.v1.LongRunningRecognizeMetadata other = (com.google.cloud.speech.v1.LongRunningRecognizeMetadata) obj; + com.google.cloud.speech.v1.LongRunningRecognizeMetadata other = + (com.google.cloud.speech.v1.LongRunningRecognizeMetadata) obj; - if (getProgressPercent() - != other.getProgressPercent()) return false; + if (getProgressPercent() != other.getProgressPercent()) return false; if (hasStartTime() != other.hasStartTime()) return false; if (hasStartTime()) { - if (!getStartTime() - .equals(other.getStartTime())) return false; + if (!getStartTime().equals(other.getStartTime())) return false; } if (hasLastUpdateTime() != other.hasLastUpdateTime()) return false; if (hasLastUpdateTime()) { - if (!getLastUpdateTime() - .equals(other.getLastUpdateTime())) return false; + if (!getLastUpdateTime().equals(other.getLastUpdateTime())) return false; } - if (!getUri() - .equals(other.getUri())) return false; + if (!getUri().equals(other.getUri())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -372,96 +414,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
@@ -470,21 +520,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.speech.v1.LongRunningRecognizeMetadata}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1.LongRunningRecognizeMetadata)
       com.google.cloud.speech.v1.LongRunningRecognizeMetadataOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_LongRunningRecognizeMetadata_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.speech.v1.SpeechProto
+          .internal_static_google_cloud_speech_v1_LongRunningRecognizeMetadata_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_LongRunningRecognizeMetadata_fieldAccessorTable
+      return com.google.cloud.speech.v1.SpeechProto
+          .internal_static_google_cloud_speech_v1_LongRunningRecognizeMetadata_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v1.LongRunningRecognizeMetadata.class, com.google.cloud.speech.v1.LongRunningRecognizeMetadata.Builder.class);
+              com.google.cloud.speech.v1.LongRunningRecognizeMetadata.class,
+              com.google.cloud.speech.v1.LongRunningRecognizeMetadata.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v1.LongRunningRecognizeMetadata.newBuilder()
@@ -492,16 +544,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -525,9 +576,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
@@ -546,7 +597,8 @@ public com.google.cloud.speech.v1.LongRunningRecognizeMetadata build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v1.LongRunningRecognizeMetadata buildPartial() {
-      com.google.cloud.speech.v1.LongRunningRecognizeMetadata result = new com.google.cloud.speech.v1.LongRunningRecognizeMetadata(this);
+      com.google.cloud.speech.v1.LongRunningRecognizeMetadata result =
+          new com.google.cloud.speech.v1.LongRunningRecognizeMetadata(this);
       result.progressPercent_ = progressPercent_;
       if (startTimeBuilder_ == null) {
         result.startTime_ = startTime_;
@@ -567,38 +619,39 @@ public com.google.cloud.speech.v1.LongRunningRecognizeMetadata buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.speech.v1.LongRunningRecognizeMetadata) {
-        return mergeFrom((com.google.cloud.speech.v1.LongRunningRecognizeMetadata)other);
+        return mergeFrom((com.google.cloud.speech.v1.LongRunningRecognizeMetadata) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -606,7 +659,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());
       }
@@ -639,7 +693,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.speech.v1.LongRunningRecognizeMetadata) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.speech.v1.LongRunningRecognizeMetadata) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -649,14 +704,17 @@ public Builder mergeFrom(
       return this;
     }
 
-    private int progressPercent_ ;
+    private int progressPercent_;
     /**
+     *
+     *
      * 
      * Approximate percentage of audio processed thus far. Guaranteed to be 100
      * when the audio is fully processed and the results are available.
      * 
* * int32 progress_percent = 1; + * * @return The progressPercent. */ @java.lang.Override @@ -664,32 +722,38 @@ public int getProgressPercent() { return progressPercent_; } /** + * + * *
      * Approximate percentage of audio processed thus far. Guaranteed to be 100
      * when the audio is fully processed and the results are available.
      * 
* * int32 progress_percent = 1; + * * @param value The progressPercent to set. * @return This builder for chaining. */ public Builder setProgressPercent(int value) { - + progressPercent_ = value; onChanged(); return this; } /** + * + * *
      * Approximate percentage of audio processed thus far. Guaranteed to be 100
      * when the audio is fully processed and the results are available.
      * 
* * int32 progress_percent = 1; + * * @return This builder for chaining. */ public Builder clearProgressPercent() { - + progressPercent_ = 0; onChanged(); return this; @@ -697,24 +761,33 @@ public Builder clearProgressPercent() { private com.google.protobuf.Timestamp startTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> startTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + startTimeBuilder_; /** + * + * *
      * Time when the request was received.
      * 
* * .google.protobuf.Timestamp start_time = 2; + * * @return Whether the startTime field is set. */ public boolean hasStartTime() { return startTimeBuilder_ != null || startTime_ != null; } /** + * + * *
      * Time when the request was received.
      * 
* * .google.protobuf.Timestamp start_time = 2; + * * @return The startTime. */ public com.google.protobuf.Timestamp getStartTime() { @@ -725,6 +798,8 @@ public com.google.protobuf.Timestamp getStartTime() { } } /** + * + * *
      * Time when the request was received.
      * 
@@ -745,14 +820,15 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Time when the request was received.
      * 
* * .google.protobuf.Timestamp start_time = 2; */ - public Builder setStartTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (startTimeBuilder_ == null) { startTime_ = builderForValue.build(); onChanged(); @@ -763,6 +839,8 @@ public Builder setStartTime( return this; } /** + * + * *
      * Time when the request was received.
      * 
@@ -773,7 +851,7 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { if (startTimeBuilder_ == null) { if (startTime_ != null) { startTime_ = - com.google.protobuf.Timestamp.newBuilder(startTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(startTime_).mergeFrom(value).buildPartial(); } else { startTime_ = value; } @@ -785,6 +863,8 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Time when the request was received.
      * 
@@ -803,6 +883,8 @@ public Builder clearStartTime() { return this; } /** + * + * *
      * Time when the request was received.
      * 
@@ -810,11 +892,13 @@ public Builder clearStartTime() { * .google.protobuf.Timestamp start_time = 2; */ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { - + onChanged(); return getStartTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Time when the request was received.
      * 
@@ -825,11 +909,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.
      * 
@@ -837,14 +922,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_; @@ -852,34 +940,47 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { private com.google.protobuf.Timestamp lastUpdateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> lastUpdateTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + lastUpdateTimeBuilder_; /** + * + * *
      * Time of the most recent processing update.
      * 
* * .google.protobuf.Timestamp last_update_time = 3; + * * @return Whether the lastUpdateTime field is set. */ public boolean hasLastUpdateTime() { return lastUpdateTimeBuilder_ != null || lastUpdateTime_ != null; } /** + * + * *
      * Time of the most recent processing update.
      * 
* * .google.protobuf.Timestamp last_update_time = 3; + * * @return The lastUpdateTime. */ public com.google.protobuf.Timestamp getLastUpdateTime() { if (lastUpdateTimeBuilder_ == null) { - return lastUpdateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastUpdateTime_; + return lastUpdateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : lastUpdateTime_; } else { return lastUpdateTimeBuilder_.getMessage(); } } /** + * + * *
      * Time of the most recent processing update.
      * 
@@ -900,14 +1001,15 @@ public Builder setLastUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Time of the most recent processing update.
      * 
* * .google.protobuf.Timestamp last_update_time = 3; */ - public Builder setLastUpdateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setLastUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (lastUpdateTimeBuilder_ == null) { lastUpdateTime_ = builderForValue.build(); onChanged(); @@ -918,6 +1020,8 @@ public Builder setLastUpdateTime( return this; } /** + * + * *
      * Time of the most recent processing update.
      * 
@@ -928,7 +1032,9 @@ public Builder mergeLastUpdateTime(com.google.protobuf.Timestamp value) { if (lastUpdateTimeBuilder_ == null) { if (lastUpdateTime_ != null) { lastUpdateTime_ = - com.google.protobuf.Timestamp.newBuilder(lastUpdateTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(lastUpdateTime_) + .mergeFrom(value) + .buildPartial(); } else { lastUpdateTime_ = value; } @@ -940,6 +1046,8 @@ public Builder mergeLastUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Time of the most recent processing update.
      * 
@@ -958,6 +1066,8 @@ public Builder clearLastUpdateTime() { return this; } /** + * + * *
      * Time of the most recent processing update.
      * 
@@ -965,11 +1075,13 @@ public Builder clearLastUpdateTime() { * .google.protobuf.Timestamp last_update_time = 3; */ public com.google.protobuf.Timestamp.Builder getLastUpdateTimeBuilder() { - + onChanged(); return getLastUpdateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Time of the most recent processing update.
      * 
@@ -980,11 +1092,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.
      * 
@@ -992,14 +1107,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_; @@ -1007,19 +1125,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; @@ -1028,21 +1148,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 { @@ -1050,64 +1171,71 @@ public java.lang.String getUri() { } } /** + * + * *
      * Output only. The URI of the audio file being transcribed. Empty if the audio was sent
      * as byte content.
      * 
* * string uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The uri to set. * @return This builder for chaining. */ - public Builder setUri( - java.lang.String value) { + public Builder setUri(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + uri_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The URI of the audio file being transcribed. Empty if the audio was sent
      * as byte content.
      * 
* * string uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearUri() { - + uri_ = getDefaultInstance().getUri(); onChanged(); return this; } /** + * + * *
      * Output only. The URI of the audio file being transcribed. Empty if the audio was sent
      * as byte content.
      * 
* * string uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for uri to set. * @return This builder for chaining. */ - public Builder setUriBytes( - com.google.protobuf.ByteString value) { + public Builder setUriBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + uri_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1117,12 +1245,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(); } @@ -1131,16 +1259,16 @@ public static com.google.cloud.speech.v1.LongRunningRecognizeMetadata getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LongRunningRecognizeMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new LongRunningRecognizeMetadata(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LongRunningRecognizeMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LongRunningRecognizeMetadata(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1155,6 +1283,4 @@ public com.google.protobuf.Parser getParserForType public com.google.cloud.speech.v1.LongRunningRecognizeMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeMetadataOrBuilder.java b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeMetadataOrBuilder.java similarity index 74% rename from owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeMetadataOrBuilder.java rename to proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeMetadataOrBuilder.java index ccedbf890..2b8a33c7f 100644 --- a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeMetadataOrBuilder.java +++ b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeMetadataOrBuilder.java @@ -1,42 +1,69 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1/cloud_speech.proto package com.google.cloud.speech.v1; -public interface LongRunningRecognizeMetadataOrBuilder extends +public interface LongRunningRecognizeMetadataOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1.LongRunningRecognizeMetadata) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Approximate percentage of audio processed thus far. Guaranteed to be 100
    * when the audio is fully processed and the results are available.
    * 
* * int32 progress_percent = 1; + * * @return The progressPercent. */ int getProgressPercent(); /** + * + * *
    * Time when the request was received.
    * 
* * .google.protobuf.Timestamp start_time = 2; + * * @return Whether the startTime field is set. */ boolean hasStartTime(); /** + * + * *
    * Time when the request was received.
    * 
* * .google.protobuf.Timestamp start_time = 2; + * * @return The startTime. */ com.google.protobuf.Timestamp getStartTime(); /** + * + * *
    * Time when the request was received.
    * 
@@ -46,24 +73,32 @@ public interface LongRunningRecognizeMetadataOrBuilder extends com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder(); /** + * + * *
    * Time of the most recent processing update.
    * 
* * .google.protobuf.Timestamp last_update_time = 3; + * * @return Whether the lastUpdateTime field is set. */ boolean hasLastUpdateTime(); /** + * + * *
    * Time of the most recent processing update.
    * 
* * .google.protobuf.Timestamp last_update_time = 3; + * * @return The lastUpdateTime. */ com.google.protobuf.Timestamp getLastUpdateTime(); /** + * + * *
    * Time of the most recent processing update.
    * 
@@ -73,24 +108,29 @@ public interface LongRunningRecognizeMetadataOrBuilder extends com.google.protobuf.TimestampOrBuilder getLastUpdateTimeOrBuilder(); /** + * + * *
    * Output only. The URI of the audio file being transcribed. Empty if the audio was sent
    * as byte content.
    * 
* * string uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The uri. */ java.lang.String getUri(); /** + * + * *
    * Output only. The URI of the audio file being transcribed. Empty if the audio was sent
    * as byte content.
    * 
* * string uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for uri. */ - com.google.protobuf.ByteString - getUriBytes(); + com.google.protobuf.ByteString getUriBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeRequest.java b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeRequest.java similarity index 60% rename from owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeRequest.java rename to proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeRequest.java index 275e0ef91..79e8e3cc3 100644 --- a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeRequest.java +++ b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeRequest.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1/cloud_speech.proto package com.google.cloud.speech.v1; /** + * + * *
  * The top-level message sent by the client for the `LongRunningRecognize`
  * method.
@@ -11,30 +28,29 @@
  *
  * Protobuf type {@code google.cloud.speech.v1.LongRunningRecognizeRequest}
  */
-public final class LongRunningRecognizeRequest extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class LongRunningRecognizeRequest extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.speech.v1.LongRunningRecognizeRequest)
     LongRunningRecognizeRequestOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use LongRunningRecognizeRequest.newBuilder() to construct.
   private LongRunningRecognizeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-  private LongRunningRecognizeRequest() {
-  }
+
+  private LongRunningRecognizeRequest() {}
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new LongRunningRecognizeRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private LongRunningRecognizeRequest(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -53,86 +69,103 @@ private LongRunningRecognizeRequest(
           case 0:
             done = true;
             break;
-          case 10: {
-            com.google.cloud.speech.v1.RecognitionConfig.Builder subBuilder = null;
-            if (config_ != null) {
-              subBuilder = config_.toBuilder();
-            }
-            config_ = input.readMessage(com.google.cloud.speech.v1.RecognitionConfig.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(config_);
-              config_ = subBuilder.buildPartial();
-            }
+          case 10:
+            {
+              com.google.cloud.speech.v1.RecognitionConfig.Builder subBuilder = null;
+              if (config_ != null) {
+                subBuilder = config_.toBuilder();
+              }
+              config_ =
+                  input.readMessage(
+                      com.google.cloud.speech.v1.RecognitionConfig.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(config_);
+                config_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          case 18: {
-            com.google.cloud.speech.v1.RecognitionAudio.Builder subBuilder = null;
-            if (audio_ != null) {
-              subBuilder = audio_.toBuilder();
-            }
-            audio_ = input.readMessage(com.google.cloud.speech.v1.RecognitionAudio.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(audio_);
-              audio_ = subBuilder.buildPartial();
+              break;
             }
+          case 18:
+            {
+              com.google.cloud.speech.v1.RecognitionAudio.Builder subBuilder = null;
+              if (audio_ != null) {
+                subBuilder = audio_.toBuilder();
+              }
+              audio_ =
+                  input.readMessage(
+                      com.google.cloud.speech.v1.RecognitionAudio.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(audio_);
+                audio_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          case 34: {
-            com.google.cloud.speech.v1.TranscriptOutputConfig.Builder subBuilder = null;
-            if (outputConfig_ != null) {
-              subBuilder = outputConfig_.toBuilder();
-            }
-            outputConfig_ = input.readMessage(com.google.cloud.speech.v1.TranscriptOutputConfig.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(outputConfig_);
-              outputConfig_ = subBuilder.buildPartial();
+              break;
             }
+          case 34:
+            {
+              com.google.cloud.speech.v1.TranscriptOutputConfig.Builder subBuilder = null;
+              if (outputConfig_ != null) {
+                subBuilder = outputConfig_.toBuilder();
+              }
+              outputConfig_ =
+                  input.readMessage(
+                      com.google.cloud.speech.v1.TranscriptOutputConfig.parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(outputConfig_);
+                outputConfig_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_LongRunningRecognizeRequest_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.speech.v1.SpeechProto
+        .internal_static_google_cloud_speech_v1_LongRunningRecognizeRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_LongRunningRecognizeRequest_fieldAccessorTable
+    return com.google.cloud.speech.v1.SpeechProto
+        .internal_static_google_cloud_speech_v1_LongRunningRecognizeRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v1.LongRunningRecognizeRequest.class, com.google.cloud.speech.v1.LongRunningRecognizeRequest.Builder.class);
+            com.google.cloud.speech.v1.LongRunningRecognizeRequest.class,
+            com.google.cloud.speech.v1.LongRunningRecognizeRequest.Builder.class);
   }
 
   public static final int CONFIG_FIELD_NUMBER = 1;
   private com.google.cloud.speech.v1.RecognitionConfig config_;
   /**
+   *
+   *
    * 
    * Required. Provides information to the recognizer that specifies how to
    * process the request.
    * 
* - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the config field is set. */ @java.lang.Override @@ -140,25 +173,36 @@ public boolean hasConfig() { return config_ != null; } /** + * + * *
    * Required. Provides information to the recognizer that specifies how to
    * process the request.
    * 
* - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The config. */ @java.lang.Override public com.google.cloud.speech.v1.RecognitionConfig getConfig() { - return config_ == null ? com.google.cloud.speech.v1.RecognitionConfig.getDefaultInstance() : config_; + return config_ == null + ? com.google.cloud.speech.v1.RecognitionConfig.getDefaultInstance() + : config_; } /** + * + * *
    * Required. Provides information to the recognizer that specifies how to
    * process the request.
    * 
* - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.speech.v1.RecognitionConfigOrBuilder getConfigOrBuilder() { @@ -168,11 +212,16 @@ public com.google.cloud.speech.v1.RecognitionConfigOrBuilder getConfigOrBuilder( public static final int AUDIO_FIELD_NUMBER = 2; private com.google.cloud.speech.v1.RecognitionAudio audio_; /** + * + * *
    * Required. The audio data to be recognized.
    * 
* - * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the audio field is set. */ @java.lang.Override @@ -180,23 +229,34 @@ public boolean hasAudio() { return audio_ != null; } /** + * + * *
    * Required. The audio data to be recognized.
    * 
* - * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The audio. */ @java.lang.Override public com.google.cloud.speech.v1.RecognitionAudio getAudio() { - return audio_ == null ? com.google.cloud.speech.v1.RecognitionAudio.getDefaultInstance() : audio_; + return audio_ == null + ? com.google.cloud.speech.v1.RecognitionAudio.getDefaultInstance() + : audio_; } /** + * + * *
    * Required. The audio data to be recognized.
    * 
* - * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.speech.v1.RecognitionAudioOrBuilder getAudioOrBuilder() { @@ -206,11 +266,16 @@ public com.google.cloud.speech.v1.RecognitionAudioOrBuilder getAudioOrBuilder() public static final int OUTPUT_CONFIG_FIELD_NUMBER = 4; private com.google.cloud.speech.v1.TranscriptOutputConfig outputConfig_; /** + * + * *
    * Optional. Specifies an optional destination for the recognition results.
    * 
* - * .google.cloud.speech.v1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.speech.v1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the outputConfig field is set. */ @java.lang.Override @@ -218,23 +283,34 @@ public boolean hasOutputConfig() { return outputConfig_ != null; } /** + * + * *
    * Optional. Specifies an optional destination for the recognition results.
    * 
* - * .google.cloud.speech.v1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.speech.v1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The outputConfig. */ @java.lang.Override public com.google.cloud.speech.v1.TranscriptOutputConfig getOutputConfig() { - return outputConfig_ == null ? com.google.cloud.speech.v1.TranscriptOutputConfig.getDefaultInstance() : outputConfig_; + return outputConfig_ == null + ? com.google.cloud.speech.v1.TranscriptOutputConfig.getDefaultInstance() + : outputConfig_; } /** + * + * *
    * Optional. Specifies an optional destination for the recognition results.
    * 
* - * .google.cloud.speech.v1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.speech.v1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.speech.v1.TranscriptOutputConfigOrBuilder getOutputConfigOrBuilder() { @@ -242,6 +318,7 @@ public com.google.cloud.speech.v1.TranscriptOutputConfigOrBuilder getOutputConfi } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -253,8 +330,7 @@ public final boolean isInitialized() { } @java.lang.Override - public 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()); } @@ -274,16 +350,13 @@ public int getSerializedSize() { size = 0; if (config_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getConfig()); } if (audio_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getAudio()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getAudio()); } if (outputConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getOutputConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getOutputConfig()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -293,27 +366,25 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1.LongRunningRecognizeRequest)) { return super.equals(obj); } - com.google.cloud.speech.v1.LongRunningRecognizeRequest other = (com.google.cloud.speech.v1.LongRunningRecognizeRequest) obj; + com.google.cloud.speech.v1.LongRunningRecognizeRequest other = + (com.google.cloud.speech.v1.LongRunningRecognizeRequest) obj; if (hasConfig() != other.hasConfig()) return false; if (hasConfig()) { - if (!getConfig() - .equals(other.getConfig())) return false; + if (!getConfig().equals(other.getConfig())) return false; } if (hasAudio() != other.hasAudio()) return false; if (hasAudio()) { - if (!getAudio() - .equals(other.getAudio())) return false; + if (!getAudio().equals(other.getAudio())) return false; } if (hasOutputConfig() != other.hasOutputConfig()) return false; if (hasOutputConfig()) { - if (!getOutputConfig() - .equals(other.getOutputConfig())) return false; + if (!getOutputConfig().equals(other.getOutputConfig())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -344,96 +415,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.
@@ -441,21 +520,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.speech.v1.LongRunningRecognizeRequest}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1.LongRunningRecognizeRequest)
       com.google.cloud.speech.v1.LongRunningRecognizeRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_LongRunningRecognizeRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.speech.v1.SpeechProto
+          .internal_static_google_cloud_speech_v1_LongRunningRecognizeRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_LongRunningRecognizeRequest_fieldAccessorTable
+      return com.google.cloud.speech.v1.SpeechProto
+          .internal_static_google_cloud_speech_v1_LongRunningRecognizeRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v1.LongRunningRecognizeRequest.class, com.google.cloud.speech.v1.LongRunningRecognizeRequest.Builder.class);
+              com.google.cloud.speech.v1.LongRunningRecognizeRequest.class,
+              com.google.cloud.speech.v1.LongRunningRecognizeRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v1.LongRunningRecognizeRequest.newBuilder()
@@ -463,16 +544,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -498,9 +578,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_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
@@ -519,7 +599,8 @@ public com.google.cloud.speech.v1.LongRunningRecognizeRequest build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v1.LongRunningRecognizeRequest buildPartial() {
-      com.google.cloud.speech.v1.LongRunningRecognizeRequest result = new com.google.cloud.speech.v1.LongRunningRecognizeRequest(this);
+      com.google.cloud.speech.v1.LongRunningRecognizeRequest result =
+          new com.google.cloud.speech.v1.LongRunningRecognizeRequest(this);
       if (configBuilder_ == null) {
         result.config_ = config_;
       } else {
@@ -543,38 +624,39 @@ public com.google.cloud.speech.v1.LongRunningRecognizeRequest buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.speech.v1.LongRunningRecognizeRequest) {
-        return mergeFrom((com.google.cloud.speech.v1.LongRunningRecognizeRequest)other);
+        return mergeFrom((com.google.cloud.speech.v1.LongRunningRecognizeRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -582,7 +664,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());
       }
@@ -611,7 +694,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.speech.v1.LongRunningRecognizeRequest) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.speech.v1.LongRunningRecognizeRequest) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -623,42 +707,61 @@ public Builder mergeFrom(
 
     private com.google.cloud.speech.v1.RecognitionConfig config_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.speech.v1.RecognitionConfig, com.google.cloud.speech.v1.RecognitionConfig.Builder, com.google.cloud.speech.v1.RecognitionConfigOrBuilder> configBuilder_;
+            com.google.cloud.speech.v1.RecognitionConfig,
+            com.google.cloud.speech.v1.RecognitionConfig.Builder,
+            com.google.cloud.speech.v1.RecognitionConfigOrBuilder>
+        configBuilder_;
     /**
+     *
+     *
      * 
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the config field is set. */ public boolean hasConfig() { return configBuilder_ != null || config_ != null; } /** + * + * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The config. */ public com.google.cloud.speech.v1.RecognitionConfig getConfig() { if (configBuilder_ == null) { - return config_ == null ? com.google.cloud.speech.v1.RecognitionConfig.getDefaultInstance() : config_; + return config_ == null + ? com.google.cloud.speech.v1.RecognitionConfig.getDefaultInstance() + : config_; } else { return configBuilder_.getMessage(); } } /** + * + * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setConfig(com.google.cloud.speech.v1.RecognitionConfig value) { if (configBuilder_ == null) { @@ -674,15 +777,18 @@ public Builder setConfig(com.google.cloud.speech.v1.RecognitionConfig value) { return this; } /** + * + * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setConfig( - com.google.cloud.speech.v1.RecognitionConfig.Builder builderForValue) { + public Builder setConfig(com.google.cloud.speech.v1.RecognitionConfig.Builder builderForValue) { if (configBuilder_ == null) { config_ = builderForValue.build(); onChanged(); @@ -693,18 +799,24 @@ public Builder setConfig( return this; } /** + * + * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeConfig(com.google.cloud.speech.v1.RecognitionConfig value) { if (configBuilder_ == null) { if (config_ != null) { config_ = - com.google.cloud.speech.v1.RecognitionConfig.newBuilder(config_).mergeFrom(value).buildPartial(); + com.google.cloud.speech.v1.RecognitionConfig.newBuilder(config_) + .mergeFrom(value) + .buildPartial(); } else { config_ = value; } @@ -716,12 +828,16 @@ public Builder mergeConfig(com.google.cloud.speech.v1.RecognitionConfig value) { return this; } /** + * + * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearConfig() { if (configBuilder_ == null) { @@ -735,51 +851,67 @@ public Builder clearConfig() { return this; } /** + * + * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.speech.v1.RecognitionConfig.Builder getConfigBuilder() { - + onChanged(); return getConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.speech.v1.RecognitionConfigOrBuilder getConfigOrBuilder() { if (configBuilder_ != null) { return configBuilder_.getMessageOrBuilder(); } else { - return config_ == null ? - com.google.cloud.speech.v1.RecognitionConfig.getDefaultInstance() : config_; + return config_ == null + ? com.google.cloud.speech.v1.RecognitionConfig.getDefaultInstance() + : config_; } } /** + * + * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1.RecognitionConfig, com.google.cloud.speech.v1.RecognitionConfig.Builder, com.google.cloud.speech.v1.RecognitionConfigOrBuilder> + com.google.cloud.speech.v1.RecognitionConfig, + com.google.cloud.speech.v1.RecognitionConfig.Builder, + com.google.cloud.speech.v1.RecognitionConfigOrBuilder> getConfigFieldBuilder() { if (configBuilder_ == null) { - configBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1.RecognitionConfig, com.google.cloud.speech.v1.RecognitionConfig.Builder, com.google.cloud.speech.v1.RecognitionConfigOrBuilder>( - getConfig(), - getParentForChildren(), - isClean()); + configBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v1.RecognitionConfig, + com.google.cloud.speech.v1.RecognitionConfig.Builder, + com.google.cloud.speech.v1.RecognitionConfigOrBuilder>( + getConfig(), getParentForChildren(), isClean()); config_ = null; } return configBuilder_; @@ -787,39 +919,58 @@ public com.google.cloud.speech.v1.RecognitionConfigOrBuilder getConfigOrBuilder( private com.google.cloud.speech.v1.RecognitionAudio audio_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1.RecognitionAudio, com.google.cloud.speech.v1.RecognitionAudio.Builder, com.google.cloud.speech.v1.RecognitionAudioOrBuilder> audioBuilder_; + com.google.cloud.speech.v1.RecognitionAudio, + com.google.cloud.speech.v1.RecognitionAudio.Builder, + com.google.cloud.speech.v1.RecognitionAudioOrBuilder> + audioBuilder_; /** + * + * *
      * Required. The audio data to be recognized.
      * 
* - * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the audio field is set. */ public boolean hasAudio() { return audioBuilder_ != null || audio_ != null; } /** + * + * *
      * Required. The audio data to be recognized.
      * 
* - * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The audio. */ public com.google.cloud.speech.v1.RecognitionAudio getAudio() { if (audioBuilder_ == null) { - return audio_ == null ? com.google.cloud.speech.v1.RecognitionAudio.getDefaultInstance() : audio_; + return audio_ == null + ? com.google.cloud.speech.v1.RecognitionAudio.getDefaultInstance() + : audio_; } else { return audioBuilder_.getMessage(); } } /** + * + * *
      * Required. The audio data to be recognized.
      * 
* - * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setAudio(com.google.cloud.speech.v1.RecognitionAudio value) { if (audioBuilder_ == null) { @@ -835,14 +986,17 @@ public Builder setAudio(com.google.cloud.speech.v1.RecognitionAudio value) { return this; } /** + * + * *
      * Required. The audio data to be recognized.
      * 
* - * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setAudio( - com.google.cloud.speech.v1.RecognitionAudio.Builder builderForValue) { + public Builder setAudio(com.google.cloud.speech.v1.RecognitionAudio.Builder builderForValue) { if (audioBuilder_ == null) { audio_ = builderForValue.build(); onChanged(); @@ -853,17 +1007,23 @@ public Builder setAudio( return this; } /** + * + * *
      * Required. The audio data to be recognized.
      * 
* - * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeAudio(com.google.cloud.speech.v1.RecognitionAudio value) { if (audioBuilder_ == null) { if (audio_ != null) { audio_ = - com.google.cloud.speech.v1.RecognitionAudio.newBuilder(audio_).mergeFrom(value).buildPartial(); + com.google.cloud.speech.v1.RecognitionAudio.newBuilder(audio_) + .mergeFrom(value) + .buildPartial(); } else { audio_ = value; } @@ -875,11 +1035,15 @@ public Builder mergeAudio(com.google.cloud.speech.v1.RecognitionAudio value) { return this; } /** + * + * *
      * Required. The audio data to be recognized.
      * 
* - * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearAudio() { if (audioBuilder_ == null) { @@ -893,48 +1057,64 @@ public Builder clearAudio() { return this; } /** + * + * *
      * Required. The audio data to be recognized.
      * 
* - * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.speech.v1.RecognitionAudio.Builder getAudioBuilder() { - + onChanged(); return getAudioFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The audio data to be recognized.
      * 
* - * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.speech.v1.RecognitionAudioOrBuilder getAudioOrBuilder() { if (audioBuilder_ != null) { return audioBuilder_.getMessageOrBuilder(); } else { - return audio_ == null ? - com.google.cloud.speech.v1.RecognitionAudio.getDefaultInstance() : audio_; + return audio_ == null + ? com.google.cloud.speech.v1.RecognitionAudio.getDefaultInstance() + : audio_; } } /** + * + * *
      * Required. The audio data to be recognized.
      * 
* - * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1.RecognitionAudio, com.google.cloud.speech.v1.RecognitionAudio.Builder, com.google.cloud.speech.v1.RecognitionAudioOrBuilder> + com.google.cloud.speech.v1.RecognitionAudio, + com.google.cloud.speech.v1.RecognitionAudio.Builder, + com.google.cloud.speech.v1.RecognitionAudioOrBuilder> getAudioFieldBuilder() { if (audioBuilder_ == null) { - audioBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1.RecognitionAudio, com.google.cloud.speech.v1.RecognitionAudio.Builder, com.google.cloud.speech.v1.RecognitionAudioOrBuilder>( - getAudio(), - getParentForChildren(), - isClean()); + audioBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v1.RecognitionAudio, + com.google.cloud.speech.v1.RecognitionAudio.Builder, + com.google.cloud.speech.v1.RecognitionAudioOrBuilder>( + getAudio(), getParentForChildren(), isClean()); audio_ = null; } return audioBuilder_; @@ -942,39 +1122,58 @@ public com.google.cloud.speech.v1.RecognitionAudioOrBuilder getAudioOrBuilder() private com.google.cloud.speech.v1.TranscriptOutputConfig outputConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1.TranscriptOutputConfig, com.google.cloud.speech.v1.TranscriptOutputConfig.Builder, com.google.cloud.speech.v1.TranscriptOutputConfigOrBuilder> outputConfigBuilder_; + com.google.cloud.speech.v1.TranscriptOutputConfig, + com.google.cloud.speech.v1.TranscriptOutputConfig.Builder, + com.google.cloud.speech.v1.TranscriptOutputConfigOrBuilder> + outputConfigBuilder_; /** + * + * *
      * Optional. Specifies an optional destination for the recognition results.
      * 
* - * .google.cloud.speech.v1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.speech.v1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the outputConfig field is set. */ public boolean hasOutputConfig() { return outputConfigBuilder_ != null || outputConfig_ != null; } /** + * + * *
      * Optional. Specifies an optional destination for the recognition results.
      * 
* - * .google.cloud.speech.v1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.speech.v1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The outputConfig. */ public com.google.cloud.speech.v1.TranscriptOutputConfig getOutputConfig() { if (outputConfigBuilder_ == null) { - return outputConfig_ == null ? com.google.cloud.speech.v1.TranscriptOutputConfig.getDefaultInstance() : outputConfig_; + return outputConfig_ == null + ? com.google.cloud.speech.v1.TranscriptOutputConfig.getDefaultInstance() + : outputConfig_; } else { return outputConfigBuilder_.getMessage(); } } /** + * + * *
      * Optional. Specifies an optional destination for the recognition results.
      * 
* - * .google.cloud.speech.v1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.speech.v1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setOutputConfig(com.google.cloud.speech.v1.TranscriptOutputConfig value) { if (outputConfigBuilder_ == null) { @@ -990,11 +1189,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) { @@ -1008,17 +1211,23 @@ public Builder setOutputConfig( return this; } /** + * + * *
      * Optional. Specifies an optional destination for the recognition results.
      * 
* - * .google.cloud.speech.v1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.speech.v1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeOutputConfig(com.google.cloud.speech.v1.TranscriptOutputConfig value) { if (outputConfigBuilder_ == null) { if (outputConfig_ != null) { outputConfig_ = - com.google.cloud.speech.v1.TranscriptOutputConfig.newBuilder(outputConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.speech.v1.TranscriptOutputConfig.newBuilder(outputConfig_) + .mergeFrom(value) + .buildPartial(); } else { outputConfig_ = value; } @@ -1030,11 +1239,15 @@ public Builder mergeOutputConfig(com.google.cloud.speech.v1.TranscriptOutputConf return this; } /** + * + * *
      * Optional. Specifies an optional destination for the recognition results.
      * 
* - * .google.cloud.speech.v1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.speech.v1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearOutputConfig() { if (outputConfigBuilder_ == null) { @@ -1048,55 +1261,71 @@ public Builder clearOutputConfig() { return this; } /** + * + * *
      * Optional. Specifies an optional destination for the recognition results.
      * 
* - * .google.cloud.speech.v1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.speech.v1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.speech.v1.TranscriptOutputConfig.Builder getOutputConfigBuilder() { - + onChanged(); return getOutputConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. Specifies an optional destination for the recognition results.
      * 
* - * .google.cloud.speech.v1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.speech.v1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.speech.v1.TranscriptOutputConfigOrBuilder getOutputConfigOrBuilder() { if (outputConfigBuilder_ != null) { return outputConfigBuilder_.getMessageOrBuilder(); } else { - return outputConfig_ == null ? - com.google.cloud.speech.v1.TranscriptOutputConfig.getDefaultInstance() : outputConfig_; + return outputConfig_ == null + ? com.google.cloud.speech.v1.TranscriptOutputConfig.getDefaultInstance() + : outputConfig_; } } /** + * + * *
      * Optional. Specifies an optional destination for the recognition results.
      * 
* - * .google.cloud.speech.v1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.speech.v1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1.TranscriptOutputConfig, com.google.cloud.speech.v1.TranscriptOutputConfig.Builder, com.google.cloud.speech.v1.TranscriptOutputConfigOrBuilder> + com.google.cloud.speech.v1.TranscriptOutputConfig, + com.google.cloud.speech.v1.TranscriptOutputConfig.Builder, + com.google.cloud.speech.v1.TranscriptOutputConfigOrBuilder> getOutputConfigFieldBuilder() { if (outputConfigBuilder_ == null) { - outputConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1.TranscriptOutputConfig, com.google.cloud.speech.v1.TranscriptOutputConfig.Builder, com.google.cloud.speech.v1.TranscriptOutputConfigOrBuilder>( - getOutputConfig(), - getParentForChildren(), - isClean()); + outputConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v1.TranscriptOutputConfig, + com.google.cloud.speech.v1.TranscriptOutputConfig.Builder, + com.google.cloud.speech.v1.TranscriptOutputConfigOrBuilder>( + getOutputConfig(), getParentForChildren(), isClean()); outputConfig_ = null; } return outputConfigBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1106,12 +1335,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(); } @@ -1120,16 +1349,16 @@ public static com.google.cloud.speech.v1.LongRunningRecognizeRequest getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LongRunningRecognizeRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new LongRunningRecognizeRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LongRunningRecognizeRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LongRunningRecognizeRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1144,6 +1373,4 @@ public com.google.protobuf.Parser getParserForType( public com.google.cloud.speech.v1.LongRunningRecognizeRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeRequestOrBuilder.java b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeRequestOrBuilder.java similarity index 51% rename from owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeRequestOrBuilder.java rename to proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeRequestOrBuilder.java index fe890f69a..3a4e90c85 100644 --- a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeRequestOrBuilder.java +++ b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeRequestOrBuilder.java @@ -1,93 +1,151 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1/cloud_speech.proto package com.google.cloud.speech.v1; -public interface LongRunningRecognizeRequestOrBuilder extends +public interface LongRunningRecognizeRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1.LongRunningRecognizeRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Provides information to the recognizer that specifies how to
    * process the request.
    * 
* - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the config field is set. */ boolean hasConfig(); /** + * + * *
    * Required. Provides information to the recognizer that specifies how to
    * process the request.
    * 
* - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The config. */ com.google.cloud.speech.v1.RecognitionConfig getConfig(); /** + * + * *
    * Required. Provides information to the recognizer that specifies how to
    * process the request.
    * 
* - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.speech.v1.RecognitionConfigOrBuilder getConfigOrBuilder(); /** + * + * *
    * Required. The audio data to be recognized.
    * 
* - * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the audio field is set. */ boolean hasAudio(); /** + * + * *
    * Required. The audio data to be recognized.
    * 
* - * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The audio. */ com.google.cloud.speech.v1.RecognitionAudio getAudio(); /** + * + * *
    * Required. The audio data to be recognized.
    * 
* - * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.speech.v1.RecognitionAudioOrBuilder getAudioOrBuilder(); /** + * + * *
    * Optional. Specifies an optional destination for the recognition results.
    * 
* - * .google.cloud.speech.v1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.speech.v1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the outputConfig field is set. */ boolean hasOutputConfig(); /** + * + * *
    * Optional. Specifies an optional destination for the recognition results.
    * 
* - * .google.cloud.speech.v1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.speech.v1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The outputConfig. */ com.google.cloud.speech.v1.TranscriptOutputConfig getOutputConfig(); /** + * + * *
    * Optional. Specifies an optional destination for the recognition results.
    * 
* - * .google.cloud.speech.v1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.speech.v1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.speech.v1.TranscriptOutputConfigOrBuilder getOutputConfigOrBuilder(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeResponse.java b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeResponse.java similarity index 74% rename from owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeResponse.java rename to proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeResponse.java index b495c8701..9ab646c0c 100644 --- a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeResponse.java +++ b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeResponse.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1/cloud_speech.proto package com.google.cloud.speech.v1; /** + * + * *
  * The only message returned to the client by the `LongRunningRecognize` method.
  * It contains the result as zero or more sequential `SpeechRecognitionResult`
@@ -14,31 +31,31 @@
  *
  * Protobuf type {@code google.cloud.speech.v1.LongRunningRecognizeResponse}
  */
-public final class LongRunningRecognizeResponse extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class LongRunningRecognizeResponse extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.speech.v1.LongRunningRecognizeResponse)
     LongRunningRecognizeResponseOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use LongRunningRecognizeResponse.newBuilder() to construct.
   private LongRunningRecognizeResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private LongRunningRecognizeResponse() {
     results_ = java.util.Collections.emptyList();
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new LongRunningRecognizeResponse();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private LongRunningRecognizeResponse(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -58,68 +75,78 @@ private LongRunningRecognizeResponse(
           case 0:
             done = true;
             break;
-          case 18: {
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              results_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000001;
-            }
-            results_.add(
-                input.readMessage(com.google.cloud.speech.v1.SpeechRecognitionResult.parser(), extensionRegistry));
-            break;
-          }
-          case 26: {
-            com.google.protobuf.Duration.Builder subBuilder = null;
-            if (totalBilledTime_ != null) {
-              subBuilder = totalBilledTime_.toBuilder();
-            }
-            totalBilledTime_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(totalBilledTime_);
-              totalBilledTime_ = subBuilder.buildPartial();
+          case 18:
+            {
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                results_ =
+                    new java.util.ArrayList();
+                mutable_bitField0_ |= 0x00000001;
+              }
+              results_.add(
+                  input.readMessage(
+                      com.google.cloud.speech.v1.SpeechRecognitionResult.parser(),
+                      extensionRegistry));
+              break;
             }
+          case 26:
+            {
+              com.google.protobuf.Duration.Builder subBuilder = null;
+              if (totalBilledTime_ != null) {
+                subBuilder = totalBilledTime_.toBuilder();
+              }
+              totalBilledTime_ =
+                  input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(totalBilledTime_);
+                totalBilledTime_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          case 50: {
-            com.google.cloud.speech.v1.TranscriptOutputConfig.Builder subBuilder = null;
-            if (outputConfig_ != null) {
-              subBuilder = outputConfig_.toBuilder();
-            }
-            outputConfig_ = input.readMessage(com.google.cloud.speech.v1.TranscriptOutputConfig.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(outputConfig_);
-              outputConfig_ = subBuilder.buildPartial();
+              break;
             }
+          case 50:
+            {
+              com.google.cloud.speech.v1.TranscriptOutputConfig.Builder subBuilder = null;
+              if (outputConfig_ != null) {
+                subBuilder = outputConfig_.toBuilder();
+              }
+              outputConfig_ =
+                  input.readMessage(
+                      com.google.cloud.speech.v1.TranscriptOutputConfig.parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(outputConfig_);
+                outputConfig_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          case 58: {
-            com.google.rpc.Status.Builder subBuilder = null;
-            if (outputError_ != null) {
-              subBuilder = outputError_.toBuilder();
-            }
-            outputError_ = input.readMessage(com.google.rpc.Status.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(outputError_);
-              outputError_ = subBuilder.buildPartial();
+              break;
             }
+          case 58:
+            {
+              com.google.rpc.Status.Builder subBuilder = null;
+              if (outputError_ != null) {
+                subBuilder = outputError_.toBuilder();
+              }
+              outputError_ = input.readMessage(com.google.rpc.Status.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(outputError_);
+                outputError_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         results_ = java.util.Collections.unmodifiableList(results_);
@@ -128,22 +155,27 @@ private LongRunningRecognizeResponse(
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_LongRunningRecognizeResponse_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.speech.v1.SpeechProto
+        .internal_static_google_cloud_speech_v1_LongRunningRecognizeResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_LongRunningRecognizeResponse_fieldAccessorTable
+    return com.google.cloud.speech.v1.SpeechProto
+        .internal_static_google_cloud_speech_v1_LongRunningRecognizeResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v1.LongRunningRecognizeResponse.class, com.google.cloud.speech.v1.LongRunningRecognizeResponse.Builder.class);
+            com.google.cloud.speech.v1.LongRunningRecognizeResponse.class,
+            com.google.cloud.speech.v1.LongRunningRecognizeResponse.Builder.class);
   }
 
   public static final int RESULTS_FIELD_NUMBER = 2;
   private java.util.List results_;
   /**
+   *
+   *
    * 
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -156,6 +188,8 @@ public java.util.List getRes
     return results_;
   }
   /**
+   *
+   *
    * 
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -164,11 +198,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.
@@ -181,6 +217,8 @@ public int getResultsCount() {
     return results_.size();
   }
   /**
+   *
+   *
    * 
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -193,6 +231,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.
@@ -209,11 +249,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 @@ -221,18 +264,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.
    * 
@@ -247,11 +297,14 @@ public com.google.protobuf.DurationOrBuilder getTotalBilledTimeOrBuilder() { public static final int OUTPUT_CONFIG_FIELD_NUMBER = 6; private com.google.cloud.speech.v1.TranscriptOutputConfig outputConfig_; /** + * + * *
    * Original output config if present in the request.
    * 
* * .google.cloud.speech.v1.TranscriptOutputConfig output_config = 6; + * * @return Whether the outputConfig field is set. */ @java.lang.Override @@ -259,18 +312,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.
    * 
@@ -285,11 +345,14 @@ public com.google.cloud.speech.v1.TranscriptOutputConfigOrBuilder getOutputConfi public static final int OUTPUT_ERROR_FIELD_NUMBER = 7; private com.google.rpc.Status outputError_; /** + * + * *
    * If the transcript output fails this field contains the relevant error.
    * 
* * .google.rpc.Status output_error = 7; + * * @return Whether the outputError field is set. */ @java.lang.Override @@ -297,11 +360,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 @@ -309,6 +375,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.
    * 
@@ -321,6 +389,7 @@ public com.google.rpc.StatusOrBuilder getOutputErrorOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -332,8 +401,7 @@ public final boolean isInitialized() { } @java.lang.Override - 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)); } @@ -356,20 +424,16 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < results_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, results_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, results_.get(i)); } if (totalBilledTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getTotalBilledTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getTotalBilledTime()); } if (outputConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getOutputConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getOutputConfig()); } if (outputError_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, getOutputError()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getOutputError()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -379,29 +443,26 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1.LongRunningRecognizeResponse)) { return super.equals(obj); } - com.google.cloud.speech.v1.LongRunningRecognizeResponse other = (com.google.cloud.speech.v1.LongRunningRecognizeResponse) obj; + com.google.cloud.speech.v1.LongRunningRecognizeResponse other = + (com.google.cloud.speech.v1.LongRunningRecognizeResponse) obj; - if (!getResultsList() - .equals(other.getResultsList())) return false; + if (!getResultsList().equals(other.getResultsList())) return false; if (hasTotalBilledTime() != other.hasTotalBilledTime()) return false; if (hasTotalBilledTime()) { - if (!getTotalBilledTime() - .equals(other.getTotalBilledTime())) return false; + if (!getTotalBilledTime().equals(other.getTotalBilledTime())) return false; } if (hasOutputConfig() != other.hasOutputConfig()) return false; if (hasOutputConfig()) { - if (!getOutputConfig() - .equals(other.getOutputConfig())) return false; + if (!getOutputConfig().equals(other.getOutputConfig())) return false; } if (hasOutputError() != other.hasOutputError()) return false; if (hasOutputError()) { - if (!getOutputError() - .equals(other.getOutputError())) return false; + if (!getOutputError().equals(other.getOutputError())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -436,96 +497,104 @@ public int hashCode() { } public static com.google.cloud.speech.v1.LongRunningRecognizeResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1.LongRunningRecognizeResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1.LongRunningRecognizeResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1.LongRunningRecognizeResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1.LongRunningRecognizeResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1.LongRunningRecognizeResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1.LongRunningRecognizeResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1.LongRunningRecognizeResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1.LongRunningRecognizeResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1.LongRunningRecognizeResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1.LongRunningRecognizeResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1.LongRunningRecognizeResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.speech.v1.LongRunningRecognizeResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1.LongRunningRecognizeResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.speech.v1.LongRunningRecognizeResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.speech.v1.LongRunningRecognizeResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The only message returned to the client by the `LongRunningRecognize` method.
    * It contains the result as zero or more sequential `SpeechRecognitionResult`
@@ -536,21 +605,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.speech.v1.LongRunningRecognizeResponse}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1.LongRunningRecognizeResponse)
       com.google.cloud.speech.v1.LongRunningRecognizeResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_LongRunningRecognizeResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.speech.v1.SpeechProto
+          .internal_static_google_cloud_speech_v1_LongRunningRecognizeResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_LongRunningRecognizeResponse_fieldAccessorTable
+      return com.google.cloud.speech.v1.SpeechProto
+          .internal_static_google_cloud_speech_v1_LongRunningRecognizeResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v1.LongRunningRecognizeResponse.class, com.google.cloud.speech.v1.LongRunningRecognizeResponse.Builder.class);
+              com.google.cloud.speech.v1.LongRunningRecognizeResponse.class,
+              com.google.cloud.speech.v1.LongRunningRecognizeResponse.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v1.LongRunningRecognizeResponse.newBuilder()
@@ -558,17 +629,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
         getResultsFieldBuilder();
       }
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -600,9 +671,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
@@ -621,7 +692,8 @@ public com.google.cloud.speech.v1.LongRunningRecognizeResponse build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v1.LongRunningRecognizeResponse buildPartial() {
-      com.google.cloud.speech.v1.LongRunningRecognizeResponse result = new com.google.cloud.speech.v1.LongRunningRecognizeResponse(this);
+      com.google.cloud.speech.v1.LongRunningRecognizeResponse result =
+          new com.google.cloud.speech.v1.LongRunningRecognizeResponse(this);
       int from_bitField0_ = bitField0_;
       if (resultsBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
@@ -655,38 +727,39 @@ public com.google.cloud.speech.v1.LongRunningRecognizeResponse buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.speech.v1.LongRunningRecognizeResponse) {
-        return mergeFrom((com.google.cloud.speech.v1.LongRunningRecognizeResponse)other);
+        return mergeFrom((com.google.cloud.speech.v1.LongRunningRecognizeResponse) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -694,7 +767,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()) {
@@ -713,9 +787,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_);
           }
@@ -749,7 +824,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.speech.v1.LongRunningRecognizeResponse) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.speech.v1.LongRunningRecognizeResponse) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -758,21 +834,29 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
     private java.util.List results_ =
-      java.util.Collections.emptyList();
+        java.util.Collections.emptyList();
+
     private void ensureResultsIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
-        results_ = new java.util.ArrayList(results_);
+        results_ =
+            new java.util.ArrayList(results_);
         bitField0_ |= 0x00000001;
-       }
+      }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.speech.v1.SpeechRecognitionResult, com.google.cloud.speech.v1.SpeechRecognitionResult.Builder, com.google.cloud.speech.v1.SpeechRecognitionResultOrBuilder> resultsBuilder_;
+            com.google.cloud.speech.v1.SpeechRecognitionResult,
+            com.google.cloud.speech.v1.SpeechRecognitionResult.Builder,
+            com.google.cloud.speech.v1.SpeechRecognitionResultOrBuilder>
+        resultsBuilder_;
 
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -788,6 +872,8 @@ public java.util.List getRes
       }
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -803,6 +889,8 @@ public int getResultsCount() {
       }
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -818,6 +906,8 @@ public com.google.cloud.speech.v1.SpeechRecognitionResult getResults(int index)
       }
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -825,8 +915,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();
@@ -840,6 +929,8 @@ public Builder setResults(
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -859,6 +950,8 @@ public Builder setResults(
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -880,6 +973,8 @@ public Builder addResults(com.google.cloud.speech.v1.SpeechRecognitionResult val
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -887,8 +982,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();
@@ -902,6 +996,8 @@ public Builder addResults(
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -921,6 +1017,8 @@ public Builder addResults(
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -940,6 +1038,8 @@ public Builder addResults(
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -951,8 +1051,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);
@@ -960,6 +1059,8 @@ public Builder addAllResults(
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -978,6 +1079,8 @@ public Builder clearResults() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -996,6 +1099,8 @@ public Builder removeResults(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -1003,11 +1108,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.
@@ -1018,11 +1124,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.
@@ -1030,8 +1139,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 {
@@ -1039,6 +1148,8 @@ public com.google.cloud.speech.v1.SpeechRecognitionResultOrBuilder getResultsOrB
       }
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -1047,10 +1158,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.
@@ -1058,12 +1171,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.
@@ -1071,20 +1186,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_;
@@ -1092,34 +1210,47 @@ public com.google.cloud.speech.v1.SpeechRecognitionResult.Builder addResultsBuil
 
     private com.google.protobuf.Duration totalBilledTime_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> totalBilledTimeBuilder_;
+            com.google.protobuf.Duration,
+            com.google.protobuf.Duration.Builder,
+            com.google.protobuf.DurationOrBuilder>
+        totalBilledTimeBuilder_;
     /**
+     *
+     *
      * 
      * When available, billed audio seconds for the corresponding request.
      * 
* * .google.protobuf.Duration total_billed_time = 3; + * * @return Whether the totalBilledTime field is set. */ public boolean hasTotalBilledTime() { return totalBilledTimeBuilder_ != null || totalBilledTime_ != null; } /** + * + * *
      * When available, billed audio seconds for the corresponding request.
      * 
* * .google.protobuf.Duration total_billed_time = 3; + * * @return The totalBilledTime. */ public com.google.protobuf.Duration getTotalBilledTime() { if (totalBilledTimeBuilder_ == null) { - return totalBilledTime_ == null ? com.google.protobuf.Duration.getDefaultInstance() : totalBilledTime_; + return totalBilledTime_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : totalBilledTime_; } else { return totalBilledTimeBuilder_.getMessage(); } } /** + * + * *
      * When available, billed audio seconds for the corresponding request.
      * 
@@ -1140,14 +1271,15 @@ public Builder setTotalBilledTime(com.google.protobuf.Duration value) { return this; } /** + * + * *
      * When available, billed audio seconds for the corresponding request.
      * 
* * .google.protobuf.Duration total_billed_time = 3; */ - public Builder setTotalBilledTime( - com.google.protobuf.Duration.Builder builderForValue) { + public Builder setTotalBilledTime(com.google.protobuf.Duration.Builder builderForValue) { if (totalBilledTimeBuilder_ == null) { totalBilledTime_ = builderForValue.build(); onChanged(); @@ -1158,6 +1290,8 @@ public Builder setTotalBilledTime( return this; } /** + * + * *
      * When available, billed audio seconds for the corresponding request.
      * 
@@ -1168,7 +1302,9 @@ public Builder mergeTotalBilledTime(com.google.protobuf.Duration value) { if (totalBilledTimeBuilder_ == null) { if (totalBilledTime_ != null) { totalBilledTime_ = - com.google.protobuf.Duration.newBuilder(totalBilledTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Duration.newBuilder(totalBilledTime_) + .mergeFrom(value) + .buildPartial(); } else { totalBilledTime_ = value; } @@ -1180,6 +1316,8 @@ public Builder mergeTotalBilledTime(com.google.protobuf.Duration value) { return this; } /** + * + * *
      * When available, billed audio seconds for the corresponding request.
      * 
@@ -1198,6 +1336,8 @@ public Builder clearTotalBilledTime() { return this; } /** + * + * *
      * When available, billed audio seconds for the corresponding request.
      * 
@@ -1205,11 +1345,13 @@ public Builder clearTotalBilledTime() { * .google.protobuf.Duration total_billed_time = 3; */ public com.google.protobuf.Duration.Builder getTotalBilledTimeBuilder() { - + onChanged(); return getTotalBilledTimeFieldBuilder().getBuilder(); } /** + * + * *
      * When available, billed audio seconds for the corresponding request.
      * 
@@ -1220,11 +1362,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.
      * 
@@ -1232,14 +1377,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_; @@ -1247,34 +1395,47 @@ public com.google.protobuf.DurationOrBuilder getTotalBilledTimeOrBuilder() { private com.google.cloud.speech.v1.TranscriptOutputConfig outputConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1.TranscriptOutputConfig, com.google.cloud.speech.v1.TranscriptOutputConfig.Builder, com.google.cloud.speech.v1.TranscriptOutputConfigOrBuilder> outputConfigBuilder_; + com.google.cloud.speech.v1.TranscriptOutputConfig, + com.google.cloud.speech.v1.TranscriptOutputConfig.Builder, + com.google.cloud.speech.v1.TranscriptOutputConfigOrBuilder> + outputConfigBuilder_; /** + * + * *
      * Original output config if present in the request.
      * 
* * .google.cloud.speech.v1.TranscriptOutputConfig output_config = 6; + * * @return Whether the outputConfig field is set. */ public boolean hasOutputConfig() { return outputConfigBuilder_ != null || outputConfig_ != null; } /** + * + * *
      * Original output config if present in the request.
      * 
* * .google.cloud.speech.v1.TranscriptOutputConfig output_config = 6; + * * @return The outputConfig. */ public com.google.cloud.speech.v1.TranscriptOutputConfig getOutputConfig() { if (outputConfigBuilder_ == null) { - return outputConfig_ == null ? com.google.cloud.speech.v1.TranscriptOutputConfig.getDefaultInstance() : outputConfig_; + return outputConfig_ == null + ? com.google.cloud.speech.v1.TranscriptOutputConfig.getDefaultInstance() + : outputConfig_; } else { return outputConfigBuilder_.getMessage(); } } /** + * + * *
      * Original output config if present in the request.
      * 
@@ -1295,6 +1456,8 @@ public Builder setOutputConfig(com.google.cloud.speech.v1.TranscriptOutputConfig return this; } /** + * + * *
      * Original output config if present in the request.
      * 
@@ -1313,6 +1476,8 @@ public Builder setOutputConfig( return this; } /** + * + * *
      * Original output config if present in the request.
      * 
@@ -1323,7 +1488,9 @@ public Builder mergeOutputConfig(com.google.cloud.speech.v1.TranscriptOutputConf if (outputConfigBuilder_ == null) { if (outputConfig_ != null) { outputConfig_ = - com.google.cloud.speech.v1.TranscriptOutputConfig.newBuilder(outputConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.speech.v1.TranscriptOutputConfig.newBuilder(outputConfig_) + .mergeFrom(value) + .buildPartial(); } else { outputConfig_ = value; } @@ -1335,6 +1502,8 @@ public Builder mergeOutputConfig(com.google.cloud.speech.v1.TranscriptOutputConf return this; } /** + * + * *
      * Original output config if present in the request.
      * 
@@ -1353,6 +1522,8 @@ public Builder clearOutputConfig() { return this; } /** + * + * *
      * Original output config if present in the request.
      * 
@@ -1360,11 +1531,13 @@ public Builder clearOutputConfig() { * .google.cloud.speech.v1.TranscriptOutputConfig output_config = 6; */ public com.google.cloud.speech.v1.TranscriptOutputConfig.Builder getOutputConfigBuilder() { - + onChanged(); return getOutputConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Original output config if present in the request.
      * 
@@ -1375,11 +1548,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.
      * 
@@ -1387,14 +1563,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_; @@ -1402,24 +1581,31 @@ public com.google.cloud.speech.v1.TranscriptOutputConfigOrBuilder getOutputConfi private com.google.rpc.Status outputError_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> outputErrorBuilder_; + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + outputErrorBuilder_; /** + * + * *
      * If the transcript output fails this field contains the relevant error.
      * 
* * .google.rpc.Status output_error = 7; + * * @return Whether the outputError field is set. */ public boolean hasOutputError() { return outputErrorBuilder_ != null || outputError_ != null; } /** + * + * *
      * If the transcript output fails this field contains the relevant error.
      * 
* * .google.rpc.Status output_error = 7; + * * @return The outputError. */ public com.google.rpc.Status getOutputError() { @@ -1430,6 +1616,8 @@ public com.google.rpc.Status getOutputError() { } } /** + * + * *
      * If the transcript output fails this field contains the relevant error.
      * 
@@ -1450,14 +1638,15 @@ public Builder setOutputError(com.google.rpc.Status value) { return this; } /** + * + * *
      * If the transcript output fails this field contains the relevant error.
      * 
* * .google.rpc.Status output_error = 7; */ - public Builder setOutputError( - com.google.rpc.Status.Builder builderForValue) { + public Builder setOutputError(com.google.rpc.Status.Builder builderForValue) { if (outputErrorBuilder_ == null) { outputError_ = builderForValue.build(); onChanged(); @@ -1468,6 +1657,8 @@ public Builder setOutputError( return this; } /** + * + * *
      * If the transcript output fails this field contains the relevant error.
      * 
@@ -1478,7 +1669,7 @@ public Builder mergeOutputError(com.google.rpc.Status value) { if (outputErrorBuilder_ == null) { if (outputError_ != null) { outputError_ = - com.google.rpc.Status.newBuilder(outputError_).mergeFrom(value).buildPartial(); + com.google.rpc.Status.newBuilder(outputError_).mergeFrom(value).buildPartial(); } else { outputError_ = value; } @@ -1490,6 +1681,8 @@ public Builder mergeOutputError(com.google.rpc.Status value) { return this; } /** + * + * *
      * If the transcript output fails this field contains the relevant error.
      * 
@@ -1508,6 +1701,8 @@ public Builder clearOutputError() { return this; } /** + * + * *
      * If the transcript output fails this field contains the relevant error.
      * 
@@ -1515,11 +1710,13 @@ public Builder clearOutputError() { * .google.rpc.Status output_error = 7; */ public com.google.rpc.Status.Builder getOutputErrorBuilder() { - + onChanged(); return getOutputErrorFieldBuilder().getBuilder(); } /** + * + * *
      * If the transcript output fails this field contains the relevant error.
      * 
@@ -1530,11 +1727,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.
      * 
@@ -1542,21 +1740,22 @@ public com.google.rpc.StatusOrBuilder getOutputErrorOrBuilder() { * .google.rpc.Status output_error = 7; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> getOutputErrorFieldBuilder() { if (outputErrorBuilder_ == null) { - outputErrorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>( - getOutputError(), - getParentForChildren(), - isClean()); + outputErrorBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, + com.google.rpc.Status.Builder, + com.google.rpc.StatusOrBuilder>( + getOutputError(), getParentForChildren(), isClean()); outputError_ = null; } return outputErrorBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1566,12 +1765,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(); } @@ -1580,16 +1779,16 @@ public static com.google.cloud.speech.v1.LongRunningRecognizeResponse getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LongRunningRecognizeResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new LongRunningRecognizeResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LongRunningRecognizeResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LongRunningRecognizeResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1604,6 +1803,4 @@ public com.google.protobuf.Parser getParserForType public com.google.cloud.speech.v1.LongRunningRecognizeResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeResponseOrBuilder.java b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeResponseOrBuilder.java similarity index 81% rename from owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeResponseOrBuilder.java rename to proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeResponseOrBuilder.java index 231d7ae91..5078fa81a 100644 --- a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeResponseOrBuilder.java +++ b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeResponseOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1/cloud_speech.proto package com.google.cloud.speech.v1; -public interface LongRunningRecognizeResponseOrBuilder extends +public interface LongRunningRecognizeResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1.LongRunningRecognizeResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -15,9 +33,10 @@ public interface LongRunningRecognizeResponseOrBuilder extends
    *
    * repeated .google.cloud.speech.v1.SpeechRecognitionResult results = 2;
    */
-  java.util.List 
-      getResultsList();
+  java.util.List getResultsList();
   /**
+   *
+   *
    * 
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -27,6 +46,8 @@ public interface LongRunningRecognizeResponseOrBuilder extends
    */
   com.google.cloud.speech.v1.SpeechRecognitionResult getResults(int index);
   /**
+   *
+   *
    * 
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -36,6 +57,8 @@ public interface LongRunningRecognizeResponseOrBuilder extends
    */
   int getResultsCount();
   /**
+   *
+   *
    * 
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -43,9 +66,11 @@ public interface LongRunningRecognizeResponseOrBuilder extends
    *
    * repeated .google.cloud.speech.v1.SpeechRecognitionResult results = 2;
    */
-  java.util.List 
+  java.util.List
       getResultsOrBuilderList();
   /**
+   *
+   *
    * 
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -53,28 +78,35 @@ public interface LongRunningRecognizeResponseOrBuilder extends
    *
    * repeated .google.cloud.speech.v1.SpeechRecognitionResult results = 2;
    */
-  com.google.cloud.speech.v1.SpeechRecognitionResultOrBuilder getResultsOrBuilder(
-      int index);
+  com.google.cloud.speech.v1.SpeechRecognitionResultOrBuilder getResultsOrBuilder(int index);
 
   /**
+   *
+   *
    * 
    * When available, billed audio seconds for the corresponding request.
    * 
* * .google.protobuf.Duration total_billed_time = 3; + * * @return Whether the totalBilledTime field is set. */ boolean hasTotalBilledTime(); /** + * + * *
    * When available, billed audio seconds for the corresponding request.
    * 
* * .google.protobuf.Duration total_billed_time = 3; + * * @return The totalBilledTime. */ com.google.protobuf.Duration getTotalBilledTime(); /** + * + * *
    * When available, billed audio seconds for the corresponding request.
    * 
@@ -84,24 +116,32 @@ com.google.cloud.speech.v1.SpeechRecognitionResultOrBuilder getResultsOrBuilder( com.google.protobuf.DurationOrBuilder getTotalBilledTimeOrBuilder(); /** + * + * *
    * Original output config if present in the request.
    * 
* * .google.cloud.speech.v1.TranscriptOutputConfig output_config = 6; + * * @return Whether the outputConfig field is set. */ boolean hasOutputConfig(); /** + * + * *
    * Original output config if present in the request.
    * 
* * .google.cloud.speech.v1.TranscriptOutputConfig output_config = 6; + * * @return The outputConfig. */ com.google.cloud.speech.v1.TranscriptOutputConfig getOutputConfig(); /** + * + * *
    * Original output config if present in the request.
    * 
@@ -111,24 +151,32 @@ com.google.cloud.speech.v1.SpeechRecognitionResultOrBuilder getResultsOrBuilder( com.google.cloud.speech.v1.TranscriptOutputConfigOrBuilder getOutputConfigOrBuilder(); /** + * + * *
    * If the transcript output fails this field contains the relevant error.
    * 
* * .google.rpc.Status output_error = 7; + * * @return Whether the outputError field is set. */ boolean hasOutputError(); /** + * + * *
    * If the transcript output fails this field contains the relevant error.
    * 
* * .google.rpc.Status output_error = 7; + * * @return The outputError. */ com.google.rpc.Status getOutputError(); /** + * + * *
    * If the transcript output fails this field contains the relevant error.
    * 
diff --git a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/PhraseSet.java b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/PhraseSet.java similarity index 77% rename from owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/PhraseSet.java rename to proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/PhraseSet.java index d516cc695..9789fd000 100644 --- a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/PhraseSet.java +++ b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/PhraseSet.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1/resource.proto package com.google.cloud.speech.v1; /** + * + * *
  * Provides "hints" to the speech recognizer to favor specific words and phrases
  * in the results.
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.cloud.speech.v1.PhraseSet}
  */
-public final class PhraseSet extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class PhraseSet extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.speech.v1.PhraseSet)
     PhraseSetOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use PhraseSet.newBuilder() to construct.
   private PhraseSet(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private PhraseSet() {
     name_ = "";
     phrases_ = java.util.Collections.emptyList();
@@ -27,16 +45,15 @@ private PhraseSet() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new PhraseSet();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private PhraseSet(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -56,40 +73,42 @@ private PhraseSet(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            name_ = s;
-            break;
-          }
-          case 18: {
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              phrases_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000001;
+              name_ = s;
+              break;
             }
-            phrases_.add(
-                input.readMessage(com.google.cloud.speech.v1.PhraseSet.Phrase.parser(), extensionRegistry));
-            break;
-          }
-          case 37: {
-
-            boost_ = input.readFloat();
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          case 18:
+            {
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                phrases_ = new java.util.ArrayList();
+                mutable_bitField0_ |= 0x00000001;
+              }
+              phrases_.add(
+                  input.readMessage(
+                      com.google.cloud.speech.v1.PhraseSet.Phrase.parser(), extensionRegistry));
+              break;
+            }
+          case 37:
+            {
+              boost_ = input.readFloat();
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         phrases_ = java.util.Collections.unmodifiableList(phrases_);
@@ -98,44 +117,55 @@ private PhraseSet(
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.speech.v1.SpeechResourceProto.internal_static_google_cloud_speech_v1_PhraseSet_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.speech.v1.SpeechResourceProto
+        .internal_static_google_cloud_speech_v1_PhraseSet_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v1.SpeechResourceProto.internal_static_google_cloud_speech_v1_PhraseSet_fieldAccessorTable
+    return com.google.cloud.speech.v1.SpeechResourceProto
+        .internal_static_google_cloud_speech_v1_PhraseSet_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v1.PhraseSet.class, com.google.cloud.speech.v1.PhraseSet.Builder.class);
+            com.google.cloud.speech.v1.PhraseSet.class,
+            com.google.cloud.speech.v1.PhraseSet.Builder.class);
   }
 
-  public interface PhraseOrBuilder extends
+  public interface PhraseOrBuilder
+      extends
       // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1.PhraseSet.Phrase)
       com.google.protobuf.MessageOrBuilder {
 
     /**
+     *
+     *
      * 
      * The phrase itself.
      * 
* * string value = 1; + * * @return The value. */ java.lang.String getValue(); /** + * + * *
      * The phrase itself.
      * 
* * string value = 1; + * * @return The bytes for value. */ - com.google.protobuf.ByteString - getValueBytes(); + com.google.protobuf.ByteString getValueBytes(); /** + * + * *
      * Hint Boost. Overrides the boost set at the phrase set level.
      * Positive value will increase the probability that a specific phrase will
@@ -149,11 +179,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
@@ -182,31 +215,31 @@ public interface PhraseOrBuilder extends
    *
    * Protobuf type {@code google.cloud.speech.v1.PhraseSet.Phrase}
    */
-  public static final class Phrase extends
-      com.google.protobuf.GeneratedMessageV3 implements
+  public static final class Phrase extends com.google.protobuf.GeneratedMessageV3
+      implements
       // @@protoc_insertion_point(message_implements:google.cloud.speech.v1.PhraseSet.Phrase)
       PhraseOrBuilder {
-  private static final long serialVersionUID = 0L;
+    private static final long serialVersionUID = 0L;
     // Use Phrase.newBuilder() to construct.
     private Phrase(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
+
     private Phrase() {
       value_ = "";
     }
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(
-        UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
       return new Phrase();
     }
 
     @java.lang.Override
-    public final com.google.protobuf.UnknownFieldSet
-    getUnknownFields() {
+    public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
       return this.unknownFields;
     }
+
     private Phrase(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -225,57 +258,63 @@ private Phrase(
             case 0:
               done = true;
               break;
-            case 10: {
-              java.lang.String s = input.readStringRequireUtf8();
+            case 10:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
 
-              value_ = s;
-              break;
-            }
-            case 21: {
-
-              boost_ = input.readFloat();
-              break;
-            }
-            default: {
-              if (!parseUnknownField(
-                  input, unknownFields, extensionRegistry, tag)) {
-                done = true;
+                value_ = s;
+                break;
+              }
+            case 21:
+              {
+                boost_ = input.readFloat();
+                break;
+              }
+            default:
+              {
+                if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                  done = true;
+                }
+                break;
               }
-              break;
-            }
           }
         }
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
         throw e.setUnfinishedMessage(this);
       } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(
-            e).setUnfinishedMessage(this);
+        throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
       } finally {
         this.unknownFields = unknownFields.build();
         makeExtensionsImmutable();
       }
     }
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.speech.v1.SpeechResourceProto.internal_static_google_cloud_speech_v1_PhraseSet_Phrase_descriptor;
+
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.speech.v1.SpeechResourceProto
+          .internal_static_google_cloud_speech_v1_PhraseSet_Phrase_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v1.SpeechResourceProto.internal_static_google_cloud_speech_v1_PhraseSet_Phrase_fieldAccessorTable
+      return com.google.cloud.speech.v1.SpeechResourceProto
+          .internal_static_google_cloud_speech_v1_PhraseSet_Phrase_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v1.PhraseSet.Phrase.class, com.google.cloud.speech.v1.PhraseSet.Phrase.Builder.class);
+              com.google.cloud.speech.v1.PhraseSet.Phrase.class,
+              com.google.cloud.speech.v1.PhraseSet.Phrase.Builder.class);
     }
 
     public static final int VALUE_FIELD_NUMBER = 1;
     private volatile java.lang.Object value_;
     /**
+     *
+     *
      * 
      * The phrase itself.
      * 
* * string value = 1; + * * @return The value. */ @java.lang.Override @@ -284,29 +323,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 { @@ -317,6 +356,8 @@ public java.lang.String getValue() { public static final int BOOST_FIELD_NUMBER = 2; private float boost_; /** + * + * *
      * Hint Boost. Overrides the boost set at the phrase set level.
      * Positive value will increase the probability that a specific phrase will
@@ -330,6 +371,7 @@ public java.lang.String getValue() {
      * 
* * float boost = 2; + * * @return The boost. */ @java.lang.Override @@ -338,6 +380,7 @@ public float getBoost() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -349,8 +392,7 @@ public final boolean isInitialized() { } @java.lang.Override - public 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_); } @@ -370,8 +412,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, value_); } if (boost_ != 0F) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(2, boost_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, boost_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -381,18 +422,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1.PhraseSet.Phrase)) { return super.equals(obj); } - com.google.cloud.speech.v1.PhraseSet.Phrase other = (com.google.cloud.speech.v1.PhraseSet.Phrase) obj; + com.google.cloud.speech.v1.PhraseSet.Phrase other = + (com.google.cloud.speech.v1.PhraseSet.Phrase) obj; - if (!getValue() - .equals(other.getValue())) return false; + if (!getValue().equals(other.getValue())) return false; if (java.lang.Float.floatToIntBits(getBoost()) - != java.lang.Float.floatToIntBits( - other.getBoost())) return false; + != java.lang.Float.floatToIntBits(other.getBoost())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -407,95 +447,100 @@ public int hashCode() { hash = (37 * hash) + VALUE_FIELD_NUMBER; hash = (53 * hash) + getValue().hashCode(); hash = (37 * hash) + BOOST_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getBoost()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getBoost()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.speech.v1.PhraseSet.Phrase parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.speech.v1.PhraseSet.Phrase parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1.PhraseSet.Phrase parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1.PhraseSet.Phrase parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1.PhraseSet.Phrase parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1.PhraseSet.Phrase parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1.PhraseSet.Phrase parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1.PhraseSet.Phrase parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1.PhraseSet.Phrase parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1.PhraseSet.Phrase parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1.PhraseSet.Phrase parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1.PhraseSet.Phrase parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.speech.v1.PhraseSet.Phrase parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1.PhraseSet.Phrase parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.speech.v1.PhraseSet.Phrase prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -505,6 +550,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
@@ -533,21 +580,24 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.cloud.speech.v1.PhraseSet.Phrase}
      */
-    public static final class Builder extends
-        com.google.protobuf.GeneratedMessageV3.Builder implements
+    public static final class Builder
+        extends com.google.protobuf.GeneratedMessageV3.Builder
+        implements
         // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1.PhraseSet.Phrase)
         com.google.cloud.speech.v1.PhraseSet.PhraseOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor
-          getDescriptor() {
-        return com.google.cloud.speech.v1.SpeechResourceProto.internal_static_google_cloud_speech_v1_PhraseSet_Phrase_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+        return com.google.cloud.speech.v1.SpeechResourceProto
+            .internal_static_google_cloud_speech_v1_PhraseSet_Phrase_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.cloud.speech.v1.SpeechResourceProto.internal_static_google_cloud_speech_v1_PhraseSet_Phrase_fieldAccessorTable
+        return com.google.cloud.speech.v1.SpeechResourceProto
+            .internal_static_google_cloud_speech_v1_PhraseSet_Phrase_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.cloud.speech.v1.PhraseSet.Phrase.class, com.google.cloud.speech.v1.PhraseSet.Phrase.Builder.class);
+                com.google.cloud.speech.v1.PhraseSet.Phrase.class,
+                com.google.cloud.speech.v1.PhraseSet.Phrase.Builder.class);
       }
 
       // Construct using com.google.cloud.speech.v1.PhraseSet.Phrase.newBuilder()
@@ -555,16 +605,15 @@ private Builder() {
         maybeForceBuilderInitialization();
       }
 
-      private Builder(
-          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         super(parent);
         maybeForceBuilderInitialization();
       }
+
       private void maybeForceBuilderInitialization() {
-        if (com.google.protobuf.GeneratedMessageV3
-                .alwaysUseFieldBuilders) {
-        }
+        if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
       }
+
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -576,9 +625,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
@@ -597,7 +646,8 @@ public com.google.cloud.speech.v1.PhraseSet.Phrase build() {
 
       @java.lang.Override
       public com.google.cloud.speech.v1.PhraseSet.Phrase buildPartial() {
-        com.google.cloud.speech.v1.PhraseSet.Phrase result = new com.google.cloud.speech.v1.PhraseSet.Phrase(this);
+        com.google.cloud.speech.v1.PhraseSet.Phrase result =
+            new com.google.cloud.speech.v1.PhraseSet.Phrase(this);
         result.value_ = value_;
         result.boost_ = boost_;
         onBuilt();
@@ -608,38 +658,41 @@ public com.google.cloud.speech.v1.PhraseSet.Phrase buildPartial() {
       public Builder clone() {
         return super.clone();
       }
+
       @java.lang.Override
       public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field,
-          java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
         return super.setField(field, value);
       }
+
       @java.lang.Override
-      public Builder clearField(
-          com.google.protobuf.Descriptors.FieldDescriptor field) {
+      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
         return super.clearField(field);
       }
+
       @java.lang.Override
-      public Builder clearOneof(
-          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+      public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
         return super.clearOneof(oneof);
       }
+
       @java.lang.Override
       public Builder setRepeatedField(
           com.google.protobuf.Descriptors.FieldDescriptor field,
-          int index, java.lang.Object value) {
+          int index,
+          java.lang.Object value) {
         return super.setRepeatedField(field, index, value);
       }
+
       @java.lang.Override
       public Builder addRepeatedField(
-          com.google.protobuf.Descriptors.FieldDescriptor field,
-          java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
         return super.addRepeatedField(field, value);
       }
+
       @java.lang.Override
       public Builder mergeFrom(com.google.protobuf.Message other) {
         if (other instanceof com.google.cloud.speech.v1.PhraseSet.Phrase) {
-          return mergeFrom((com.google.cloud.speech.v1.PhraseSet.Phrase)other);
+          return mergeFrom((com.google.cloud.speech.v1.PhraseSet.Phrase) other);
         } else {
           super.mergeFrom(other);
           return this;
@@ -686,18 +739,20 @@ public Builder mergeFrom(
 
       private java.lang.Object value_ = "";
       /**
+       *
+       *
        * 
        * The phrase itself.
        * 
* * string value = 1; + * * @return The value. */ public java.lang.String getValue() { java.lang.Object ref = value_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); value_ = s; return s; @@ -706,20 +761,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 { @@ -727,61 +783,70 @@ public java.lang.String getValue() { } } /** + * + * *
        * The phrase itself.
        * 
* * string value = 1; + * * @param value The value to set. * @return This builder for chaining. */ - public Builder setValue( - java.lang.String value) { + public Builder setValue(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + value_ = value; onChanged(); return this; } /** + * + * *
        * The phrase itself.
        * 
* * string value = 1; + * * @return This builder for chaining. */ public Builder clearValue() { - + value_ = getDefaultInstance().getValue(); onChanged(); return this; } /** + * + * *
        * The phrase itself.
        * 
* * string value = 1; + * * @param value The bytes for value to set. * @return This builder for chaining. */ - public Builder setValueBytes( - com.google.protobuf.ByteString value) { + public Builder setValueBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + value_ = value; onChanged(); return this; } - private float boost_ ; + private float boost_; /** + * + * *
        * Hint Boost. Overrides the boost set at the phrase set level.
        * Positive value will increase the probability that a specific phrase will
@@ -795,6 +860,7 @@ public Builder setValueBytes(
        * 
* * float boost = 2; + * * @return The boost. */ @java.lang.Override @@ -802,6 +868,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
@@ -815,16 +883,19 @@ public float getBoost() {
        * 
* * float boost = 2; + * * @param value The boost to set. * @return This builder for chaining. */ public Builder setBoost(float value) { - + boost_ = value; onChanged(); return this; } /** + * + * *
        * Hint Boost. Overrides the boost set at the phrase set level.
        * Positive value will increase the probability that a specific phrase will
@@ -838,14 +909,16 @@ public Builder setBoost(float value) {
        * 
* * float boost = 2; + * * @return This builder for chaining. */ public Builder clearBoost() { - + boost_ = 0F; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -858,12 +931,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(); } @@ -872,16 +945,16 @@ public static com.google.cloud.speech.v1.PhraseSet.Phrase getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Phrase parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Phrase(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Phrase parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Phrase(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -896,17 +969,19 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1.PhraseSet.Phrase getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * The resource name of the phrase set.
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -915,29 +990,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 { @@ -948,6 +1023,8 @@ public java.lang.String getName() { public static final int PHRASES_FIELD_NUMBER = 2; private java.util.List phrases_; /** + * + * *
    * A list of word and phrases.
    * 
@@ -959,6 +1036,8 @@ public java.util.List getPhrasesLis return phrases_; } /** + * + * *
    * A list of word and phrases.
    * 
@@ -966,11 +1045,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.
    * 
@@ -982,6 +1063,8 @@ public int getPhrasesCount() { return phrases_.size(); } /** + * + * *
    * A list of word and phrases.
    * 
@@ -993,6 +1076,8 @@ public com.google.cloud.speech.v1.PhraseSet.Phrase getPhrases(int index) { return phrases_.get(index); } /** + * + * *
    * A list of word and phrases.
    * 
@@ -1000,14 +1085,15 @@ public com.google.cloud.speech.v1.PhraseSet.Phrase getPhrases(int index) { * repeated .google.cloud.speech.v1.PhraseSet.Phrase phrases = 2; */ @java.lang.Override - public com.google.cloud.speech.v1.PhraseSet.PhraseOrBuilder getPhrasesOrBuilder( - int index) { + public com.google.cloud.speech.v1.PhraseSet.PhraseOrBuilder getPhrasesOrBuilder(int index) { return phrases_.get(index); } public static final int BOOST_FIELD_NUMBER = 4; private float boost_; /** + * + * *
    * Hint Boost. Positive value will increase the probability that a specific
    * phrase will be recognized over other similar sounding phrases. The higher
@@ -1021,6 +1107,7 @@ public com.google.cloud.speech.v1.PhraseSet.PhraseOrBuilder getPhrasesOrBuilder(
    * 
* * float boost = 4; + * * @return The boost. */ @java.lang.Override @@ -1029,6 +1116,7 @@ public float getBoost() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1040,8 +1128,7 @@ public final boolean isInitialized() { } @java.lang.Override - public 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_); } @@ -1064,12 +1151,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 (boost_ != 0F) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(4, boost_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(4, boost_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1079,20 +1164,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1.PhraseSet)) { return super.equals(obj); } com.google.cloud.speech.v1.PhraseSet other = (com.google.cloud.speech.v1.PhraseSet) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getPhrasesList() - .equals(other.getPhrasesList())) return false; + if (!getName().equals(other.getName())) return false; + if (!getPhrasesList().equals(other.getPhrasesList())) return false; if (java.lang.Float.floatToIntBits(getBoost()) - != java.lang.Float.floatToIntBits( - other.getBoost())) return false; + != java.lang.Float.floatToIntBits(other.getBoost())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1111,104 +1193,109 @@ public int hashCode() { hash = (53 * hash) + getPhrasesList().hashCode(); } hash = (37 * hash) + BOOST_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getBoost()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getBoost()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.speech.v1.PhraseSet parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.speech.v1.PhraseSet parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1.PhraseSet parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1.PhraseSet parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.cloud.speech.v1.PhraseSet parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1.PhraseSet parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1.PhraseSet parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1.PhraseSet parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1.PhraseSet parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1.PhraseSet parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.speech.v1.PhraseSet parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1.PhraseSet parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.speech.v1.PhraseSet parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1.PhraseSet parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.speech.v1.PhraseSet prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Provides "hints" to the speech recognizer to favor specific words and phrases
    * in the results.
@@ -1216,21 +1303,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.speech.v1.PhraseSet}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1.PhraseSet)
       com.google.cloud.speech.v1.PhraseSetOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.speech.v1.SpeechResourceProto.internal_static_google_cloud_speech_v1_PhraseSet_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.speech.v1.SpeechResourceProto
+          .internal_static_google_cloud_speech_v1_PhraseSet_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v1.SpeechResourceProto.internal_static_google_cloud_speech_v1_PhraseSet_fieldAccessorTable
+      return com.google.cloud.speech.v1.SpeechResourceProto
+          .internal_static_google_cloud_speech_v1_PhraseSet_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v1.PhraseSet.class, com.google.cloud.speech.v1.PhraseSet.Builder.class);
+              com.google.cloud.speech.v1.PhraseSet.class,
+              com.google.cloud.speech.v1.PhraseSet.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v1.PhraseSet.newBuilder()
@@ -1238,17 +1327,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
         getPhrasesFieldBuilder();
       }
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1266,9 +1355,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
@@ -1308,38 +1397,39 @@ public com.google.cloud.speech.v1.PhraseSet buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.speech.v1.PhraseSet) {
-        return mergeFrom((com.google.cloud.speech.v1.PhraseSet)other);
+        return mergeFrom((com.google.cloud.speech.v1.PhraseSet) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1370,9 +1460,10 @@ public Builder mergeFrom(com.google.cloud.speech.v1.PhraseSet other) {
             phrasesBuilder_ = null;
             phrases_ = other.phrases_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            phrasesBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getPhrasesFieldBuilder() : null;
+            phrasesBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getPhrasesFieldBuilder()
+                    : null;
           } else {
             phrasesBuilder_.addAllMessages(other.phrases_);
           }
@@ -1409,22 +1500,25 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * The resource name of the phrase set.
      * 
* * string name = 1; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1433,20 +1527,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 { @@ -1454,72 +1549,85 @@ public java.lang.String getName() { } } /** + * + * *
      * The resource name of the phrase set.
      * 
* * string name = 1; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * The resource name of the phrase set.
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * The resource name of the phrase set.
      * 
* * string name = 1; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } private java.util.List phrases_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensurePhrasesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { phrases_ = new java.util.ArrayList(phrases_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.speech.v1.PhraseSet.Phrase, com.google.cloud.speech.v1.PhraseSet.Phrase.Builder, com.google.cloud.speech.v1.PhraseSet.PhraseOrBuilder> phrasesBuilder_; + com.google.cloud.speech.v1.PhraseSet.Phrase, + com.google.cloud.speech.v1.PhraseSet.Phrase.Builder, + com.google.cloud.speech.v1.PhraseSet.PhraseOrBuilder> + phrasesBuilder_; /** + * + * *
      * A list of word and phrases.
      * 
@@ -1534,6 +1642,8 @@ public java.util.List getPhrasesLis } } /** + * + * *
      * A list of word and phrases.
      * 
@@ -1548,6 +1658,8 @@ public int getPhrasesCount() { } } /** + * + * *
      * A list of word and phrases.
      * 
@@ -1562,14 +1674,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(); @@ -1583,6 +1696,8 @@ public Builder setPhrases( return this; } /** + * + * *
      * A list of word and phrases.
      * 
@@ -1601,6 +1716,8 @@ public Builder setPhrases( return this; } /** + * + * *
      * A list of word and phrases.
      * 
@@ -1621,14 +1738,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(); @@ -1642,14 +1760,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()); @@ -1660,6 +1779,8 @@ public Builder addPhrases( return this; } /** + * + * *
      * A list of word and phrases.
      * 
@@ -1678,6 +1799,8 @@ public Builder addPhrases( return this; } /** + * + * *
      * A list of word and phrases.
      * 
@@ -1688,8 +1811,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); @@ -1697,6 +1819,8 @@ public Builder addAllPhrases( return this; } /** + * + * *
      * A list of word and phrases.
      * 
@@ -1714,6 +1838,8 @@ public Builder clearPhrases() { return this; } /** + * + * *
      * A list of word and phrases.
      * 
@@ -1731,39 +1857,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 { @@ -1771,6 +1902,8 @@ public com.google.cloud.speech.v1.PhraseSet.PhraseOrBuilder getPhrasesOrBuilder( } } /** + * + * *
      * A list of word and phrases.
      * 
@@ -1778,49 +1911,57 @@ public com.google.cloud.speech.v1.PhraseSet.PhraseOrBuilder getPhrasesOrBuilder( * repeated .google.cloud.speech.v1.PhraseSet.Phrase phrases = 2; */ public com.google.cloud.speech.v1.PhraseSet.Phrase.Builder addPhrasesBuilder() { - return getPhrasesFieldBuilder().addBuilder( - com.google.cloud.speech.v1.PhraseSet.Phrase.getDefaultInstance()); + return getPhrasesFieldBuilder() + .addBuilder(com.google.cloud.speech.v1.PhraseSet.Phrase.getDefaultInstance()); } /** + * + * *
      * A list of word and phrases.
      * 
* * repeated .google.cloud.speech.v1.PhraseSet.Phrase phrases = 2; */ - public com.google.cloud.speech.v1.PhraseSet.Phrase.Builder addPhrasesBuilder( - int index) { - return getPhrasesFieldBuilder().addBuilder( - index, com.google.cloud.speech.v1.PhraseSet.Phrase.getDefaultInstance()); + public com.google.cloud.speech.v1.PhraseSet.Phrase.Builder addPhrasesBuilder(int index) { + return getPhrasesFieldBuilder() + .addBuilder(index, com.google.cloud.speech.v1.PhraseSet.Phrase.getDefaultInstance()); } /** + * + * *
      * A list of word and phrases.
      * 
* * repeated .google.cloud.speech.v1.PhraseSet.Phrase phrases = 2; */ - public java.util.List - getPhrasesBuilderList() { + public java.util.List + getPhrasesBuilderList() { return getPhrasesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.speech.v1.PhraseSet.Phrase, com.google.cloud.speech.v1.PhraseSet.Phrase.Builder, com.google.cloud.speech.v1.PhraseSet.PhraseOrBuilder> + com.google.cloud.speech.v1.PhraseSet.Phrase, + com.google.cloud.speech.v1.PhraseSet.Phrase.Builder, + com.google.cloud.speech.v1.PhraseSet.PhraseOrBuilder> getPhrasesFieldBuilder() { if (phrasesBuilder_ == null) { - phrasesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.speech.v1.PhraseSet.Phrase, com.google.cloud.speech.v1.PhraseSet.Phrase.Builder, com.google.cloud.speech.v1.PhraseSet.PhraseOrBuilder>( - phrases_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + phrasesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.speech.v1.PhraseSet.Phrase, + com.google.cloud.speech.v1.PhraseSet.Phrase.Builder, + com.google.cloud.speech.v1.PhraseSet.PhraseOrBuilder>( + phrases_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); phrases_ = null; } return phrasesBuilder_; } - private float boost_ ; + private float boost_; /** + * + * *
      * Hint Boost. Positive value will increase the probability that a specific
      * phrase will be recognized over other similar sounding phrases. The higher
@@ -1834,6 +1975,7 @@ public com.google.cloud.speech.v1.PhraseSet.Phrase.Builder addPhrasesBuilder(
      * 
* * float boost = 4; + * * @return The boost. */ @java.lang.Override @@ -1841,6 +1983,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
@@ -1854,16 +1998,19 @@ public float getBoost() {
      * 
* * float boost = 4; + * * @param value The boost to set. * @return This builder for chaining. */ public Builder setBoost(float value) { - + boost_ = value; onChanged(); return this; } /** + * + * *
      * Hint Boost. Positive value will increase the probability that a specific
      * phrase will be recognized over other similar sounding phrases. The higher
@@ -1877,17 +2024,18 @@ public Builder setBoost(float value) {
      * 
* * float boost = 4; + * * @return This builder for chaining. */ public Builder clearBoost() { - + boost_ = 0F; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1897,12 +2045,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(); } @@ -1911,16 +2059,16 @@ public static com.google.cloud.speech.v1.PhraseSet getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PhraseSet parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PhraseSet(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PhraseSet parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PhraseSet(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1935,6 +2083,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1.PhraseSet getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/PhraseSetOrBuilder.java b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/PhraseSetOrBuilder.java similarity index 72% rename from owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/PhraseSetOrBuilder.java rename to proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/PhraseSetOrBuilder.java index c57c3c5d6..39857ed50 100644 --- a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/PhraseSetOrBuilder.java +++ b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/PhraseSetOrBuilder.java @@ -1,42 +1,66 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1/resource.proto package com.google.cloud.speech.v1; -public interface PhraseSetOrBuilder extends +public interface PhraseSetOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1.PhraseSet) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The resource name of the phrase set.
    * 
* * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * The resource name of the phrase set.
    * 
* * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * A list of word and phrases.
    * 
* * repeated .google.cloud.speech.v1.PhraseSet.Phrase phrases = 2; */ - java.util.List - getPhrasesList(); + java.util.List getPhrasesList(); /** + * + * *
    * A list of word and phrases.
    * 
@@ -45,6 +69,8 @@ public interface PhraseSetOrBuilder extends */ com.google.cloud.speech.v1.PhraseSet.Phrase getPhrases(int index); /** + * + * *
    * A list of word and phrases.
    * 
@@ -53,25 +79,30 @@ public interface PhraseSetOrBuilder extends */ int getPhrasesCount(); /** + * + * *
    * A list of word and phrases.
    * 
* * repeated .google.cloud.speech.v1.PhraseSet.Phrase phrases = 2; */ - java.util.List + java.util.List getPhrasesOrBuilderList(); /** + * + * *
    * A list of word and phrases.
    * 
* * repeated .google.cloud.speech.v1.PhraseSet.Phrase phrases = 2; */ - com.google.cloud.speech.v1.PhraseSet.PhraseOrBuilder getPhrasesOrBuilder( - int index); + com.google.cloud.speech.v1.PhraseSet.PhraseOrBuilder getPhrasesOrBuilder(int index); /** + * + * *
    * Hint Boost. Positive value will increase the probability that a specific
    * phrase will be recognized over other similar sounding phrases. The higher
@@ -85,6 +116,7 @@ com.google.cloud.speech.v1.PhraseSet.PhraseOrBuilder getPhrasesOrBuilder(
    * 
* * float boost = 4; + * * @return The boost. */ float getBoost(); diff --git a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionAudio.java b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionAudio.java similarity index 75% rename from owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionAudio.java rename to proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionAudio.java index f77b954c0..b3ba56d14 100644 --- a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionAudio.java +++ b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionAudio.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1/cloud_speech.proto package com.google.cloud.speech.v1; /** + * + * *
  * Contains audio data in the encoding specified in the `RecognitionConfig`.
  * Either `content` or `uri` must be supplied. Supplying both or neither
@@ -13,30 +30,29 @@
  *
  * Protobuf type {@code google.cloud.speech.v1.RecognitionAudio}
  */
-public final class RecognitionAudio extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class RecognitionAudio extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.speech.v1.RecognitionAudio)
     RecognitionAudioOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use RecognitionAudio.newBuilder() to construct.
   private RecognitionAudio(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-  private RecognitionAudio() {
-  }
+
+  private RecognitionAudio() {}
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new RecognitionAudio();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private RecognitionAudio(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -55,58 +71,65 @@ private RecognitionAudio(
           case 0:
             done = true;
             break;
-          case 10: {
-            audioSourceCase_ = 1;
-            audioSource_ = input.readBytes();
-            break;
-          }
-          case 18: {
-            java.lang.String s = input.readStringRequireUtf8();
-            audioSourceCase_ = 2;
-            audioSource_ = s;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          case 10:
+            {
+              audioSourceCase_ = 1;
+              audioSource_ = input.readBytes();
+              break;
+            }
+          case 18:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
+              audioSourceCase_ = 2;
+              audioSource_ = s;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_RecognitionAudio_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.speech.v1.SpeechProto
+        .internal_static_google_cloud_speech_v1_RecognitionAudio_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_RecognitionAudio_fieldAccessorTable
+    return com.google.cloud.speech.v1.SpeechProto
+        .internal_static_google_cloud_speech_v1_RecognitionAudio_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v1.RecognitionAudio.class, com.google.cloud.speech.v1.RecognitionAudio.Builder.class);
+            com.google.cloud.speech.v1.RecognitionAudio.class,
+            com.google.cloud.speech.v1.RecognitionAudio.Builder.class);
   }
 
   private int audioSourceCase_ = 0;
   private java.lang.Object audioSource_;
+
   public enum AudioSourceCase
-      implements com.google.protobuf.Internal.EnumLite,
+      implements
+          com.google.protobuf.Internal.EnumLite,
           com.google.protobuf.AbstractMessage.InternalOneOfEnum {
     CONTENT(1),
     URI(2),
     AUDIOSOURCE_NOT_SET(0);
     private final int value;
+
     private AudioSourceCase(int value) {
       this.value = value;
     }
@@ -122,25 +145,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
@@ -148,6 +176,7 @@ public int getNumber() {
    * 
* * bytes content = 1; + * * @return Whether the content field is set. */ @java.lang.Override @@ -155,6 +184,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
@@ -162,6 +193,7 @@ public boolean hasContent() {
    * 
* * bytes content = 1; + * * @return The content. */ @java.lang.Override @@ -174,6 +206,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).
@@ -185,12 +219,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).
@@ -202,6 +239,7 @@ public boolean hasUri() {
    * 
* * string uri = 2; + * * @return The uri. */ public java.lang.String getUri() { @@ -212,8 +250,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; @@ -222,6 +259,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).
@@ -233,18 +272,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; } @@ -255,6 +293,7 @@ public java.lang.String getUri() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -266,11 +305,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_); @@ -285,9 +322,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_); @@ -300,22 +337,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: @@ -348,97 +384,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
@@ -448,21 +491,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.speech.v1.RecognitionAudio}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1.RecognitionAudio)
       com.google.cloud.speech.v1.RecognitionAudioOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_RecognitionAudio_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.speech.v1.SpeechProto
+          .internal_static_google_cloud_speech_v1_RecognitionAudio_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_RecognitionAudio_fieldAccessorTable
+      return com.google.cloud.speech.v1.SpeechProto
+          .internal_static_google_cloud_speech_v1_RecognitionAudio_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v1.RecognitionAudio.class, com.google.cloud.speech.v1.RecognitionAudio.Builder.class);
+              com.google.cloud.speech.v1.RecognitionAudio.class,
+              com.google.cloud.speech.v1.RecognitionAudio.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v1.RecognitionAudio.newBuilder()
@@ -470,16 +515,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -489,9 +533,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_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
@@ -510,7 +554,8 @@ public com.google.cloud.speech.v1.RecognitionAudio build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v1.RecognitionAudio buildPartial() {
-      com.google.cloud.speech.v1.RecognitionAudio result = new com.google.cloud.speech.v1.RecognitionAudio(this);
+      com.google.cloud.speech.v1.RecognitionAudio result =
+          new com.google.cloud.speech.v1.RecognitionAudio(this);
       if (audioSourceCase_ == 1) {
         result.audioSource_ = audioSource_;
       }
@@ -526,38 +571,39 @@ public com.google.cloud.speech.v1.RecognitionAudio buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.speech.v1.RecognitionAudio) {
-        return mergeFrom((com.google.cloud.speech.v1.RecognitionAudio)other);
+        return mergeFrom((com.google.cloud.speech.v1.RecognitionAudio) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -567,19 +613,22 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     public Builder mergeFrom(com.google.cloud.speech.v1.RecognitionAudio other) {
       if (other == com.google.cloud.speech.v1.RecognitionAudio.getDefaultInstance()) return this;
       switch (other.getAudioSourceCase()) {
-        case CONTENT: {
-          setContent(other.getContent());
-          break;
-        }
-        case URI: {
-          audioSourceCase_ = 2;
-          audioSource_ = other.audioSource_;
-          onChanged();
-          break;
-        }
-        case AUDIOSOURCE_NOT_SET: {
-          break;
-        }
+        case CONTENT:
+          {
+            setContent(other.getContent());
+            break;
+          }
+        case URI:
+          {
+            audioSourceCase_ = 2;
+            audioSource_ = other.audioSource_;
+            onChanged();
+            break;
+          }
+        case AUDIOSOURCE_NOT_SET:
+          {
+            break;
+          }
       }
       this.mergeUnknownFields(other.unknownFields);
       onChanged();
@@ -609,12 +658,12 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int audioSourceCase_ = 0;
     private java.lang.Object audioSource_;
-    public AudioSourceCase
-        getAudioSourceCase() {
-      return AudioSourceCase.forNumber(
-          audioSourceCase_);
+
+    public AudioSourceCase getAudioSourceCase() {
+      return AudioSourceCase.forNumber(audioSourceCase_);
     }
 
     public Builder clearAudioSource() {
@@ -624,8 +673,9 @@ public Builder clearAudioSource() {
       return this;
     }
 
-
     /**
+     *
+     *
      * 
      * The audio data bytes encoded as specified in
      * `RecognitionConfig`. Note: as with all bytes fields, proto buffers use a
@@ -633,12 +683,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
@@ -646,6 +699,7 @@ public boolean hasContent() {
      * 
* * bytes content = 1; + * * @return The content. */ public com.google.protobuf.ByteString getContent() { @@ -655,6 +709,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
@@ -662,19 +718,22 @@ public com.google.protobuf.ByteString getContent() {
      * 
* * bytes content = 1; + * * @param value The content to set. * @return This builder for chaining. */ public Builder setContent(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - audioSourceCase_ = 1; + throw new NullPointerException(); + } + audioSourceCase_ = 1; audioSource_ = value; onChanged(); return this; } /** + * + * *
      * The audio data bytes encoded as specified in
      * `RecognitionConfig`. Note: as with all bytes fields, proto buffers use a
@@ -682,6 +741,7 @@ public Builder setContent(com.google.protobuf.ByteString value) {
      * 
* * bytes content = 1; + * * @return This builder for chaining. */ public Builder clearContent() { @@ -694,6 +754,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).
@@ -705,6 +767,7 @@ public Builder clearContent() {
      * 
* * string uri = 2; + * * @return Whether the uri field is set. */ @java.lang.Override @@ -712,6 +775,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).
@@ -723,6 +788,7 @@ public boolean hasUri() {
      * 
* * string uri = 2; + * * @return The uri. */ @java.lang.Override @@ -732,8 +798,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; @@ -744,6 +809,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).
@@ -755,19 +822,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; } @@ -777,6 +843,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).
@@ -788,20 +856,22 @@ public java.lang.String getUri() {
      * 
* * string uri = 2; + * * @param value The uri to set. * @return This builder for chaining. */ - public Builder setUri( - java.lang.String value) { + public Builder setUri(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - audioSourceCase_ = 2; + throw new NullPointerException(); + } + audioSourceCase_ = 2; audioSource_ = value; onChanged(); return this; } /** + * + * *
      * URI that points to a file that contains audio data bytes as specified in
      * `RecognitionConfig`. The file must not be compressed (for example, gzip).
@@ -813,6 +883,7 @@ public Builder setUri(
      * 
* * string uri = 2; + * * @return This builder for chaining. */ public Builder clearUri() { @@ -824,6 +895,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).
@@ -835,23 +908,23 @@ public Builder clearUri() {
      * 
* * string uri = 2; + * * @param value The bytes for uri to set. * @return This builder for chaining. */ - public Builder setUriBytes( - com.google.protobuf.ByteString value) { + public Builder setUriBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); audioSourceCase_ = 2; audioSource_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -861,12 +934,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(); } @@ -875,16 +948,16 @@ public static com.google.cloud.speech.v1.RecognitionAudio getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RecognitionAudio parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new RecognitionAudio(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RecognitionAudio parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RecognitionAudio(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -899,6 +972,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1.RecognitionAudio getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionAudioOrBuilder.java b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionAudioOrBuilder.java similarity index 79% rename from owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionAudioOrBuilder.java rename to proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionAudioOrBuilder.java index 4347fb6f5..b8330aa93 100644 --- a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionAudioOrBuilder.java +++ b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionAudioOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1/cloud_speech.proto package com.google.cloud.speech.v1; -public interface RecognitionAudioOrBuilder extends +public interface RecognitionAudioOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1.RecognitionAudio) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The audio data bytes encoded as specified in
    * `RecognitionConfig`. Note: as with all bytes fields, proto buffers use a
@@ -15,10 +33,13 @@ public interface RecognitionAudioOrBuilder extends
    * 
* * bytes content = 1; + * * @return Whether the content field is set. */ boolean hasContent(); /** + * + * *
    * The audio data bytes encoded as specified in
    * `RecognitionConfig`. Note: as with all bytes fields, proto buffers use a
@@ -26,11 +47,14 @@ public interface RecognitionAudioOrBuilder extends
    * 
* * bytes content = 1; + * * @return The content. */ com.google.protobuf.ByteString getContent(); /** + * + * *
    * URI that points to a file that contains audio data bytes as specified in
    * `RecognitionConfig`. The file must not be compressed (for example, gzip).
@@ -42,10 +66,13 @@ public interface RecognitionAudioOrBuilder extends
    * 
* * string uri = 2; + * * @return Whether the uri field is set. */ boolean hasUri(); /** + * + * *
    * URI that points to a file that contains audio data bytes as specified in
    * `RecognitionConfig`. The file must not be compressed (for example, gzip).
@@ -57,10 +84,13 @@ public interface RecognitionAudioOrBuilder extends
    * 
* * string uri = 2; + * * @return The uri. */ java.lang.String getUri(); /** + * + * *
    * URI that points to a file that contains audio data bytes as specified in
    * `RecognitionConfig`. The file must not be compressed (for example, gzip).
@@ -72,10 +102,10 @@ public interface RecognitionAudioOrBuilder extends
    * 
* * string uri = 2; + * * @return The bytes for uri. */ - com.google.protobuf.ByteString - getUriBytes(); + com.google.protobuf.ByteString getUriBytes(); public com.google.cloud.speech.v1.RecognitionAudio.AudioSourceCase getAudioSourceCase(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionConfig.java b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionConfig.java similarity index 83% rename from owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionConfig.java rename to proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionConfig.java index 86098757b..7ebbfe32e 100644 --- a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionConfig.java +++ b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionConfig.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1/cloud_speech.proto package com.google.cloud.speech.v1; /** + * + * *
  * Provides information to the recognizer that specifies how to process the
  * request.
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.cloud.speech.v1.RecognitionConfig}
  */
-public final class RecognitionConfig extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class RecognitionConfig extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.speech.v1.RecognitionConfig)
     RecognitionConfigOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use RecognitionConfig.newBuilder() to construct.
   private RecognitionConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private RecognitionConfig() {
     encoding_ = 0;
     languageCode_ = "";
@@ -30,16 +48,15 @@ private RecognitionConfig() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new RecognitionConfig();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private RecognitionConfig(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -59,166 +76,186 @@ private RecognitionConfig(
           case 0:
             done = true;
             break;
-          case 8: {
-            int rawValue = input.readEnum();
-
-            encoding_ = rawValue;
-            break;
-          }
-          case 16: {
-
-            sampleRateHertz_ = input.readInt32();
-            break;
-          }
-          case 26: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            languageCode_ = s;
-            break;
-          }
-          case 32: {
-
-            maxAlternatives_ = input.readInt32();
-            break;
-          }
-          case 40: {
+          case 8:
+            {
+              int rawValue = input.readEnum();
 
-            profanityFilter_ = input.readBool();
-            break;
-          }
-          case 50: {
-            if (!((mutable_bitField0_ & 0x00000002) != 0)) {
-              speechContexts_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000002;
+              encoding_ = rawValue;
+              break;
             }
-            speechContexts_.add(
-                input.readMessage(com.google.cloud.speech.v1.SpeechContext.parser(), extensionRegistry));
-            break;
-          }
-          case 56: {
-
-            audioChannelCount_ = input.readInt32();
-            break;
-          }
-          case 64: {
+          case 16:
+            {
+              sampleRateHertz_ = input.readInt32();
+              break;
+            }
+          case 26:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            enableWordTimeOffsets_ = input.readBool();
-            break;
-          }
-          case 74: {
-            com.google.cloud.speech.v1.RecognitionMetadata.Builder subBuilder = null;
-            if (metadata_ != null) {
-              subBuilder = metadata_.toBuilder();
+              languageCode_ = s;
+              break;
             }
-            metadata_ = input.readMessage(com.google.cloud.speech.v1.RecognitionMetadata.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(metadata_);
-              metadata_ = subBuilder.buildPartial();
+          case 32:
+            {
+              maxAlternatives_ = input.readInt32();
+              break;
             }
-
-            break;
-          }
-          case 88: {
-
-            enableAutomaticPunctuation_ = input.readBool();
-            break;
-          }
-          case 96: {
-
-            enableSeparateRecognitionPerChannel_ = input.readBool();
-            break;
-          }
-          case 106: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            model_ = s;
-            break;
-          }
-          case 112: {
-
-            useEnhanced_ = input.readBool();
-            break;
-          }
-          case 120: {
-
-            enableWordConfidence_ = input.readBool();
-            break;
-          }
-          case 146: {
-            java.lang.String s = input.readStringRequireUtf8();
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              alternativeLanguageCodes_ = new com.google.protobuf.LazyStringArrayList();
-              mutable_bitField0_ |= 0x00000001;
+          case 40:
+            {
+              profanityFilter_ = input.readBool();
+              break;
             }
-            alternativeLanguageCodes_.add(s);
-            break;
-          }
-          case 154: {
-            com.google.cloud.speech.v1.SpeakerDiarizationConfig.Builder subBuilder = null;
-            if (diarizationConfig_ != null) {
-              subBuilder = diarizationConfig_.toBuilder();
+          case 50:
+            {
+              if (!((mutable_bitField0_ & 0x00000002) != 0)) {
+                speechContexts_ =
+                    new java.util.ArrayList();
+                mutable_bitField0_ |= 0x00000002;
+              }
+              speechContexts_.add(
+                  input.readMessage(
+                      com.google.cloud.speech.v1.SpeechContext.parser(), extensionRegistry));
+              break;
             }
-            diarizationConfig_ = input.readMessage(com.google.cloud.speech.v1.SpeakerDiarizationConfig.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(diarizationConfig_);
-              diarizationConfig_ = subBuilder.buildPartial();
+          case 56:
+            {
+              audioChannelCount_ = input.readInt32();
+              break;
             }
-
-            break;
-          }
-          case 162: {
-            com.google.cloud.speech.v1.SpeechAdaptation.Builder subBuilder = null;
-            if (adaptation_ != null) {
-              subBuilder = adaptation_.toBuilder();
+          case 64:
+            {
+              enableWordTimeOffsets_ = input.readBool();
+              break;
             }
-            adaptation_ = input.readMessage(com.google.cloud.speech.v1.SpeechAdaptation.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(adaptation_);
-              adaptation_ = subBuilder.buildPartial();
+          case 74:
+            {
+              com.google.cloud.speech.v1.RecognitionMetadata.Builder subBuilder = null;
+              if (metadata_ != null) {
+                subBuilder = metadata_.toBuilder();
+              }
+              metadata_ =
+                  input.readMessage(
+                      com.google.cloud.speech.v1.RecognitionMetadata.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(metadata_);
+                metadata_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
-
-            break;
-          }
-          case 178: {
-            com.google.protobuf.BoolValue.Builder subBuilder = null;
-            if (enableSpokenPunctuation_ != null) {
-              subBuilder = enableSpokenPunctuation_.toBuilder();
+          case 88:
+            {
+              enableAutomaticPunctuation_ = input.readBool();
+              break;
             }
-            enableSpokenPunctuation_ = input.readMessage(com.google.protobuf.BoolValue.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(enableSpokenPunctuation_);
-              enableSpokenPunctuation_ = subBuilder.buildPartial();
+          case 96:
+            {
+              enableSeparateRecognitionPerChannel_ = input.readBool();
+              break;
             }
+          case 106:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            break;
-          }
-          case 186: {
-            com.google.protobuf.BoolValue.Builder subBuilder = null;
-            if (enableSpokenEmojis_ != null) {
-              subBuilder = enableSpokenEmojis_.toBuilder();
+              model_ = s;
+              break;
             }
-            enableSpokenEmojis_ = input.readMessage(com.google.protobuf.BoolValue.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(enableSpokenEmojis_);
-              enableSpokenEmojis_ = subBuilder.buildPartial();
+          case 112:
+            {
+              useEnhanced_ = input.readBool();
+              break;
             }
-
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          case 120:
+            {
+              enableWordConfidence_ = input.readBool();
+              break;
+            }
+          case 146:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                alternativeLanguageCodes_ = new com.google.protobuf.LazyStringArrayList();
+                mutable_bitField0_ |= 0x00000001;
+              }
+              alternativeLanguageCodes_.add(s);
+              break;
+            }
+          case 154:
+            {
+              com.google.cloud.speech.v1.SpeakerDiarizationConfig.Builder subBuilder = null;
+              if (diarizationConfig_ != null) {
+                subBuilder = diarizationConfig_.toBuilder();
+              }
+              diarizationConfig_ =
+                  input.readMessage(
+                      com.google.cloud.speech.v1.SpeakerDiarizationConfig.parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(diarizationConfig_);
+                diarizationConfig_ = subBuilder.buildPartial();
+              }
+
+              break;
+            }
+          case 162:
+            {
+              com.google.cloud.speech.v1.SpeechAdaptation.Builder subBuilder = null;
+              if (adaptation_ != null) {
+                subBuilder = adaptation_.toBuilder();
+              }
+              adaptation_ =
+                  input.readMessage(
+                      com.google.cloud.speech.v1.SpeechAdaptation.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(adaptation_);
+                adaptation_ = subBuilder.buildPartial();
+              }
+
+              break;
+            }
+          case 178:
+            {
+              com.google.protobuf.BoolValue.Builder subBuilder = null;
+              if (enableSpokenPunctuation_ != null) {
+                subBuilder = enableSpokenPunctuation_.toBuilder();
+              }
+              enableSpokenPunctuation_ =
+                  input.readMessage(com.google.protobuf.BoolValue.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(enableSpokenPunctuation_);
+                enableSpokenPunctuation_ = subBuilder.buildPartial();
+              }
+
+              break;
+            }
+          case 186:
+            {
+              com.google.protobuf.BoolValue.Builder subBuilder = null;
+              if (enableSpokenEmojis_ != null) {
+                subBuilder = enableSpokenEmojis_.toBuilder();
+              }
+              enableSpokenEmojis_ =
+                  input.readMessage(com.google.protobuf.BoolValue.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(enableSpokenEmojis_);
+                enableSpokenEmojis_ = subBuilder.buildPartial();
+              }
+
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000002) != 0)) {
         speechContexts_ = java.util.Collections.unmodifiableList(speechContexts_);
@@ -230,20 +267,25 @@ private RecognitionConfig(
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_RecognitionConfig_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.speech.v1.SpeechProto
+        .internal_static_google_cloud_speech_v1_RecognitionConfig_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_RecognitionConfig_fieldAccessorTable
+    return com.google.cloud.speech.v1.SpeechProto
+        .internal_static_google_cloud_speech_v1_RecognitionConfig_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v1.RecognitionConfig.class, com.google.cloud.speech.v1.RecognitionConfig.Builder.class);
+            com.google.cloud.speech.v1.RecognitionConfig.class,
+            com.google.cloud.speech.v1.RecognitionConfig.Builder.class);
   }
 
   /**
+   *
+   *
    * 
    * The encoding of the audio data sent in the request.
    * All encodings support only 1 channel (mono) audio, unless the
@@ -269,9 +311,10 @@ private RecognitionConfig(
    *
    * Protobuf enum {@code google.cloud.speech.v1.RecognitionConfig.AudioEncoding}
    */
-  public enum AudioEncoding
-      implements com.google.protobuf.ProtocolMessageEnum {
+  public enum AudioEncoding implements com.google.protobuf.ProtocolMessageEnum {
     /**
+     *
+     *
      * 
      * Not specified.
      * 
@@ -280,6 +323,8 @@ public enum AudioEncoding */ ENCODING_UNSPECIFIED(0), /** + * + * *
      * Uncompressed 16-bit signed little-endian samples (Linear PCM).
      * 
@@ -288,6 +333,8 @@ public enum AudioEncoding */ LINEAR16(1), /** + * + * *
      * `FLAC` (Free Lossless Audio
      * Codec) is the recommended encoding because it is
@@ -301,6 +348,8 @@ public enum AudioEncoding
      */
     FLAC(2),
     /**
+     *
+     *
      * 
      * 8-bit samples that compand 14-bit audio samples using G.711 PCMU/mu-law.
      * 
@@ -309,6 +358,8 @@ public enum AudioEncoding */ MULAW(3), /** + * + * *
      * Adaptive Multi-Rate Narrowband codec. `sample_rate_hertz` must be 8000.
      * 
@@ -317,6 +368,8 @@ public enum AudioEncoding */ AMR(4), /** + * + * *
      * Adaptive Multi-Rate Wideband codec. `sample_rate_hertz` must be 16000.
      * 
@@ -325,6 +378,8 @@ public enum AudioEncoding */ AMR_WB(5), /** + * + * *
      * Opus encoded audio frames in Ogg container
      * ([OggOpus](https://wiki.xiph.org/OggOpus)).
@@ -335,6 +390,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
@@ -355,6 +412,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
@@ -368,6 +427,8 @@ public enum AudioEncoding
     ;
 
     /**
+     *
+     *
      * 
      * Not specified.
      * 
@@ -376,6 +437,8 @@ public enum AudioEncoding */ public static final int ENCODING_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Uncompressed 16-bit signed little-endian samples (Linear PCM).
      * 
@@ -384,6 +447,8 @@ public enum AudioEncoding */ public static final int LINEAR16_VALUE = 1; /** + * + * *
      * `FLAC` (Free Lossless Audio
      * Codec) is the recommended encoding because it is
@@ -397,6 +462,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.
      * 
@@ -405,6 +472,8 @@ public enum AudioEncoding */ public static final int MULAW_VALUE = 3; /** + * + * *
      * Adaptive Multi-Rate Narrowband codec. `sample_rate_hertz` must be 8000.
      * 
@@ -413,6 +482,8 @@ public enum AudioEncoding */ public static final int AMR_VALUE = 4; /** + * + * *
      * Adaptive Multi-Rate Wideband codec. `sample_rate_hertz` must be 16000.
      * 
@@ -421,6 +492,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)).
@@ -431,6 +504,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
@@ -451,6 +526,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
@@ -461,7 +538,6 @@ public enum AudioEncoding
      */
     public static final int WEBM_OPUS_VALUE = 9;
 
-
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -486,55 +562,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;
@@ -554,6 +636,8 @@ private AudioEncoding(int value) {
   public static final int ENCODING_FIELD_NUMBER = 1;
   private int encoding_;
   /**
+   *
+   *
    * 
    * Encoding of audio data sent in all `RecognitionAudio` messages.
    * This field is optional for `FLAC` and `WAV` audio files and required
@@ -561,12 +645,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
@@ -574,17 +662,24 @@ private AudioEncoding(int value) {
    * 
* * .google.cloud.speech.v1.RecognitionConfig.AudioEncoding encoding = 1; + * * @return The encoding. */ - @java.lang.Override public com.google.cloud.speech.v1.RecognitionConfig.AudioEncoding getEncoding() { + @java.lang.Override + public com.google.cloud.speech.v1.RecognitionConfig.AudioEncoding getEncoding() { @SuppressWarnings("deprecation") - com.google.cloud.speech.v1.RecognitionConfig.AudioEncoding result = com.google.cloud.speech.v1.RecognitionConfig.AudioEncoding.valueOf(encoding_); - return result == null ? com.google.cloud.speech.v1.RecognitionConfig.AudioEncoding.UNRECOGNIZED : result; + com.google.cloud.speech.v1.RecognitionConfig.AudioEncoding result = + com.google.cloud.speech.v1.RecognitionConfig.AudioEncoding.valueOf(encoding_); + return result == null + ? com.google.cloud.speech.v1.RecognitionConfig.AudioEncoding.UNRECOGNIZED + : result; } public static final int SAMPLE_RATE_HERTZ_FIELD_NUMBER = 2; private int sampleRateHertz_; /** + * + * *
    * Sample rate in Hertz of the audio data sent in all
    * `RecognitionAudio` messages. Valid values are: 8000-48000.
@@ -596,6 +691,7 @@ private AudioEncoding(int value) {
    * 
* * int32 sample_rate_hertz = 2; + * * @return The sampleRateHertz. */ @java.lang.Override @@ -606,6 +702,8 @@ public int getSampleRateHertz() { public static final int AUDIO_CHANNEL_COUNT_FIELD_NUMBER = 7; private int audioChannelCount_; /** + * + * *
    * The number of channels in the input audio data.
    * ONLY set this for MULTI-CHANNEL recognition.
@@ -619,6 +717,7 @@ public int getSampleRateHertz() {
    * 
* * int32 audio_channel_count = 7; + * * @return The audioChannelCount. */ @java.lang.Override @@ -629,6 +728,8 @@ public int getAudioChannelCount() { public static final int ENABLE_SEPARATE_RECOGNITION_PER_CHANNEL_FIELD_NUMBER = 12; private boolean enableSeparateRecognitionPerChannel_; /** + * + * *
    * This needs to be set to `true` explicitly and `audio_channel_count` > 1
    * to get each channel recognized separately. The recognition result will
@@ -639,6 +740,7 @@ public int getAudioChannelCount() {
    * 
* * bool enable_separate_recognition_per_channel = 12; + * * @return The enableSeparateRecognitionPerChannel. */ @java.lang.Override @@ -649,6 +751,8 @@ public boolean getEnableSeparateRecognitionPerChannel() { public static final int LANGUAGE_CODE_FIELD_NUMBER = 3; private volatile java.lang.Object languageCode_; /** + * + * *
    * Required. The language of the supplied audio as a
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.
@@ -659,6 +763,7 @@ public boolean getEnableSeparateRecognitionPerChannel() {
    * 
* * string language_code = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The languageCode. */ @java.lang.Override @@ -667,14 +772,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.
@@ -685,16 +791,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 { @@ -705,6 +810,8 @@ public java.lang.String getLanguageCode() { public static final int ALTERNATIVE_LANGUAGE_CODES_FIELD_NUMBER = 18; private com.google.protobuf.LazyStringList alternativeLanguageCodes_; /** + * + * *
    * A list of up to 3 additional
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags,
@@ -721,13 +828,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,
@@ -744,12 +853,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,
@@ -766,6 +878,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. */ @@ -773,6 +886,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,
@@ -789,17 +904,19 @@ public java.lang.String getAlternativeLanguageCodes(int index) {
    * 
* * repeated string alternative_language_codes = 18; + * * @param index The index of the value to return. * @return The bytes of the alternativeLanguageCodes at the given index. */ - public com.google.protobuf.ByteString - getAlternativeLanguageCodesBytes(int index) { + public com.google.protobuf.ByteString getAlternativeLanguageCodesBytes(int index) { return alternativeLanguageCodes_.getByteString(index); } public static final int MAX_ALTERNATIVES_FIELD_NUMBER = 4; private int maxAlternatives_; /** + * + * *
    * Maximum number of recognition hypotheses to be returned.
    * Specifically, the maximum number of `SpeechRecognitionAlternative` messages
@@ -810,6 +927,7 @@ public java.lang.String getAlternativeLanguageCodes(int index) {
    * 
* * int32 max_alternatives = 4; + * * @return The maxAlternatives. */ @java.lang.Override @@ -820,6 +938,8 @@ public int getMaxAlternatives() { public static final int PROFANITY_FILTER_FIELD_NUMBER = 5; private boolean profanityFilter_; /** + * + * *
    * If set to `true`, the server will attempt to filter out
    * profanities, replacing all but the initial character in each filtered word
@@ -828,6 +948,7 @@ public int getMaxAlternatives() {
    * 
* * bool profanity_filter = 5; + * * @return The profanityFilter. */ @java.lang.Override @@ -838,6 +959,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
@@ -847,6 +970,7 @@ public boolean getProfanityFilter() {
    * 
* * .google.cloud.speech.v1.SpeechAdaptation adaptation = 20; + * * @return Whether the adaptation field is set. */ @java.lang.Override @@ -854,6 +978,8 @@ public boolean hasAdaptation() { return adaptation_ != null; } /** + * + * *
    * Speech adaptation configuration improves the accuracy of speech
    * recognition. For more information, see the [speech
@@ -863,13 +989,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
@@ -888,6 +1019,8 @@ public com.google.cloud.speech.v1.SpeechAdaptationOrBuilder getAdaptationOrBuild
   public static final int SPEECH_CONTEXTS_FIELD_NUMBER = 6;
   private java.util.List speechContexts_;
   /**
+   *
+   *
    * 
    * Array of [SpeechContext][google.cloud.speech.v1.SpeechContext].
    * A means to provide context to assist the speech recognition. For more
@@ -903,6 +1036,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
@@ -914,11 +1049,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
@@ -934,6 +1071,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
@@ -949,6 +1088,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
@@ -960,14 +1101,15 @@ public com.google.cloud.speech.v1.SpeechContext getSpeechContexts(int index) {
    * repeated .google.cloud.speech.v1.SpeechContext speech_contexts = 6;
    */
   @java.lang.Override
-  public com.google.cloud.speech.v1.SpeechContextOrBuilder getSpeechContextsOrBuilder(
-      int index) {
+  public com.google.cloud.speech.v1.SpeechContextOrBuilder getSpeechContextsOrBuilder(int index) {
     return speechContexts_.get(index);
   }
 
   public static final int ENABLE_WORD_TIME_OFFSETS_FIELD_NUMBER = 8;
   private boolean enableWordTimeOffsets_;
   /**
+   *
+   *
    * 
    * If `true`, the top result includes a list of words and
    * the start and end time offsets (timestamps) for those words. If
@@ -976,6 +1118,7 @@ public com.google.cloud.speech.v1.SpeechContextOrBuilder getSpeechContextsOrBuil
    * 
* * bool enable_word_time_offsets = 8; + * * @return The enableWordTimeOffsets. */ @java.lang.Override @@ -986,6 +1129,8 @@ public boolean getEnableWordTimeOffsets() { public static final int ENABLE_WORD_CONFIDENCE_FIELD_NUMBER = 15; private boolean enableWordConfidence_; /** + * + * *
    * If `true`, the top result includes a list of words and the
    * confidence for those words. If `false`, no word-level confidence
@@ -993,6 +1138,7 @@ public boolean getEnableWordTimeOffsets() {
    * 
* * bool enable_word_confidence = 15; + * * @return The enableWordConfidence. */ @java.lang.Override @@ -1003,6 +1149,8 @@ public boolean getEnableWordConfidence() { public static final int ENABLE_AUTOMATIC_PUNCTUATION_FIELD_NUMBER = 11; private boolean enableAutomaticPunctuation_; /** + * + * *
    * If 'true', adds punctuation to recognition result hypotheses.
    * This feature is only available in select languages. Setting this for
@@ -1011,6 +1159,7 @@ public boolean getEnableWordConfidence() {
    * 
* * bool enable_automatic_punctuation = 11; + * * @return The enableAutomaticPunctuation. */ @java.lang.Override @@ -1021,6 +1170,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
@@ -1032,6 +1183,7 @@ public boolean getEnableAutomaticPunctuation() {
    * 
* * .google.protobuf.BoolValue enable_spoken_punctuation = 22; + * * @return Whether the enableSpokenPunctuation field is set. */ @java.lang.Override @@ -1039,6 +1191,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
@@ -1050,13 +1204,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
@@ -1077,6 +1236,8 @@ public com.google.protobuf.BoolValueOrBuilder getEnableSpokenPunctuationOrBuilde
   public static final int ENABLE_SPOKEN_EMOJIS_FIELD_NUMBER = 23;
   private com.google.protobuf.BoolValue enableSpokenEmojis_;
   /**
+   *
+   *
    * 
    * The spoken emoji behavior for the call
    * If not set, uses default behavior based on model of choice
@@ -1086,6 +1247,7 @@ public com.google.protobuf.BoolValueOrBuilder getEnableSpokenPunctuationOrBuilde
    * 
* * .google.protobuf.BoolValue enable_spoken_emojis = 23; + * * @return Whether the enableSpokenEmojis field is set. */ @java.lang.Override @@ -1093,6 +1255,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
@@ -1102,13 +1266,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
@@ -1127,6 +1296,8 @@ public com.google.protobuf.BoolValueOrBuilder getEnableSpokenEmojisOrBuilder() {
   public static final int DIARIZATION_CONFIG_FIELD_NUMBER = 19;
   private com.google.cloud.speech.v1.SpeakerDiarizationConfig diarizationConfig_;
   /**
+   *
+   *
    * 
    * Config to enable speaker diarization and set additional
    * parameters to make diarization better suited for your application.
@@ -1139,6 +1310,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 @@ -1146,6 +1318,8 @@ public boolean hasDiarizationConfig() { return diarizationConfig_ != null; } /** + * + * *
    * Config to enable speaker diarization and set additional
    * parameters to make diarization better suited for your application.
@@ -1158,13 +1332,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.
@@ -1179,18 +1358,22 @@ public com.google.cloud.speech.v1.SpeakerDiarizationConfig getDiarizationConfig(
    * .google.cloud.speech.v1.SpeakerDiarizationConfig diarization_config = 19;
    */
   @java.lang.Override
-  public com.google.cloud.speech.v1.SpeakerDiarizationConfigOrBuilder getDiarizationConfigOrBuilder() {
+  public com.google.cloud.speech.v1.SpeakerDiarizationConfigOrBuilder
+      getDiarizationConfigOrBuilder() {
     return getDiarizationConfig();
   }
 
   public static final int METADATA_FIELD_NUMBER = 9;
   private com.google.cloud.speech.v1.RecognitionMetadata metadata_;
   /**
+   *
+   *
    * 
    * Metadata regarding this request.
    * 
* * .google.cloud.speech.v1.RecognitionMetadata metadata = 9; + * * @return Whether the metadata field is set. */ @java.lang.Override @@ -1198,18 +1381,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.
    * 
@@ -1224,6 +1414,8 @@ public com.google.cloud.speech.v1.RecognitionMetadataOrBuilder getMetadataOrBuil public static final int MODEL_FIELD_NUMBER = 13; private volatile java.lang.Object model_; /** + * + * *
    * Which model to select for the given request. Select the model
    * best suited to your domain to get best results. If a model is not
@@ -1260,6 +1452,7 @@ public com.google.cloud.speech.v1.RecognitionMetadataOrBuilder getMetadataOrBuil
    * 
* * string model = 13; + * * @return The model. */ @java.lang.Override @@ -1268,14 +1461,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
@@ -1312,16 +1506,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 { @@ -1332,6 +1525,8 @@ public java.lang.String getModel() { public static final int USE_ENHANCED_FIELD_NUMBER = 14; private boolean useEnhanced_; /** + * + * *
    * Set to true to use an enhanced model for speech recognition.
    * If `use_enhanced` is set to true and the `model` field is not set, then
@@ -1343,6 +1538,7 @@ public java.lang.String getModel() {
    * 
* * bool use_enhanced = 14; + * * @return The useEnhanced. */ @java.lang.Override @@ -1351,6 +1547,7 @@ public boolean getUseEnhanced() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1362,9 +1559,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) { @@ -1407,7 +1605,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()); @@ -1430,59 +1629,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; @@ -1493,20 +1685,18 @@ public int getSerializedSize() { size += 2 * getAlternativeLanguageCodesList().size(); } if (diarizationConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(19, getDiarizationConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(19, getDiarizationConfig()); } if (adaptation_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(20, getAdaptation()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(20, getAdaptation()); } if (enableSpokenPunctuation_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(22, getEnableSpokenPunctuation()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 22, getEnableSpokenPunctuation()); } if (enableSpokenEmojis_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(23, getEnableSpokenEmojis()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(23, getEnableSpokenEmojis()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1516,65 +1706,50 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1.RecognitionConfig)) { return super.equals(obj); } - com.google.cloud.speech.v1.RecognitionConfig other = (com.google.cloud.speech.v1.RecognitionConfig) obj; + com.google.cloud.speech.v1.RecognitionConfig other = + (com.google.cloud.speech.v1.RecognitionConfig) obj; if (encoding_ != other.encoding_) return false; - if (getSampleRateHertz() - != other.getSampleRateHertz()) return false; - if (getAudioChannelCount() - != other.getAudioChannelCount()) return false; - if (getEnableSeparateRecognitionPerChannel() - != other.getEnableSeparateRecognitionPerChannel()) return false; - if (!getLanguageCode() - .equals(other.getLanguageCode())) return false; - if (!getAlternativeLanguageCodesList() - .equals(other.getAlternativeLanguageCodesList())) return false; - if (getMaxAlternatives() - != other.getMaxAlternatives()) return false; - if (getProfanityFilter() - != other.getProfanityFilter()) return false; + if (getSampleRateHertz() != other.getSampleRateHertz()) return false; + if (getAudioChannelCount() != other.getAudioChannelCount()) return false; + if (getEnableSeparateRecognitionPerChannel() != other.getEnableSeparateRecognitionPerChannel()) + return false; + if (!getLanguageCode().equals(other.getLanguageCode())) return false; + if (!getAlternativeLanguageCodesList().equals(other.getAlternativeLanguageCodesList())) + return false; + if (getMaxAlternatives() != other.getMaxAlternatives()) return false; + if (getProfanityFilter() != other.getProfanityFilter()) return false; if (hasAdaptation() != other.hasAdaptation()) return false; if (hasAdaptation()) { - if (!getAdaptation() - .equals(other.getAdaptation())) return false; - } - if (!getSpeechContextsList() - .equals(other.getSpeechContextsList())) return false; - if (getEnableWordTimeOffsets() - != other.getEnableWordTimeOffsets()) return false; - if (getEnableWordConfidence() - != other.getEnableWordConfidence()) return false; - if (getEnableAutomaticPunctuation() - != other.getEnableAutomaticPunctuation()) return false; + if (!getAdaptation().equals(other.getAdaptation())) return false; + } + if (!getSpeechContextsList().equals(other.getSpeechContextsList())) return false; + if (getEnableWordTimeOffsets() != other.getEnableWordTimeOffsets()) return false; + if (getEnableWordConfidence() != other.getEnableWordConfidence()) return false; + if (getEnableAutomaticPunctuation() != other.getEnableAutomaticPunctuation()) return false; if (hasEnableSpokenPunctuation() != other.hasEnableSpokenPunctuation()) return false; if (hasEnableSpokenPunctuation()) { - if (!getEnableSpokenPunctuation() - .equals(other.getEnableSpokenPunctuation())) return false; + if (!getEnableSpokenPunctuation().equals(other.getEnableSpokenPunctuation())) return false; } if (hasEnableSpokenEmojis() != other.hasEnableSpokenEmojis()) return false; if (hasEnableSpokenEmojis()) { - if (!getEnableSpokenEmojis() - .equals(other.getEnableSpokenEmojis())) return false; + if (!getEnableSpokenEmojis().equals(other.getEnableSpokenEmojis())) return false; } if (hasDiarizationConfig() != other.hasDiarizationConfig()) return false; if (hasDiarizationConfig()) { - if (!getDiarizationConfig() - .equals(other.getDiarizationConfig())) return false; + if (!getDiarizationConfig().equals(other.getDiarizationConfig())) return false; } if (hasMetadata() != other.hasMetadata()) return false; if (hasMetadata()) { - if (!getMetadata() - .equals(other.getMetadata())) return false; + if (!getMetadata().equals(other.getMetadata())) return false; } - if (!getModel() - .equals(other.getModel())) return false; - if (getUseEnhanced() - != other.getUseEnhanced()) return false; + if (!getModel().equals(other.getModel())) return false; + if (getUseEnhanced() != other.getUseEnhanced()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1593,8 +1768,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) { @@ -1604,8 +1780,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(); @@ -1615,14 +1790,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(); @@ -1642,104 +1814,110 @@ public int hashCode() { hash = (37 * hash) + MODEL_FIELD_NUMBER; hash = (53 * hash) + getModel().hashCode(); hash = (37 * hash) + USE_ENHANCED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getUseEnhanced()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getUseEnhanced()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.speech.v1.RecognitionConfig parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.speech.v1.RecognitionConfig parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1.RecognitionConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1.RecognitionConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1.RecognitionConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1.RecognitionConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1.RecognitionConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1.RecognitionConfig parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1.RecognitionConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1.RecognitionConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1.RecognitionConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1.RecognitionConfig parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.speech.v1.RecognitionConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1.RecognitionConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.speech.v1.RecognitionConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Provides information to the recognizer that specifies how to process the
    * request.
@@ -1747,21 +1925,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.speech.v1.RecognitionConfig}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1.RecognitionConfig)
       com.google.cloud.speech.v1.RecognitionConfigOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_RecognitionConfig_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.speech.v1.SpeechProto
+          .internal_static_google_cloud_speech_v1_RecognitionConfig_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_RecognitionConfig_fieldAccessorTable
+      return com.google.cloud.speech.v1.SpeechProto
+          .internal_static_google_cloud_speech_v1_RecognitionConfig_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v1.RecognitionConfig.class, com.google.cloud.speech.v1.RecognitionConfig.Builder.class);
+              com.google.cloud.speech.v1.RecognitionConfig.class,
+              com.google.cloud.speech.v1.RecognitionConfig.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v1.RecognitionConfig.newBuilder()
@@ -1769,17 +1949,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
         getSpeechContextsFieldBuilder();
       }
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1849,9 +2029,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
@@ -1870,7 +2050,8 @@ public com.google.cloud.speech.v1.RecognitionConfig build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v1.RecognitionConfig buildPartial() {
-      com.google.cloud.speech.v1.RecognitionConfig result = new com.google.cloud.speech.v1.RecognitionConfig(this);
+      com.google.cloud.speech.v1.RecognitionConfig result =
+          new com.google.cloud.speech.v1.RecognitionConfig(this);
       int from_bitField0_ = bitField0_;
       result.encoding_ = encoding_;
       result.sampleRateHertz_ = sampleRateHertz_;
@@ -1931,38 +2112,39 @@ public com.google.cloud.speech.v1.RecognitionConfig buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.speech.v1.RecognitionConfig) {
-        return mergeFrom((com.google.cloud.speech.v1.RecognitionConfig)other);
+        return mergeFrom((com.google.cloud.speech.v1.RecognitionConfig) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -2024,9 +2206,10 @@ public Builder mergeFrom(com.google.cloud.speech.v1.RecognitionConfig other) {
             speechContextsBuilder_ = null;
             speechContexts_ = other.speechContexts_;
             bitField0_ = (bitField0_ & ~0x00000002);
-            speechContextsBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getSpeechContextsFieldBuilder() : null;
+            speechContextsBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getSpeechContextsFieldBuilder()
+                    : null;
           } else {
             speechContextsBuilder_.addAllMessages(other.speechContexts_);
           }
@@ -2088,10 +2271,13 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
     private int encoding_ = 0;
     /**
+     *
+     *
      * 
      * Encoding of audio data sent in all `RecognitionAudio` messages.
      * This field is optional for `FLAC` and `WAV` audio files and required
@@ -2099,12 +2285,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
@@ -2112,16 +2302,19 @@ public Builder mergeFrom(
      * 
* * .google.cloud.speech.v1.RecognitionConfig.AudioEncoding encoding = 1; + * * @param value The enum numeric value on the wire for encoding to set. * @return This builder for chaining. */ public Builder setEncodingValue(int value) { - + encoding_ = value; onChanged(); return this; } /** + * + * *
      * Encoding of audio data sent in all `RecognitionAudio` messages.
      * This field is optional for `FLAC` and `WAV` audio files and required
@@ -2129,15 +2322,21 @@ public Builder setEncodingValue(int value) {
      * 
* * .google.cloud.speech.v1.RecognitionConfig.AudioEncoding encoding = 1; + * * @return The encoding. */ @java.lang.Override public com.google.cloud.speech.v1.RecognitionConfig.AudioEncoding getEncoding() { @SuppressWarnings("deprecation") - com.google.cloud.speech.v1.RecognitionConfig.AudioEncoding result = com.google.cloud.speech.v1.RecognitionConfig.AudioEncoding.valueOf(encoding_); - return result == null ? com.google.cloud.speech.v1.RecognitionConfig.AudioEncoding.UNRECOGNIZED : result; + com.google.cloud.speech.v1.RecognitionConfig.AudioEncoding result = + com.google.cloud.speech.v1.RecognitionConfig.AudioEncoding.valueOf(encoding_); + return result == null + ? com.google.cloud.speech.v1.RecognitionConfig.AudioEncoding.UNRECOGNIZED + : result; } /** + * + * *
      * Encoding of audio data sent in all `RecognitionAudio` messages.
      * This field is optional for `FLAC` and `WAV` audio files and required
@@ -2145,6 +2344,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. */ @@ -2152,12 +2352,14 @@ public Builder setEncoding(com.google.cloud.speech.v1.RecognitionConfig.AudioEnc if (value == null) { throw new NullPointerException(); } - + encoding_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Encoding of audio data sent in all `RecognitionAudio` messages.
      * This field is optional for `FLAC` and `WAV` audio files and required
@@ -2165,17 +2367,20 @@ public Builder setEncoding(com.google.cloud.speech.v1.RecognitionConfig.AudioEnc
      * 
* * .google.cloud.speech.v1.RecognitionConfig.AudioEncoding encoding = 1; + * * @return This builder for chaining. */ public Builder clearEncoding() { - + encoding_ = 0; onChanged(); return this; } - private int sampleRateHertz_ ; + private int sampleRateHertz_; /** + * + * *
      * Sample rate in Hertz of the audio data sent in all
      * `RecognitionAudio` messages. Valid values are: 8000-48000.
@@ -2187,6 +2392,7 @@ public Builder clearEncoding() {
      * 
* * int32 sample_rate_hertz = 2; + * * @return The sampleRateHertz. */ @java.lang.Override @@ -2194,6 +2400,8 @@ public int getSampleRateHertz() { return sampleRateHertz_; } /** + * + * *
      * Sample rate in Hertz of the audio data sent in all
      * `RecognitionAudio` messages. Valid values are: 8000-48000.
@@ -2205,16 +2413,19 @@ public int getSampleRateHertz() {
      * 
* * int32 sample_rate_hertz = 2; + * * @param value The sampleRateHertz to set. * @return This builder for chaining. */ public Builder setSampleRateHertz(int value) { - + sampleRateHertz_ = value; onChanged(); return this; } /** + * + * *
      * Sample rate in Hertz of the audio data sent in all
      * `RecognitionAudio` messages. Valid values are: 8000-48000.
@@ -2226,17 +2437,20 @@ public Builder setSampleRateHertz(int value) {
      * 
* * int32 sample_rate_hertz = 2; + * * @return This builder for chaining. */ public Builder clearSampleRateHertz() { - + sampleRateHertz_ = 0; onChanged(); return this; } - private int audioChannelCount_ ; + private int audioChannelCount_; /** + * + * *
      * The number of channels in the input audio data.
      * ONLY set this for MULTI-CHANNEL recognition.
@@ -2250,6 +2464,7 @@ public Builder clearSampleRateHertz() {
      * 
* * int32 audio_channel_count = 7; + * * @return The audioChannelCount. */ @java.lang.Override @@ -2257,6 +2472,8 @@ public int getAudioChannelCount() { return audioChannelCount_; } /** + * + * *
      * The number of channels in the input audio data.
      * ONLY set this for MULTI-CHANNEL recognition.
@@ -2270,16 +2487,19 @@ public int getAudioChannelCount() {
      * 
* * int32 audio_channel_count = 7; + * * @param value The audioChannelCount to set. * @return This builder for chaining. */ public Builder setAudioChannelCount(int value) { - + audioChannelCount_ = value; onChanged(); return this; } /** + * + * *
      * The number of channels in the input audio data.
      * ONLY set this for MULTI-CHANNEL recognition.
@@ -2293,17 +2513,20 @@ public Builder setAudioChannelCount(int value) {
      * 
* * int32 audio_channel_count = 7; + * * @return This builder for chaining. */ public Builder clearAudioChannelCount() { - + audioChannelCount_ = 0; onChanged(); return this; } - private boolean enableSeparateRecognitionPerChannel_ ; + private boolean enableSeparateRecognitionPerChannel_; /** + * + * *
      * This needs to be set to `true` explicitly and `audio_channel_count` > 1
      * to get each channel recognized separately. The recognition result will
@@ -2314,6 +2537,7 @@ public Builder clearAudioChannelCount() {
      * 
* * bool enable_separate_recognition_per_channel = 12; + * * @return The enableSeparateRecognitionPerChannel. */ @java.lang.Override @@ -2321,6 +2545,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
@@ -2331,16 +2557,19 @@ public boolean getEnableSeparateRecognitionPerChannel() {
      * 
* * bool enable_separate_recognition_per_channel = 12; + * * @param value The enableSeparateRecognitionPerChannel to set. * @return This builder for chaining. */ public Builder setEnableSeparateRecognitionPerChannel(boolean value) { - + enableSeparateRecognitionPerChannel_ = value; onChanged(); return this; } /** + * + * *
      * This needs to be set to `true` explicitly and `audio_channel_count` > 1
      * to get each channel recognized separately. The recognition result will
@@ -2351,10 +2580,11 @@ public Builder setEnableSeparateRecognitionPerChannel(boolean value) {
      * 
* * bool enable_separate_recognition_per_channel = 12; + * * @return This builder for chaining. */ public Builder clearEnableSeparateRecognitionPerChannel() { - + enableSeparateRecognitionPerChannel_ = false; onChanged(); return this; @@ -2362,6 +2592,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.
@@ -2372,13 +2604,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; @@ -2387,6 +2619,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.
@@ -2397,15 +2631,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 { @@ -2413,6 +2646,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.
@@ -2423,20 +2658,22 @@ public java.lang.String getLanguageCode() {
      * 
* * string language_code = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCode( - java.lang.String value) { + public Builder setLanguageCode(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + languageCode_ = value; onChanged(); return this; } /** + * + * *
      * Required. The language of the supplied audio as a
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.
@@ -2447,15 +2684,18 @@ public Builder setLanguageCode(
      * 
* * string language_code = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearLanguageCode() { - + languageCode_ = getDefaultInstance().getLanguageCode(); onChanged(); return this; } /** + * + * *
      * Required. The language of the supplied audio as a
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.
@@ -2466,29 +2706,34 @@ public Builder clearLanguageCode() {
      * 
* * string language_code = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCodeBytes( - com.google.protobuf.ByteString value) { + public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + languageCode_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList alternativeLanguageCodes_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList alternativeLanguageCodes_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureAlternativeLanguageCodesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - alternativeLanguageCodes_ = new com.google.protobuf.LazyStringArrayList(alternativeLanguageCodes_); + alternativeLanguageCodes_ = + new com.google.protobuf.LazyStringArrayList(alternativeLanguageCodes_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
      * A list of up to 3 additional
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags,
@@ -2505,13 +2750,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,
@@ -2528,12 +2775,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,
@@ -2550,6 +2800,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. */ @@ -2557,6 +2808,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,
@@ -2573,14 +2826,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,
@@ -2597,21 +2852,23 @@ public java.lang.String getAlternativeLanguageCodes(int index) {
      * 
* * repeated string alternative_language_codes = 18; + * * @param index The index to set the value at. * @param value The alternativeLanguageCodes to set. * @return This builder for chaining. */ - public Builder setAlternativeLanguageCodes( - int index, java.lang.String value) { + public Builder setAlternativeLanguageCodes(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAlternativeLanguageCodesIsMutable(); + throw new NullPointerException(); + } + ensureAlternativeLanguageCodesIsMutable(); alternativeLanguageCodes_.set(index, value); onChanged(); return this; } /** + * + * *
      * A list of up to 3 additional
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags,
@@ -2628,20 +2885,22 @@ public Builder setAlternativeLanguageCodes(
      * 
* * repeated string alternative_language_codes = 18; + * * @param value The alternativeLanguageCodes to add. * @return This builder for chaining. */ - public Builder addAlternativeLanguageCodes( - java.lang.String value) { + public Builder addAlternativeLanguageCodes(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAlternativeLanguageCodesIsMutable(); + throw new NullPointerException(); + } + ensureAlternativeLanguageCodesIsMutable(); alternativeLanguageCodes_.add(value); onChanged(); return this; } /** + * + * *
      * A list of up to 3 additional
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags,
@@ -2658,18 +2917,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,
@@ -2686,6 +2946,7 @@ public Builder addAllAlternativeLanguageCodes(
      * 
* * repeated string alternative_language_codes = 18; + * * @return This builder for chaining. */ public Builder clearAlternativeLanguageCodes() { @@ -2695,6 +2956,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,
@@ -2711,23 +2974,25 @@ public Builder clearAlternativeLanguageCodes() {
      * 
* * repeated string alternative_language_codes = 18; + * * @param value The bytes of the alternativeLanguageCodes to add. * @return This builder for chaining. */ - public Builder addAlternativeLanguageCodesBytes( - com.google.protobuf.ByteString value) { + public Builder addAlternativeLanguageCodesBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureAlternativeLanguageCodesIsMutable(); alternativeLanguageCodes_.add(value); onChanged(); return this; } - private int maxAlternatives_ ; + private int maxAlternatives_; /** + * + * *
      * Maximum number of recognition hypotheses to be returned.
      * Specifically, the maximum number of `SpeechRecognitionAlternative` messages
@@ -2738,6 +3003,7 @@ public Builder addAlternativeLanguageCodesBytes(
      * 
* * int32 max_alternatives = 4; + * * @return The maxAlternatives. */ @java.lang.Override @@ -2745,6 +3011,8 @@ public int getMaxAlternatives() { return maxAlternatives_; } /** + * + * *
      * Maximum number of recognition hypotheses to be returned.
      * Specifically, the maximum number of `SpeechRecognitionAlternative` messages
@@ -2755,16 +3023,19 @@ public int getMaxAlternatives() {
      * 
* * int32 max_alternatives = 4; + * * @param value The maxAlternatives to set. * @return This builder for chaining. */ public Builder setMaxAlternatives(int value) { - + maxAlternatives_ = value; onChanged(); return this; } /** + * + * *
      * Maximum number of recognition hypotheses to be returned.
      * Specifically, the maximum number of `SpeechRecognitionAlternative` messages
@@ -2775,17 +3046,20 @@ public Builder setMaxAlternatives(int value) {
      * 
* * int32 max_alternatives = 4; + * * @return This builder for chaining. */ public Builder clearMaxAlternatives() { - + maxAlternatives_ = 0; onChanged(); return this; } - private boolean profanityFilter_ ; + private boolean profanityFilter_; /** + * + * *
      * If set to `true`, the server will attempt to filter out
      * profanities, replacing all but the initial character in each filtered word
@@ -2794,6 +3068,7 @@ public Builder clearMaxAlternatives() {
      * 
* * bool profanity_filter = 5; + * * @return The profanityFilter. */ @java.lang.Override @@ -2801,6 +3076,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
@@ -2809,16 +3086,19 @@ public boolean getProfanityFilter() {
      * 
* * bool profanity_filter = 5; + * * @param value The profanityFilter to set. * @return This builder for chaining. */ public Builder setProfanityFilter(boolean value) { - + profanityFilter_ = value; onChanged(); return this; } /** + * + * *
      * If set to `true`, the server will attempt to filter out
      * profanities, replacing all but the initial character in each filtered word
@@ -2827,10 +3107,11 @@ public Builder setProfanityFilter(boolean value) {
      * 
* * bool profanity_filter = 5; + * * @return This builder for chaining. */ public Builder clearProfanityFilter() { - + profanityFilter_ = false; onChanged(); return this; @@ -2838,8 +3119,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
@@ -2849,12 +3135,15 @@ public Builder clearProfanityFilter() {
      * 
* * .google.cloud.speech.v1.SpeechAdaptation adaptation = 20; + * * @return Whether the adaptation field is set. */ public boolean hasAdaptation() { return adaptationBuilder_ != null || adaptation_ != null; } /** + * + * *
      * Speech adaptation configuration improves the accuracy of speech
      * recognition. For more information, see the [speech
@@ -2864,16 +3153,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
@@ -2898,6 +3192,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
@@ -2920,6 +3216,8 @@ public Builder setAdaptation(
       return this;
     }
     /**
+     *
+     *
      * 
      * Speech adaptation configuration improves the accuracy of speech
      * recognition. For more information, see the [speech
@@ -2934,7 +3232,9 @@ public Builder mergeAdaptation(com.google.cloud.speech.v1.SpeechAdaptation value
       if (adaptationBuilder_ == null) {
         if (adaptation_ != null) {
           adaptation_ =
-            com.google.cloud.speech.v1.SpeechAdaptation.newBuilder(adaptation_).mergeFrom(value).buildPartial();
+              com.google.cloud.speech.v1.SpeechAdaptation.newBuilder(adaptation_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           adaptation_ = value;
         }
@@ -2946,6 +3246,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
@@ -2968,6 +3270,8 @@ public Builder clearAdaptation() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Speech adaptation configuration improves the accuracy of speech
      * recognition. For more information, see the [speech
@@ -2979,11 +3283,13 @@ public Builder clearAdaptation() {
      * .google.cloud.speech.v1.SpeechAdaptation adaptation = 20;
      */
     public com.google.cloud.speech.v1.SpeechAdaptation.Builder getAdaptationBuilder() {
-      
+
       onChanged();
       return getAdaptationFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Speech adaptation configuration improves the accuracy of speech
      * recognition. For more information, see the [speech
@@ -2998,11 +3304,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
@@ -3014,32 +3323,42 @@ public com.google.cloud.speech.v1.SpeechAdaptationOrBuilder getAdaptationOrBuild
      * .google.cloud.speech.v1.SpeechAdaptation adaptation = 20;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.speech.v1.SpeechAdaptation, com.google.cloud.speech.v1.SpeechAdaptation.Builder, com.google.cloud.speech.v1.SpeechAdaptationOrBuilder> 
+            com.google.cloud.speech.v1.SpeechAdaptation,
+            com.google.cloud.speech.v1.SpeechAdaptation.Builder,
+            com.google.cloud.speech.v1.SpeechAdaptationOrBuilder>
         getAdaptationFieldBuilder() {
       if (adaptationBuilder_ == null) {
-        adaptationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.speech.v1.SpeechAdaptation, com.google.cloud.speech.v1.SpeechAdaptation.Builder, com.google.cloud.speech.v1.SpeechAdaptationOrBuilder>(
-                getAdaptation(),
-                getParentForChildren(),
-                isClean());
+        adaptationBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.speech.v1.SpeechAdaptation,
+                com.google.cloud.speech.v1.SpeechAdaptation.Builder,
+                com.google.cloud.speech.v1.SpeechAdaptationOrBuilder>(
+                getAdaptation(), getParentForChildren(), isClean());
         adaptation_ = null;
       }
       return adaptationBuilder_;
     }
 
     private java.util.List speechContexts_ =
-      java.util.Collections.emptyList();
+        java.util.Collections.emptyList();
+
     private void ensureSpeechContextsIsMutable() {
       if (!((bitField0_ & 0x00000002) != 0)) {
-        speechContexts_ = new java.util.ArrayList(speechContexts_);
+        speechContexts_ =
+            new java.util.ArrayList(speechContexts_);
         bitField0_ |= 0x00000002;
-       }
+      }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.speech.v1.SpeechContext, com.google.cloud.speech.v1.SpeechContext.Builder, com.google.cloud.speech.v1.SpeechContextOrBuilder> speechContextsBuilder_;
+            com.google.cloud.speech.v1.SpeechContext,
+            com.google.cloud.speech.v1.SpeechContext.Builder,
+            com.google.cloud.speech.v1.SpeechContextOrBuilder>
+        speechContextsBuilder_;
 
     /**
+     *
+     *
      * 
      * Array of [SpeechContext][google.cloud.speech.v1.SpeechContext].
      * A means to provide context to assist the speech recognition. For more
@@ -3058,6 +3377,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
@@ -3076,6 +3397,8 @@ public int getSpeechContextsCount() {
       }
     }
     /**
+     *
+     *
      * 
      * Array of [SpeechContext][google.cloud.speech.v1.SpeechContext].
      * A means to provide context to assist the speech recognition. For more
@@ -3094,6 +3417,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
@@ -3104,8 +3429,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();
@@ -3119,6 +3443,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
@@ -3141,6 +3467,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
@@ -3165,6 +3493,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
@@ -3175,8 +3505,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();
@@ -3190,6 +3519,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
@@ -3212,6 +3543,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
@@ -3234,6 +3567,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
@@ -3248,8 +3583,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);
@@ -3257,6 +3591,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
@@ -3278,6 +3614,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
@@ -3299,6 +3637,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
@@ -3309,11 +3649,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
@@ -3324,14 +3665,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
@@ -3342,8 +3685,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 {
@@ -3351,6 +3694,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
@@ -3362,10 +3707,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
@@ -3376,12 +3723,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
@@ -3392,16 +3740,22 @@ public com.google.cloud.speech.v1.SpeechContext.Builder addSpeechContextsBuilder
      *
      * repeated .google.cloud.speech.v1.SpeechContext speech_contexts = 6;
      */
-    public java.util.List 
-         getSpeechContextsBuilderList() {
+    public java.util.List
+        getSpeechContextsBuilderList() {
       return getSpeechContextsFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.speech.v1.SpeechContext, com.google.cloud.speech.v1.SpeechContext.Builder, com.google.cloud.speech.v1.SpeechContextOrBuilder> 
+            com.google.cloud.speech.v1.SpeechContext,
+            com.google.cloud.speech.v1.SpeechContext.Builder,
+            com.google.cloud.speech.v1.SpeechContextOrBuilder>
         getSpeechContextsFieldBuilder() {
       if (speechContextsBuilder_ == null) {
-        speechContextsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.speech.v1.SpeechContext, com.google.cloud.speech.v1.SpeechContext.Builder, com.google.cloud.speech.v1.SpeechContextOrBuilder>(
+        speechContextsBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.cloud.speech.v1.SpeechContext,
+                com.google.cloud.speech.v1.SpeechContext.Builder,
+                com.google.cloud.speech.v1.SpeechContextOrBuilder>(
                 speechContexts_,
                 ((bitField0_ & 0x00000002) != 0),
                 getParentForChildren(),
@@ -3411,8 +3765,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
@@ -3421,6 +3777,7 @@ public com.google.cloud.speech.v1.SpeechContext.Builder addSpeechContextsBuilder
      * 
* * bool enable_word_time_offsets = 8; + * * @return The enableWordTimeOffsets. */ @java.lang.Override @@ -3428,6 +3785,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
@@ -3436,16 +3795,19 @@ public boolean getEnableWordTimeOffsets() {
      * 
* * bool enable_word_time_offsets = 8; + * * @param value The enableWordTimeOffsets to set. * @return This builder for chaining. */ public Builder setEnableWordTimeOffsets(boolean value) { - + enableWordTimeOffsets_ = value; onChanged(); return this; } /** + * + * *
      * If `true`, the top result includes a list of words and
      * the start and end time offsets (timestamps) for those words. If
@@ -3454,17 +3816,20 @@ public Builder setEnableWordTimeOffsets(boolean value) {
      * 
* * bool enable_word_time_offsets = 8; + * * @return This builder for chaining. */ public Builder clearEnableWordTimeOffsets() { - + enableWordTimeOffsets_ = false; onChanged(); return this; } - private boolean enableWordConfidence_ ; + private boolean enableWordConfidence_; /** + * + * *
      * If `true`, the top result includes a list of words and the
      * confidence for those words. If `false`, no word-level confidence
@@ -3472,6 +3837,7 @@ public Builder clearEnableWordTimeOffsets() {
      * 
* * bool enable_word_confidence = 15; + * * @return The enableWordConfidence. */ @java.lang.Override @@ -3479,6 +3845,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
@@ -3486,16 +3854,19 @@ public boolean getEnableWordConfidence() {
      * 
* * bool enable_word_confidence = 15; + * * @param value The enableWordConfidence to set. * @return This builder for chaining. */ public Builder setEnableWordConfidence(boolean value) { - + enableWordConfidence_ = value; onChanged(); return this; } /** + * + * *
      * If `true`, the top result includes a list of words and the
      * confidence for those words. If `false`, no word-level confidence
@@ -3503,17 +3874,20 @@ public Builder setEnableWordConfidence(boolean value) {
      * 
* * bool enable_word_confidence = 15; + * * @return This builder for chaining. */ public Builder clearEnableWordConfidence() { - + enableWordConfidence_ = false; onChanged(); return this; } - private boolean enableAutomaticPunctuation_ ; + private boolean enableAutomaticPunctuation_; /** + * + * *
      * If 'true', adds punctuation to recognition result hypotheses.
      * This feature is only available in select languages. Setting this for
@@ -3522,6 +3896,7 @@ public Builder clearEnableWordConfidence() {
      * 
* * bool enable_automatic_punctuation = 11; + * * @return The enableAutomaticPunctuation. */ @java.lang.Override @@ -3529,6 +3904,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
@@ -3537,16 +3914,19 @@ public boolean getEnableAutomaticPunctuation() {
      * 
* * bool enable_automatic_punctuation = 11; + * * @param value The enableAutomaticPunctuation to set. * @return This builder for chaining. */ public Builder setEnableAutomaticPunctuation(boolean value) { - + enableAutomaticPunctuation_ = value; onChanged(); return this; } /** + * + * *
      * If 'true', adds punctuation to recognition result hypotheses.
      * This feature is only available in select languages. Setting this for
@@ -3555,10 +3935,11 @@ public Builder setEnableAutomaticPunctuation(boolean value) {
      * 
* * bool enable_automatic_punctuation = 11; + * * @return This builder for chaining. */ public Builder clearEnableAutomaticPunctuation() { - + enableAutomaticPunctuation_ = false; onChanged(); return this; @@ -3566,8 +3947,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
@@ -3579,12 +3965,15 @@ public Builder clearEnableAutomaticPunctuation() {
      * 
* * .google.protobuf.BoolValue enable_spoken_punctuation = 22; + * * @return Whether the enableSpokenPunctuation field is set. */ public boolean hasEnableSpokenPunctuation() { return enableSpokenPunctuationBuilder_ != null || enableSpokenPunctuation_ != null; } /** + * + * *
      * The spoken punctuation behavior for the call
      * If not set, uses default behavior based on model of choice
@@ -3596,16 +3985,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
@@ -3632,6 +4026,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
@@ -3656,6 +4052,8 @@ public Builder setEnableSpokenPunctuation(
       return this;
     }
     /**
+     *
+     *
      * 
      * The spoken punctuation behavior for the call
      * If not set, uses default behavior based on model of choice
@@ -3672,7 +4070,9 @@ public Builder mergeEnableSpokenPunctuation(com.google.protobuf.BoolValue value)
       if (enableSpokenPunctuationBuilder_ == null) {
         if (enableSpokenPunctuation_ != null) {
           enableSpokenPunctuation_ =
-            com.google.protobuf.BoolValue.newBuilder(enableSpokenPunctuation_).mergeFrom(value).buildPartial();
+              com.google.protobuf.BoolValue.newBuilder(enableSpokenPunctuation_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           enableSpokenPunctuation_ = value;
         }
@@ -3684,6 +4084,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
@@ -3708,6 +4110,8 @@ public Builder clearEnableSpokenPunctuation() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The spoken punctuation behavior for the call
      * If not set, uses default behavior based on model of choice
@@ -3721,11 +4125,13 @@ public Builder clearEnableSpokenPunctuation() {
      * .google.protobuf.BoolValue enable_spoken_punctuation = 22;
      */
     public com.google.protobuf.BoolValue.Builder getEnableSpokenPunctuationBuilder() {
-      
+
       onChanged();
       return getEnableSpokenPunctuationFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The spoken punctuation behavior for the call
      * If not set, uses default behavior based on model of choice
@@ -3742,11 +4148,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
@@ -3760,14 +4169,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_;
@@ -3775,8 +4187,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
@@ -3786,12 +4203,15 @@ public com.google.protobuf.BoolValueOrBuilder getEnableSpokenPunctuationOrBuilde
      * 
* * .google.protobuf.BoolValue enable_spoken_emojis = 23; + * * @return Whether the enableSpokenEmojis field is set. */ public boolean hasEnableSpokenEmojis() { return enableSpokenEmojisBuilder_ != null || enableSpokenEmojis_ != null; } /** + * + * *
      * The spoken emoji behavior for the call
      * If not set, uses default behavior based on model of choice
@@ -3801,16 +4221,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
@@ -3835,6 +4260,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
@@ -3845,8 +4272,7 @@ public Builder setEnableSpokenEmojis(com.google.protobuf.BoolValue value) {
      *
      * .google.protobuf.BoolValue enable_spoken_emojis = 23;
      */
-    public Builder setEnableSpokenEmojis(
-        com.google.protobuf.BoolValue.Builder builderForValue) {
+    public Builder setEnableSpokenEmojis(com.google.protobuf.BoolValue.Builder builderForValue) {
       if (enableSpokenEmojisBuilder_ == null) {
         enableSpokenEmojis_ = builderForValue.build();
         onChanged();
@@ -3857,6 +4283,8 @@ public Builder setEnableSpokenEmojis(
       return this;
     }
     /**
+     *
+     *
      * 
      * The spoken emoji behavior for the call
      * If not set, uses default behavior based on model of choice
@@ -3871,7 +4299,9 @@ public Builder mergeEnableSpokenEmojis(com.google.protobuf.BoolValue value) {
       if (enableSpokenEmojisBuilder_ == null) {
         if (enableSpokenEmojis_ != null) {
           enableSpokenEmojis_ =
-            com.google.protobuf.BoolValue.newBuilder(enableSpokenEmojis_).mergeFrom(value).buildPartial();
+              com.google.protobuf.BoolValue.newBuilder(enableSpokenEmojis_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           enableSpokenEmojis_ = value;
         }
@@ -3883,6 +4313,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
@@ -3905,6 +4337,8 @@ public Builder clearEnableSpokenEmojis() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The spoken emoji behavior for the call
      * If not set, uses default behavior based on model of choice
@@ -3916,11 +4350,13 @@ public Builder clearEnableSpokenEmojis() {
      * .google.protobuf.BoolValue enable_spoken_emojis = 23;
      */
     public com.google.protobuf.BoolValue.Builder getEnableSpokenEmojisBuilder() {
-      
+
       onChanged();
       return getEnableSpokenEmojisFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The spoken emoji behavior for the call
      * If not set, uses default behavior based on model of choice
@@ -3935,11 +4371,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
@@ -3951,14 +4390,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_;
@@ -3966,8 +4408,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.
@@ -3980,12 +4427,15 @@ public com.google.protobuf.BoolValueOrBuilder getEnableSpokenEmojisOrBuilder() {
      * 
* * .google.cloud.speech.v1.SpeakerDiarizationConfig diarization_config = 19; + * * @return Whether the diarizationConfig field is set. */ public boolean hasDiarizationConfig() { return diarizationConfigBuilder_ != null || diarizationConfig_ != null; } /** + * + * *
      * Config to enable speaker diarization and set additional
      * parameters to make diarization better suited for your application.
@@ -3998,16 +4448,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.
@@ -4035,6 +4490,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.
@@ -4060,6 +4517,8 @@ public Builder setDiarizationConfig(
       return this;
     }
     /**
+     *
+     *
      * 
      * Config to enable speaker diarization and set additional
      * parameters to make diarization better suited for your application.
@@ -4073,11 +4532,14 @@ public Builder setDiarizationConfig(
      *
      * .google.cloud.speech.v1.SpeakerDiarizationConfig diarization_config = 19;
      */
-    public Builder mergeDiarizationConfig(com.google.cloud.speech.v1.SpeakerDiarizationConfig value) {
+    public Builder mergeDiarizationConfig(
+        com.google.cloud.speech.v1.SpeakerDiarizationConfig value) {
       if (diarizationConfigBuilder_ == null) {
         if (diarizationConfig_ != null) {
           diarizationConfig_ =
-            com.google.cloud.speech.v1.SpeakerDiarizationConfig.newBuilder(diarizationConfig_).mergeFrom(value).buildPartial();
+              com.google.cloud.speech.v1.SpeakerDiarizationConfig.newBuilder(diarizationConfig_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           diarizationConfig_ = value;
         }
@@ -4089,6 +4551,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.
@@ -4114,6 +4578,8 @@ public Builder clearDiarizationConfig() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Config to enable speaker diarization and set additional
      * parameters to make diarization better suited for your application.
@@ -4127,12 +4593,15 @@ public Builder clearDiarizationConfig() {
      *
      * .google.cloud.speech.v1.SpeakerDiarizationConfig diarization_config = 19;
      */
-    public com.google.cloud.speech.v1.SpeakerDiarizationConfig.Builder getDiarizationConfigBuilder() {
-      
+    public com.google.cloud.speech.v1.SpeakerDiarizationConfig.Builder
+        getDiarizationConfigBuilder() {
+
       onChanged();
       return getDiarizationConfigFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Config to enable speaker diarization and set additional
      * parameters to make diarization better suited for your application.
@@ -4146,15 +4615,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.
@@ -4169,14 +4642,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_;
@@ -4184,34 +4660,47 @@ public com.google.cloud.speech.v1.SpeakerDiarizationConfigOrBuilder getDiarizati
 
     private com.google.cloud.speech.v1.RecognitionMetadata metadata_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.speech.v1.RecognitionMetadata, com.google.cloud.speech.v1.RecognitionMetadata.Builder, com.google.cloud.speech.v1.RecognitionMetadataOrBuilder> metadataBuilder_;
+            com.google.cloud.speech.v1.RecognitionMetadata,
+            com.google.cloud.speech.v1.RecognitionMetadata.Builder,
+            com.google.cloud.speech.v1.RecognitionMetadataOrBuilder>
+        metadataBuilder_;
     /**
+     *
+     *
      * 
      * Metadata regarding this request.
      * 
* * .google.cloud.speech.v1.RecognitionMetadata metadata = 9; + * * @return Whether the metadata field is set. */ public boolean hasMetadata() { return metadataBuilder_ != null || metadata_ != null; } /** + * + * *
      * Metadata regarding this request.
      * 
* * .google.cloud.speech.v1.RecognitionMetadata metadata = 9; + * * @return The metadata. */ public com.google.cloud.speech.v1.RecognitionMetadata getMetadata() { if (metadataBuilder_ == null) { - return metadata_ == null ? com.google.cloud.speech.v1.RecognitionMetadata.getDefaultInstance() : metadata_; + return metadata_ == null + ? com.google.cloud.speech.v1.RecognitionMetadata.getDefaultInstance() + : metadata_; } else { return metadataBuilder_.getMessage(); } } /** + * + * *
      * Metadata regarding this request.
      * 
@@ -4232,6 +4721,8 @@ public Builder setMetadata(com.google.cloud.speech.v1.RecognitionMetadata value) return this; } /** + * + * *
      * Metadata regarding this request.
      * 
@@ -4250,6 +4741,8 @@ public Builder setMetadata( return this; } /** + * + * *
      * Metadata regarding this request.
      * 
@@ -4260,7 +4753,9 @@ public Builder mergeMetadata(com.google.cloud.speech.v1.RecognitionMetadata valu if (metadataBuilder_ == null) { if (metadata_ != null) { metadata_ = - com.google.cloud.speech.v1.RecognitionMetadata.newBuilder(metadata_).mergeFrom(value).buildPartial(); + com.google.cloud.speech.v1.RecognitionMetadata.newBuilder(metadata_) + .mergeFrom(value) + .buildPartial(); } else { metadata_ = value; } @@ -4272,6 +4767,8 @@ public Builder mergeMetadata(com.google.cloud.speech.v1.RecognitionMetadata valu return this; } /** + * + * *
      * Metadata regarding this request.
      * 
@@ -4290,6 +4787,8 @@ public Builder clearMetadata() { return this; } /** + * + * *
      * Metadata regarding this request.
      * 
@@ -4297,11 +4796,13 @@ public Builder clearMetadata() { * .google.cloud.speech.v1.RecognitionMetadata metadata = 9; */ public com.google.cloud.speech.v1.RecognitionMetadata.Builder getMetadataBuilder() { - + onChanged(); return getMetadataFieldBuilder().getBuilder(); } /** + * + * *
      * Metadata regarding this request.
      * 
@@ -4312,11 +4813,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.
      * 
@@ -4324,14 +4828,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_; @@ -4339,6 +4846,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
@@ -4375,13 +4884,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; @@ -4390,6 +4899,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
@@ -4426,15 +4937,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 { @@ -4442,6 +4952,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
@@ -4478,20 +4990,22 @@ public java.lang.String getModel() {
      * 
* * string model = 13; + * * @param value The model to set. * @return This builder for chaining. */ - public Builder setModel( - java.lang.String value) { + public Builder setModel(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + model_ = value; onChanged(); return this; } /** + * + * *
      * Which model to select for the given request. Select the model
      * best suited to your domain to get best results. If a model is not
@@ -4528,15 +5042,18 @@ public Builder setModel(
      * 
* * string model = 13; + * * @return This builder for chaining. */ public Builder clearModel() { - + model_ = getDefaultInstance().getModel(); onChanged(); return this; } /** + * + * *
      * Which model to select for the given request. Select the model
      * best suited to your domain to get best results. If a model is not
@@ -4573,23 +5090,25 @@ public Builder clearModel() {
      * 
* * string model = 13; + * * @param value The bytes for model to set. * @return This builder for chaining. */ - public Builder setModelBytes( - com.google.protobuf.ByteString value) { + public Builder setModelBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + model_ = value; onChanged(); return this; } - private boolean useEnhanced_ ; + private boolean useEnhanced_; /** + * + * *
      * Set to true to use an enhanced model for speech recognition.
      * If `use_enhanced` is set to true and the `model` field is not set, then
@@ -4601,6 +5120,7 @@ public Builder setModelBytes(
      * 
* * bool use_enhanced = 14; + * * @return The useEnhanced. */ @java.lang.Override @@ -4608,6 +5128,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
@@ -4619,16 +5141,19 @@ public boolean getUseEnhanced() {
      * 
* * bool use_enhanced = 14; + * * @param value The useEnhanced to set. * @return This builder for chaining. */ public Builder setUseEnhanced(boolean value) { - + useEnhanced_ = value; onChanged(); return this; } /** + * + * *
      * Set to true to use an enhanced model for speech recognition.
      * If `use_enhanced` is set to true and the `model` field is not set, then
@@ -4640,17 +5165,18 @@ public Builder setUseEnhanced(boolean value) {
      * 
* * bool use_enhanced = 14; + * * @return This builder for chaining. */ public Builder clearUseEnhanced() { - + useEnhanced_ = false; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -4660,12 +5186,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(); } @@ -4674,16 +5200,16 @@ public static com.google.cloud.speech.v1.RecognitionConfig getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RecognitionConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new RecognitionConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RecognitionConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RecognitionConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -4698,6 +5224,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1.RecognitionConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionConfigOrBuilder.java b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionConfigOrBuilder.java similarity index 94% rename from owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionConfigOrBuilder.java rename to proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionConfigOrBuilder.java index 6025549fc..751985a74 100644 --- a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionConfigOrBuilder.java +++ b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionConfigOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1/cloud_speech.proto package com.google.cloud.speech.v1; -public interface RecognitionConfigOrBuilder extends +public interface RecognitionConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1.RecognitionConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Encoding of audio data sent in all `RecognitionAudio` messages.
    * This field is optional for `FLAC` and `WAV` audio files and required
@@ -15,10 +33,13 @@ public interface RecognitionConfigOrBuilder extends
    * 
* * .google.cloud.speech.v1.RecognitionConfig.AudioEncoding encoding = 1; + * * @return The enum numeric value on the wire for encoding. */ int getEncodingValue(); /** + * + * *
    * Encoding of audio data sent in all `RecognitionAudio` messages.
    * This field is optional for `FLAC` and `WAV` audio files and required
@@ -26,11 +47,14 @@ public interface RecognitionConfigOrBuilder extends
    * 
* * .google.cloud.speech.v1.RecognitionConfig.AudioEncoding encoding = 1; + * * @return The encoding. */ com.google.cloud.speech.v1.RecognitionConfig.AudioEncoding getEncoding(); /** + * + * *
    * Sample rate in Hertz of the audio data sent in all
    * `RecognitionAudio` messages. Valid values are: 8000-48000.
@@ -42,11 +66,14 @@ public interface RecognitionConfigOrBuilder extends
    * 
* * int32 sample_rate_hertz = 2; + * * @return The sampleRateHertz. */ int getSampleRateHertz(); /** + * + * *
    * The number of channels in the input audio data.
    * ONLY set this for MULTI-CHANNEL recognition.
@@ -60,11 +87,14 @@ public interface RecognitionConfigOrBuilder extends
    * 
* * int32 audio_channel_count = 7; + * * @return The audioChannelCount. */ int getAudioChannelCount(); /** + * + * *
    * This needs to be set to `true` explicitly and `audio_channel_count` > 1
    * to get each channel recognized separately. The recognition result will
@@ -75,11 +105,14 @@ public interface RecognitionConfigOrBuilder extends
    * 
* * bool enable_separate_recognition_per_channel = 12; + * * @return The enableSeparateRecognitionPerChannel. */ boolean getEnableSeparateRecognitionPerChannel(); /** + * + * *
    * Required. The language of the supplied audio as a
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.
@@ -90,10 +123,13 @@ public interface RecognitionConfigOrBuilder extends
    * 
* * string language_code = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The languageCode. */ java.lang.String getLanguageCode(); /** + * + * *
    * Required. The language of the supplied audio as a
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.
@@ -104,12 +140,14 @@ public interface RecognitionConfigOrBuilder extends
    * 
* * string language_code = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for languageCode. */ - com.google.protobuf.ByteString - getLanguageCodeBytes(); + com.google.protobuf.ByteString getLanguageCodeBytes(); /** + * + * *
    * A list of up to 3 additional
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags,
@@ -126,11 +164,13 @@ public interface RecognitionConfigOrBuilder extends
    * 
* * repeated string alternative_language_codes = 18; + * * @return A list containing the alternativeLanguageCodes. */ - java.util.List - getAlternativeLanguageCodesList(); + java.util.List getAlternativeLanguageCodesList(); /** + * + * *
    * A list of up to 3 additional
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags,
@@ -147,10 +187,13 @@ public interface RecognitionConfigOrBuilder extends
    * 
* * repeated string alternative_language_codes = 18; + * * @return The count of alternativeLanguageCodes. */ int getAlternativeLanguageCodesCount(); /** + * + * *
    * A list of up to 3 additional
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags,
@@ -167,11 +210,14 @@ public interface RecognitionConfigOrBuilder extends
    * 
* * repeated string alternative_language_codes = 18; + * * @param index The index of the element to return. * @return The alternativeLanguageCodes at the given index. */ java.lang.String getAlternativeLanguageCodes(int index); /** + * + * *
    * A list of up to 3 additional
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags,
@@ -188,13 +234,15 @@ public interface RecognitionConfigOrBuilder extends
    * 
* * repeated string alternative_language_codes = 18; + * * @param index The index of the value to return. * @return The bytes of the alternativeLanguageCodes at the given index. */ - com.google.protobuf.ByteString - getAlternativeLanguageCodesBytes(int index); + com.google.protobuf.ByteString getAlternativeLanguageCodesBytes(int index); /** + * + * *
    * Maximum number of recognition hypotheses to be returned.
    * Specifically, the maximum number of `SpeechRecognitionAlternative` messages
@@ -205,11 +253,14 @@ public interface RecognitionConfigOrBuilder extends
    * 
* * int32 max_alternatives = 4; + * * @return The maxAlternatives. */ int getMaxAlternatives(); /** + * + * *
    * If set to `true`, the server will attempt to filter out
    * profanities, replacing all but the initial character in each filtered word
@@ -218,11 +269,14 @@ public interface RecognitionConfigOrBuilder extends
    * 
* * bool profanity_filter = 5; + * * @return The profanityFilter. */ boolean getProfanityFilter(); /** + * + * *
    * Speech adaptation configuration improves the accuracy of speech
    * recognition. For more information, see the [speech
@@ -232,10 +286,13 @@ public interface RecognitionConfigOrBuilder extends
    * 
* * .google.cloud.speech.v1.SpeechAdaptation adaptation = 20; + * * @return Whether the adaptation field is set. */ boolean hasAdaptation(); /** + * + * *
    * Speech adaptation configuration improves the accuracy of speech
    * recognition. For more information, see the [speech
@@ -245,10 +302,13 @@ public interface RecognitionConfigOrBuilder extends
    * 
* * .google.cloud.speech.v1.SpeechAdaptation adaptation = 20; + * * @return The adaptation. */ com.google.cloud.speech.v1.SpeechAdaptation getAdaptation(); /** + * + * *
    * Speech adaptation configuration improves the accuracy of speech
    * recognition. For more information, see the [speech
@@ -262,6 +322,8 @@ public interface RecognitionConfigOrBuilder extends
   com.google.cloud.speech.v1.SpeechAdaptationOrBuilder getAdaptationOrBuilder();
 
   /**
+   *
+   *
    * 
    * Array of [SpeechContext][google.cloud.speech.v1.SpeechContext].
    * A means to provide context to assist the speech recognition. For more
@@ -272,9 +334,10 @@ public interface RecognitionConfigOrBuilder extends
    *
    * repeated .google.cloud.speech.v1.SpeechContext speech_contexts = 6;
    */
-  java.util.List 
-      getSpeechContextsList();
+  java.util.List getSpeechContextsList();
   /**
+   *
+   *
    * 
    * Array of [SpeechContext][google.cloud.speech.v1.SpeechContext].
    * A means to provide context to assist the speech recognition. For more
@@ -287,6 +350,8 @@ public interface RecognitionConfigOrBuilder extends
    */
   com.google.cloud.speech.v1.SpeechContext getSpeechContexts(int index);
   /**
+   *
+   *
    * 
    * Array of [SpeechContext][google.cloud.speech.v1.SpeechContext].
    * A means to provide context to assist the speech recognition. For more
@@ -299,6 +364,8 @@ public interface RecognitionConfigOrBuilder extends
    */
   int getSpeechContextsCount();
   /**
+   *
+   *
    * 
    * Array of [SpeechContext][google.cloud.speech.v1.SpeechContext].
    * A means to provide context to assist the speech recognition. For more
@@ -309,9 +376,11 @@ public interface RecognitionConfigOrBuilder extends
    *
    * repeated .google.cloud.speech.v1.SpeechContext speech_contexts = 6;
    */
-  java.util.List 
+  java.util.List
       getSpeechContextsOrBuilderList();
   /**
+   *
+   *
    * 
    * Array of [SpeechContext][google.cloud.speech.v1.SpeechContext].
    * A means to provide context to assist the speech recognition. For more
@@ -322,10 +391,11 @@ public interface RecognitionConfigOrBuilder extends
    *
    * repeated .google.cloud.speech.v1.SpeechContext speech_contexts = 6;
    */
-  com.google.cloud.speech.v1.SpeechContextOrBuilder getSpeechContextsOrBuilder(
-      int index);
+  com.google.cloud.speech.v1.SpeechContextOrBuilder getSpeechContextsOrBuilder(int index);
 
   /**
+   *
+   *
    * 
    * If `true`, the top result includes a list of words and
    * the start and end time offsets (timestamps) for those words. If
@@ -334,11 +404,14 @@ com.google.cloud.speech.v1.SpeechContextOrBuilder getSpeechContextsOrBuilder(
    * 
* * bool enable_word_time_offsets = 8; + * * @return The enableWordTimeOffsets. */ boolean getEnableWordTimeOffsets(); /** + * + * *
    * If `true`, the top result includes a list of words and the
    * confidence for those words. If `false`, no word-level confidence
@@ -346,11 +419,14 @@ com.google.cloud.speech.v1.SpeechContextOrBuilder getSpeechContextsOrBuilder(
    * 
* * bool enable_word_confidence = 15; + * * @return The enableWordConfidence. */ boolean getEnableWordConfidence(); /** + * + * *
    * If 'true', adds punctuation to recognition result hypotheses.
    * This feature is only available in select languages. Setting this for
@@ -359,11 +435,14 @@ com.google.cloud.speech.v1.SpeechContextOrBuilder getSpeechContextsOrBuilder(
    * 
* * bool enable_automatic_punctuation = 11; + * * @return The enableAutomaticPunctuation. */ boolean getEnableAutomaticPunctuation(); /** + * + * *
    * The spoken punctuation behavior for the call
    * If not set, uses default behavior based on model of choice
@@ -375,10 +454,13 @@ com.google.cloud.speech.v1.SpeechContextOrBuilder getSpeechContextsOrBuilder(
    * 
* * .google.protobuf.BoolValue enable_spoken_punctuation = 22; + * * @return Whether the enableSpokenPunctuation field is set. */ boolean hasEnableSpokenPunctuation(); /** + * + * *
    * The spoken punctuation behavior for the call
    * If not set, uses default behavior based on model of choice
@@ -390,10 +472,13 @@ com.google.cloud.speech.v1.SpeechContextOrBuilder getSpeechContextsOrBuilder(
    * 
* * .google.protobuf.BoolValue enable_spoken_punctuation = 22; + * * @return The enableSpokenPunctuation. */ com.google.protobuf.BoolValue getEnableSpokenPunctuation(); /** + * + * *
    * The spoken punctuation behavior for the call
    * If not set, uses default behavior based on model of choice
@@ -409,6 +494,8 @@ com.google.cloud.speech.v1.SpeechContextOrBuilder getSpeechContextsOrBuilder(
   com.google.protobuf.BoolValueOrBuilder getEnableSpokenPunctuationOrBuilder();
 
   /**
+   *
+   *
    * 
    * The spoken emoji behavior for the call
    * If not set, uses default behavior based on model of choice
@@ -418,10 +505,13 @@ com.google.cloud.speech.v1.SpeechContextOrBuilder getSpeechContextsOrBuilder(
    * 
* * .google.protobuf.BoolValue enable_spoken_emojis = 23; + * * @return Whether the enableSpokenEmojis field is set. */ boolean hasEnableSpokenEmojis(); /** + * + * *
    * The spoken emoji behavior for the call
    * If not set, uses default behavior based on model of choice
@@ -431,10 +521,13 @@ com.google.cloud.speech.v1.SpeechContextOrBuilder getSpeechContextsOrBuilder(
    * 
* * .google.protobuf.BoolValue enable_spoken_emojis = 23; + * * @return The enableSpokenEmojis. */ com.google.protobuf.BoolValue getEnableSpokenEmojis(); /** + * + * *
    * The spoken emoji behavior for the call
    * If not set, uses default behavior based on model of choice
@@ -448,6 +541,8 @@ com.google.cloud.speech.v1.SpeechContextOrBuilder getSpeechContextsOrBuilder(
   com.google.protobuf.BoolValueOrBuilder getEnableSpokenEmojisOrBuilder();
 
   /**
+   *
+   *
    * 
    * Config to enable speaker diarization and set additional
    * parameters to make diarization better suited for your application.
@@ -460,10 +555,13 @@ com.google.cloud.speech.v1.SpeechContextOrBuilder getSpeechContextsOrBuilder(
    * 
* * .google.cloud.speech.v1.SpeakerDiarizationConfig diarization_config = 19; + * * @return Whether the diarizationConfig field is set. */ boolean hasDiarizationConfig(); /** + * + * *
    * Config to enable speaker diarization and set additional
    * parameters to make diarization better suited for your application.
@@ -476,10 +574,13 @@ com.google.cloud.speech.v1.SpeechContextOrBuilder getSpeechContextsOrBuilder(
    * 
* * .google.cloud.speech.v1.SpeakerDiarizationConfig diarization_config = 19; + * * @return The diarizationConfig. */ com.google.cloud.speech.v1.SpeakerDiarizationConfig getDiarizationConfig(); /** + * + * *
    * Config to enable speaker diarization and set additional
    * parameters to make diarization better suited for your application.
@@ -496,24 +597,32 @@ com.google.cloud.speech.v1.SpeechContextOrBuilder getSpeechContextsOrBuilder(
   com.google.cloud.speech.v1.SpeakerDiarizationConfigOrBuilder getDiarizationConfigOrBuilder();
 
   /**
+   *
+   *
    * 
    * Metadata regarding this request.
    * 
* * .google.cloud.speech.v1.RecognitionMetadata metadata = 9; + * * @return Whether the metadata field is set. */ boolean hasMetadata(); /** + * + * *
    * Metadata regarding this request.
    * 
* * .google.cloud.speech.v1.RecognitionMetadata metadata = 9; + * * @return The metadata. */ com.google.cloud.speech.v1.RecognitionMetadata getMetadata(); /** + * + * *
    * Metadata regarding this request.
    * 
@@ -523,6 +632,8 @@ com.google.cloud.speech.v1.SpeechContextOrBuilder getSpeechContextsOrBuilder( com.google.cloud.speech.v1.RecognitionMetadataOrBuilder getMetadataOrBuilder(); /** + * + * *
    * Which model to select for the given request. Select the model
    * best suited to your domain to get best results. If a model is not
@@ -559,10 +670,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
@@ -599,12 +713,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
@@ -616,6 +732,7 @@ com.google.cloud.speech.v1.SpeechContextOrBuilder getSpeechContextsOrBuilder(
    * 
* * bool use_enhanced = 14; + * * @return The useEnhanced. */ boolean getUseEnhanced(); diff --git a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionMetadata.java b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionMetadata.java similarity index 72% rename from owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionMetadata.java rename to proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionMetadata.java index 2ae9f0508..32b2ee4dd 100644 --- a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionMetadata.java +++ b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionMetadata.java @@ -1,24 +1,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; /** + * + * *
  * Description of audio data to be recognized.
  * 
* * Protobuf type {@code google.cloud.speech.v1.RecognitionMetadata} */ -public final class RecognitionMetadata extends - com.google.protobuf.GeneratedMessageV3 implements +public final class RecognitionMetadata extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v1.RecognitionMetadata) RecognitionMetadataOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use RecognitionMetadata.newBuilder() to construct. private RecognitionMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private RecognitionMetadata() { interactionType_ = 0; microphoneDistance_ = 0; @@ -31,16 +49,15 @@ private RecognitionMetadata() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new RecognitionMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private RecognitionMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -59,86 +76,97 @@ private RecognitionMetadata( case 0: done = true; break; - case 8: { - int rawValue = input.readEnum(); - - interactionType_ = rawValue; - break; - } - case 24: { + case 8: + { + int rawValue = input.readEnum(); - industryNaicsCodeOfAudio_ = input.readUInt32(); - break; - } - case 32: { - int rawValue = input.readEnum(); + interactionType_ = rawValue; + break; + } + case 24: + { + industryNaicsCodeOfAudio_ = input.readUInt32(); + break; + } + case 32: + { + int rawValue = input.readEnum(); - microphoneDistance_ = rawValue; - break; - } - case 40: { - int rawValue = input.readEnum(); + microphoneDistance_ = rawValue; + break; + } + case 40: + { + int rawValue = input.readEnum(); - originalMediaType_ = rawValue; - break; - } - case 48: { - int rawValue = input.readEnum(); + originalMediaType_ = rawValue; + break; + } + case 48: + { + int rawValue = input.readEnum(); - recordingDeviceType_ = rawValue; - break; - } - case 58: { - java.lang.String s = input.readStringRequireUtf8(); + recordingDeviceType_ = rawValue; + break; + } + case 58: + { + java.lang.String s = input.readStringRequireUtf8(); - recordingDeviceName_ = s; - break; - } - case 66: { - java.lang.String s = input.readStringRequireUtf8(); + recordingDeviceName_ = s; + break; + } + case 66: + { + java.lang.String s = input.readStringRequireUtf8(); - originalMimeType_ = s; - break; - } - case 82: { - java.lang.String s = input.readStringRequireUtf8(); + originalMimeType_ = s; + break; + } + case 82: + { + java.lang.String s = input.readStringRequireUtf8(); - audioTopic_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + audioTopic_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_RecognitionMetadata_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1.SpeechProto + .internal_static_google_cloud_speech_v1_RecognitionMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_RecognitionMetadata_fieldAccessorTable + return com.google.cloud.speech.v1.SpeechProto + .internal_static_google_cloud_speech_v1_RecognitionMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1.RecognitionMetadata.class, com.google.cloud.speech.v1.RecognitionMetadata.Builder.class); + com.google.cloud.speech.v1.RecognitionMetadata.class, + com.google.cloud.speech.v1.RecognitionMetadata.Builder.class); } /** + * + * *
    * Use case categories that the audio recognition request can be described
    * by.
@@ -146,9 +174,10 @@ private RecognitionMetadata(
    *
    * Protobuf enum {@code google.cloud.speech.v1.RecognitionMetadata.InteractionType}
    */
-  public enum InteractionType
-      implements com.google.protobuf.ProtocolMessageEnum {
+  public enum InteractionType implements com.google.protobuf.ProtocolMessageEnum {
     /**
+     *
+     *
      * 
      * Use case is either unknown or is something other than one of the other
      * values below.
@@ -158,6 +187,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
@@ -169,6 +200,8 @@ public enum InteractionType
      */
     DISCUSSION(1),
     /**
+     *
+     *
      * 
      * One or more persons lecturing or presenting to others, mostly
      * uninterrupted.
@@ -178,6 +211,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.
@@ -187,6 +222,8 @@ public enum InteractionType
      */
     PHONE_CALL(3),
     /**
+     *
+     *
      * 
      * A recorded message intended for another person to listen to.
      * 
@@ -195,6 +232,8 @@ public enum InteractionType */ VOICEMAIL(4), /** + * + * *
      * Professionally produced audio (eg. TV Show, Podcast).
      * 
@@ -203,6 +242,8 @@ public enum InteractionType */ PROFESSIONALLY_PRODUCED(5), /** + * + * *
      * Transcribe spoken questions and queries into text.
      * 
@@ -211,6 +252,8 @@ public enum InteractionType */ VOICE_SEARCH(6), /** + * + * *
      * Transcribe voice commands, such as for controlling a device.
      * 
@@ -219,6 +262,8 @@ public enum InteractionType */ VOICE_COMMAND(7), /** + * + * *
      * Transcribe speech to text to create a written document, such as a
      * text-message, email or report.
@@ -231,6 +276,8 @@ public enum InteractionType
     ;
 
     /**
+     *
+     *
      * 
      * Use case is either unknown or is something other than one of the other
      * values below.
@@ -240,6 +287,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
@@ -251,6 +300,8 @@ public enum InteractionType
      */
     public static final int DISCUSSION_VALUE = 1;
     /**
+     *
+     *
      * 
      * One or more persons lecturing or presenting to others, mostly
      * uninterrupted.
@@ -260,6 +311,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.
@@ -269,6 +322,8 @@ public enum InteractionType
      */
     public static final int PHONE_CALL_VALUE = 3;
     /**
+     *
+     *
      * 
      * A recorded message intended for another person to listen to.
      * 
@@ -277,6 +332,8 @@ public enum InteractionType */ public static final int VOICEMAIL_VALUE = 4; /** + * + * *
      * Professionally produced audio (eg. TV Show, Podcast).
      * 
@@ -285,6 +342,8 @@ public enum InteractionType */ public static final int PROFESSIONALLY_PRODUCED_VALUE = 5; /** + * + * *
      * Transcribe spoken questions and queries into text.
      * 
@@ -293,6 +352,8 @@ public enum InteractionType */ public static final int VOICE_SEARCH_VALUE = 6; /** + * + * *
      * Transcribe voice commands, such as for controlling a device.
      * 
@@ -301,6 +362,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.
@@ -310,7 +373,6 @@ public enum InteractionType
      */
     public static final int DICTATION_VALUE = 8;
 
-
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -335,45 +397,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);
     }
 
@@ -382,8 +453,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;
@@ -401,15 +471,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.
      * 
@@ -418,6 +491,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
@@ -428,6 +503,8 @@ public enum MicrophoneDistance
      */
     NEARFIELD(1),
     /**
+     *
+     *
      * 
      * The speaker if within 3 meters of the microphone.
      * 
@@ -436,6 +513,8 @@ public enum MicrophoneDistance */ MIDFIELD(2), /** + * + * *
      * The speaker is more than 3 meters away from the microphone.
      * 
@@ -447,6 +526,8 @@ public enum MicrophoneDistance ; /** + * + * *
      * Audio type is not known.
      * 
@@ -455,6 +536,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
@@ -465,6 +548,8 @@ public enum MicrophoneDistance
      */
     public static final int NEARFIELD_VALUE = 1;
     /**
+     *
+     *
      * 
      * The speaker if within 3 meters of the microphone.
      * 
@@ -473,6 +558,8 @@ public enum MicrophoneDistance */ public static final int MIDFIELD_VALUE = 2; /** + * + * *
      * The speaker is more than 3 meters away from the microphone.
      * 
@@ -481,7 +568,6 @@ public enum MicrophoneDistance */ public static final int FARFIELD_VALUE = 3; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -506,11 +592,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; } } @@ -518,28 +609,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); } @@ -548,8 +639,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; @@ -567,15 +657,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.
      * 
@@ -584,6 +677,8 @@ public enum OriginalMediaType */ ORIGINAL_MEDIA_TYPE_UNSPECIFIED(0), /** + * + * *
      * The speech data is an audio recording.
      * 
@@ -592,6 +687,8 @@ public enum OriginalMediaType */ AUDIO(1), /** + * + * *
      * The speech data originally recorded on a video.
      * 
@@ -603,6 +700,8 @@ public enum OriginalMediaType ; /** + * + * *
      * Unknown original media type.
      * 
@@ -611,6 +710,8 @@ public enum OriginalMediaType */ public static final int ORIGINAL_MEDIA_TYPE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * The speech data is an audio recording.
      * 
@@ -619,6 +720,8 @@ public enum OriginalMediaType */ public static final int AUDIO_VALUE = 1; /** + * + * *
      * The speech data originally recorded on a video.
      * 
@@ -627,7 +730,6 @@ public enum OriginalMediaType */ public static final int VIDEO_VALUE = 2; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -652,10 +754,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; } } @@ -663,28 +769,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); } @@ -693,8 +799,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; @@ -712,15 +817,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.
      * 
@@ -729,6 +837,8 @@ public enum RecordingDeviceType */ RECORDING_DEVICE_TYPE_UNSPECIFIED(0), /** + * + * *
      * Speech was recorded on a smartphone.
      * 
@@ -737,6 +847,8 @@ public enum RecordingDeviceType */ SMARTPHONE(1), /** + * + * *
      * Speech was recorded using a personal computer or tablet.
      * 
@@ -745,6 +857,8 @@ public enum RecordingDeviceType */ PC(2), /** + * + * *
      * Speech was recorded over a phone line.
      * 
@@ -753,6 +867,8 @@ public enum RecordingDeviceType */ PHONE_LINE(3), /** + * + * *
      * Speech was recorded in a vehicle.
      * 
@@ -761,6 +877,8 @@ public enum RecordingDeviceType */ VEHICLE(4), /** + * + * *
      * Speech was recorded outdoors.
      * 
@@ -769,6 +887,8 @@ public enum RecordingDeviceType */ OTHER_OUTDOOR_DEVICE(5), /** + * + * *
      * Speech was recorded indoors.
      * 
@@ -780,6 +900,8 @@ public enum RecordingDeviceType ; /** + * + * *
      * The recording device is unknown.
      * 
@@ -788,6 +910,8 @@ public enum RecordingDeviceType */ public static final int RECORDING_DEVICE_TYPE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Speech was recorded on a smartphone.
      * 
@@ -796,6 +920,8 @@ public enum RecordingDeviceType */ public static final int SMARTPHONE_VALUE = 1; /** + * + * *
      * Speech was recorded using a personal computer or tablet.
      * 
@@ -804,6 +930,8 @@ public enum RecordingDeviceType */ public static final int PC_VALUE = 2; /** + * + * *
      * Speech was recorded over a phone line.
      * 
@@ -812,6 +940,8 @@ public enum RecordingDeviceType */ public static final int PHONE_LINE_VALUE = 3; /** + * + * *
      * Speech was recorded in a vehicle.
      * 
@@ -820,6 +950,8 @@ public enum RecordingDeviceType */ public static final int VEHICLE_VALUE = 4; /** + * + * *
      * Speech was recorded outdoors.
      * 
@@ -828,6 +960,8 @@ public enum RecordingDeviceType */ public static final int OTHER_OUTDOOR_DEVICE_VALUE = 5; /** + * + * *
      * Speech was recorded indoors.
      * 
@@ -836,7 +970,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( @@ -861,14 +994,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; } } @@ -876,28 +1017,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); } @@ -906,8 +1047,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; @@ -927,33 +1067,46 @@ private RecordingDeviceType(int value) { public static final int INTERACTION_TYPE_FIELD_NUMBER = 1; private int interactionType_; /** + * + * *
    * The use case most closely describing the audio content to be recognized.
    * 
* * .google.cloud.speech.v1.RecognitionMetadata.InteractionType interaction_type = 1; + * * @return The enum numeric value on the wire for interactionType. */ - @java.lang.Override public int getInteractionTypeValue() { + @java.lang.Override + public int getInteractionTypeValue() { return interactionType_; } /** + * + * *
    * The use case most closely describing the audio content to be recognized.
    * 
* * .google.cloud.speech.v1.RecognitionMetadata.InteractionType interaction_type = 1; + * * @return The interactionType. */ - @java.lang.Override public com.google.cloud.speech.v1.RecognitionMetadata.InteractionType getInteractionType() { + @java.lang.Override + public com.google.cloud.speech.v1.RecognitionMetadata.InteractionType getInteractionType() { @SuppressWarnings("deprecation") - com.google.cloud.speech.v1.RecognitionMetadata.InteractionType result = com.google.cloud.speech.v1.RecognitionMetadata.InteractionType.valueOf(interactionType_); - return result == null ? com.google.cloud.speech.v1.RecognitionMetadata.InteractionType.UNRECOGNIZED : result; + com.google.cloud.speech.v1.RecognitionMetadata.InteractionType result = + com.google.cloud.speech.v1.RecognitionMetadata.InteractionType.valueOf(interactionType_); + return result == null + ? com.google.cloud.speech.v1.RecognitionMetadata.InteractionType.UNRECOGNIZED + : result; } public static final int INDUSTRY_NAICS_CODE_OF_AUDIO_FIELD_NUMBER = 3; private int industryNaicsCodeOfAudio_; /** + * + * *
    * The industry vertical to which this speech recognition request most
    * closely applies. This is most indicative of the topics contained
@@ -962,6 +1115,7 @@ private RecordingDeviceType(int value) {
    * 
* * uint32 industry_naics_code_of_audio = 3; + * * @return The industryNaicsCodeOfAudio. */ @java.lang.Override @@ -972,87 +1126,134 @@ public int getIndustryNaicsCodeOfAudio() { public static final int MICROPHONE_DISTANCE_FIELD_NUMBER = 4; private int microphoneDistance_; /** + * + * *
    * The audio type that most closely describes the audio being recognized.
    * 
* - * .google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance microphone_distance = 4; + * .google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance microphone_distance = 4; + * + * * @return The enum numeric value on the wire for microphoneDistance. */ - @java.lang.Override public int getMicrophoneDistanceValue() { + @java.lang.Override + public int getMicrophoneDistanceValue() { return microphoneDistance_; } /** + * + * *
    * The audio type that most closely describes the audio being recognized.
    * 
* - * .google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance microphone_distance = 4; + * .google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance microphone_distance = 4; + * + * * @return The microphoneDistance. */ - @java.lang.Override public com.google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance getMicrophoneDistance() { + @java.lang.Override + public com.google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance getMicrophoneDistance() { @SuppressWarnings("deprecation") - com.google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance result = com.google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance.valueOf(microphoneDistance_); - return result == null ? com.google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance.UNRECOGNIZED : result; + com.google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance result = + com.google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance.valueOf( + microphoneDistance_); + return result == null + ? com.google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance.UNRECOGNIZED + : result; } public static final int ORIGINAL_MEDIA_TYPE_FIELD_NUMBER = 5; private int originalMediaType_; /** + * + * *
    * The original media the speech was recorded on.
    * 
* - * .google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType original_media_type = 5; + * .google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType original_media_type = 5; + * + * * @return The enum numeric value on the wire for originalMediaType. */ - @java.lang.Override public int getOriginalMediaTypeValue() { + @java.lang.Override + public int getOriginalMediaTypeValue() { return originalMediaType_; } /** + * + * *
    * The original media the speech was recorded on.
    * 
* - * .google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType original_media_type = 5; + * .google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType original_media_type = 5; + * + * * @return The originalMediaType. */ - @java.lang.Override public com.google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType getOriginalMediaType() { + @java.lang.Override + public com.google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType getOriginalMediaType() { @SuppressWarnings("deprecation") - com.google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType result = com.google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType.valueOf(originalMediaType_); - return result == null ? com.google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType.UNRECOGNIZED : result; + com.google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType result = + com.google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType.valueOf( + originalMediaType_); + return result == null + ? com.google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType.UNRECOGNIZED + : result; } public static final int RECORDING_DEVICE_TYPE_FIELD_NUMBER = 6; private int recordingDeviceType_; /** + * + * *
    * The type of device the speech was recorded with.
    * 
* - * .google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType recording_device_type = 6; + * + * .google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType recording_device_type = 6; + * + * * @return The enum numeric value on the wire for recordingDeviceType. */ - @java.lang.Override public int getRecordingDeviceTypeValue() { + @java.lang.Override + public int getRecordingDeviceTypeValue() { return recordingDeviceType_; } /** + * + * *
    * The type of device the speech was recorded with.
    * 
* - * .google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType recording_device_type = 6; + * + * .google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType recording_device_type = 6; + * + * * @return The recordingDeviceType. */ - @java.lang.Override public com.google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType getRecordingDeviceType() { + @java.lang.Override + public com.google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType + getRecordingDeviceType() { @SuppressWarnings("deprecation") - com.google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType result = com.google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType.valueOf(recordingDeviceType_); - return result == null ? com.google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType.UNRECOGNIZED : result; + com.google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType result = + com.google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType.valueOf( + recordingDeviceType_); + return result == null + ? com.google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType.UNRECOGNIZED + : result; } public static final int RECORDING_DEVICE_NAME_FIELD_NUMBER = 7; private volatile java.lang.Object recordingDeviceName_; /** + * + * *
    * The device used to make the recording.  Examples 'Nexus 5X' or
    * 'Polycom SoundStation IP 6000' or 'POTS' or 'VoIP' or
@@ -1060,6 +1261,7 @@ public int getIndustryNaicsCodeOfAudio() {
    * 
* * string recording_device_name = 7; + * * @return The recordingDeviceName. */ @java.lang.Override @@ -1068,14 +1270,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
@@ -1083,16 +1286,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 { @@ -1103,6 +1305,8 @@ public java.lang.String getRecordingDeviceName() { public static final int ORIGINAL_MIME_TYPE_FIELD_NUMBER = 8; private volatile java.lang.Object originalMimeType_; /** + * + * *
    * Mime type of the original audio file.  For example `audio/m4a`,
    * `audio/x-alaw-basic`, `audio/mp3`, `audio/3gpp`.
@@ -1111,6 +1315,7 @@ public java.lang.String getRecordingDeviceName() {
    * 
* * string original_mime_type = 8; + * * @return The originalMimeType. */ @java.lang.Override @@ -1119,14 +1324,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`.
@@ -1135,16 +1341,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 { @@ -1155,12 +1360,15 @@ public java.lang.String getOriginalMimeType() { public static final int AUDIO_TOPIC_FIELD_NUMBER = 10; private volatile java.lang.Object audioTopic_; /** + * + * *
    * Description of the content. Eg. "Recordings of federal supreme court
    * hearings from 2012".
    * 
* * string audio_topic = 10; + * * @return The audioTopic. */ @java.lang.Override @@ -1169,30 +1377,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 { @@ -1201,6 +1409,7 @@ public java.lang.String getAudioTopic() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1212,21 +1421,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_)) { @@ -1247,25 +1467,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_); @@ -1284,25 +1511,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1.RecognitionMetadata)) { return super.equals(obj); } - com.google.cloud.speech.v1.RecognitionMetadata other = (com.google.cloud.speech.v1.RecognitionMetadata) obj; + com.google.cloud.speech.v1.RecognitionMetadata other = + (com.google.cloud.speech.v1.RecognitionMetadata) obj; if (interactionType_ != other.interactionType_) return false; - if (getIndustryNaicsCodeOfAudio() - != other.getIndustryNaicsCodeOfAudio()) return false; + if (getIndustryNaicsCodeOfAudio() != other.getIndustryNaicsCodeOfAudio()) return false; if (microphoneDistance_ != other.microphoneDistance_) return false; if (originalMediaType_ != other.originalMediaType_) return false; if (recordingDeviceType_ != other.recordingDeviceType_) return false; - if (!getRecordingDeviceName() - .equals(other.getRecordingDeviceName())) return false; - if (!getOriginalMimeType() - .equals(other.getOriginalMimeType())) return false; - if (!getAudioTopic() - .equals(other.getAudioTopic())) return false; + if (!getRecordingDeviceName().equals(other.getRecordingDeviceName())) return false; + if (!getOriginalMimeType().equals(other.getOriginalMimeType())) return false; + if (!getAudioTopic().equals(other.getAudioTopic())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1335,118 +1559,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.speech.v1.RecognitionMetadata parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.speech.v1.RecognitionMetadata parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1.RecognitionMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1.RecognitionMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1.RecognitionMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1.RecognitionMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1.RecognitionMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1.RecognitionMetadata parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1.RecognitionMetadata parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1.RecognitionMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1.RecognitionMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1.RecognitionMetadata parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.speech.v1.RecognitionMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1.RecognitionMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.speech.v1.RecognitionMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Description of audio data to be recognized.
    * 
* * Protobuf type {@code google.cloud.speech.v1.RecognitionMetadata} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1.RecognitionMetadata) com.google.cloud.speech.v1.RecognitionMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_RecognitionMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1.SpeechProto + .internal_static_google_cloud_speech_v1_RecognitionMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_RecognitionMetadata_fieldAccessorTable + return com.google.cloud.speech.v1.SpeechProto + .internal_static_google_cloud_speech_v1_RecognitionMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1.RecognitionMetadata.class, com.google.cloud.speech.v1.RecognitionMetadata.Builder.class); + com.google.cloud.speech.v1.RecognitionMetadata.class, + com.google.cloud.speech.v1.RecognitionMetadata.Builder.class); } // Construct using com.google.cloud.speech.v1.RecognitionMetadata.newBuilder() @@ -1454,16 +1687,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -1487,9 +1719,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 @@ -1508,7 +1740,8 @@ public com.google.cloud.speech.v1.RecognitionMetadata build() { @java.lang.Override public com.google.cloud.speech.v1.RecognitionMetadata buildPartial() { - com.google.cloud.speech.v1.RecognitionMetadata result = new com.google.cloud.speech.v1.RecognitionMetadata(this); + com.google.cloud.speech.v1.RecognitionMetadata result = + new com.google.cloud.speech.v1.RecognitionMetadata(this); result.interactionType_ = interactionType_; result.industryNaicsCodeOfAudio_ = industryNaicsCodeOfAudio_; result.microphoneDistance_ = microphoneDistance_; @@ -1525,38 +1758,39 @@ public com.google.cloud.speech.v1.RecognitionMetadata buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.speech.v1.RecognitionMetadata) { - return mergeFrom((com.google.cloud.speech.v1.RecognitionMetadata)other); + return mergeFrom((com.google.cloud.speech.v1.RecognitionMetadata) other); } else { super.mergeFrom(other); return this; @@ -1623,80 +1857,107 @@ public Builder mergeFrom( private int interactionType_ = 0; /** + * + * *
      * The use case most closely describing the audio content to be recognized.
      * 
* - * .google.cloud.speech.v1.RecognitionMetadata.InteractionType interaction_type = 1; + * .google.cloud.speech.v1.RecognitionMetadata.InteractionType interaction_type = 1; + * + * * @return The enum numeric value on the wire for interactionType. */ - @java.lang.Override public int getInteractionTypeValue() { + @java.lang.Override + public int getInteractionTypeValue() { return interactionType_; } /** + * + * *
      * The use case most closely describing the audio content to be recognized.
      * 
* - * .google.cloud.speech.v1.RecognitionMetadata.InteractionType interaction_type = 1; + * .google.cloud.speech.v1.RecognitionMetadata.InteractionType interaction_type = 1; + * + * * @param value The enum numeric value on the wire for interactionType to set. * @return This builder for chaining. */ public Builder setInteractionTypeValue(int value) { - + interactionType_ = value; onChanged(); return this; } /** + * + * *
      * The use case most closely describing the audio content to be recognized.
      * 
* - * .google.cloud.speech.v1.RecognitionMetadata.InteractionType interaction_type = 1; + * .google.cloud.speech.v1.RecognitionMetadata.InteractionType interaction_type = 1; + * + * * @return The interactionType. */ @java.lang.Override public com.google.cloud.speech.v1.RecognitionMetadata.InteractionType getInteractionType() { @SuppressWarnings("deprecation") - com.google.cloud.speech.v1.RecognitionMetadata.InteractionType result = com.google.cloud.speech.v1.RecognitionMetadata.InteractionType.valueOf(interactionType_); - return result == null ? com.google.cloud.speech.v1.RecognitionMetadata.InteractionType.UNRECOGNIZED : result; + com.google.cloud.speech.v1.RecognitionMetadata.InteractionType result = + com.google.cloud.speech.v1.RecognitionMetadata.InteractionType.valueOf(interactionType_); + return result == null + ? com.google.cloud.speech.v1.RecognitionMetadata.InteractionType.UNRECOGNIZED + : result; } /** + * + * *
      * The use case most closely describing the audio content to be recognized.
      * 
* - * .google.cloud.speech.v1.RecognitionMetadata.InteractionType interaction_type = 1; + * .google.cloud.speech.v1.RecognitionMetadata.InteractionType interaction_type = 1; + * + * * @param value The interactionType to set. * @return This builder for chaining. */ - public Builder setInteractionType(com.google.cloud.speech.v1.RecognitionMetadata.InteractionType value) { + public Builder setInteractionType( + com.google.cloud.speech.v1.RecognitionMetadata.InteractionType value) { if (value == null) { throw new NullPointerException(); } - + interactionType_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * The use case most closely describing the audio content to be recognized.
      * 
* - * .google.cloud.speech.v1.RecognitionMetadata.InteractionType interaction_type = 1; + * .google.cloud.speech.v1.RecognitionMetadata.InteractionType interaction_type = 1; + * + * * @return This builder for chaining. */ public Builder clearInteractionType() { - + interactionType_ = 0; onChanged(); return this; } - private int industryNaicsCodeOfAudio_ ; + private int industryNaicsCodeOfAudio_; /** + * + * *
      * The industry vertical to which this speech recognition request most
      * closely applies. This is most indicative of the topics contained
@@ -1705,6 +1966,7 @@ public Builder clearInteractionType() {
      * 
* * uint32 industry_naics_code_of_audio = 3; + * * @return The industryNaicsCodeOfAudio. */ @java.lang.Override @@ -1712,6 +1974,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
@@ -1720,16 +1984,19 @@ public int getIndustryNaicsCodeOfAudio() {
      * 
* * uint32 industry_naics_code_of_audio = 3; + * * @param value The industryNaicsCodeOfAudio to set. * @return This builder for chaining. */ public Builder setIndustryNaicsCodeOfAudio(int value) { - + industryNaicsCodeOfAudio_ = value; onChanged(); return this; } /** + * + * *
      * The industry vertical to which this speech recognition request most
      * closely applies. This is most indicative of the topics contained
@@ -1738,10 +2005,11 @@ public Builder setIndustryNaicsCodeOfAudio(int value) {
      * 
* * uint32 industry_naics_code_of_audio = 3; + * * @return This builder for chaining. */ public Builder clearIndustryNaicsCodeOfAudio() { - + industryNaicsCodeOfAudio_ = 0; onChanged(); return this; @@ -1749,73 +2017,100 @@ public Builder clearIndustryNaicsCodeOfAudio() { private int microphoneDistance_ = 0; /** + * + * *
      * The audio type that most closely describes the audio being recognized.
      * 
* - * .google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance microphone_distance = 4; + * .google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance microphone_distance = 4; + * + * * @return The enum numeric value on the wire for microphoneDistance. */ - @java.lang.Override public int getMicrophoneDistanceValue() { + @java.lang.Override + public int getMicrophoneDistanceValue() { return microphoneDistance_; } /** + * + * *
      * The audio type that most closely describes the audio being recognized.
      * 
* - * .google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance microphone_distance = 4; + * .google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance microphone_distance = 4; + * + * * @param value The enum numeric value on the wire for microphoneDistance to set. * @return This builder for chaining. */ public Builder setMicrophoneDistanceValue(int value) { - + microphoneDistance_ = value; onChanged(); return this; } /** + * + * *
      * The audio type that most closely describes the audio being recognized.
      * 
* - * .google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance microphone_distance = 4; + * .google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance microphone_distance = 4; + * + * * @return The microphoneDistance. */ @java.lang.Override - public com.google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance getMicrophoneDistance() { + public com.google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance + getMicrophoneDistance() { @SuppressWarnings("deprecation") - com.google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance result = com.google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance.valueOf(microphoneDistance_); - return result == null ? com.google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance.UNRECOGNIZED : result; + com.google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance result = + com.google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance.valueOf( + microphoneDistance_); + return result == null + ? com.google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance.UNRECOGNIZED + : result; } /** + * + * *
      * The audio type that most closely describes the audio being recognized.
      * 
* - * .google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance microphone_distance = 4; + * .google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance microphone_distance = 4; + * + * * @param value The microphoneDistance to set. * @return This builder for chaining. */ - public Builder setMicrophoneDistance(com.google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance value) { + public Builder setMicrophoneDistance( + com.google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance value) { if (value == null) { throw new NullPointerException(); } - + microphoneDistance_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * The audio type that most closely describes the audio being recognized.
      * 
* - * .google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance microphone_distance = 4; + * .google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance microphone_distance = 4; + * + * * @return This builder for chaining. */ public Builder clearMicrophoneDistance() { - + microphoneDistance_ = 0; onChanged(); return this; @@ -1823,73 +2118,99 @@ public Builder clearMicrophoneDistance() { private int originalMediaType_ = 0; /** + * + * *
      * The original media the speech was recorded on.
      * 
* - * .google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType original_media_type = 5; + * .google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType original_media_type = 5; + * + * * @return The enum numeric value on the wire for originalMediaType. */ - @java.lang.Override public int getOriginalMediaTypeValue() { + @java.lang.Override + public int getOriginalMediaTypeValue() { return originalMediaType_; } /** + * + * *
      * The original media the speech was recorded on.
      * 
* - * .google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType original_media_type = 5; + * .google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType original_media_type = 5; + * + * * @param value The enum numeric value on the wire for originalMediaType to set. * @return This builder for chaining. */ public Builder setOriginalMediaTypeValue(int value) { - + originalMediaType_ = value; onChanged(); return this; } /** + * + * *
      * The original media the speech was recorded on.
      * 
* - * .google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType original_media_type = 5; + * .google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType original_media_type = 5; + * + * * @return The originalMediaType. */ @java.lang.Override public com.google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType getOriginalMediaType() { @SuppressWarnings("deprecation") - com.google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType result = com.google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType.valueOf(originalMediaType_); - return result == null ? com.google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType.UNRECOGNIZED : result; + com.google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType result = + com.google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType.valueOf( + originalMediaType_); + return result == null + ? com.google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType.UNRECOGNIZED + : result; } /** + * + * *
      * The original media the speech was recorded on.
      * 
* - * .google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType original_media_type = 5; + * .google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType original_media_type = 5; + * + * * @param value The originalMediaType to set. * @return This builder for chaining. */ - public Builder setOriginalMediaType(com.google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType value) { + public Builder setOriginalMediaType( + com.google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType value) { if (value == null) { throw new NullPointerException(); } - + originalMediaType_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * The original media the speech was recorded on.
      * 
* - * .google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType original_media_type = 5; + * .google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType original_media_type = 5; + * + * * @return This builder for chaining. */ public Builder clearOriginalMediaType() { - + originalMediaType_ = 0; onChanged(); return this; @@ -1897,73 +2218,105 @@ public Builder clearOriginalMediaType() { private int recordingDeviceType_ = 0; /** + * + * *
      * The type of device the speech was recorded with.
      * 
* - * .google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType recording_device_type = 6; + * + * .google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType recording_device_type = 6; + * + * * @return The enum numeric value on the wire for recordingDeviceType. */ - @java.lang.Override public int getRecordingDeviceTypeValue() { + @java.lang.Override + public int getRecordingDeviceTypeValue() { return recordingDeviceType_; } /** + * + * *
      * The type of device the speech was recorded with.
      * 
* - * .google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType recording_device_type = 6; + * + * .google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType recording_device_type = 6; + * + * * @param value The enum numeric value on the wire for recordingDeviceType to set. * @return This builder for chaining. */ public Builder setRecordingDeviceTypeValue(int value) { - + recordingDeviceType_ = value; onChanged(); return this; } /** + * + * *
      * The type of device the speech was recorded with.
      * 
* - * .google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType recording_device_type = 6; + * + * .google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType recording_device_type = 6; + * + * * @return The recordingDeviceType. */ @java.lang.Override - public com.google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType getRecordingDeviceType() { + public com.google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType + getRecordingDeviceType() { @SuppressWarnings("deprecation") - com.google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType result = com.google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType.valueOf(recordingDeviceType_); - return result == null ? com.google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType.UNRECOGNIZED : result; + com.google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType result = + com.google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType.valueOf( + recordingDeviceType_); + return result == null + ? com.google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType.UNRECOGNIZED + : result; } /** + * + * *
      * The type of device the speech was recorded with.
      * 
* - * .google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType recording_device_type = 6; + * + * .google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType recording_device_type = 6; + * + * * @param value The recordingDeviceType to set. * @return This builder for chaining. */ - public Builder setRecordingDeviceType(com.google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType value) { + public Builder setRecordingDeviceType( + com.google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType value) { if (value == null) { throw new NullPointerException(); } - + recordingDeviceType_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * The type of device the speech was recorded with.
      * 
* - * .google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType recording_device_type = 6; + * + * .google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType recording_device_type = 6; + * + * * @return This builder for chaining. */ public Builder clearRecordingDeviceType() { - + recordingDeviceType_ = 0; onChanged(); return this; @@ -1971,6 +2324,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
@@ -1978,13 +2333,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; @@ -1993,6 +2348,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
@@ -2000,15 +2357,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 { @@ -2016,6 +2372,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
@@ -2023,20 +2381,22 @@ public java.lang.String getRecordingDeviceName() {
      * 
* * string recording_device_name = 7; + * * @param value The recordingDeviceName to set. * @return This builder for chaining. */ - public Builder setRecordingDeviceName( - java.lang.String value) { + public Builder setRecordingDeviceName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + recordingDeviceName_ = value; onChanged(); return this; } /** + * + * *
      * The device used to make the recording.  Examples 'Nexus 5X' or
      * 'Polycom SoundStation IP 6000' or 'POTS' or 'VoIP' or
@@ -2044,15 +2404,18 @@ public Builder setRecordingDeviceName(
      * 
* * string recording_device_name = 7; + * * @return This builder for chaining. */ public Builder clearRecordingDeviceName() { - + recordingDeviceName_ = getDefaultInstance().getRecordingDeviceName(); onChanged(); return this; } /** + * + * *
      * The device used to make the recording.  Examples 'Nexus 5X' or
      * 'Polycom SoundStation IP 6000' or 'POTS' or 'VoIP' or
@@ -2060,16 +2423,16 @@ public Builder clearRecordingDeviceName() {
      * 
* * string recording_device_name = 7; + * * @param value The bytes for recordingDeviceName to set. * @return This builder for chaining. */ - public Builder setRecordingDeviceNameBytes( - com.google.protobuf.ByteString value) { + public Builder setRecordingDeviceNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + recordingDeviceName_ = value; onChanged(); return this; @@ -2077,6 +2440,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`.
@@ -2085,13 +2450,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; @@ -2100,6 +2465,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`.
@@ -2108,15 +2475,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 { @@ -2124,6 +2490,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`.
@@ -2132,20 +2500,22 @@ public java.lang.String getOriginalMimeType() {
      * 
* * string original_mime_type = 8; + * * @param value The originalMimeType to set. * @return This builder for chaining. */ - public Builder setOriginalMimeType( - java.lang.String value) { + public Builder setOriginalMimeType(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + originalMimeType_ = value; onChanged(); return this; } /** + * + * *
      * Mime type of the original audio file.  For example `audio/m4a`,
      * `audio/x-alaw-basic`, `audio/mp3`, `audio/3gpp`.
@@ -2154,15 +2524,18 @@ public Builder setOriginalMimeType(
      * 
* * string original_mime_type = 8; + * * @return This builder for chaining. */ public Builder clearOriginalMimeType() { - + originalMimeType_ = getDefaultInstance().getOriginalMimeType(); onChanged(); return this; } /** + * + * *
      * Mime type of the original audio file.  For example `audio/m4a`,
      * `audio/x-alaw-basic`, `audio/mp3`, `audio/3gpp`.
@@ -2171,16 +2544,16 @@ public Builder clearOriginalMimeType() {
      * 
* * string original_mime_type = 8; + * * @param value The bytes for originalMimeType to set. * @return This builder for chaining. */ - public Builder setOriginalMimeTypeBytes( - com.google.protobuf.ByteString value) { + public Builder setOriginalMimeTypeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + originalMimeType_ = value; onChanged(); return this; @@ -2188,19 +2561,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; @@ -2209,21 +2584,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 { @@ -2231,64 +2607,71 @@ public java.lang.String getAudioTopic() { } } /** + * + * *
      * Description of the content. Eg. "Recordings of federal supreme court
      * hearings from 2012".
      * 
* * string audio_topic = 10; + * * @param value The audioTopic to set. * @return This builder for chaining. */ - public Builder setAudioTopic( - java.lang.String value) { + public Builder setAudioTopic(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + audioTopic_ = value; onChanged(); return this; } /** + * + * *
      * Description of the content. Eg. "Recordings of federal supreme court
      * hearings from 2012".
      * 
* * string audio_topic = 10; + * * @return This builder for chaining. */ public Builder clearAudioTopic() { - + audioTopic_ = getDefaultInstance().getAudioTopic(); onChanged(); return this; } /** + * + * *
      * Description of the content. Eg. "Recordings of federal supreme court
      * hearings from 2012".
      * 
* * string audio_topic = 10; + * * @param value The bytes for audioTopic to set. * @return This builder for chaining. */ - public Builder setAudioTopicBytes( - com.google.protobuf.ByteString value) { + public Builder setAudioTopicBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + audioTopic_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2298,12 +2681,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(); } @@ -2312,16 +2695,16 @@ public static com.google.cloud.speech.v1.RecognitionMetadata getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RecognitionMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new RecognitionMetadata(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RecognitionMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RecognitionMetadata(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2336,6 +2719,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1.RecognitionMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionMetadataOrBuilder.java b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionMetadataOrBuilder.java similarity index 76% rename from owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionMetadataOrBuilder.java rename to proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionMetadataOrBuilder.java index b8e683832..2c6508778 100644 --- a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionMetadataOrBuilder.java +++ b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionMetadataOrBuilder.java @@ -1,32 +1,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; -public interface RecognitionMetadataOrBuilder extends +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 +59,97 @@ public interface RecognitionMetadataOrBuilder extends
    * 
* * 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 +157,13 @@ public interface RecognitionMetadataOrBuilder extends
    * 
* * 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 +171,14 @@ public interface RecognitionMetadataOrBuilder extends
    * 
* * 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 +187,13 @@ public interface RecognitionMetadataOrBuilder extends
    * 
* * 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 +202,35 @@ public interface RecognitionMetadataOrBuilder extends
    * 
* * string original_mime_type = 8; + * * @return The bytes for originalMimeType. */ - com.google.protobuf.ByteString - getOriginalMimeTypeBytes(); + com.google.protobuf.ByteString getOriginalMimeTypeBytes(); /** + * + * *
    * Description of the content. Eg. "Recordings of federal supreme court
    * hearings from 2012".
    * 
* * string audio_topic = 10; + * * @return The audioTopic. */ java.lang.String getAudioTopic(); /** + * + * *
    * Description of the content. Eg. "Recordings of federal supreme court
    * hearings from 2012".
    * 
* * string audio_topic = 10; + * * @return The bytes for audioTopic. */ - com.google.protobuf.ByteString - getAudioTopicBytes(); + com.google.protobuf.ByteString getAudioTopicBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeRequest.java b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeRequest.java similarity index 61% rename from owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeRequest.java rename to proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeRequest.java index abb3c1735..9f6fd3f2b 100644 --- a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeRequest.java +++ b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeRequest.java @@ -1,39 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1/cloud_speech.proto package com.google.cloud.speech.v1; /** + * + * *
  * The top-level message sent by the client for the `Recognize` method.
  * 
* * Protobuf type {@code google.cloud.speech.v1.RecognizeRequest} */ -public final class RecognizeRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class RecognizeRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v1.RecognizeRequest) RecognizeRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use RecognizeRequest.newBuilder() to construct. private RecognizeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private RecognizeRequest() { - } + + private RecognizeRequest() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new RecognizeRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private RecognizeRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,73 +68,86 @@ private RecognizeRequest( case 0: done = true; break; - case 10: { - com.google.cloud.speech.v1.RecognitionConfig.Builder subBuilder = null; - if (config_ != null) { - subBuilder = config_.toBuilder(); - } - config_ = input.readMessage(com.google.cloud.speech.v1.RecognitionConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(config_); - config_ = subBuilder.buildPartial(); - } + case 10: + { + com.google.cloud.speech.v1.RecognitionConfig.Builder subBuilder = null; + if (config_ != null) { + subBuilder = config_.toBuilder(); + } + config_ = + input.readMessage( + com.google.cloud.speech.v1.RecognitionConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(config_); + config_ = subBuilder.buildPartial(); + } - break; - } - case 18: { - com.google.cloud.speech.v1.RecognitionAudio.Builder subBuilder = null; - if (audio_ != null) { - subBuilder = audio_.toBuilder(); - } - audio_ = input.readMessage(com.google.cloud.speech.v1.RecognitionAudio.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(audio_); - audio_ = subBuilder.buildPartial(); + break; } + case 18: + { + com.google.cloud.speech.v1.RecognitionAudio.Builder subBuilder = null; + if (audio_ != null) { + subBuilder = audio_.toBuilder(); + } + audio_ = + input.readMessage( + com.google.cloud.speech.v1.RecognitionAudio.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(audio_); + audio_ = subBuilder.buildPartial(); + } - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_RecognizeRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1.SpeechProto + .internal_static_google_cloud_speech_v1_RecognizeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_RecognizeRequest_fieldAccessorTable + return com.google.cloud.speech.v1.SpeechProto + .internal_static_google_cloud_speech_v1_RecognizeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1.RecognizeRequest.class, com.google.cloud.speech.v1.RecognizeRequest.Builder.class); + com.google.cloud.speech.v1.RecognizeRequest.class, + com.google.cloud.speech.v1.RecognizeRequest.Builder.class); } public static final int CONFIG_FIELD_NUMBER = 1; private com.google.cloud.speech.v1.RecognitionConfig config_; /** + * + * *
    * Required. Provides information to the recognizer that specifies how to
    * process the request.
    * 
* - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the config field is set. */ @java.lang.Override @@ -126,25 +155,36 @@ public boolean hasConfig() { return config_ != null; } /** + * + * *
    * Required. Provides information to the recognizer that specifies how to
    * process the request.
    * 
* - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The config. */ @java.lang.Override public com.google.cloud.speech.v1.RecognitionConfig getConfig() { - return config_ == null ? com.google.cloud.speech.v1.RecognitionConfig.getDefaultInstance() : config_; + return config_ == null + ? com.google.cloud.speech.v1.RecognitionConfig.getDefaultInstance() + : config_; } /** + * + * *
    * Required. Provides information to the recognizer that specifies how to
    * process the request.
    * 
* - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.speech.v1.RecognitionConfigOrBuilder getConfigOrBuilder() { @@ -154,11 +194,16 @@ public com.google.cloud.speech.v1.RecognitionConfigOrBuilder getConfigOrBuilder( public static final int AUDIO_FIELD_NUMBER = 2; private com.google.cloud.speech.v1.RecognitionAudio audio_; /** + * + * *
    * Required. The audio data to be recognized.
    * 
* - * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the audio field is set. */ @java.lang.Override @@ -166,23 +211,34 @@ public boolean hasAudio() { return audio_ != null; } /** + * + * *
    * Required. The audio data to be recognized.
    * 
* - * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The audio. */ @java.lang.Override public com.google.cloud.speech.v1.RecognitionAudio getAudio() { - return audio_ == null ? com.google.cloud.speech.v1.RecognitionAudio.getDefaultInstance() : audio_; + return audio_ == null + ? com.google.cloud.speech.v1.RecognitionAudio.getDefaultInstance() + : audio_; } /** + * + * *
    * Required. The audio data to be recognized.
    * 
* - * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.speech.v1.RecognitionAudioOrBuilder getAudioOrBuilder() { @@ -190,6 +246,7 @@ public com.google.cloud.speech.v1.RecognitionAudioOrBuilder getAudioOrBuilder() } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -201,8 +258,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (config_ != null) { output.writeMessage(1, getConfig()); } @@ -219,12 +275,10 @@ public int getSerializedSize() { size = 0; if (config_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getConfig()); } if (audio_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getAudio()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getAudio()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -234,22 +288,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1.RecognizeRequest)) { return super.equals(obj); } - com.google.cloud.speech.v1.RecognizeRequest other = (com.google.cloud.speech.v1.RecognizeRequest) obj; + com.google.cloud.speech.v1.RecognizeRequest other = + (com.google.cloud.speech.v1.RecognizeRequest) obj; if (hasConfig() != other.hasConfig()) return false; if (hasConfig()) { - if (!getConfig() - .equals(other.getConfig())) return false; + if (!getConfig().equals(other.getConfig())) return false; } if (hasAudio() != other.hasAudio()) return false; if (hasAudio()) { - if (!getAudio() - .equals(other.getAudio())) return false; + if (!getAudio().equals(other.getAudio())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -275,118 +328,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.speech.v1.RecognizeRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.speech.v1.RecognizeRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1.RecognizeRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1.RecognizeRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1.RecognizeRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1.RecognizeRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1.RecognizeRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1.RecognizeRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1.RecognizeRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1.RecognizeRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1.RecognizeRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1.RecognizeRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.speech.v1.RecognizeRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1.RecognizeRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.speech.v1.RecognizeRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The top-level message sent by the client for the `Recognize` method.
    * 
* * Protobuf type {@code google.cloud.speech.v1.RecognizeRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1.RecognizeRequest) com.google.cloud.speech.v1.RecognizeRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_RecognizeRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1.SpeechProto + .internal_static_google_cloud_speech_v1_RecognizeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_RecognizeRequest_fieldAccessorTable + return com.google.cloud.speech.v1.SpeechProto + .internal_static_google_cloud_speech_v1_RecognizeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1.RecognizeRequest.class, com.google.cloud.speech.v1.RecognizeRequest.Builder.class); + com.google.cloud.speech.v1.RecognizeRequest.class, + com.google.cloud.speech.v1.RecognizeRequest.Builder.class); } // Construct using com.google.cloud.speech.v1.RecognizeRequest.newBuilder() @@ -394,16 +456,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -423,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_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 @@ -444,7 +505,8 @@ public com.google.cloud.speech.v1.RecognizeRequest build() { @java.lang.Override public com.google.cloud.speech.v1.RecognizeRequest buildPartial() { - com.google.cloud.speech.v1.RecognizeRequest result = new com.google.cloud.speech.v1.RecognizeRequest(this); + com.google.cloud.speech.v1.RecognizeRequest result = + new com.google.cloud.speech.v1.RecognizeRequest(this); if (configBuilder_ == null) { result.config_ = config_; } else { @@ -463,38 +525,39 @@ public com.google.cloud.speech.v1.RecognizeRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.speech.v1.RecognizeRequest) { - return mergeFrom((com.google.cloud.speech.v1.RecognizeRequest)other); + return mergeFrom((com.google.cloud.speech.v1.RecognizeRequest) other); } else { super.mergeFrom(other); return this; @@ -540,42 +603,61 @@ public Builder mergeFrom( private com.google.cloud.speech.v1.RecognitionConfig config_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1.RecognitionConfig, com.google.cloud.speech.v1.RecognitionConfig.Builder, com.google.cloud.speech.v1.RecognitionConfigOrBuilder> configBuilder_; + com.google.cloud.speech.v1.RecognitionConfig, + com.google.cloud.speech.v1.RecognitionConfig.Builder, + com.google.cloud.speech.v1.RecognitionConfigOrBuilder> + configBuilder_; /** + * + * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the config field is set. */ public boolean hasConfig() { return configBuilder_ != null || config_ != null; } /** + * + * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The config. */ public com.google.cloud.speech.v1.RecognitionConfig getConfig() { if (configBuilder_ == null) { - return config_ == null ? com.google.cloud.speech.v1.RecognitionConfig.getDefaultInstance() : config_; + return config_ == null + ? com.google.cloud.speech.v1.RecognitionConfig.getDefaultInstance() + : config_; } else { return configBuilder_.getMessage(); } } /** + * + * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setConfig(com.google.cloud.speech.v1.RecognitionConfig value) { if (configBuilder_ == null) { @@ -591,15 +673,18 @@ public Builder setConfig(com.google.cloud.speech.v1.RecognitionConfig value) { return this; } /** + * + * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setConfig( - com.google.cloud.speech.v1.RecognitionConfig.Builder builderForValue) { + public Builder setConfig(com.google.cloud.speech.v1.RecognitionConfig.Builder builderForValue) { if (configBuilder_ == null) { config_ = builderForValue.build(); onChanged(); @@ -610,18 +695,24 @@ public Builder setConfig( return this; } /** + * + * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeConfig(com.google.cloud.speech.v1.RecognitionConfig value) { if (configBuilder_ == null) { if (config_ != null) { config_ = - com.google.cloud.speech.v1.RecognitionConfig.newBuilder(config_).mergeFrom(value).buildPartial(); + com.google.cloud.speech.v1.RecognitionConfig.newBuilder(config_) + .mergeFrom(value) + .buildPartial(); } else { config_ = value; } @@ -633,12 +724,16 @@ public Builder mergeConfig(com.google.cloud.speech.v1.RecognitionConfig value) { return this; } /** + * + * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearConfig() { if (configBuilder_ == null) { @@ -652,51 +747,67 @@ public Builder clearConfig() { return this; } /** + * + * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.speech.v1.RecognitionConfig.Builder getConfigBuilder() { - + onChanged(); return getConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.speech.v1.RecognitionConfigOrBuilder getConfigOrBuilder() { if (configBuilder_ != null) { return configBuilder_.getMessageOrBuilder(); } else { - return config_ == null ? - com.google.cloud.speech.v1.RecognitionConfig.getDefaultInstance() : config_; + return config_ == null + ? com.google.cloud.speech.v1.RecognitionConfig.getDefaultInstance() + : config_; } } /** + * + * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1.RecognitionConfig, com.google.cloud.speech.v1.RecognitionConfig.Builder, com.google.cloud.speech.v1.RecognitionConfigOrBuilder> + com.google.cloud.speech.v1.RecognitionConfig, + com.google.cloud.speech.v1.RecognitionConfig.Builder, + com.google.cloud.speech.v1.RecognitionConfigOrBuilder> getConfigFieldBuilder() { if (configBuilder_ == null) { - configBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1.RecognitionConfig, com.google.cloud.speech.v1.RecognitionConfig.Builder, com.google.cloud.speech.v1.RecognitionConfigOrBuilder>( - getConfig(), - getParentForChildren(), - isClean()); + configBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v1.RecognitionConfig, + com.google.cloud.speech.v1.RecognitionConfig.Builder, + com.google.cloud.speech.v1.RecognitionConfigOrBuilder>( + getConfig(), getParentForChildren(), isClean()); config_ = null; } return configBuilder_; @@ -704,39 +815,58 @@ public com.google.cloud.speech.v1.RecognitionConfigOrBuilder getConfigOrBuilder( private com.google.cloud.speech.v1.RecognitionAudio audio_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1.RecognitionAudio, com.google.cloud.speech.v1.RecognitionAudio.Builder, com.google.cloud.speech.v1.RecognitionAudioOrBuilder> audioBuilder_; + com.google.cloud.speech.v1.RecognitionAudio, + com.google.cloud.speech.v1.RecognitionAudio.Builder, + com.google.cloud.speech.v1.RecognitionAudioOrBuilder> + audioBuilder_; /** + * + * *
      * Required. The audio data to be recognized.
      * 
* - * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the audio field is set. */ public boolean hasAudio() { return audioBuilder_ != null || audio_ != null; } /** + * + * *
      * Required. The audio data to be recognized.
      * 
* - * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The audio. */ public com.google.cloud.speech.v1.RecognitionAudio getAudio() { if (audioBuilder_ == null) { - return audio_ == null ? com.google.cloud.speech.v1.RecognitionAudio.getDefaultInstance() : audio_; + return audio_ == null + ? com.google.cloud.speech.v1.RecognitionAudio.getDefaultInstance() + : audio_; } else { return audioBuilder_.getMessage(); } } /** + * + * *
      * Required. The audio data to be recognized.
      * 
* - * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setAudio(com.google.cloud.speech.v1.RecognitionAudio value) { if (audioBuilder_ == null) { @@ -752,14 +882,17 @@ public Builder setAudio(com.google.cloud.speech.v1.RecognitionAudio value) { return this; } /** + * + * *
      * Required. The audio data to be recognized.
      * 
* - * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setAudio( - com.google.cloud.speech.v1.RecognitionAudio.Builder builderForValue) { + public Builder setAudio(com.google.cloud.speech.v1.RecognitionAudio.Builder builderForValue) { if (audioBuilder_ == null) { audio_ = builderForValue.build(); onChanged(); @@ -770,17 +903,23 @@ public Builder setAudio( return this; } /** + * + * *
      * Required. The audio data to be recognized.
      * 
* - * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeAudio(com.google.cloud.speech.v1.RecognitionAudio value) { if (audioBuilder_ == null) { if (audio_ != null) { audio_ = - com.google.cloud.speech.v1.RecognitionAudio.newBuilder(audio_).mergeFrom(value).buildPartial(); + com.google.cloud.speech.v1.RecognitionAudio.newBuilder(audio_) + .mergeFrom(value) + .buildPartial(); } else { audio_ = value; } @@ -792,11 +931,15 @@ public Builder mergeAudio(com.google.cloud.speech.v1.RecognitionAudio value) { return this; } /** + * + * *
      * Required. The audio data to be recognized.
      * 
* - * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearAudio() { if (audioBuilder_ == null) { @@ -810,55 +953,71 @@ public Builder clearAudio() { return this; } /** + * + * *
      * Required. The audio data to be recognized.
      * 
* - * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.speech.v1.RecognitionAudio.Builder getAudioBuilder() { - + onChanged(); return getAudioFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The audio data to be recognized.
      * 
* - * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.speech.v1.RecognitionAudioOrBuilder getAudioOrBuilder() { if (audioBuilder_ != null) { return audioBuilder_.getMessageOrBuilder(); } else { - return audio_ == null ? - com.google.cloud.speech.v1.RecognitionAudio.getDefaultInstance() : audio_; + return audio_ == null + ? com.google.cloud.speech.v1.RecognitionAudio.getDefaultInstance() + : audio_; } } /** + * + * *
      * Required. The audio data to be recognized.
      * 
* - * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1.RecognitionAudio, com.google.cloud.speech.v1.RecognitionAudio.Builder, com.google.cloud.speech.v1.RecognitionAudioOrBuilder> + com.google.cloud.speech.v1.RecognitionAudio, + com.google.cloud.speech.v1.RecognitionAudio.Builder, + com.google.cloud.speech.v1.RecognitionAudioOrBuilder> getAudioFieldBuilder() { if (audioBuilder_ == null) { - audioBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1.RecognitionAudio, com.google.cloud.speech.v1.RecognitionAudio.Builder, com.google.cloud.speech.v1.RecognitionAudioOrBuilder>( - getAudio(), - getParentForChildren(), - isClean()); + audioBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v1.RecognitionAudio, + com.google.cloud.speech.v1.RecognitionAudio.Builder, + com.google.cloud.speech.v1.RecognitionAudioOrBuilder>( + getAudio(), getParentForChildren(), isClean()); audio_ = null; } return audioBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -868,12 +1027,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(); } @@ -882,16 +1041,16 @@ public static com.google.cloud.speech.v1.RecognizeRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RecognizeRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new RecognizeRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RecognizeRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RecognizeRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -906,6 +1065,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1.RecognizeRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeRequestOrBuilder.java b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeRequestOrBuilder.java new file mode 100644 index 000000000..df0bfe2ab --- /dev/null +++ b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeRequestOrBuilder.java @@ -0,0 +1,110 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/speech/v1/cloud_speech.proto + +package com.google.cloud.speech.v1; + +public interface RecognizeRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1.RecognizeRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Provides information to the recognizer that specifies how to
+   * process the request.
+   * 
+ * + * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the config field is set. + */ + boolean hasConfig(); + /** + * + * + *
+   * Required. Provides information to the recognizer that specifies how to
+   * process the request.
+   * 
+ * + * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The config. + */ + com.google.cloud.speech.v1.RecognitionConfig getConfig(); + /** + * + * + *
+   * Required. Provides information to the recognizer that specifies how to
+   * process the request.
+   * 
+ * + * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.speech.v1.RecognitionConfigOrBuilder getConfigOrBuilder(); + + /** + * + * + *
+   * Required. The audio data to be recognized.
+   * 
+ * + * + * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the audio field is set. + */ + boolean hasAudio(); + /** + * + * + *
+   * Required. The audio data to be recognized.
+   * 
+ * + * + * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The audio. + */ + com.google.cloud.speech.v1.RecognitionAudio getAudio(); + /** + * + * + *
+   * Required. The audio data to be recognized.
+   * 
+ * + * + * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.speech.v1.RecognitionAudioOrBuilder getAudioOrBuilder(); +} diff --git a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeResponse.java b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeResponse.java similarity index 74% rename from owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeResponse.java rename to proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeResponse.java index a3ed84195..3e22f4215 100644 --- a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeResponse.java +++ b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeResponse.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1/cloud_speech.proto package com.google.cloud.speech.v1; /** + * + * *
  * The only message returned to the client by the `Recognize` method. It
  * contains the result as zero or more sequential `SpeechRecognitionResult`
@@ -12,31 +29,31 @@
  *
  * Protobuf type {@code google.cloud.speech.v1.RecognizeResponse}
  */
-public final class RecognizeResponse extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class RecognizeResponse extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.speech.v1.RecognizeResponse)
     RecognizeResponseOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use RecognizeResponse.newBuilder() to construct.
   private RecognizeResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private RecognizeResponse() {
     results_ = java.util.Collections.emptyList();
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new RecognizeResponse();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private RecognizeResponse(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -56,42 +73,47 @@ private RecognizeResponse(
           case 0:
             done = true;
             break;
-          case 18: {
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              results_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000001;
-            }
-            results_.add(
-                input.readMessage(com.google.cloud.speech.v1.SpeechRecognitionResult.parser(), extensionRegistry));
-            break;
-          }
-          case 26: {
-            com.google.protobuf.Duration.Builder subBuilder = null;
-            if (totalBilledTime_ != null) {
-              subBuilder = totalBilledTime_.toBuilder();
-            }
-            totalBilledTime_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(totalBilledTime_);
-              totalBilledTime_ = subBuilder.buildPartial();
+          case 18:
+            {
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                results_ =
+                    new java.util.ArrayList();
+                mutable_bitField0_ |= 0x00000001;
+              }
+              results_.add(
+                  input.readMessage(
+                      com.google.cloud.speech.v1.SpeechRecognitionResult.parser(),
+                      extensionRegistry));
+              break;
             }
+          case 26:
+            {
+              com.google.protobuf.Duration.Builder subBuilder = null;
+              if (totalBilledTime_ != null) {
+                subBuilder = totalBilledTime_.toBuilder();
+              }
+              totalBilledTime_ =
+                  input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(totalBilledTime_);
+                totalBilledTime_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         results_ = java.util.Collections.unmodifiableList(results_);
@@ -100,22 +122,27 @@ private RecognizeResponse(
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_RecognizeResponse_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.speech.v1.SpeechProto
+        .internal_static_google_cloud_speech_v1_RecognizeResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_RecognizeResponse_fieldAccessorTable
+    return com.google.cloud.speech.v1.SpeechProto
+        .internal_static_google_cloud_speech_v1_RecognizeResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v1.RecognizeResponse.class, com.google.cloud.speech.v1.RecognizeResponse.Builder.class);
+            com.google.cloud.speech.v1.RecognizeResponse.class,
+            com.google.cloud.speech.v1.RecognizeResponse.Builder.class);
   }
 
   public static final int RESULTS_FIELD_NUMBER = 2;
   private java.util.List results_;
   /**
+   *
+   *
    * 
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -128,6 +155,8 @@ public java.util.List getRes
     return results_;
   }
   /**
+   *
+   *
    * 
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -136,11 +165,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.
@@ -153,6 +184,8 @@ public int getResultsCount() {
     return results_.size();
   }
   /**
+   *
+   *
    * 
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -165,6 +198,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.
@@ -181,11 +216,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 @@ -193,18 +231,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.
    * 
@@ -217,6 +262,7 @@ public com.google.protobuf.DurationOrBuilder getTotalBilledTimeOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -228,8 +274,7 @@ public final boolean isInitialized() { } @java.lang.Override - 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)); } @@ -246,12 +291,10 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < results_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, results_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, results_.get(i)); } if (totalBilledTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getTotalBilledTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getTotalBilledTime()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -261,19 +304,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1.RecognizeResponse)) { return super.equals(obj); } - com.google.cloud.speech.v1.RecognizeResponse other = (com.google.cloud.speech.v1.RecognizeResponse) obj; + com.google.cloud.speech.v1.RecognizeResponse other = + (com.google.cloud.speech.v1.RecognizeResponse) obj; - if (!getResultsList() - .equals(other.getResultsList())) return false; + if (!getResultsList().equals(other.getResultsList())) return false; if (hasTotalBilledTime() != other.hasTotalBilledTime()) return false; if (hasTotalBilledTime()) { - if (!getTotalBilledTime() - .equals(other.getTotalBilledTime())) return false; + if (!getTotalBilledTime().equals(other.getTotalBilledTime())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -299,97 +341,104 @@ public int hashCode() { return hash; } - public static com.google.cloud.speech.v1.RecognizeResponse parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.speech.v1.RecognizeResponse parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1.RecognizeResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1.RecognizeResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1.RecognizeResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1.RecognizeResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1.RecognizeResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1.RecognizeResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1.RecognizeResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1.RecognizeResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1.RecognizeResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1.RecognizeResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.speech.v1.RecognizeResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1.RecognizeResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.speech.v1.RecognizeResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The only message returned to the client by the `Recognize` method. It
    * contains the result as zero or more sequential `SpeechRecognitionResult`
@@ -398,21 +447,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.speech.v1.RecognizeResponse}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1.RecognizeResponse)
       com.google.cloud.speech.v1.RecognizeResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_RecognizeResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.speech.v1.SpeechProto
+          .internal_static_google_cloud_speech_v1_RecognizeResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_RecognizeResponse_fieldAccessorTable
+      return com.google.cloud.speech.v1.SpeechProto
+          .internal_static_google_cloud_speech_v1_RecognizeResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v1.RecognizeResponse.class, com.google.cloud.speech.v1.RecognizeResponse.Builder.class);
+              com.google.cloud.speech.v1.RecognizeResponse.class,
+              com.google.cloud.speech.v1.RecognizeResponse.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v1.RecognizeResponse.newBuilder()
@@ -420,17 +471,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
         getResultsFieldBuilder();
       }
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -450,9 +501,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
@@ -471,7 +522,8 @@ public com.google.cloud.speech.v1.RecognizeResponse build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v1.RecognizeResponse buildPartial() {
-      com.google.cloud.speech.v1.RecognizeResponse result = new com.google.cloud.speech.v1.RecognizeResponse(this);
+      com.google.cloud.speech.v1.RecognizeResponse result =
+          new com.google.cloud.speech.v1.RecognizeResponse(this);
       int from_bitField0_ = bitField0_;
       if (resultsBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
@@ -495,38 +547,39 @@ public com.google.cloud.speech.v1.RecognizeResponse buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.speech.v1.RecognizeResponse) {
-        return mergeFrom((com.google.cloud.speech.v1.RecognizeResponse)other);
+        return mergeFrom((com.google.cloud.speech.v1.RecognizeResponse) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -553,9 +606,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_);
           }
@@ -592,21 +646,29 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
     private java.util.List results_ =
-      java.util.Collections.emptyList();
+        java.util.Collections.emptyList();
+
     private void ensureResultsIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
-        results_ = new java.util.ArrayList(results_);
+        results_ =
+            new java.util.ArrayList(results_);
         bitField0_ |= 0x00000001;
-       }
+      }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.speech.v1.SpeechRecognitionResult, com.google.cloud.speech.v1.SpeechRecognitionResult.Builder, com.google.cloud.speech.v1.SpeechRecognitionResultOrBuilder> resultsBuilder_;
+            com.google.cloud.speech.v1.SpeechRecognitionResult,
+            com.google.cloud.speech.v1.SpeechRecognitionResult.Builder,
+            com.google.cloud.speech.v1.SpeechRecognitionResultOrBuilder>
+        resultsBuilder_;
 
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -622,6 +684,8 @@ public java.util.List getRes
       }
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -637,6 +701,8 @@ public int getResultsCount() {
       }
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -652,6 +718,8 @@ public com.google.cloud.speech.v1.SpeechRecognitionResult getResults(int index)
       }
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -659,8 +727,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();
@@ -674,6 +741,8 @@ public Builder setResults(
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -693,6 +762,8 @@ public Builder setResults(
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -714,6 +785,8 @@ public Builder addResults(com.google.cloud.speech.v1.SpeechRecognitionResult val
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -721,8 +794,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();
@@ -736,6 +808,8 @@ public Builder addResults(
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -755,6 +829,8 @@ public Builder addResults(
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -774,6 +850,8 @@ public Builder addResults(
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -785,8 +863,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);
@@ -794,6 +871,8 @@ public Builder addAllResults(
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -812,6 +891,8 @@ public Builder clearResults() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -830,6 +911,8 @@ public Builder removeResults(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -837,11 +920,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.
@@ -852,11 +936,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.
@@ -864,8 +951,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 {
@@ -873,6 +960,8 @@ public com.google.cloud.speech.v1.SpeechRecognitionResultOrBuilder getResultsOrB
       }
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -881,10 +970,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.
@@ -892,12 +983,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.
@@ -905,20 +998,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_;
@@ -926,34 +1022,47 @@ public com.google.cloud.speech.v1.SpeechRecognitionResult.Builder addResultsBuil
 
     private com.google.protobuf.Duration totalBilledTime_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> totalBilledTimeBuilder_;
+            com.google.protobuf.Duration,
+            com.google.protobuf.Duration.Builder,
+            com.google.protobuf.DurationOrBuilder>
+        totalBilledTimeBuilder_;
     /**
+     *
+     *
      * 
      * When available, billed audio seconds for the corresponding request.
      * 
* * .google.protobuf.Duration total_billed_time = 3; + * * @return Whether the totalBilledTime field is set. */ public boolean hasTotalBilledTime() { return totalBilledTimeBuilder_ != null || totalBilledTime_ != null; } /** + * + * *
      * When available, billed audio seconds for the corresponding request.
      * 
* * .google.protobuf.Duration total_billed_time = 3; + * * @return The totalBilledTime. */ public com.google.protobuf.Duration getTotalBilledTime() { if (totalBilledTimeBuilder_ == null) { - return totalBilledTime_ == null ? com.google.protobuf.Duration.getDefaultInstance() : totalBilledTime_; + return totalBilledTime_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : totalBilledTime_; } else { return totalBilledTimeBuilder_.getMessage(); } } /** + * + * *
      * When available, billed audio seconds for the corresponding request.
      * 
@@ -974,14 +1083,15 @@ public Builder setTotalBilledTime(com.google.protobuf.Duration value) { return this; } /** + * + * *
      * When available, billed audio seconds for the corresponding request.
      * 
* * .google.protobuf.Duration total_billed_time = 3; */ - public Builder setTotalBilledTime( - com.google.protobuf.Duration.Builder builderForValue) { + public Builder setTotalBilledTime(com.google.protobuf.Duration.Builder builderForValue) { if (totalBilledTimeBuilder_ == null) { totalBilledTime_ = builderForValue.build(); onChanged(); @@ -992,6 +1102,8 @@ public Builder setTotalBilledTime( return this; } /** + * + * *
      * When available, billed audio seconds for the corresponding request.
      * 
@@ -1002,7 +1114,9 @@ public Builder mergeTotalBilledTime(com.google.protobuf.Duration value) { if (totalBilledTimeBuilder_ == null) { if (totalBilledTime_ != null) { totalBilledTime_ = - com.google.protobuf.Duration.newBuilder(totalBilledTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Duration.newBuilder(totalBilledTime_) + .mergeFrom(value) + .buildPartial(); } else { totalBilledTime_ = value; } @@ -1014,6 +1128,8 @@ public Builder mergeTotalBilledTime(com.google.protobuf.Duration value) { return this; } /** + * + * *
      * When available, billed audio seconds for the corresponding request.
      * 
@@ -1032,6 +1148,8 @@ public Builder clearTotalBilledTime() { return this; } /** + * + * *
      * When available, billed audio seconds for the corresponding request.
      * 
@@ -1039,11 +1157,13 @@ public Builder clearTotalBilledTime() { * .google.protobuf.Duration total_billed_time = 3; */ public com.google.protobuf.Duration.Builder getTotalBilledTimeBuilder() { - + onChanged(); return getTotalBilledTimeFieldBuilder().getBuilder(); } /** + * + * *
      * When available, billed audio seconds for the corresponding request.
      * 
@@ -1054,11 +1174,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.
      * 
@@ -1066,21 +1189,24 @@ public com.google.protobuf.DurationOrBuilder getTotalBilledTimeOrBuilder() { * .google.protobuf.Duration total_billed_time = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> getTotalBilledTimeFieldBuilder() { if (totalBilledTimeBuilder_ == null) { - totalBilledTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( - getTotalBilledTime(), - getParentForChildren(), - isClean()); + totalBilledTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>( + getTotalBilledTime(), getParentForChildren(), isClean()); totalBilledTime_ = null; } return totalBilledTimeBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1090,12 +1216,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(); } @@ -1104,16 +1230,16 @@ public static com.google.cloud.speech.v1.RecognizeResponse getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RecognizeResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new RecognizeResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RecognizeResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RecognizeResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1128,6 +1254,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1.RecognizeResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeResponseOrBuilder.java b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeResponseOrBuilder.java similarity index 75% rename from owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeResponseOrBuilder.java rename to proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeResponseOrBuilder.java index d2b282a71..ea3880945 100644 --- a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeResponseOrBuilder.java +++ b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeResponseOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1/cloud_speech.proto package com.google.cloud.speech.v1; -public interface RecognizeResponseOrBuilder extends +public interface RecognizeResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1.RecognizeResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -15,9 +33,10 @@ public interface RecognizeResponseOrBuilder extends
    *
    * repeated .google.cloud.speech.v1.SpeechRecognitionResult results = 2;
    */
-  java.util.List 
-      getResultsList();
+  java.util.List getResultsList();
   /**
+   *
+   *
    * 
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -27,6 +46,8 @@ public interface RecognizeResponseOrBuilder extends
    */
   com.google.cloud.speech.v1.SpeechRecognitionResult getResults(int index);
   /**
+   *
+   *
    * 
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -36,6 +57,8 @@ public interface RecognizeResponseOrBuilder extends
    */
   int getResultsCount();
   /**
+   *
+   *
    * 
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -43,9 +66,11 @@ public interface RecognizeResponseOrBuilder extends
    *
    * repeated .google.cloud.speech.v1.SpeechRecognitionResult results = 2;
    */
-  java.util.List 
+  java.util.List
       getResultsOrBuilderList();
   /**
+   *
+   *
    * 
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -53,28 +78,35 @@ public interface RecognizeResponseOrBuilder extends
    *
    * repeated .google.cloud.speech.v1.SpeechRecognitionResult results = 2;
    */
-  com.google.cloud.speech.v1.SpeechRecognitionResultOrBuilder getResultsOrBuilder(
-      int index);
+  com.google.cloud.speech.v1.SpeechRecognitionResultOrBuilder getResultsOrBuilder(int index);
 
   /**
+   *
+   *
    * 
    * When available, billed audio seconds for the corresponding request.
    * 
* * .google.protobuf.Duration total_billed_time = 3; + * * @return Whether the totalBilledTime field is set. */ boolean hasTotalBilledTime(); /** + * + * *
    * When available, billed audio seconds for the corresponding request.
    * 
* * .google.protobuf.Duration total_billed_time = 3; + * * @return The totalBilledTime. */ com.google.protobuf.Duration getTotalBilledTime(); /** + * + * *
    * When available, billed audio seconds for the corresponding request.
    * 
diff --git a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeakerDiarizationConfig.java b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeakerDiarizationConfig.java similarity index 71% rename from owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeakerDiarizationConfig.java rename to proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeakerDiarizationConfig.java index 698b47b0a..50f1dda45 100644 --- a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeakerDiarizationConfig.java +++ b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeakerDiarizationConfig.java @@ -1,39 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1/cloud_speech.proto package com.google.cloud.speech.v1; /** + * + * *
  * Config to enable speaker diarization.
  * 
* * Protobuf type {@code google.cloud.speech.v1.SpeakerDiarizationConfig} */ -public final class SpeakerDiarizationConfig extends - com.google.protobuf.GeneratedMessageV3 implements +public final class SpeakerDiarizationConfig extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v1.SpeakerDiarizationConfig) SpeakerDiarizationConfigOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use SpeakerDiarizationConfig.newBuilder() to construct. private SpeakerDiarizationConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private SpeakerDiarizationConfig() { - } + + private SpeakerDiarizationConfig() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new SpeakerDiarizationConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private SpeakerDiarizationConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,61 +68,65 @@ private SpeakerDiarizationConfig( case 0: done = true; break; - case 8: { - - enableSpeakerDiarization_ = input.readBool(); - break; - } - case 16: { - - minSpeakerCount_ = input.readInt32(); - break; - } - case 24: { - - maxSpeakerCount_ = input.readInt32(); - break; - } - case 40: { - - speakerTag_ = input.readInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 8: + { + enableSpeakerDiarization_ = input.readBool(); + break; + } + case 16: + { + minSpeakerCount_ = input.readInt32(); + break; + } + case 24: + { + maxSpeakerCount_ = input.readInt32(); + break; + } + case 40: + { + speakerTag_ = input.readInt32(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_SpeakerDiarizationConfig_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1.SpeechProto + .internal_static_google_cloud_speech_v1_SpeakerDiarizationConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_SpeakerDiarizationConfig_fieldAccessorTable + return com.google.cloud.speech.v1.SpeechProto + .internal_static_google_cloud_speech_v1_SpeakerDiarizationConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1.SpeakerDiarizationConfig.class, com.google.cloud.speech.v1.SpeakerDiarizationConfig.Builder.class); + com.google.cloud.speech.v1.SpeakerDiarizationConfig.class, + com.google.cloud.speech.v1.SpeakerDiarizationConfig.Builder.class); } public static final int ENABLE_SPEAKER_DIARIZATION_FIELD_NUMBER = 1; private boolean enableSpeakerDiarization_; /** + * + * *
    * If 'true', enables speaker detection for each recognized word in
    * the top alternative of the recognition result using a speaker_tag provided
@@ -114,6 +134,7 @@ private SpeakerDiarizationConfig(
    * 
* * bool enable_speaker_diarization = 1; + * * @return The enableSpeakerDiarization. */ @java.lang.Override @@ -124,6 +145,8 @@ public boolean getEnableSpeakerDiarization() { public static final int MIN_SPEAKER_COUNT_FIELD_NUMBER = 2; private int minSpeakerCount_; /** + * + * *
    * Minimum number of speakers in the conversation. This range gives you more
    * flexibility by allowing the system to automatically determine the correct
@@ -131,6 +154,7 @@ public boolean getEnableSpeakerDiarization() {
    * 
* * int32 min_speaker_count = 2; + * * @return The minSpeakerCount. */ @java.lang.Override @@ -141,6 +165,8 @@ public int getMinSpeakerCount() { public static final int MAX_SPEAKER_COUNT_FIELD_NUMBER = 3; private int maxSpeakerCount_; /** + * + * *
    * Maximum number of speakers in the conversation. This range gives you more
    * flexibility by allowing the system to automatically determine the correct
@@ -148,6 +174,7 @@ public int getMinSpeakerCount() {
    * 
* * int32 max_speaker_count = 3; + * * @return The maxSpeakerCount. */ @java.lang.Override @@ -158,19 +185,25 @@ public int getMaxSpeakerCount() { public static final int SPEAKER_TAG_FIELD_NUMBER = 5; private int speakerTag_; /** + * + * *
    * Output only. Unused.
    * 
* - * int32 speaker_tag = 5 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * int32 speaker_tag = 5 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @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; @@ -182,8 +215,7 @@ public final boolean isInitialized() { } @java.lang.Override - public 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_); } @@ -206,20 +238,16 @@ public int getSerializedSize() { size = 0; if (enableSpeakerDiarization_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(1, enableSpeakerDiarization_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, enableSpeakerDiarization_); } if (minSpeakerCount_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, minSpeakerCount_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, minSpeakerCount_); } if (maxSpeakerCount_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(3, maxSpeakerCount_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, maxSpeakerCount_); } if (speakerTag_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(5, speakerTag_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, speakerTag_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -229,21 +257,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1.SpeakerDiarizationConfig)) { return super.equals(obj); } - com.google.cloud.speech.v1.SpeakerDiarizationConfig other = (com.google.cloud.speech.v1.SpeakerDiarizationConfig) obj; + com.google.cloud.speech.v1.SpeakerDiarizationConfig other = + (com.google.cloud.speech.v1.SpeakerDiarizationConfig) obj; - if (getEnableSpeakerDiarization() - != other.getEnableSpeakerDiarization()) return false; - if (getMinSpeakerCount() - != other.getMinSpeakerCount()) return false; - if (getMaxSpeakerCount() - != other.getMaxSpeakerCount()) return false; - if (getSpeakerTag() - != other.getSpeakerTag()) return false; + if (getEnableSpeakerDiarization() != other.getEnableSpeakerDiarization()) return false; + if (getMinSpeakerCount() != other.getMinSpeakerCount()) return false; + if (getMaxSpeakerCount() != other.getMaxSpeakerCount()) return false; + if (getSpeakerTag() != other.getSpeakerTag()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -256,8 +281,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; @@ -270,117 +294,126 @@ public int hashCode() { } public static com.google.cloud.speech.v1.SpeakerDiarizationConfig parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1.SpeakerDiarizationConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1.SpeakerDiarizationConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1.SpeakerDiarizationConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1.SpeakerDiarizationConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1.SpeakerDiarizationConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1.SpeakerDiarizationConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1.SpeakerDiarizationConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1.SpeakerDiarizationConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1.SpeakerDiarizationConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1.SpeakerDiarizationConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1.SpeakerDiarizationConfig parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.speech.v1.SpeakerDiarizationConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1.SpeakerDiarizationConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.speech.v1.SpeakerDiarizationConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Config to enable speaker diarization.
    * 
* * Protobuf type {@code google.cloud.speech.v1.SpeakerDiarizationConfig} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1.SpeakerDiarizationConfig) com.google.cloud.speech.v1.SpeakerDiarizationConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_SpeakerDiarizationConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1.SpeechProto + .internal_static_google_cloud_speech_v1_SpeakerDiarizationConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_SpeakerDiarizationConfig_fieldAccessorTable + return com.google.cloud.speech.v1.SpeechProto + .internal_static_google_cloud_speech_v1_SpeakerDiarizationConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1.SpeakerDiarizationConfig.class, com.google.cloud.speech.v1.SpeakerDiarizationConfig.Builder.class); + com.google.cloud.speech.v1.SpeakerDiarizationConfig.class, + com.google.cloud.speech.v1.SpeakerDiarizationConfig.Builder.class); } // Construct using com.google.cloud.speech.v1.SpeakerDiarizationConfig.newBuilder() @@ -388,16 +421,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -413,9 +445,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 @@ -434,7 +466,8 @@ public com.google.cloud.speech.v1.SpeakerDiarizationConfig build() { @java.lang.Override public com.google.cloud.speech.v1.SpeakerDiarizationConfig buildPartial() { - com.google.cloud.speech.v1.SpeakerDiarizationConfig result = new com.google.cloud.speech.v1.SpeakerDiarizationConfig(this); + com.google.cloud.speech.v1.SpeakerDiarizationConfig result = + new com.google.cloud.speech.v1.SpeakerDiarizationConfig(this); result.enableSpeakerDiarization_ = enableSpeakerDiarization_; result.minSpeakerCount_ = minSpeakerCount_; result.maxSpeakerCount_ = maxSpeakerCount_; @@ -447,38 +480,39 @@ public com.google.cloud.speech.v1.SpeakerDiarizationConfig buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.speech.v1.SpeakerDiarizationConfig) { - return mergeFrom((com.google.cloud.speech.v1.SpeakerDiarizationConfig)other); + return mergeFrom((com.google.cloud.speech.v1.SpeakerDiarizationConfig) other); } else { super.mergeFrom(other); return this; @@ -486,7 +520,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()); } @@ -518,7 +553,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.speech.v1.SpeakerDiarizationConfig) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.speech.v1.SpeakerDiarizationConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -528,8 +564,10 @@ public Builder mergeFrom( return this; } - private boolean enableSpeakerDiarization_ ; + private boolean enableSpeakerDiarization_; /** + * + * *
      * If 'true', enables speaker detection for each recognized word in
      * the top alternative of the recognition result using a speaker_tag provided
@@ -537,6 +575,7 @@ public Builder mergeFrom(
      * 
* * bool enable_speaker_diarization = 1; + * * @return The enableSpeakerDiarization. */ @java.lang.Override @@ -544,6 +583,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
@@ -551,16 +592,19 @@ public boolean getEnableSpeakerDiarization() {
      * 
* * bool enable_speaker_diarization = 1; + * * @param value The enableSpeakerDiarization to set. * @return This builder for chaining. */ public Builder setEnableSpeakerDiarization(boolean value) { - + enableSpeakerDiarization_ = value; onChanged(); return this; } /** + * + * *
      * If 'true', enables speaker detection for each recognized word in
      * the top alternative of the recognition result using a speaker_tag provided
@@ -568,17 +612,20 @@ public Builder setEnableSpeakerDiarization(boolean value) {
      * 
* * bool enable_speaker_diarization = 1; + * * @return This builder for chaining. */ public Builder clearEnableSpeakerDiarization() { - + enableSpeakerDiarization_ = false; onChanged(); return this; } - private int minSpeakerCount_ ; + private int minSpeakerCount_; /** + * + * *
      * Minimum number of speakers in the conversation. This range gives you more
      * flexibility by allowing the system to automatically determine the correct
@@ -586,6 +633,7 @@ public Builder clearEnableSpeakerDiarization() {
      * 
* * int32 min_speaker_count = 2; + * * @return The minSpeakerCount. */ @java.lang.Override @@ -593,6 +641,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
@@ -600,16 +650,19 @@ public int getMinSpeakerCount() {
      * 
* * int32 min_speaker_count = 2; + * * @param value The minSpeakerCount to set. * @return This builder for chaining. */ public Builder setMinSpeakerCount(int value) { - + minSpeakerCount_ = value; onChanged(); return this; } /** + * + * *
      * Minimum number of speakers in the conversation. This range gives you more
      * flexibility by allowing the system to automatically determine the correct
@@ -617,17 +670,20 @@ public Builder setMinSpeakerCount(int value) {
      * 
* * int32 min_speaker_count = 2; + * * @return This builder for chaining. */ public Builder clearMinSpeakerCount() { - + minSpeakerCount_ = 0; onChanged(); return this; } - private int maxSpeakerCount_ ; + private int maxSpeakerCount_; /** + * + * *
      * Maximum number of speakers in the conversation. This range gives you more
      * flexibility by allowing the system to automatically determine the correct
@@ -635,6 +691,7 @@ public Builder clearMinSpeakerCount() {
      * 
* * int32 max_speaker_count = 3; + * * @return The maxSpeakerCount. */ @java.lang.Override @@ -642,6 +699,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
@@ -649,16 +708,19 @@ public int getMaxSpeakerCount() {
      * 
* * int32 max_speaker_count = 3; + * * @param value The maxSpeakerCount to set. * @return This builder for chaining. */ public Builder setMaxSpeakerCount(int value) { - + maxSpeakerCount_ = value; onChanged(); return this; } /** + * + * *
      * Maximum number of speakers in the conversation. This range gives you more
      * flexibility by allowing the system to automatically determine the correct
@@ -666,60 +728,76 @@ public Builder setMaxSpeakerCount(int value) {
      * 
* * int32 max_speaker_count = 3; + * * @return This builder for chaining. */ public Builder clearMaxSpeakerCount() { - + maxSpeakerCount_ = 0; onChanged(); return this; } - private int speakerTag_ ; + private int speakerTag_; /** + * + * *
      * Output only. Unused.
      * 
* - * int32 speaker_tag = 5 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * int32 speaker_tag = 5 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @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]; + * + * * @param value The speakerTag to set. * @return This builder for chaining. */ - @java.lang.Deprecated public Builder setSpeakerTag(int value) { - + @java.lang.Deprecated + public Builder setSpeakerTag(int value) { + speakerTag_ = value; onChanged(); return this; } /** + * + * *
      * Output only. Unused.
      * 
* - * int32 speaker_tag = 5 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * int32 speaker_tag = 5 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return This builder for chaining. */ - @java.lang.Deprecated public Builder clearSpeakerTag() { - + @java.lang.Deprecated + public Builder clearSpeakerTag() { + speakerTag_ = 0; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -729,12 +807,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(); } @@ -743,16 +821,16 @@ public static com.google.cloud.speech.v1.SpeakerDiarizationConfig getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SpeakerDiarizationConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SpeakerDiarizationConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SpeakerDiarizationConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SpeakerDiarizationConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -767,6 +845,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1.SpeakerDiarizationConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeakerDiarizationConfigOrBuilder.java b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeakerDiarizationConfigOrBuilder.java similarity index 65% rename from owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeakerDiarizationConfigOrBuilder.java rename to proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeakerDiarizationConfigOrBuilder.java index 962158b1e..9f957fb4a 100644 --- a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeakerDiarizationConfigOrBuilder.java +++ b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeakerDiarizationConfigOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1/cloud_speech.proto package com.google.cloud.speech.v1; -public interface SpeakerDiarizationConfigOrBuilder extends +public interface SpeakerDiarizationConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1.SpeakerDiarizationConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * If 'true', enables speaker detection for each recognized word in
    * the top alternative of the recognition result using a speaker_tag provided
@@ -15,11 +33,14 @@ public interface SpeakerDiarizationConfigOrBuilder extends
    * 
* * bool enable_speaker_diarization = 1; + * * @return The enableSpeakerDiarization. */ boolean getEnableSpeakerDiarization(); /** + * + * *
    * Minimum number of speakers in the conversation. This range gives you more
    * flexibility by allowing the system to automatically determine the correct
@@ -27,11 +48,14 @@ public interface SpeakerDiarizationConfigOrBuilder extends
    * 
* * int32 min_speaker_count = 2; + * * @return The minSpeakerCount. */ int getMinSpeakerCount(); /** + * + * *
    * Maximum number of speakers in the conversation. This range gives you more
    * flexibility by allowing the system to automatically determine the correct
@@ -39,17 +63,23 @@ 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]; + * + * * @return The speakerTag. */ - @java.lang.Deprecated int getSpeakerTag(); + @java.lang.Deprecated + int getSpeakerTag(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechAdaptation.java b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechAdaptation.java similarity index 79% rename from owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechAdaptation.java rename to proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechAdaptation.java index 16878785c..106a91b7e 100644 --- a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechAdaptation.java +++ b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechAdaptation.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1/resource.proto package com.google.cloud.speech.v1; /** + * + * *
  * Speech adaptation configuration.
  * 
* * Protobuf type {@code google.cloud.speech.v1.SpeechAdaptation} */ -public final class SpeechAdaptation extends - com.google.protobuf.GeneratedMessageV3 implements +public final class SpeechAdaptation extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v1.SpeechAdaptation) SpeechAdaptationOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use SpeechAdaptation.newBuilder() to construct. private SpeechAdaptation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private SpeechAdaptation() { phraseSets_ = java.util.Collections.emptyList(); phraseSetReferences_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -27,16 +45,15 @@ private SpeechAdaptation() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new SpeechAdaptation(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private SpeechAdaptation( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -56,47 +73,51 @@ private SpeechAdaptation( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - phraseSets_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + phraseSets_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + phraseSets_.add( + input.readMessage( + com.google.cloud.speech.v1.PhraseSet.parser(), extensionRegistry)); + break; } - phraseSets_.add( - input.readMessage(com.google.cloud.speech.v1.PhraseSet.parser(), extensionRegistry)); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - phraseSetReferences_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + phraseSetReferences_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; + } + phraseSetReferences_.add(s); + break; } - phraseSetReferences_.add(s); - break; - } - case 26: { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - customClasses_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000004; + case 26: + { + if (!((mutable_bitField0_ & 0x00000004) != 0)) { + customClasses_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000004; + } + customClasses_.add( + input.readMessage( + com.google.cloud.speech.v1.CustomClass.parser(), extensionRegistry)); + break; } - customClasses_.add( - input.readMessage(com.google.cloud.speech.v1.CustomClass.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { phraseSets_ = java.util.Collections.unmodifiableList(phraseSets_); @@ -111,22 +132,27 @@ private SpeechAdaptation( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1.SpeechResourceProto.internal_static_google_cloud_speech_v1_SpeechAdaptation_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1.SpeechResourceProto + .internal_static_google_cloud_speech_v1_SpeechAdaptation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1.SpeechResourceProto.internal_static_google_cloud_speech_v1_SpeechAdaptation_fieldAccessorTable + return com.google.cloud.speech.v1.SpeechResourceProto + .internal_static_google_cloud_speech_v1_SpeechAdaptation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1.SpeechAdaptation.class, com.google.cloud.speech.v1.SpeechAdaptation.Builder.class); + com.google.cloud.speech.v1.SpeechAdaptation.class, + com.google.cloud.speech.v1.SpeechAdaptation.Builder.class); } public static final int PHRASE_SETS_FIELD_NUMBER = 1; private java.util.List phraseSets_; /** + * + * *
    * A collection of phrase sets. To specify the hints inline, leave the
    * phrase set's `name` blank and fill in the rest of its fields. Any
@@ -140,6 +166,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
@@ -149,11 +177,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
@@ -167,6 +197,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
@@ -180,6 +212,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
@@ -189,42 +223,52 @@ public com.google.cloud.speech.v1.PhraseSet getPhraseSets(int index) {
    * repeated .google.cloud.speech.v1.PhraseSet phrase_sets = 1;
    */
   @java.lang.Override
-  public com.google.cloud.speech.v1.PhraseSetOrBuilder getPhraseSetsOrBuilder(
-      int index) {
+  public com.google.cloud.speech.v1.PhraseSetOrBuilder getPhraseSetsOrBuilder(int index) {
     return phraseSets_.get(index);
   }
 
   public static final int PHRASE_SET_REFERENCES_FIELD_NUMBER = 2;
   private com.google.protobuf.LazyStringList phraseSetReferences_;
   /**
+   *
+   *
    * 
    * A collection of phrase set resource names to use.
    * 
* - * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } + * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } + * + * * @return A list containing the phraseSetReferences. */ - public com.google.protobuf.ProtocolStringList - getPhraseSetReferencesList() { + public com.google.protobuf.ProtocolStringList getPhraseSetReferencesList() { return phraseSetReferences_; } /** + * + * *
    * A collection of phrase set resource names to use.
    * 
* - * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } + * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } + * + * * @return The count of phraseSetReferences. */ public int getPhraseSetReferencesCount() { return phraseSetReferences_.size(); } /** + * + * *
    * A collection of phrase set resource names to use.
    * 
* - * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } + * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } + * + * * @param index The index of the element to return. * @return The phraseSetReferences at the given index. */ @@ -232,22 +276,27 @@ public java.lang.String getPhraseSetReferences(int index) { return phraseSetReferences_.get(index); } /** + * + * *
    * A collection of phrase set resource names to use.
    * 
* - * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } + * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } + * + * * @param index The index of the value to return. * @return The bytes of the phraseSetReferences at the given index. */ - public com.google.protobuf.ByteString - getPhraseSetReferencesBytes(int index) { + public com.google.protobuf.ByteString getPhraseSetReferencesBytes(int index) { return phraseSetReferences_.getByteString(index); } public static final int CUSTOM_CLASSES_FIELD_NUMBER = 3; private java.util.List customClasses_; /** + * + * *
    * A collection of custom classes. To specify the classes inline, leave the
    * class' `name` blank and fill in the rest of its fields, giving it a unique
@@ -262,6 +311,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
@@ -272,11 +323,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
@@ -291,6 +344,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
@@ -305,6 +360,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
@@ -315,12 +372,12 @@ public com.google.cloud.speech.v1.CustomClass getCustomClasses(int index) {
    * repeated .google.cloud.speech.v1.CustomClass custom_classes = 3;
    */
   @java.lang.Override
-  public com.google.cloud.speech.v1.CustomClassOrBuilder getCustomClassesOrBuilder(
-      int index) {
+  public com.google.cloud.speech.v1.CustomClassOrBuilder getCustomClassesOrBuilder(int index) {
     return customClasses_.get(index);
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -332,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 {
     for (int i = 0; i < phraseSets_.size(); i++) {
       output.writeMessage(1, phraseSets_.get(i));
     }
@@ -353,8 +409,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;
@@ -365,8 +420,7 @@ public int getSerializedSize() {
       size += 1 * getPhraseSetReferencesList().size();
     }
     for (int i = 0; i < customClasses_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(3, customClasses_.get(i));
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, customClasses_.get(i));
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -376,19 +430,17 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.speech.v1.SpeechAdaptation)) {
       return super.equals(obj);
     }
-    com.google.cloud.speech.v1.SpeechAdaptation other = (com.google.cloud.speech.v1.SpeechAdaptation) obj;
+    com.google.cloud.speech.v1.SpeechAdaptation other =
+        (com.google.cloud.speech.v1.SpeechAdaptation) obj;
 
-    if (!getPhraseSetsList()
-        .equals(other.getPhraseSetsList())) return false;
-    if (!getPhraseSetReferencesList()
-        .equals(other.getPhraseSetReferencesList())) return false;
-    if (!getCustomClassesList()
-        .equals(other.getCustomClassesList())) return false;
+    if (!getPhraseSetsList().equals(other.getPhraseSetsList())) return false;
+    if (!getPhraseSetReferencesList().equals(other.getPhraseSetReferencesList())) return false;
+    if (!getCustomClassesList().equals(other.getCustomClassesList())) return false;
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
   }
@@ -417,118 +469,127 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.cloud.speech.v1.SpeechAdaptation parseFrom(
-      java.nio.ByteBuffer data)
+  public static com.google.cloud.speech.v1.SpeechAdaptation parseFrom(java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.speech.v1.SpeechAdaptation parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.speech.v1.SpeechAdaptation parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.speech.v1.SpeechAdaptation parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.speech.v1.SpeechAdaptation parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.speech.v1.SpeechAdaptation parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.speech.v1.SpeechAdaptation parseFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.speech.v1.SpeechAdaptation parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
-  public static com.google.cloud.speech.v1.SpeechAdaptation parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+
+  public static com.google.cloud.speech.v1.SpeechAdaptation parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.speech.v1.SpeechAdaptation parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.speech.v1.SpeechAdaptation parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.speech.v1.SpeechAdaptation parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
+
   public static Builder newBuilder(com.google.cloud.speech.v1.SpeechAdaptation prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * Speech adaptation configuration.
    * 
* * Protobuf type {@code google.cloud.speech.v1.SpeechAdaptation} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1.SpeechAdaptation) com.google.cloud.speech.v1.SpeechAdaptationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1.SpeechResourceProto.internal_static_google_cloud_speech_v1_SpeechAdaptation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1.SpeechResourceProto + .internal_static_google_cloud_speech_v1_SpeechAdaptation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1.SpeechResourceProto.internal_static_google_cloud_speech_v1_SpeechAdaptation_fieldAccessorTable + return com.google.cloud.speech.v1.SpeechResourceProto + .internal_static_google_cloud_speech_v1_SpeechAdaptation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1.SpeechAdaptation.class, com.google.cloud.speech.v1.SpeechAdaptation.Builder.class); + com.google.cloud.speech.v1.SpeechAdaptation.class, + com.google.cloud.speech.v1.SpeechAdaptation.Builder.class); } // Construct using com.google.cloud.speech.v1.SpeechAdaptation.newBuilder() @@ -536,18 +597,18 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getPhraseSetsFieldBuilder(); getCustomClassesFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -569,9 +630,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 @@ -590,7 +651,8 @@ public com.google.cloud.speech.v1.SpeechAdaptation build() { @java.lang.Override public com.google.cloud.speech.v1.SpeechAdaptation buildPartial() { - com.google.cloud.speech.v1.SpeechAdaptation result = new com.google.cloud.speech.v1.SpeechAdaptation(this); + com.google.cloud.speech.v1.SpeechAdaptation result = + new com.google.cloud.speech.v1.SpeechAdaptation(this); int from_bitField0_ = bitField0_; if (phraseSetsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -623,38 +685,39 @@ public com.google.cloud.speech.v1.SpeechAdaptation buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.speech.v1.SpeechAdaptation) { - return mergeFrom((com.google.cloud.speech.v1.SpeechAdaptation)other); + return mergeFrom((com.google.cloud.speech.v1.SpeechAdaptation) other); } else { super.mergeFrom(other); return this; @@ -681,9 +744,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_); } @@ -717,9 +781,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_); } @@ -753,21 +818,28 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.util.List phraseSets_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensurePhraseSetsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { phraseSets_ = new java.util.ArrayList(phraseSets_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.speech.v1.PhraseSet, com.google.cloud.speech.v1.PhraseSet.Builder, com.google.cloud.speech.v1.PhraseSetOrBuilder> phraseSetsBuilder_; + com.google.cloud.speech.v1.PhraseSet, + com.google.cloud.speech.v1.PhraseSet.Builder, + com.google.cloud.speech.v1.PhraseSetOrBuilder> + phraseSetsBuilder_; /** + * + * *
      * A collection of phrase sets. To specify the hints inline, leave the
      * phrase set's `name` blank and fill in the rest of its fields. Any
@@ -784,6 +856,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
@@ -800,6 +874,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
@@ -816,6 +892,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
@@ -824,8 +902,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();
@@ -839,6 +916,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
@@ -859,6 +938,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
@@ -881,6 +962,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
@@ -889,8 +972,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();
@@ -904,6 +986,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
@@ -912,8 +996,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());
@@ -924,6 +1007,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
@@ -944,6 +1029,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
@@ -956,8 +1043,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);
@@ -965,6 +1051,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
@@ -984,6 +1072,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
@@ -1003,6 +1093,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
@@ -1011,11 +1103,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
@@ -1024,14 +1117,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
@@ -1040,8 +1135,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 {
@@ -1049,6 +1144,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
@@ -1058,10 +1155,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
@@ -1070,12 +1169,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
@@ -1084,61 +1184,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. */ @@ -1146,80 +1261,95 @@ public java.lang.String getPhraseSetReferences(int index) { return phraseSetReferences_.get(index); } /** + * + * *
      * A collection of phrase set resource names to use.
      * 
* - * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } + * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } + * + * * @param index The index of the value to return. * @return The bytes of the phraseSetReferences at the given index. */ - public com.google.protobuf.ByteString - getPhraseSetReferencesBytes(int index) { + public com.google.protobuf.ByteString getPhraseSetReferencesBytes(int index) { return phraseSetReferences_.getByteString(index); } /** + * + * *
      * A collection of phrase set resource names to use.
      * 
* - * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } + * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } + * + * * @param index The index to set the value at. * @param value The phraseSetReferences to set. * @return This builder for chaining. */ - public Builder setPhraseSetReferences( - int index, java.lang.String value) { + public Builder setPhraseSetReferences(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensurePhraseSetReferencesIsMutable(); + throw new NullPointerException(); + } + ensurePhraseSetReferencesIsMutable(); phraseSetReferences_.set(index, value); onChanged(); return this; } /** + * + * *
      * A collection of phrase set resource names to use.
      * 
* - * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } + * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } + * + * * @param value The phraseSetReferences to add. * @return This builder for chaining. */ - public Builder addPhraseSetReferences( - java.lang.String value) { + public Builder addPhraseSetReferences(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensurePhraseSetReferencesIsMutable(); + throw new NullPointerException(); + } + ensurePhraseSetReferencesIsMutable(); phraseSetReferences_.add(value); onChanged(); return this; } /** + * + * *
      * A collection of phrase set resource names to use.
      * 
* - * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } + * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } + * + * * @param values The phraseSetReferences to add. * @return This builder for chaining. */ - public Builder addAllPhraseSetReferences( - java.lang.Iterable values) { + public Builder addAllPhraseSetReferences(java.lang.Iterable values) { ensurePhraseSetReferencesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, phraseSetReferences_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, phraseSetReferences_); onChanged(); return this; } /** + * + * *
      * A collection of phrase set resource names to use.
      * 
* - * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } + * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearPhraseSetReferences() { @@ -1229,20 +1359,23 @@ public Builder clearPhraseSetReferences() { return this; } /** + * + * *
      * A collection of phrase set resource names to use.
      * 
* - * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } + * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } + * + * * @param value The bytes of the phraseSetReferences to add. * @return This builder for chaining. */ - public Builder addPhraseSetReferencesBytes( - com.google.protobuf.ByteString value) { + public Builder addPhraseSetReferencesBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensurePhraseSetReferencesIsMutable(); phraseSetReferences_.add(value); onChanged(); @@ -1250,18 +1383,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
@@ -1279,6 +1419,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
@@ -1296,6 +1438,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
@@ -1313,6 +1457,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
@@ -1322,8 +1468,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();
@@ -1337,6 +1482,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
@@ -1358,6 +1505,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
@@ -1381,6 +1530,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
@@ -1390,8 +1541,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();
@@ -1405,6 +1555,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
@@ -1426,6 +1578,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
@@ -1447,6 +1601,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
@@ -1460,8 +1616,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);
@@ -1469,6 +1624,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
@@ -1489,6 +1646,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
@@ -1509,6 +1668,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
@@ -1518,11 +1679,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
@@ -1532,14 +1694,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
@@ -1549,8 +1713,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 {
@@ -1558,6 +1722,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
@@ -1568,10 +1734,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
@@ -1581,12 +1749,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
@@ -1596,16 +1765,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(),
@@ -1614,9 +1789,9 @@ public com.google.cloud.speech.v1.CustomClass.Builder addCustomClassesBuilder(
       }
       return customClassesBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1626,12 +1801,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();
   }
@@ -1640,16 +1815,16 @@ public static com.google.cloud.speech.v1.SpeechAdaptation getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public SpeechAdaptation parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return new SpeechAdaptation(input, extensionRegistry);
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public SpeechAdaptation parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          return new SpeechAdaptation(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1664,6 +1839,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.speech.v1.SpeechAdaptation getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechAdaptationOrBuilder.java b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechAdaptationOrBuilder.java
similarity index 79%
rename from owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechAdaptationOrBuilder.java
rename to proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechAdaptationOrBuilder.java
index b40c4c5a0..7ac546836 100644
--- a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechAdaptationOrBuilder.java
+++ b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechAdaptationOrBuilder.java
@@ -1,13 +1,31 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/speech/v1/resource.proto
 
 package com.google.cloud.speech.v1;
 
-public interface SpeechAdaptationOrBuilder extends
+public interface SpeechAdaptationOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1.SpeechAdaptation)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * A collection of phrase sets. To specify the hints inline, leave the
    * phrase set's `name` blank and fill in the rest of its fields. Any
@@ -16,9 +34,10 @@ public interface SpeechAdaptationOrBuilder extends
    *
    * repeated .google.cloud.speech.v1.PhraseSet phrase_sets = 1;
    */
-  java.util.List 
-      getPhraseSetsList();
+  java.util.List getPhraseSetsList();
   /**
+   *
+   *
    * 
    * A collection of phrase sets. To specify the hints inline, leave the
    * phrase set's `name` blank and fill in the rest of its fields. Any
@@ -29,6 +48,8 @@ public interface SpeechAdaptationOrBuilder extends
    */
   com.google.cloud.speech.v1.PhraseSet getPhraseSets(int index);
   /**
+   *
+   *
    * 
    * A collection of phrase sets. To specify the hints inline, leave the
    * phrase set's `name` blank and fill in the rest of its fields. Any
@@ -39,6 +60,8 @@ public interface SpeechAdaptationOrBuilder extends
    */
   int getPhraseSetsCount();
   /**
+   *
+   *
    * 
    * A collection of phrase sets. To specify the hints inline, leave the
    * phrase set's `name` blank and fill in the rest of its fields. Any
@@ -47,9 +70,11 @@ public interface SpeechAdaptationOrBuilder extends
    *
    * repeated .google.cloud.speech.v1.PhraseSet phrase_sets = 1;
    */
-  java.util.List 
+  java.util.List
       getPhraseSetsOrBuilderList();
   /**
+   *
+   *
    * 
    * A collection of phrase sets. To specify the hints inline, leave the
    * phrase set's `name` blank and fill in the rest of its fields. Any
@@ -58,51 +83,66 @@ public interface SpeechAdaptationOrBuilder extends
    *
    * repeated .google.cloud.speech.v1.PhraseSet phrase_sets = 1;
    */
-  com.google.cloud.speech.v1.PhraseSetOrBuilder getPhraseSetsOrBuilder(
-      int index);
+  com.google.cloud.speech.v1.PhraseSetOrBuilder getPhraseSetsOrBuilder(int index);
 
   /**
+   *
+   *
    * 
    * A collection of phrase set resource names to use.
    * 
* - * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } + * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } + * + * * @return A list containing the phraseSetReferences. */ - java.util.List - getPhraseSetReferencesList(); + java.util.List getPhraseSetReferencesList(); /** + * + * *
    * A collection of phrase set resource names to use.
    * 
* - * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } + * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } + * + * * @return The count of phraseSetReferences. */ int getPhraseSetReferencesCount(); /** + * + * *
    * A collection of phrase set resource names to use.
    * 
* - * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } + * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } + * + * * @param index The index of the element to return. * @return The phraseSetReferences at the given index. */ java.lang.String getPhraseSetReferences(int index); /** + * + * *
    * A collection of phrase set resource names to use.
    * 
* - * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } + * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } + * + * * @param index The index of the value to return. * @return The bytes of the phraseSetReferences at the given index. */ - com.google.protobuf.ByteString - getPhraseSetReferencesBytes(int index); + com.google.protobuf.ByteString getPhraseSetReferencesBytes(int index); /** + * + * *
    * A collection of custom classes. To specify the classes inline, leave the
    * class' `name` blank and fill in the rest of its fields, giving it a unique
@@ -112,9 +152,10 @@ com.google.cloud.speech.v1.PhraseSetOrBuilder getPhraseSetsOrBuilder(
    *
    * repeated .google.cloud.speech.v1.CustomClass custom_classes = 3;
    */
-  java.util.List 
-      getCustomClassesList();
+  java.util.List getCustomClassesList();
   /**
+   *
+   *
    * 
    * A collection of custom classes. To specify the classes inline, leave the
    * class' `name` blank and fill in the rest of its fields, giving it a unique
@@ -126,6 +167,8 @@ com.google.cloud.speech.v1.PhraseSetOrBuilder getPhraseSetsOrBuilder(
    */
   com.google.cloud.speech.v1.CustomClass getCustomClasses(int index);
   /**
+   *
+   *
    * 
    * A collection of custom classes. To specify the classes inline, leave the
    * class' `name` blank and fill in the rest of its fields, giving it a unique
@@ -137,6 +180,8 @@ com.google.cloud.speech.v1.PhraseSetOrBuilder getPhraseSetsOrBuilder(
    */
   int getCustomClassesCount();
   /**
+   *
+   *
    * 
    * A collection of custom classes. To specify the classes inline, leave the
    * class' `name` blank and fill in the rest of its fields, giving it a unique
@@ -146,9 +191,11 @@ com.google.cloud.speech.v1.PhraseSetOrBuilder getPhraseSetsOrBuilder(
    *
    * repeated .google.cloud.speech.v1.CustomClass custom_classes = 3;
    */
-  java.util.List 
+  java.util.List
       getCustomClassesOrBuilderList();
   /**
+   *
+   *
    * 
    * A collection of custom classes. To specify the classes inline, leave the
    * class' `name` blank and fill in the rest of its fields, giving it a unique
@@ -158,6 +205,5 @@ com.google.cloud.speech.v1.PhraseSetOrBuilder getPhraseSetsOrBuilder(
    *
    * repeated .google.cloud.speech.v1.CustomClass custom_classes = 3;
    */
-  com.google.cloud.speech.v1.CustomClassOrBuilder getCustomClassesOrBuilder(
-      int index);
+  com.google.cloud.speech.v1.CustomClassOrBuilder getCustomClassesOrBuilder(int index);
 }
diff --git a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechContext.java b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechContext.java
similarity index 80%
rename from owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechContext.java
rename to proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechContext.java
index b410dda75..38e2523de 100644
--- a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechContext.java
+++ b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/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/v1/cloud_speech.proto
 
 package com.google.cloud.speech.v1;
 
 /**
+ *
+ *
  * 
  * Provides "hints" to the speech recognizer to favor specific words and phrases
  * in the results.
@@ -11,31 +28,31 @@
  *
  * Protobuf type {@code google.cloud.speech.v1.SpeechContext}
  */
-public final class SpeechContext extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class SpeechContext extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.speech.v1.SpeechContext)
     SpeechContextOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use SpeechContext.newBuilder() to construct.
   private SpeechContext(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private SpeechContext() {
     phrases_ = com.google.protobuf.LazyStringArrayList.EMPTY;
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new SpeechContext();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private SpeechContext(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -55,34 +72,34 @@ private SpeechContext(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              phrases_ = new com.google.protobuf.LazyStringArrayList();
-              mutable_bitField0_ |= 0x00000001;
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                phrases_ = new com.google.protobuf.LazyStringArrayList();
+                mutable_bitField0_ |= 0x00000001;
+              }
+              phrases_.add(s);
+              break;
             }
-            phrases_.add(s);
-            break;
-          }
-          case 37: {
-
-            boost_ = input.readFloat();
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          case 37:
+            {
+              boost_ = input.readFloat();
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         phrases_ = phrases_.getUnmodifiableView();
@@ -91,22 +108,27 @@ private SpeechContext(
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_SpeechContext_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.speech.v1.SpeechProto
+        .internal_static_google_cloud_speech_v1_SpeechContext_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_SpeechContext_fieldAccessorTable
+    return com.google.cloud.speech.v1.SpeechProto
+        .internal_static_google_cloud_speech_v1_SpeechContext_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v1.SpeechContext.class, com.google.cloud.speech.v1.SpeechContext.Builder.class);
+            com.google.cloud.speech.v1.SpeechContext.class,
+            com.google.cloud.speech.v1.SpeechContext.Builder.class);
   }
 
   public static final int PHRASES_FIELD_NUMBER = 1;
   private com.google.protobuf.LazyStringList phrases_;
   /**
+   *
+   *
    * 
    * A list of strings containing words and phrases "hints" so that
    * the speech recognition is more likely to recognize them. This can be used
@@ -122,13 +144,15 @@ private SpeechContext(
    * 
* * repeated string phrases = 1; + * * @return A list containing the phrases. */ - public com.google.protobuf.ProtocolStringList - getPhrasesList() { + public com.google.protobuf.ProtocolStringList getPhrasesList() { return phrases_; } /** + * + * *
    * A list of strings containing words and phrases "hints" so that
    * the speech recognition is more likely to recognize them. This can be used
@@ -144,12 +168,15 @@ private SpeechContext(
    * 
* * repeated string phrases = 1; + * * @return The count of phrases. */ public int getPhrasesCount() { return phrases_.size(); } /** + * + * *
    * A list of strings containing words and phrases "hints" so that
    * the speech recognition is more likely to recognize them. This can be used
@@ -165,6 +192,7 @@ public int getPhrasesCount() {
    * 
* * repeated string phrases = 1; + * * @param index The index of the element to return. * @return The phrases at the given index. */ @@ -172,6 +200,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
@@ -187,17 +217,19 @@ public java.lang.String getPhrases(int index) {
    * 
* * repeated string phrases = 1; + * * @param index The index of the value to return. * @return The bytes of the phrases at the given index. */ - public com.google.protobuf.ByteString - getPhrasesBytes(int index) { + public com.google.protobuf.ByteString getPhrasesBytes(int index) { return phrases_.getByteString(index); } public static final int BOOST_FIELD_NUMBER = 4; private float boost_; /** + * + * *
    * Hint Boost. Positive value will increase the probability that a specific
    * phrase will be recognized over other similar sounding phrases. The higher
@@ -210,6 +242,7 @@ public java.lang.String getPhrases(int index) {
    * 
* * float boost = 4; + * * @return The boost. */ @java.lang.Override @@ -218,6 +251,7 @@ public float getBoost() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -229,8 +263,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < phrases_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, phrases_.getRaw(i)); } @@ -255,8 +288,7 @@ public int getSerializedSize() { size += 1 * getPhrasesList().size(); } if (boost_ != 0F) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(4, boost_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(4, boost_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -266,18 +298,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1.SpeechContext)) { return super.equals(obj); } com.google.cloud.speech.v1.SpeechContext other = (com.google.cloud.speech.v1.SpeechContext) obj; - if (!getPhrasesList() - .equals(other.getPhrasesList())) return false; + if (!getPhrasesList().equals(other.getPhrasesList())) return false; if (java.lang.Float.floatToIntBits(getBoost()) - != java.lang.Float.floatToIntBits( - other.getBoost())) return false; + != java.lang.Float.floatToIntBits(other.getBoost())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -294,104 +324,110 @@ public int hashCode() { hash = (53 * hash) + getPhrasesList().hashCode(); } hash = (37 * hash) + BOOST_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getBoost()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getBoost()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.speech.v1.SpeechContext parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.speech.v1.SpeechContext parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1.SpeechContext parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1.SpeechContext parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1.SpeechContext parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1.SpeechContext parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1.SpeechContext parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1.SpeechContext parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1.SpeechContext parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1.SpeechContext parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1.SpeechContext parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1.SpeechContext parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.speech.v1.SpeechContext parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1.SpeechContext parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.speech.v1.SpeechContext prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Provides "hints" to the speech recognizer to favor specific words and phrases
    * in the results.
@@ -399,21 +435,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.speech.v1.SpeechContext}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1.SpeechContext)
       com.google.cloud.speech.v1.SpeechContextOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_SpeechContext_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.speech.v1.SpeechProto
+          .internal_static_google_cloud_speech_v1_SpeechContext_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_SpeechContext_fieldAccessorTable
+      return com.google.cloud.speech.v1.SpeechProto
+          .internal_static_google_cloud_speech_v1_SpeechContext_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v1.SpeechContext.class, com.google.cloud.speech.v1.SpeechContext.Builder.class);
+              com.google.cloud.speech.v1.SpeechContext.class,
+              com.google.cloud.speech.v1.SpeechContext.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v1.SpeechContext.newBuilder()
@@ -421,16 +459,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -442,9 +479,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_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
@@ -463,7 +500,8 @@ public com.google.cloud.speech.v1.SpeechContext build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v1.SpeechContext buildPartial() {
-      com.google.cloud.speech.v1.SpeechContext result = new com.google.cloud.speech.v1.SpeechContext(this);
+      com.google.cloud.speech.v1.SpeechContext result =
+          new com.google.cloud.speech.v1.SpeechContext(this);
       int from_bitField0_ = bitField0_;
       if (((bitField0_ & 0x00000001) != 0)) {
         phrases_ = phrases_.getUnmodifiableView();
@@ -479,38 +517,39 @@ public com.google.cloud.speech.v1.SpeechContext buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.speech.v1.SpeechContext) {
-        return mergeFrom((com.google.cloud.speech.v1.SpeechContext)other);
+        return mergeFrom((com.google.cloud.speech.v1.SpeechContext) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -560,16 +599,21 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
-    private com.google.protobuf.LazyStringList phrases_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+    private com.google.protobuf.LazyStringList phrases_ =
+        com.google.protobuf.LazyStringArrayList.EMPTY;
+
     private void ensurePhrasesIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
         phrases_ = new com.google.protobuf.LazyStringArrayList(phrases_);
         bitField0_ |= 0x00000001;
-       }
+      }
     }
     /**
+     *
+     *
      * 
      * A list of strings containing words and phrases "hints" so that
      * the speech recognition is more likely to recognize them. This can be used
@@ -585,13 +629,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
@@ -607,12 +653,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
@@ -628,6 +677,7 @@ public int getPhrasesCount() {
      * 
* * repeated string phrases = 1; + * * @param index The index of the element to return. * @return The phrases at the given index. */ @@ -635,6 +685,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
@@ -650,14 +702,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
@@ -673,21 +727,23 @@ public java.lang.String getPhrases(int index) {
      * 
* * repeated string phrases = 1; + * * @param index The index to set the value at. * @param value The phrases to set. * @return This builder for chaining. */ - public Builder setPhrases( - int index, java.lang.String value) { + public Builder setPhrases(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensurePhrasesIsMutable(); + throw new NullPointerException(); + } + ensurePhrasesIsMutable(); phrases_.set(index, value); onChanged(); return this; } /** + * + * *
      * A list of strings containing words and phrases "hints" so that
      * the speech recognition is more likely to recognize them. This can be used
@@ -703,20 +759,22 @@ public Builder setPhrases(
      * 
* * repeated string phrases = 1; + * * @param value The phrases to add. * @return This builder for chaining. */ - public Builder addPhrases( - java.lang.String value) { + public Builder addPhrases(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensurePhrasesIsMutable(); + throw new NullPointerException(); + } + ensurePhrasesIsMutable(); phrases_.add(value); onChanged(); return this; } /** + * + * *
      * A list of strings containing words and phrases "hints" so that
      * the speech recognition is more likely to recognize them. This can be used
@@ -732,18 +790,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
@@ -759,6 +818,7 @@ public Builder addAllPhrases(
      * 
* * repeated string phrases = 1; + * * @return This builder for chaining. */ public Builder clearPhrases() { @@ -768,6 +828,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
@@ -783,23 +845,25 @@ public Builder clearPhrases() {
      * 
* * repeated string phrases = 1; + * * @param value The bytes of the phrases to add. * @return This builder for chaining. */ - public Builder addPhrasesBytes( - com.google.protobuf.ByteString value) { + public Builder addPhrasesBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensurePhrasesIsMutable(); phrases_.add(value); onChanged(); return this; } - private float boost_ ; + private float boost_; /** + * + * *
      * Hint Boost. Positive value will increase the probability that a specific
      * phrase will be recognized over other similar sounding phrases. The higher
@@ -812,6 +876,7 @@ public Builder addPhrasesBytes(
      * 
* * float boost = 4; + * * @return The boost. */ @java.lang.Override @@ -819,6 +884,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
@@ -831,16 +898,19 @@ public float getBoost() {
      * 
* * float boost = 4; + * * @param value The boost to set. * @return This builder for chaining. */ public Builder setBoost(float value) { - + boost_ = value; onChanged(); return this; } /** + * + * *
      * Hint Boost. Positive value will increase the probability that a specific
      * phrase will be recognized over other similar sounding phrases. The higher
@@ -853,17 +923,18 @@ public Builder setBoost(float value) {
      * 
* * float boost = 4; + * * @return This builder for chaining. */ public Builder clearBoost() { - + boost_ = 0F; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -873,12 +944,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(); } @@ -887,16 +958,16 @@ public static com.google.cloud.speech.v1.SpeechContext getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SpeechContext parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SpeechContext(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SpeechContext parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SpeechContext(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -911,6 +982,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1.SpeechContext getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechContextOrBuilder.java b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechContextOrBuilder.java similarity index 85% rename from owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechContextOrBuilder.java rename to proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechContextOrBuilder.java index 97fbd87c3..a529f0428 100644 --- a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechContextOrBuilder.java +++ b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechContextOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1/cloud_speech.proto package com.google.cloud.speech.v1; -public interface SpeechContextOrBuilder extends +public interface SpeechContextOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1.SpeechContext) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * A list of strings containing words and phrases "hints" so that
    * the speech recognition is more likely to recognize them. This can be used
@@ -23,11 +41,13 @@ public interface SpeechContextOrBuilder extends
    * 
* * repeated string phrases = 1; + * * @return A list containing the phrases. */ - java.util.List - getPhrasesList(); + java.util.List getPhrasesList(); /** + * + * *
    * A list of strings containing words and phrases "hints" so that
    * the speech recognition is more likely to recognize them. This can be used
@@ -43,10 +63,13 @@ public interface SpeechContextOrBuilder extends
    * 
* * repeated string phrases = 1; + * * @return The count of phrases. */ int getPhrasesCount(); /** + * + * *
    * A list of strings containing words and phrases "hints" so that
    * the speech recognition is more likely to recognize them. This can be used
@@ -62,11 +85,14 @@ public interface SpeechContextOrBuilder extends
    * 
* * repeated string phrases = 1; + * * @param index The index of the element to return. * @return The phrases at the given index. */ java.lang.String getPhrases(int index); /** + * + * *
    * A list of strings containing words and phrases "hints" so that
    * the speech recognition is more likely to recognize them. This can be used
@@ -82,13 +108,15 @@ public interface SpeechContextOrBuilder extends
    * 
* * repeated string phrases = 1; + * * @param index The index of the value to return. * @return The bytes of the phrases at the given index. */ - com.google.protobuf.ByteString - getPhrasesBytes(int index); + com.google.protobuf.ByteString getPhrasesBytes(int index); /** + * + * *
    * Hint Boost. Positive value will increase the probability that a specific
    * phrase will be recognized over other similar sounding phrases. The higher
@@ -101,6 +129,7 @@ public interface SpeechContextOrBuilder extends
    * 
* * float boost = 4; + * * @return The boost. */ float getBoost(); diff --git a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechProto.java b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechProto.java new file mode 100644 index 000000000..3fa71d021 --- /dev/null +++ b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechProto.java @@ -0,0 +1,463 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/speech/v1/cloud_speech.proto + +package com.google.cloud.speech.v1; + +public final class SpeechProto { + private SpeechProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1_RecognizeRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1_RecognizeRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1_LongRunningRecognizeRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1_LongRunningRecognizeRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1_TranscriptOutputConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1_TranscriptOutputConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1_StreamingRecognizeRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1_StreamingRecognizeRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1_StreamingRecognitionConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1_StreamingRecognitionConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1_RecognitionConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1_RecognitionConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1_SpeakerDiarizationConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1_SpeakerDiarizationConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1_RecognitionMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1_RecognitionMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1_SpeechContext_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1_SpeechContext_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1_RecognitionAudio_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1_RecognitionAudio_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1_RecognizeResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1_RecognizeResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1_LongRunningRecognizeResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1_LongRunningRecognizeResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1_LongRunningRecognizeMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1_LongRunningRecognizeMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1_StreamingRecognizeResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1_StreamingRecognizeResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1_StreamingRecognitionResult_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1_StreamingRecognitionResult_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1_SpeechRecognitionResult_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1_SpeechRecognitionResult_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1_SpeechRecognitionAlternative_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1_SpeechRecognitionAlternative_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1_WordInfo_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1_WordInfo_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n)google/cloud/speech/v1/cloud_speech.pr" + + "oto\022\026google.cloud.speech.v1\032\034google/api/" + + "annotations.proto\032\027google/api/client.pro" + + "to\032\037google/api/field_behavior.proto\032%goo" + + "gle/cloud/speech/v1/resource.proto\032#goog" + + "le/longrunning/operations.proto\032\036google/" + + "protobuf/duration.proto\032\037google/protobuf" + + "/timestamp.proto\032\036google/protobuf/wrappe" + + "rs.proto\032\027google/rpc/status.proto\"\220\001\n\020Re" + + "cognizeRequest\022>\n\006config\030\001 \001(\0132).google." + + "cloud.speech.v1.RecognitionConfigB\003\340A\002\022<" + + "\n\005audio\030\002 \001(\0132(.google.cloud.speech.v1.R" + + "ecognitionAudioB\003\340A\002\"\347\001\n\033LongRunningReco" + + "gnizeRequest\022>\n\006config\030\001 \001(\0132).google.cl" + + "oud.speech.v1.RecognitionConfigB\003\340A\002\022<\n\005" + + "audio\030\002 \001(\0132(.google.cloud.speech.v1.Rec" + + "ognitionAudioB\003\340A\002\022J\n\routput_config\030\004 \001(" + + "\0132..google.cloud.speech.v1.TranscriptOut" + + "putConfigB\003\340A\001\":\n\026TranscriptOutputConfig" + + "\022\021\n\007gcs_uri\030\001 \001(\tH\000B\r\n\013output_type\"\231\001\n\031S" + + "treamingRecognizeRequest\022N\n\020streaming_co" + + "nfig\030\001 \001(\01322.google.cloud.speech.v1.Stre" + + "amingRecognitionConfigH\000\022\027\n\raudio_conten" + + "t\030\002 \001(\014H\000B\023\n\021streaming_request\"\217\001\n\032Strea" + + "mingRecognitionConfig\022>\n\006config\030\001 \001(\0132)." + + "google.cloud.speech.v1.RecognitionConfig" + + "B\003\340A\002\022\030\n\020single_utterance\030\002 \001(\010\022\027\n\017inter" + + "im_results\030\003 \001(\010\"\351\007\n\021RecognitionConfig\022I" + + "\n\010encoding\030\001 \001(\01627.google.cloud.speech.v" + + "1.RecognitionConfig.AudioEncoding\022\031\n\021sam" + + "ple_rate_hertz\030\002 \001(\005\022\033\n\023audio_channel_co" + + "unt\030\007 \001(\005\022/\n\'enable_separate_recognition" + + "_per_channel\030\014 \001(\010\022\032\n\rlanguage_code\030\003 \001(" + + "\tB\003\340A\002\022\"\n\032alternative_language_codes\030\022 \003" + + "(\t\022\030\n\020max_alternatives\030\004 \001(\005\022\030\n\020profanit" + + "y_filter\030\005 \001(\010\022<\n\nadaptation\030\024 \001(\0132(.goo" + + "gle.cloud.speech.v1.SpeechAdaptation\022>\n\017" + + "speech_contexts\030\006 \003(\0132%.google.cloud.spe" + + "ech.v1.SpeechContext\022 \n\030enable_word_time" + + "_offsets\030\010 \001(\010\022\036\n\026enable_word_confidence" + + "\030\017 \001(\010\022$\n\034enable_automatic_punctuation\030\013" + + " \001(\010\022=\n\031enable_spoken_punctuation\030\026 \001(\0132" + + "\032.google.protobuf.BoolValue\0228\n\024enable_sp" + + "oken_emojis\030\027 \001(\0132\032.google.protobuf.Bool" + + "Value\022L\n\022diarization_config\030\023 \001(\01320.goog" + + "le.cloud.speech.v1.SpeakerDiarizationCon" + + "fig\022=\n\010metadata\030\t \001(\0132+.google.cloud.spe" + + "ech.v1.RecognitionMetadata\022\r\n\005model\030\r \001(" + + "\t\022\024\n\014use_enhanced\030\016 \001(\010\"\232\001\n\rAudioEncodin" + + "g\022\030\n\024ENCODING_UNSPECIFIED\020\000\022\014\n\010LINEAR16\020" + + "\001\022\010\n\004FLAC\020\002\022\t\n\005MULAW\020\003\022\007\n\003AMR\020\004\022\n\n\006AMR_W" + + "B\020\005\022\014\n\010OGG_OPUS\020\006\022\032\n\026SPEEX_WITH_HEADER_B" + + "YTE\020\007\022\r\n\tWEBM_OPUS\020\t\"\220\001\n\030SpeakerDiarizat" + + "ionConfig\022\"\n\032enable_speaker_diarization\030" + + "\001 \001(\010\022\031\n\021min_speaker_count\030\002 \001(\005\022\031\n\021max_" + + "speaker_count\030\003 \001(\005\022\032\n\013speaker_tag\030\005 \001(\005" + + "B\005\030\001\340A\003\"\240\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\"/\n\rSpeechCont" + + "ext\022\017\n\007phrases\030\001 \003(\t\022\r\n\005boost\030\004 \001(\002\"D\n\020R" + + "ecognitionAudio\022\021\n\007content\030\001 \001(\014H\000\022\r\n\003ur" + + "i\030\002 \001(\tH\000B\016\n\014audio_source\"\213\001\n\021RecognizeR" + + "esponse\022@\n\007results\030\002 \003(\0132/.google.cloud." + + "speech.v1.SpeechRecognitionResult\0224\n\021tot" + + "al_billed_time\030\003 \001(\0132\031.google.protobuf.D" + + "uration\"\207\002\n\034LongRunningRecognizeResponse" + + "\022@\n\007results\030\002 \003(\0132/.google.cloud.speech." + + "v1.SpeechRecognitionResult\0224\n\021total_bill" + + "ed_time\030\003 \001(\0132\031.google.protobuf.Duration" + + "\022E\n\routput_config\030\006 \001(\0132..google.cloud.s" + + "peech.v1.TranscriptOutputConfig\022(\n\014outpu" + + "t_error\030\007 \001(\0132\022.google.rpc.Status\"\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\"\347\002\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\"L\n\017SpeechEventType\022\034\n\030S" + + "PEECH_EVENT_UNSPECIFIED\020\000\022\033\n\027END_OF_SING" + + "LE_UTTERANCE\020\001\"\362\001\n\032StreamingRecognitionR" + + "esult\022J\n\014alternatives\030\001 \003(\01324.google.clo" + + "ud.speech.v1.SpeechRecognitionAlternativ" + + "e\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.protobu" + + "f.Duration\022\023\n\013channel_tag\030\005 \001(\005\022\032\n\rlangu" + + "age_code\030\006 \001(\tB\003\340A\003\"\312\001\n\027SpeechRecognitio" + + "nResult\022J\n\014alternatives\030\001 \003(\01324.google.c" + + "loud.speech.v1.SpeechRecognitionAlternat" + + "ive\022\023\n\013channel_tag\030\002 \001(\005\0222\n\017result_end_t" + + "ime\030\004 \001(\0132\031.google.protobuf.Duration\022\032\n\r" + + "language_code\030\005 \001(\tB\003\340A\003\"w\n\034SpeechRecogn" + + "itionAlternative\022\022\n\ntranscript\030\001 \001(\t\022\022\n\n" + + "confidence\030\002 \001(\002\022/\n\005words\030\003 \003(\0132 .google" + + ".cloud.speech.v1.WordInfo\"\242\001\n\010WordInfo\022-" + + "\n\nstart_time\030\001 \001(\0132\031.google.protobuf.Dur" + + "ation\022+\n\010end_time\030\002 \001(\0132\031.google.protobu" + + "f.Duration\022\014\n\004word\030\003 \001(\t\022\022\n\nconfidence\030\004" + + " \001(\002\022\030\n\013speaker_tag\030\005 \001(\005B\003\340A\0032\321\004\n\006Speec" + + "h\022\220\001\n\tRecognize\022(.google.cloud.speech.v1" + + ".RecognizeRequest\032).google.cloud.speech." + + "v1.RecognizeResponse\".\202\323\344\223\002\031\"\024/v1/speech" + + ":recognize:\001*\332A\014config,audio\022\344\001\n\024LongRun" + + "ningRecognize\0223.google.cloud.speech.v1.L" + + "ongRunningRecognizeRequest\032\035.google.long" + + "running.Operation\"x\202\323\344\223\002$\"\037/v1/speech:lo" + + "ngrunningrecognize:\001*\332A\014config,audio\312A<\n" + + "\034LongRunningRecognizeResponse\022\034LongRunni" + + "ngRecognizeMetadata\022\201\001\n\022StreamingRecogni" + + "ze\0221.google.cloud.speech.v1.StreamingRec" + + "ognizeRequest\0322.google.cloud.speech.v1.S" + + "treamingRecognizeResponse\"\000(\0010\001\032I\312A\025spee" + + "ch.googleapis.com\322A.https://www.googleap" + + "is.com/auth/cloud-platformBr\n\032com.google" + + ".cloud.speech.v1B\013SpeechProtoP\001Z * Alternative hypotheses (a.k.a. n-best list). *
* * Protobuf type {@code google.cloud.speech.v1.SpeechRecognitionAlternative} */ -public final class SpeechRecognitionAlternative extends - com.google.protobuf.GeneratedMessageV3 implements +public final class SpeechRecognitionAlternative extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v1.SpeechRecognitionAlternative) SpeechRecognitionAlternativeOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use SpeechRecognitionAlternative.newBuilder() to construct. private SpeechRecognitionAlternative(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private SpeechRecognitionAlternative() { transcript_ = ""; words_ = java.util.Collections.emptyList(); @@ -26,16 +44,15 @@ private SpeechRecognitionAlternative() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new SpeechRecognitionAlternative(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private SpeechRecognitionAlternative( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,40 +72,42 @@ private SpeechRecognitionAlternative( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - transcript_ = s; - break; - } - case 21: { + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - confidence_ = input.readFloat(); - break; - } - case 26: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - words_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + transcript_ = s; + break; } - words_.add( - input.readMessage(com.google.cloud.speech.v1.WordInfo.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 21: + { + confidence_ = input.readFloat(); + break; + } + case 26: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + words_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + words_.add( + input.readMessage( + com.google.cloud.speech.v1.WordInfo.parser(), extensionRegistry)); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { words_ = java.util.Collections.unmodifiableList(words_); @@ -97,27 +116,33 @@ private SpeechRecognitionAlternative( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_SpeechRecognitionAlternative_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1.SpeechProto + .internal_static_google_cloud_speech_v1_SpeechRecognitionAlternative_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_SpeechRecognitionAlternative_fieldAccessorTable + return com.google.cloud.speech.v1.SpeechProto + .internal_static_google_cloud_speech_v1_SpeechRecognitionAlternative_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1.SpeechRecognitionAlternative.class, com.google.cloud.speech.v1.SpeechRecognitionAlternative.Builder.class); + com.google.cloud.speech.v1.SpeechRecognitionAlternative.class, + com.google.cloud.speech.v1.SpeechRecognitionAlternative.Builder.class); } public static final int TRANSCRIPT_FIELD_NUMBER = 1; private volatile java.lang.Object transcript_; /** + * + * *
    * Transcript text representing the words that the user spoke.
    * 
* * string transcript = 1; + * * @return The transcript. */ @java.lang.Override @@ -126,29 +151,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 { @@ -159,6 +184,8 @@ public java.lang.String getTranscript() { public static final int CONFIDENCE_FIELD_NUMBER = 2; private float confidence_; /** + * + * *
    * The confidence estimate between 0.0 and 1.0. A higher number
    * indicates an estimated greater likelihood that the recognized words are
@@ -170,6 +197,7 @@ public java.lang.String getTranscript() {
    * 
* * float confidence = 2; + * * @return The confidence. */ @java.lang.Override @@ -180,6 +208,8 @@ public float getConfidence() { public static final int WORDS_FIELD_NUMBER = 3; private java.util.List words_; /** + * + * *
    * A list of word-specific information for each recognized word.
    * Note: When `enable_speaker_diarization` is true, you will see all the words
@@ -193,6 +223,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
@@ -202,11 +234,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
@@ -220,6 +254,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
@@ -233,6 +269,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
@@ -242,12 +280,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;
@@ -259,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 {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(transcript_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, transcript_);
     }
@@ -283,12 +320,10 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, transcript_);
     }
     if (confidence_ != 0F) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeFloatSize(2, confidence_);
+      size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, confidence_);
     }
     for (int i = 0; i < words_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(3, words_.get(i));
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, words_.get(i));
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -298,20 +333,18 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.speech.v1.SpeechRecognitionAlternative)) {
       return super.equals(obj);
     }
-    com.google.cloud.speech.v1.SpeechRecognitionAlternative other = (com.google.cloud.speech.v1.SpeechRecognitionAlternative) obj;
+    com.google.cloud.speech.v1.SpeechRecognitionAlternative other =
+        (com.google.cloud.speech.v1.SpeechRecognitionAlternative) obj;
 
-    if (!getTranscript()
-        .equals(other.getTranscript())) return false;
+    if (!getTranscript().equals(other.getTranscript())) return false;
     if (java.lang.Float.floatToIntBits(getConfidence())
-        != java.lang.Float.floatToIntBits(
-            other.getConfidence())) return false;
-    if (!getWordsList()
-        .equals(other.getWordsList())) return false;
+        != java.lang.Float.floatToIntBits(other.getConfidence())) return false;
+    if (!getWordsList().equals(other.getWordsList())) return false;
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
   }
@@ -326,8 +359,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();
@@ -338,117 +370,127 @@ public int hashCode() {
   }
 
   public static com.google.cloud.speech.v1.SpeechRecognitionAlternative parseFrom(
-      java.nio.ByteBuffer data)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.speech.v1.SpeechRecognitionAlternative parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.speech.v1.SpeechRecognitionAlternative parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.speech.v1.SpeechRecognitionAlternative parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.speech.v1.SpeechRecognitionAlternative parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.speech.v1.SpeechRecognitionAlternative parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.speech.v1.SpeechRecognitionAlternative parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.speech.v1.SpeechRecognitionAlternative parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.speech.v1.SpeechRecognitionAlternative parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
-  public static com.google.cloud.speech.v1.SpeechRecognitionAlternative parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+
+  public static com.google.cloud.speech.v1.SpeechRecognitionAlternative parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.speech.v1.SpeechRecognitionAlternative parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.speech.v1.SpeechRecognitionAlternative parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.speech.v1.SpeechRecognitionAlternative parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-  public static Builder newBuilder(com.google.cloud.speech.v1.SpeechRecognitionAlternative prototype) {
+
+  public static Builder newBuilder(
+      com.google.cloud.speech.v1.SpeechRecognitionAlternative prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * Alternative hypotheses (a.k.a. n-best list).
    * 
* * Protobuf type {@code google.cloud.speech.v1.SpeechRecognitionAlternative} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1.SpeechRecognitionAlternative) com.google.cloud.speech.v1.SpeechRecognitionAlternativeOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_SpeechRecognitionAlternative_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1.SpeechProto + .internal_static_google_cloud_speech_v1_SpeechRecognitionAlternative_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_SpeechRecognitionAlternative_fieldAccessorTable + return com.google.cloud.speech.v1.SpeechProto + .internal_static_google_cloud_speech_v1_SpeechRecognitionAlternative_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1.SpeechRecognitionAlternative.class, com.google.cloud.speech.v1.SpeechRecognitionAlternative.Builder.class); + com.google.cloud.speech.v1.SpeechRecognitionAlternative.class, + com.google.cloud.speech.v1.SpeechRecognitionAlternative.Builder.class); } // Construct using com.google.cloud.speech.v1.SpeechRecognitionAlternative.newBuilder() @@ -456,17 +498,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getWordsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -484,9 +526,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 @@ -505,7 +547,8 @@ public com.google.cloud.speech.v1.SpeechRecognitionAlternative build() { @java.lang.Override public com.google.cloud.speech.v1.SpeechRecognitionAlternative buildPartial() { - com.google.cloud.speech.v1.SpeechRecognitionAlternative result = new com.google.cloud.speech.v1.SpeechRecognitionAlternative(this); + com.google.cloud.speech.v1.SpeechRecognitionAlternative result = + new com.google.cloud.speech.v1.SpeechRecognitionAlternative(this); int from_bitField0_ = bitField0_; result.transcript_ = transcript_; result.confidence_ = confidence_; @@ -526,38 +569,39 @@ public com.google.cloud.speech.v1.SpeechRecognitionAlternative buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.speech.v1.SpeechRecognitionAlternative) { - return mergeFrom((com.google.cloud.speech.v1.SpeechRecognitionAlternative)other); + return mergeFrom((com.google.cloud.speech.v1.SpeechRecognitionAlternative) other); } else { super.mergeFrom(other); return this; @@ -565,7 +609,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.speech.v1.SpeechRecognitionAlternative other) { - if (other == com.google.cloud.speech.v1.SpeechRecognitionAlternative.getDefaultInstance()) return this; + if (other == com.google.cloud.speech.v1.SpeechRecognitionAlternative.getDefaultInstance()) + return this; if (!other.getTranscript().isEmpty()) { transcript_ = other.transcript_; onChanged(); @@ -591,9 +636,10 @@ public Builder mergeFrom(com.google.cloud.speech.v1.SpeechRecognitionAlternative wordsBuilder_ = null; words_ = other.words_; bitField0_ = (bitField0_ & ~0x00000001); - wordsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getWordsFieldBuilder() : null; + wordsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getWordsFieldBuilder() + : null; } else { wordsBuilder_.addAllMessages(other.words_); } @@ -618,7 +664,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.speech.v1.SpeechRecognitionAlternative) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.speech.v1.SpeechRecognitionAlternative) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -627,22 +674,25 @@ public Builder mergeFrom( } 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; @@ -651,20 +701,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 { @@ -672,61 +723,70 @@ 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) { + public Builder setTranscript(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + transcript_ = value; onChanged(); return this; } /** + * + * *
      * Transcript text representing the words that the user spoke.
      * 
* * string transcript = 1; + * * @return This builder for chaining. */ public Builder clearTranscript() { - + transcript_ = getDefaultInstance().getTranscript(); onChanged(); return this; } /** + * + * *
      * Transcript text representing the words that the user spoke.
      * 
* * string transcript = 1; + * * @param value The bytes for transcript to set. * @return This builder for chaining. */ - public Builder setTranscriptBytes( - com.google.protobuf.ByteString value) { + public Builder setTranscriptBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + transcript_ = value; onChanged(); return this; } - private float confidence_ ; + private float confidence_; /** + * + * *
      * The confidence estimate between 0.0 and 1.0. A higher number
      * indicates an estimated greater likelihood that the recognized words are
@@ -738,6 +798,7 @@ public Builder setTranscriptBytes(
      * 
* * float confidence = 2; + * * @return The confidence. */ @java.lang.Override @@ -745,6 +806,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
@@ -756,16 +819,19 @@ public float getConfidence() {
      * 
* * float confidence = 2; + * * @param value The confidence to set. * @return This builder for chaining. */ public Builder setConfidence(float value) { - + confidence_ = value; onChanged(); return this; } /** + * + * *
      * The confidence estimate between 0.0 and 1.0. A higher number
      * indicates an estimated greater likelihood that the recognized words are
@@ -777,28 +843,35 @@ public Builder setConfidence(float value) {
      * 
* * float confidence = 2; + * * @return This builder for chaining. */ public Builder clearConfidence() { - + confidence_ = 0F; onChanged(); return this; } private java.util.List words_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureWordsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { words_ = new java.util.ArrayList(words_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.speech.v1.WordInfo, com.google.cloud.speech.v1.WordInfo.Builder, com.google.cloud.speech.v1.WordInfoOrBuilder> wordsBuilder_; + com.google.cloud.speech.v1.WordInfo, + com.google.cloud.speech.v1.WordInfo.Builder, + com.google.cloud.speech.v1.WordInfoOrBuilder> + wordsBuilder_; /** + * + * *
      * A list of word-specific information for each recognized word.
      * Note: When `enable_speaker_diarization` is true, you will see all the words
@@ -815,6 +888,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
@@ -831,6 +906,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
@@ -847,6 +924,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
@@ -855,8 +934,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();
@@ -870,6 +948,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
@@ -890,6 +970,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
@@ -912,6 +994,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
@@ -920,8 +1004,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();
@@ -935,6 +1018,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
@@ -943,8 +1028,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());
@@ -955,6 +1039,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
@@ -975,6 +1061,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
@@ -987,8 +1075,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 +1083,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
@@ -1015,6 +1104,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
@@ -1034,6 +1125,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
@@ -1042,11 +1135,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
@@ -1055,14 +1149,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
@@ -1071,8 +1167,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 {
@@ -1080,6 +1176,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
@@ -1089,10 +1187,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
@@ -1101,12 +1201,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
@@ -1115,27 +1216,29 @@ public com.google.cloud.speech.v1.WordInfo.Builder addWordsBuilder(
      *
      * repeated .google.cloud.speech.v1.WordInfo words = 3;
      */
-    public java.util.List 
-         getWordsBuilderList() {
+    public java.util.List getWordsBuilderList() {
       return getWordsFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.speech.v1.WordInfo, com.google.cloud.speech.v1.WordInfo.Builder, com.google.cloud.speech.v1.WordInfoOrBuilder> 
+            com.google.cloud.speech.v1.WordInfo,
+            com.google.cloud.speech.v1.WordInfo.Builder,
+            com.google.cloud.speech.v1.WordInfoOrBuilder>
         getWordsFieldBuilder() {
       if (wordsBuilder_ == null) {
-        wordsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.speech.v1.WordInfo, com.google.cloud.speech.v1.WordInfo.Builder, com.google.cloud.speech.v1.WordInfoOrBuilder>(
-                words_,
-                ((bitField0_ & 0x00000001) != 0),
-                getParentForChildren(),
-                isClean());
+        wordsBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.cloud.speech.v1.WordInfo,
+                com.google.cloud.speech.v1.WordInfo.Builder,
+                com.google.cloud.speech.v1.WordInfoOrBuilder>(
+                words_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
         words_ = null;
       }
       return wordsBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1145,12 +1248,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();
   }
@@ -1159,16 +1262,16 @@ public static com.google.cloud.speech.v1.SpeechRecognitionAlternative getDefault
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public SpeechRecognitionAlternative parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return new SpeechRecognitionAlternative(input, extensionRegistry);
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public SpeechRecognitionAlternative parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          return new SpeechRecognitionAlternative(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1183,6 +1286,4 @@ public com.google.protobuf.Parser getParserForType
   public com.google.cloud.speech.v1.SpeechRecognitionAlternative getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechRecognitionAlternativeOrBuilder.java b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechRecognitionAlternativeOrBuilder.java
similarity index 76%
rename from owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechRecognitionAlternativeOrBuilder.java
rename to proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechRecognitionAlternativeOrBuilder.java
index 1a8cbc08f..fba8255dd 100644
--- a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechRecognitionAlternativeOrBuilder.java
+++ b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechRecognitionAlternativeOrBuilder.java
@@ -1,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/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.
    * 
* * 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
@@ -39,11 +62,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
@@ -52,9 +78,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
@@ -65,6 +92,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
@@ -75,6 +104,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
@@ -83,9 +114,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
@@ -94,6 +126,5 @@ public interface SpeechRecognitionAlternativeOrBuilder extends
    *
    * repeated .google.cloud.speech.v1.WordInfo words = 3;
    */
-  com.google.cloud.speech.v1.WordInfoOrBuilder getWordsOrBuilder(
-      int index);
+  com.google.cloud.speech.v1.WordInfoOrBuilder getWordsOrBuilder(int index);
 }
diff --git a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechRecognitionResult.java b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechRecognitionResult.java
similarity index 76%
rename from owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechRecognitionResult.java
rename to proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechRecognitionResult.java
index 24da9952e..6b55b9514 100644
--- a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechRecognitionResult.java
+++ b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechRecognitionResult.java
@@ -1,24 +1,42 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/speech/v1/cloud_speech.proto
 
 package com.google.cloud.speech.v1;
 
 /**
+ *
+ *
  * 
  * A speech recognition result corresponding to a portion of the audio.
  * 
* * Protobuf type {@code google.cloud.speech.v1.SpeechRecognitionResult} */ -public final class SpeechRecognitionResult extends - com.google.protobuf.GeneratedMessageV3 implements +public final class SpeechRecognitionResult extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v1.SpeechRecognitionResult) SpeechRecognitionResultOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use SpeechRecognitionResult.newBuilder() to construct. private SpeechRecognitionResult(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private SpeechRecognitionResult() { alternatives_ = java.util.Collections.emptyList(); languageCode_ = ""; @@ -26,16 +44,15 @@ private SpeechRecognitionResult() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new SpeechRecognitionResult(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private SpeechRecognitionResult( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,53 +72,60 @@ private SpeechRecognitionResult( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - alternatives_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + alternatives_ = + new java.util.ArrayList< + com.google.cloud.speech.v1.SpeechRecognitionAlternative>(); + mutable_bitField0_ |= 0x00000001; + } + alternatives_.add( + input.readMessage( + com.google.cloud.speech.v1.SpeechRecognitionAlternative.parser(), + extensionRegistry)); + break; } - alternatives_.add( - input.readMessage(com.google.cloud.speech.v1.SpeechRecognitionAlternative.parser(), extensionRegistry)); - break; - } - case 16: { - - channelTag_ = input.readInt32(); - break; - } - case 34: { - com.google.protobuf.Duration.Builder subBuilder = null; - if (resultEndTime_ != null) { - subBuilder = resultEndTime_.toBuilder(); - } - resultEndTime_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(resultEndTime_); - resultEndTime_ = subBuilder.buildPartial(); + case 16: + { + channelTag_ = input.readInt32(); + break; } + case 34: + { + com.google.protobuf.Duration.Builder subBuilder = null; + if (resultEndTime_ != null) { + subBuilder = resultEndTime_.toBuilder(); + } + resultEndTime_ = + input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(resultEndTime_); + resultEndTime_ = subBuilder.buildPartial(); + } - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); - languageCode_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + languageCode_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { alternatives_ = java.util.Collections.unmodifiableList(alternatives_); @@ -110,22 +134,27 @@ private SpeechRecognitionResult( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_SpeechRecognitionResult_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1.SpeechProto + .internal_static_google_cloud_speech_v1_SpeechRecognitionResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_SpeechRecognitionResult_fieldAccessorTable + return com.google.cloud.speech.v1.SpeechProto + .internal_static_google_cloud_speech_v1_SpeechRecognitionResult_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1.SpeechRecognitionResult.class, com.google.cloud.speech.v1.SpeechRecognitionResult.Builder.class); + com.google.cloud.speech.v1.SpeechRecognitionResult.class, + com.google.cloud.speech.v1.SpeechRecognitionResult.Builder.class); } public static final int ALTERNATIVES_FIELD_NUMBER = 1; private java.util.List alternatives_; /** + * + * *
    * May contain one or more recognition hypotheses (up to the
    * maximum specified in `max_alternatives`).
@@ -136,10 +165,13 @@ private SpeechRecognitionResult(
    * repeated .google.cloud.speech.v1.SpeechRecognitionAlternative alternatives = 1;
    */
   @java.lang.Override
-  public java.util.List getAlternativesList() {
+  public java.util.List
+      getAlternativesList() {
     return alternatives_;
   }
   /**
+   *
+   *
    * 
    * May contain one or more recognition hypotheses (up to the
    * maximum specified in `max_alternatives`).
@@ -150,11 +182,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`).
@@ -169,6 +203,8 @@ public int getAlternativesCount() {
     return alternatives_.size();
   }
   /**
+   *
+   *
    * 
    * May contain one or more recognition hypotheses (up to the
    * maximum specified in `max_alternatives`).
@@ -183,6 +219,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`).
@@ -201,6 +239,8 @@ public com.google.cloud.speech.v1.SpeechRecognitionAlternativeOrBuilder getAlter
   public static final int CHANNEL_TAG_FIELD_NUMBER = 2;
   private int channelTag_;
   /**
+   *
+   *
    * 
    * For multi-channel audio, this is the channel number corresponding to the
    * recognized result for the audio from that channel.
@@ -208,6 +248,7 @@ public com.google.cloud.speech.v1.SpeechRecognitionAlternativeOrBuilder getAlter
    * 
* * int32 channel_tag = 2; + * * @return The channelTag. */ @java.lang.Override @@ -218,12 +259,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 @@ -231,19 +275,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.
@@ -259,6 +310,8 @@ public com.google.protobuf.DurationOrBuilder getResultEndTimeOrBuilder() {
   public static final int LANGUAGE_CODE_FIELD_NUMBER = 5;
   private volatile java.lang.Object languageCode_;
   /**
+   *
+   *
    * 
    * Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag
    * of the language in this result. This language code was detected to have
@@ -266,6 +319,7 @@ public com.google.protobuf.DurationOrBuilder getResultEndTimeOrBuilder() {
    * 
* * string language_code = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The languageCode. */ @java.lang.Override @@ -274,14 +328,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
@@ -289,16 +344,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 { @@ -307,6 +361,7 @@ public java.lang.String getLanguageCode() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -318,8 +373,7 @@ public final boolean isInitialized() { } @java.lang.Override - 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)); } @@ -342,16 +396,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_); @@ -364,24 +415,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1.SpeechRecognitionResult)) { return super.equals(obj); } - com.google.cloud.speech.v1.SpeechRecognitionResult other = (com.google.cloud.speech.v1.SpeechRecognitionResult) obj; + com.google.cloud.speech.v1.SpeechRecognitionResult other = + (com.google.cloud.speech.v1.SpeechRecognitionResult) obj; - if (!getAlternativesList() - .equals(other.getAlternativesList())) return false; - if (getChannelTag() - != other.getChannelTag()) return false; + if (!getAlternativesList().equals(other.getAlternativesList())) return false; + if (getChannelTag() != other.getChannelTag()) return false; if (hasResultEndTime() != other.hasResultEndTime()) return false; if (hasResultEndTime()) { - if (!getResultEndTime() - .equals(other.getResultEndTime())) return false; + if (!getResultEndTime().equals(other.getResultEndTime())) return false; } - if (!getLanguageCode() - .equals(other.getLanguageCode())) return false; + if (!getLanguageCode().equals(other.getLanguageCode())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -411,117 +459,126 @@ public int hashCode() { } public static com.google.cloud.speech.v1.SpeechRecognitionResult parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1.SpeechRecognitionResult parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1.SpeechRecognitionResult parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1.SpeechRecognitionResult parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1.SpeechRecognitionResult parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1.SpeechRecognitionResult parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1.SpeechRecognitionResult parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1.SpeechRecognitionResult parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1.SpeechRecognitionResult parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1.SpeechRecognitionResult parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1.SpeechRecognitionResult parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1.SpeechRecognitionResult parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.speech.v1.SpeechRecognitionResult parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1.SpeechRecognitionResult parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.speech.v1.SpeechRecognitionResult prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A speech recognition result corresponding to a portion of the audio.
    * 
* * Protobuf type {@code google.cloud.speech.v1.SpeechRecognitionResult} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1.SpeechRecognitionResult) com.google.cloud.speech.v1.SpeechRecognitionResultOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_SpeechRecognitionResult_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1.SpeechProto + .internal_static_google_cloud_speech_v1_SpeechRecognitionResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_SpeechRecognitionResult_fieldAccessorTable + return com.google.cloud.speech.v1.SpeechProto + .internal_static_google_cloud_speech_v1_SpeechRecognitionResult_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1.SpeechRecognitionResult.class, com.google.cloud.speech.v1.SpeechRecognitionResult.Builder.class); + com.google.cloud.speech.v1.SpeechRecognitionResult.class, + com.google.cloud.speech.v1.SpeechRecognitionResult.Builder.class); } // Construct using com.google.cloud.speech.v1.SpeechRecognitionResult.newBuilder() @@ -529,17 +586,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getAlternativesFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -563,9 +620,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 @@ -584,7 +641,8 @@ public com.google.cloud.speech.v1.SpeechRecognitionResult build() { @java.lang.Override public com.google.cloud.speech.v1.SpeechRecognitionResult buildPartial() { - com.google.cloud.speech.v1.SpeechRecognitionResult result = new com.google.cloud.speech.v1.SpeechRecognitionResult(this); + com.google.cloud.speech.v1.SpeechRecognitionResult result = + new com.google.cloud.speech.v1.SpeechRecognitionResult(this); int from_bitField0_ = bitField0_; if (alternativesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -610,38 +668,39 @@ public com.google.cloud.speech.v1.SpeechRecognitionResult buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.speech.v1.SpeechRecognitionResult) { - return mergeFrom((com.google.cloud.speech.v1.SpeechRecognitionResult)other); + return mergeFrom((com.google.cloud.speech.v1.SpeechRecognitionResult) other); } else { super.mergeFrom(other); return this; @@ -649,7 +708,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()) { @@ -668,9 +728,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_); } @@ -705,7 +766,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.speech.v1.SpeechRecognitionResult) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.speech.v1.SpeechRecognitionResult) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -714,21 +776,30 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.util.List alternatives_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureAlternativesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - alternatives_ = new java.util.ArrayList(alternatives_); + alternatives_ = + new java.util.ArrayList( + alternatives_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.speech.v1.SpeechRecognitionAlternative, com.google.cloud.speech.v1.SpeechRecognitionAlternative.Builder, com.google.cloud.speech.v1.SpeechRecognitionAlternativeOrBuilder> alternativesBuilder_; + com.google.cloud.speech.v1.SpeechRecognitionAlternative, + com.google.cloud.speech.v1.SpeechRecognitionAlternative.Builder, + com.google.cloud.speech.v1.SpeechRecognitionAlternativeOrBuilder> + alternativesBuilder_; /** + * + * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -738,7 +809,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 {
@@ -746,6 +818,8 @@ public java.util.List g
       }
     }
     /**
+     *
+     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -763,6 +837,8 @@ public int getAlternativesCount() {
       }
     }
     /**
+     *
+     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -780,6 +856,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`).
@@ -804,6 +882,8 @@ public Builder setAlternatives(
       return this;
     }
     /**
+     *
+     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -814,7 +894,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());
@@ -825,6 +906,8 @@ public Builder setAlternatives(
       return this;
     }
     /**
+     *
+     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -848,6 +931,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`).
@@ -872,6 +957,8 @@ public Builder addAlternatives(
       return this;
     }
     /**
+     *
+     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -893,6 +980,8 @@ public Builder addAlternatives(
       return this;
     }
     /**
+     *
+     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -903,7 +992,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());
@@ -914,6 +1004,8 @@ public Builder addAlternatives(
       return this;
     }
     /**
+     *
+     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -924,11 +1016,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);
@@ -936,6 +1028,8 @@ public Builder addAllAlternatives(
       return this;
     }
     /**
+     *
+     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -956,6 +1050,8 @@ public Builder clearAlternatives() {
       return this;
     }
     /**
+     *
+     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -976,6 +1072,8 @@ public Builder removeAlternatives(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -990,6 +1088,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`).
@@ -999,14 +1099,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`).
@@ -1016,8 +1119,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 {
@@ -1025,6 +1129,8 @@ public com.google.cloud.speech.v1.SpeechRecognitionAlternativeOrBuilder getAlter
       }
     }
     /**
+     *
+     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -1034,11 +1140,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`).
@@ -1050,10 +1159,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`).
@@ -1063,27 +1175,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.
@@ -1091,6 +1208,7 @@ public com.google.cloud.speech.v1.SpeechRecognitionAlternative.Builder addAltern
      * 
* * int32 channel_tag = 2; + * * @return The channelTag. */ @java.lang.Override @@ -1098,6 +1216,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.
@@ -1105,16 +1225,19 @@ public int getChannelTag() {
      * 
* * int32 channel_tag = 2; + * * @param value The channelTag to set. * @return This builder for chaining. */ public Builder setChannelTag(int value) { - + channelTag_ = value; onChanged(); return this; } /** + * + * *
      * For multi-channel audio, this is the channel number corresponding to the
      * recognized result for the audio from that channel.
@@ -1122,10 +1245,11 @@ public Builder setChannelTag(int value) {
      * 
* * int32 channel_tag = 2; + * * @return This builder for chaining. */ public Builder clearChannelTag() { - + channelTag_ = 0; onChanged(); return this; @@ -1133,36 +1257,49 @@ public Builder clearChannelTag() { private com.google.protobuf.Duration resultEndTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> resultEndTimeBuilder_; + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + resultEndTimeBuilder_; /** + * + * *
      * Time offset of the end of this result relative to the
      * beginning of the audio.
      * 
* * .google.protobuf.Duration result_end_time = 4; + * * @return Whether the resultEndTime field is set. */ public boolean hasResultEndTime() { return resultEndTimeBuilder_ != null || resultEndTime_ != null; } /** + * + * *
      * Time offset of the end of this result relative to the
      * beginning of the audio.
      * 
* * .google.protobuf.Duration result_end_time = 4; + * * @return The resultEndTime. */ public com.google.protobuf.Duration getResultEndTime() { if (resultEndTimeBuilder_ == null) { - return resultEndTime_ == null ? com.google.protobuf.Duration.getDefaultInstance() : resultEndTime_; + return resultEndTime_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : resultEndTime_; } else { return resultEndTimeBuilder_.getMessage(); } } /** + * + * *
      * Time offset of the end of this result relative to the
      * beginning of the audio.
@@ -1184,6 +1321,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.
@@ -1191,8 +1330,7 @@ public Builder setResultEndTime(com.google.protobuf.Duration value) {
      *
      * .google.protobuf.Duration result_end_time = 4;
      */
-    public Builder setResultEndTime(
-        com.google.protobuf.Duration.Builder builderForValue) {
+    public Builder setResultEndTime(com.google.protobuf.Duration.Builder builderForValue) {
       if (resultEndTimeBuilder_ == null) {
         resultEndTime_ = builderForValue.build();
         onChanged();
@@ -1203,6 +1341,8 @@ public Builder setResultEndTime(
       return this;
     }
     /**
+     *
+     *
      * 
      * Time offset of the end of this result relative to the
      * beginning of the audio.
@@ -1214,7 +1354,9 @@ public Builder mergeResultEndTime(com.google.protobuf.Duration value) {
       if (resultEndTimeBuilder_ == null) {
         if (resultEndTime_ != null) {
           resultEndTime_ =
-            com.google.protobuf.Duration.newBuilder(resultEndTime_).mergeFrom(value).buildPartial();
+              com.google.protobuf.Duration.newBuilder(resultEndTime_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           resultEndTime_ = value;
         }
@@ -1226,6 +1368,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.
@@ -1245,6 +1389,8 @@ public Builder clearResultEndTime() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Time offset of the end of this result relative to the
      * beginning of the audio.
@@ -1253,11 +1399,13 @@ public Builder clearResultEndTime() {
      * .google.protobuf.Duration result_end_time = 4;
      */
     public com.google.protobuf.Duration.Builder getResultEndTimeBuilder() {
-      
+
       onChanged();
       return getResultEndTimeFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Time offset of the end of this result relative to the
      * beginning of the audio.
@@ -1269,11 +1417,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.
@@ -1282,14 +1433,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_;
@@ -1297,6 +1451,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
@@ -1304,13 +1460,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; @@ -1319,6 +1475,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
@@ -1326,15 +1484,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 { @@ -1342,6 +1499,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
@@ -1349,20 +1508,22 @@ public java.lang.String getLanguageCode() {
      * 
* * string language_code = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCode( - java.lang.String value) { + public Builder setLanguageCode(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + languageCode_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag
      * of the language in this result. This language code was detected to have
@@ -1370,15 +1531,18 @@ public Builder setLanguageCode(
      * 
* * string language_code = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearLanguageCode() { - + languageCode_ = getDefaultInstance().getLanguageCode(); onChanged(); return this; } /** + * + * *
      * Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag
      * of the language in this result. This language code was detected to have
@@ -1386,23 +1550,23 @@ public Builder clearLanguageCode() {
      * 
* * string language_code = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCodeBytes( - com.google.protobuf.ByteString value) { + public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + languageCode_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1412,12 +1576,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(); } @@ -1426,16 +1590,16 @@ public static com.google.cloud.speech.v1.SpeechRecognitionResult getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SpeechRecognitionResult parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SpeechRecognitionResult(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SpeechRecognitionResult parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SpeechRecognitionResult(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1450,6 +1614,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1.SpeechRecognitionResult getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechRecognitionResultOrBuilder.java b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechRecognitionResultOrBuilder.java similarity index 83% rename from owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechRecognitionResultOrBuilder.java rename to proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechRecognitionResultOrBuilder.java index aa2bef7b6..50085b974 100644 --- a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechRecognitionResultOrBuilder.java +++ b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechRecognitionResultOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1/cloud_speech.proto package com.google.cloud.speech.v1; -public interface SpeechRecognitionResultOrBuilder extends +public interface SpeechRecognitionResultOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1.SpeechRecognitionResult) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * May contain one or more recognition hypotheses (up to the
    * maximum specified in `max_alternatives`).
@@ -17,9 +35,10 @@ public interface SpeechRecognitionResultOrBuilder extends
    *
    * repeated .google.cloud.speech.v1.SpeechRecognitionAlternative alternatives = 1;
    */
-  java.util.List 
-      getAlternativesList();
+  java.util.List getAlternativesList();
   /**
+   *
+   *
    * 
    * May contain one or more recognition hypotheses (up to the
    * maximum specified in `max_alternatives`).
@@ -31,6 +50,8 @@ public interface SpeechRecognitionResultOrBuilder extends
    */
   com.google.cloud.speech.v1.SpeechRecognitionAlternative getAlternatives(int index);
   /**
+   *
+   *
    * 
    * May contain one or more recognition hypotheses (up to the
    * maximum specified in `max_alternatives`).
@@ -42,6 +63,8 @@ public interface SpeechRecognitionResultOrBuilder extends
    */
   int getAlternativesCount();
   /**
+   *
+   *
    * 
    * May contain one or more recognition hypotheses (up to the
    * maximum specified in `max_alternatives`).
@@ -51,9 +74,11 @@ public interface SpeechRecognitionResultOrBuilder extends
    *
    * repeated .google.cloud.speech.v1.SpeechRecognitionAlternative alternatives = 1;
    */
-  java.util.List 
+  java.util.List
       getAlternativesOrBuilderList();
   /**
+   *
+   *
    * 
    * May contain one or more recognition hypotheses (up to the
    * maximum specified in `max_alternatives`).
@@ -67,6 +92,8 @@ com.google.cloud.speech.v1.SpeechRecognitionAlternativeOrBuilder getAlternatives
       int index);
 
   /**
+   *
+   *
    * 
    * For multi-channel audio, this is the channel number corresponding to the
    * recognized result for the audio from that channel.
@@ -74,31 +101,40 @@ com.google.cloud.speech.v1.SpeechRecognitionAlternativeOrBuilder getAlternatives
    * 
* * int32 channel_tag = 2; + * * @return The channelTag. */ int getChannelTag(); /** + * + * *
    * Time offset of the end of this result relative to the
    * beginning of the audio.
    * 
* * .google.protobuf.Duration result_end_time = 4; + * * @return Whether the resultEndTime field is set. */ boolean hasResultEndTime(); /** + * + * *
    * Time offset of the end of this result relative to the
    * beginning of the audio.
    * 
* * .google.protobuf.Duration result_end_time = 4; + * * @return The resultEndTime. */ com.google.protobuf.Duration getResultEndTime(); /** + * + * *
    * Time offset of the end of this result relative to the
    * beginning of the audio.
@@ -109,6 +145,8 @@ com.google.cloud.speech.v1.SpeechRecognitionAlternativeOrBuilder getAlternatives
   com.google.protobuf.DurationOrBuilder getResultEndTimeOrBuilder();
 
   /**
+   *
+   *
    * 
    * Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag
    * of the language in this result. This language code was detected to have
@@ -116,10 +154,13 @@ com.google.cloud.speech.v1.SpeechRecognitionAlternativeOrBuilder getAlternatives
    * 
* * string language_code = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The languageCode. */ java.lang.String getLanguageCode(); /** + * + * *
    * Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag
    * of the language in this result. This language code was detected to have
@@ -127,8 +168,8 @@ com.google.cloud.speech.v1.SpeechRecognitionAlternativeOrBuilder getAlternatives
    * 
* * string language_code = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for languageCode. */ - com.google.protobuf.ByteString - getLanguageCodeBytes(); + com.google.protobuf.ByteString getLanguageCodeBytes(); } diff --git a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechResourceProto.java b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechResourceProto.java new file mode 100644 index 000000000..0eeef5bbd --- /dev/null +++ b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechResourceProto.java @@ -0,0 +1,140 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/speech/v1/resource.proto + +package com.google.cloud.speech.v1; + +public final class SpeechResourceProto { + private SpeechResourceProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1_CustomClass_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1_CustomClass_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1_CustomClass_ClassItem_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1_CustomClass_ClassItem_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1_PhraseSet_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1_PhraseSet_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1_PhraseSet_Phrase_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1_PhraseSet_Phrase_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1_SpeechAdaptation_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1_SpeechAdaptation_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n%google/cloud/speech/v1/resource.proto\022" + + "\026google.cloud.speech.v1\032\031google/api/reso" + + "urce.proto\"\374\001\n\013CustomClass\022\014\n\004name\030\001 \001(\t" + + "\022\027\n\017custom_class_id\030\002 \001(\t\022<\n\005items\030\003 \003(\013" + + "2-.google.cloud.speech.v1.CustomClass.Cl" + + "assItem\032\032\n\tClassItem\022\r\n\005value\030\001 \001(\t:l\352Ai" + + "\n!speech.googleapis.com/CustomClass\022Dpro" + + "jects/{project}/locations/{location}/cus" + + "tomClasses/{custom_class}\"\362\001\n\tPhraseSet\022" + + "\014\n\004name\030\001 \001(\t\0229\n\007phrases\030\002 \003(\0132(.google." + + "cloud.speech.v1.PhraseSet.Phrase\022\r\n\005boos" + + "t\030\004 \001(\002\032&\n\006Phrase\022\r\n\005value\030\001 \001(\t\022\r\n\005boos" + + "t\030\002 \001(\002:e\352Ab\n\037speech.googleapis.com/Phra" + + "seSet\022?projects/{project}/locations/{loc" + + "ation}/phraseSets/{phrase_set}\"\314\001\n\020Speec" + + "hAdaptation\0226\n\013phrase_sets\030\001 \003(\0132!.googl" + + "e.cloud.speech.v1.PhraseSet\022C\n\025phrase_se" + + "t_references\030\002 \003(\tB$\372A!\n\037speech.googleap" + + "is.com/PhraseSet\022;\n\016custom_classes\030\003 \003(\013" + + "2#.google.cloud.speech.v1.CustomClassBz\n" + + "\032com.google.cloud.speech.v1B\023SpeechResou" + + "rceProtoP\001Z * Provides information to the recognizer that specifies how to process the * request. @@ -11,30 +28,29 @@ * * Protobuf type {@code google.cloud.speech.v1.StreamingRecognitionConfig} */ -public final class StreamingRecognitionConfig extends - com.google.protobuf.GeneratedMessageV3 implements +public final class StreamingRecognitionConfig extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v1.StreamingRecognitionConfig) StreamingRecognitionConfigOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use StreamingRecognitionConfig.newBuilder() to construct. private StreamingRecognitionConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private StreamingRecognitionConfig() { - } + + private StreamingRecognitionConfig() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new StreamingRecognitionConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private StreamingRecognitionConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,70 +69,80 @@ private StreamingRecognitionConfig( case 0: done = true; break; - case 10: { - com.google.cloud.speech.v1.RecognitionConfig.Builder subBuilder = null; - if (config_ != null) { - subBuilder = config_.toBuilder(); + case 10: + { + com.google.cloud.speech.v1.RecognitionConfig.Builder subBuilder = null; + if (config_ != null) { + subBuilder = config_.toBuilder(); + } + config_ = + input.readMessage( + com.google.cloud.speech.v1.RecognitionConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(config_); + config_ = subBuilder.buildPartial(); + } + + break; } - config_ = input.readMessage(com.google.cloud.speech.v1.RecognitionConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(config_); - config_ = subBuilder.buildPartial(); + case 16: + { + singleUtterance_ = input.readBool(); + break; } - - break; - } - case 16: { - - singleUtterance_ = input.readBool(); - break; - } - case 24: { - - interimResults_ = input.readBool(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 24: + { + interimResults_ = input.readBool(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_StreamingRecognitionConfig_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1.SpeechProto + .internal_static_google_cloud_speech_v1_StreamingRecognitionConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_StreamingRecognitionConfig_fieldAccessorTable + return com.google.cloud.speech.v1.SpeechProto + .internal_static_google_cloud_speech_v1_StreamingRecognitionConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1.StreamingRecognitionConfig.class, com.google.cloud.speech.v1.StreamingRecognitionConfig.Builder.class); + com.google.cloud.speech.v1.StreamingRecognitionConfig.class, + com.google.cloud.speech.v1.StreamingRecognitionConfig.Builder.class); } public static final int CONFIG_FIELD_NUMBER = 1; private com.google.cloud.speech.v1.RecognitionConfig config_; /** + * + * *
    * Required. Provides information to the recognizer that specifies how to
    * process the request.
    * 
* - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the config field is set. */ @java.lang.Override @@ -124,25 +150,36 @@ public boolean hasConfig() { return config_ != null; } /** + * + * *
    * Required. Provides information to the recognizer that specifies how to
    * process the request.
    * 
* - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The config. */ @java.lang.Override public com.google.cloud.speech.v1.RecognitionConfig getConfig() { - return config_ == null ? com.google.cloud.speech.v1.RecognitionConfig.getDefaultInstance() : config_; + return config_ == null + ? com.google.cloud.speech.v1.RecognitionConfig.getDefaultInstance() + : config_; } /** + * + * *
    * Required. Provides information to the recognizer that specifies how to
    * process the request.
    * 
* - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.speech.v1.RecognitionConfigOrBuilder getConfigOrBuilder() { @@ -152,6 +189,8 @@ public com.google.cloud.speech.v1.RecognitionConfigOrBuilder getConfigOrBuilder( public static final int SINGLE_UTTERANCE_FIELD_NUMBER = 2; private boolean singleUtterance_; /** + * + * *
    * If `false` or omitted, the recognizer will perform continuous
    * recognition (continuing to wait for and process audio even if the user
@@ -174,6 +213,7 @@ public com.google.cloud.speech.v1.RecognitionConfigOrBuilder getConfigOrBuilder(
    * 
* * bool single_utterance = 2; + * * @return The singleUtterance. */ @java.lang.Override @@ -184,6 +224,8 @@ public boolean getSingleUtterance() { public static final int INTERIM_RESULTS_FIELD_NUMBER = 3; private boolean interimResults_; /** + * + * *
    * If `true`, interim results (tentative hypotheses) may be
    * returned as they become available (these interim results are indicated with
@@ -192,6 +234,7 @@ public boolean getSingleUtterance() {
    * 
* * bool interim_results = 3; + * * @return The interimResults. */ @java.lang.Override @@ -200,6 +243,7 @@ public boolean getInterimResults() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -211,8 +255,7 @@ public final boolean isInitialized() { } @java.lang.Override - public 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()); } @@ -232,16 +275,13 @@ public int getSerializedSize() { size = 0; if (config_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getConfig()); } if (singleUtterance_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, singleUtterance_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, singleUtterance_); } if (interimResults_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(3, interimResults_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, interimResults_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -251,22 +291,20 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1.StreamingRecognitionConfig)) { return super.equals(obj); } - com.google.cloud.speech.v1.StreamingRecognitionConfig other = (com.google.cloud.speech.v1.StreamingRecognitionConfig) obj; + com.google.cloud.speech.v1.StreamingRecognitionConfig other = + (com.google.cloud.speech.v1.StreamingRecognitionConfig) obj; if (hasConfig() != other.hasConfig()) return false; if (hasConfig()) { - if (!getConfig() - .equals(other.getConfig())) return false; + if (!getConfig().equals(other.getConfig())) return false; } - if (getSingleUtterance() - != other.getSingleUtterance()) return false; - if (getInterimResults() - != other.getInterimResults()) return false; + if (getSingleUtterance() != other.getSingleUtterance()) return false; + if (getInterimResults() != other.getInterimResults()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -283,107 +321,113 @@ public int hashCode() { hash = (53 * hash) + getConfig().hashCode(); } hash = (37 * hash) + SINGLE_UTTERANCE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getSingleUtterance()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSingleUtterance()); hash = (37 * hash) + INTERIM_RESULTS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getInterimResults()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getInterimResults()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.speech.v1.StreamingRecognitionConfig parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1.StreamingRecognitionConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1.StreamingRecognitionConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1.StreamingRecognitionConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1.StreamingRecognitionConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1.StreamingRecognitionConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1.StreamingRecognitionConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1.StreamingRecognitionConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1.StreamingRecognitionConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1.StreamingRecognitionConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1.StreamingRecognitionConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1.StreamingRecognitionConfig parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.speech.v1.StreamingRecognitionConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1.StreamingRecognitionConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.speech.v1.StreamingRecognitionConfig prototype) { + + public static Builder newBuilder( + com.google.cloud.speech.v1.StreamingRecognitionConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Provides information to the recognizer that specifies how to process the
    * request.
@@ -391,21 +435,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.speech.v1.StreamingRecognitionConfig}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1.StreamingRecognitionConfig)
       com.google.cloud.speech.v1.StreamingRecognitionConfigOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_StreamingRecognitionConfig_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.speech.v1.SpeechProto
+          .internal_static_google_cloud_speech_v1_StreamingRecognitionConfig_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_StreamingRecognitionConfig_fieldAccessorTable
+      return com.google.cloud.speech.v1.SpeechProto
+          .internal_static_google_cloud_speech_v1_StreamingRecognitionConfig_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v1.StreamingRecognitionConfig.class, com.google.cloud.speech.v1.StreamingRecognitionConfig.Builder.class);
+              com.google.cloud.speech.v1.StreamingRecognitionConfig.class,
+              com.google.cloud.speech.v1.StreamingRecognitionConfig.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v1.StreamingRecognitionConfig.newBuilder()
@@ -413,16 +459,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -440,9 +485,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
@@ -461,7 +506,8 @@ public com.google.cloud.speech.v1.StreamingRecognitionConfig build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v1.StreamingRecognitionConfig buildPartial() {
-      com.google.cloud.speech.v1.StreamingRecognitionConfig result = new com.google.cloud.speech.v1.StreamingRecognitionConfig(this);
+      com.google.cloud.speech.v1.StreamingRecognitionConfig result =
+          new com.google.cloud.speech.v1.StreamingRecognitionConfig(this);
       if (configBuilder_ == null) {
         result.config_ = config_;
       } else {
@@ -477,38 +523,39 @@ public com.google.cloud.speech.v1.StreamingRecognitionConfig buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.speech.v1.StreamingRecognitionConfig) {
-        return mergeFrom((com.google.cloud.speech.v1.StreamingRecognitionConfig)other);
+        return mergeFrom((com.google.cloud.speech.v1.StreamingRecognitionConfig) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -516,7 +563,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());
       }
@@ -545,7 +593,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.speech.v1.StreamingRecognitionConfig) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.speech.v1.StreamingRecognitionConfig) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -557,42 +606,61 @@ public Builder mergeFrom(
 
     private com.google.cloud.speech.v1.RecognitionConfig config_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.speech.v1.RecognitionConfig, com.google.cloud.speech.v1.RecognitionConfig.Builder, com.google.cloud.speech.v1.RecognitionConfigOrBuilder> configBuilder_;
+            com.google.cloud.speech.v1.RecognitionConfig,
+            com.google.cloud.speech.v1.RecognitionConfig.Builder,
+            com.google.cloud.speech.v1.RecognitionConfigOrBuilder>
+        configBuilder_;
     /**
+     *
+     *
      * 
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the config field is set. */ public boolean hasConfig() { return configBuilder_ != null || config_ != null; } /** + * + * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The config. */ public com.google.cloud.speech.v1.RecognitionConfig getConfig() { if (configBuilder_ == null) { - return config_ == null ? com.google.cloud.speech.v1.RecognitionConfig.getDefaultInstance() : config_; + return config_ == null + ? com.google.cloud.speech.v1.RecognitionConfig.getDefaultInstance() + : config_; } else { return configBuilder_.getMessage(); } } /** + * + * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setConfig(com.google.cloud.speech.v1.RecognitionConfig value) { if (configBuilder_ == null) { @@ -608,15 +676,18 @@ public Builder setConfig(com.google.cloud.speech.v1.RecognitionConfig value) { return this; } /** + * + * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setConfig( - com.google.cloud.speech.v1.RecognitionConfig.Builder builderForValue) { + public Builder setConfig(com.google.cloud.speech.v1.RecognitionConfig.Builder builderForValue) { if (configBuilder_ == null) { config_ = builderForValue.build(); onChanged(); @@ -627,18 +698,24 @@ public Builder setConfig( return this; } /** + * + * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeConfig(com.google.cloud.speech.v1.RecognitionConfig value) { if (configBuilder_ == null) { if (config_ != null) { config_ = - com.google.cloud.speech.v1.RecognitionConfig.newBuilder(config_).mergeFrom(value).buildPartial(); + com.google.cloud.speech.v1.RecognitionConfig.newBuilder(config_) + .mergeFrom(value) + .buildPartial(); } else { config_ = value; } @@ -650,12 +727,16 @@ public Builder mergeConfig(com.google.cloud.speech.v1.RecognitionConfig value) { return this; } /** + * + * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearConfig() { if (configBuilder_ == null) { @@ -669,58 +750,76 @@ public Builder clearConfig() { return this; } /** + * + * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.speech.v1.RecognitionConfig.Builder getConfigBuilder() { - + onChanged(); return getConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.speech.v1.RecognitionConfigOrBuilder getConfigOrBuilder() { if (configBuilder_ != null) { return configBuilder_.getMessageOrBuilder(); } else { - return config_ == null ? - com.google.cloud.speech.v1.RecognitionConfig.getDefaultInstance() : config_; + return config_ == null + ? com.google.cloud.speech.v1.RecognitionConfig.getDefaultInstance() + : config_; } } /** + * + * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1.RecognitionConfig, com.google.cloud.speech.v1.RecognitionConfig.Builder, com.google.cloud.speech.v1.RecognitionConfigOrBuilder> + com.google.cloud.speech.v1.RecognitionConfig, + com.google.cloud.speech.v1.RecognitionConfig.Builder, + com.google.cloud.speech.v1.RecognitionConfigOrBuilder> getConfigFieldBuilder() { if (configBuilder_ == null) { - configBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1.RecognitionConfig, com.google.cloud.speech.v1.RecognitionConfig.Builder, com.google.cloud.speech.v1.RecognitionConfigOrBuilder>( - getConfig(), - getParentForChildren(), - isClean()); + configBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v1.RecognitionConfig, + com.google.cloud.speech.v1.RecognitionConfig.Builder, + com.google.cloud.speech.v1.RecognitionConfigOrBuilder>( + getConfig(), getParentForChildren(), isClean()); config_ = null; } return configBuilder_; } - private boolean singleUtterance_ ; + private boolean singleUtterance_; /** + * + * *
      * If `false` or omitted, the recognizer will perform continuous
      * recognition (continuing to wait for and process audio even if the user
@@ -743,6 +842,7 @@ public com.google.cloud.speech.v1.RecognitionConfigOrBuilder getConfigOrBuilder(
      * 
* * bool single_utterance = 2; + * * @return The singleUtterance. */ @java.lang.Override @@ -750,6 +850,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
@@ -772,16 +874,19 @@ public boolean getSingleUtterance() {
      * 
* * bool single_utterance = 2; + * * @param value The singleUtterance to set. * @return This builder for chaining. */ public Builder setSingleUtterance(boolean value) { - + singleUtterance_ = value; onChanged(); return this; } /** + * + * *
      * If `false` or omitted, the recognizer will perform continuous
      * recognition (continuing to wait for and process audio even if the user
@@ -804,17 +909,20 @@ public Builder setSingleUtterance(boolean value) {
      * 
* * bool single_utterance = 2; + * * @return This builder for chaining. */ public Builder clearSingleUtterance() { - + singleUtterance_ = false; onChanged(); return this; } - private boolean interimResults_ ; + private boolean interimResults_; /** + * + * *
      * If `true`, interim results (tentative hypotheses) may be
      * returned as they become available (these interim results are indicated with
@@ -823,6 +931,7 @@ public Builder clearSingleUtterance() {
      * 
* * bool interim_results = 3; + * * @return The interimResults. */ @java.lang.Override @@ -830,6 +939,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
@@ -838,16 +949,19 @@ public boolean getInterimResults() {
      * 
* * bool interim_results = 3; + * * @param value The interimResults to set. * @return This builder for chaining. */ public Builder setInterimResults(boolean value) { - + interimResults_ = value; onChanged(); return this; } /** + * + * *
      * If `true`, interim results (tentative hypotheses) may be
      * returned as they become available (these interim results are indicated with
@@ -856,17 +970,18 @@ public Builder setInterimResults(boolean value) {
      * 
* * bool interim_results = 3; + * * @return This builder for chaining. */ public Builder clearInterimResults() { - + interimResults_ = false; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -876,12 +991,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(); } @@ -890,16 +1005,16 @@ public static com.google.cloud.speech.v1.StreamingRecognitionConfig getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StreamingRecognitionConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new StreamingRecognitionConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StreamingRecognitionConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new StreamingRecognitionConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -914,6 +1029,4 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.speech.v1.StreamingRecognitionConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognitionConfigOrBuilder.java b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognitionConfigOrBuilder.java similarity index 70% rename from owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognitionConfigOrBuilder.java rename to proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognitionConfigOrBuilder.java index 8c5cfecdc..7b3064599 100644 --- a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognitionConfigOrBuilder.java +++ b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognitionConfigOrBuilder.java @@ -1,43 +1,75 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1/cloud_speech.proto package com.google.cloud.speech.v1; -public interface StreamingRecognitionConfigOrBuilder extends +public interface StreamingRecognitionConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1.StreamingRecognitionConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Provides information to the recognizer that specifies how to
    * process the request.
    * 
* - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the config field is set. */ boolean hasConfig(); /** + * + * *
    * Required. Provides information to the recognizer that specifies how to
    * process the request.
    * 
* - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The config. */ com.google.cloud.speech.v1.RecognitionConfig getConfig(); /** + * + * *
    * Required. Provides information to the recognizer that specifies how to
    * process the request.
    * 
* - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.speech.v1.RecognitionConfigOrBuilder getConfigOrBuilder(); /** + * + * *
    * If `false` or omitted, the recognizer will perform continuous
    * recognition (continuing to wait for and process audio even if the user
@@ -60,11 +92,14 @@ public interface StreamingRecognitionConfigOrBuilder extends
    * 
* * bool single_utterance = 2; + * * @return The singleUtterance. */ boolean getSingleUtterance(); /** + * + * *
    * If `true`, interim results (tentative hypotheses) may be
    * returned as they become available (these interim results are indicated with
@@ -73,6 +108,7 @@ public interface StreamingRecognitionConfigOrBuilder extends
    * 
* * bool interim_results = 3; + * * @return The interimResults. */ boolean getInterimResults(); diff --git a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognitionResult.java b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognitionResult.java similarity index 77% rename from owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognitionResult.java rename to proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognitionResult.java index 88500e3ba..974140f81 100644 --- a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognitionResult.java +++ b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognitionResult.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1/cloud_speech.proto package com.google.cloud.speech.v1; /** + * + * *
  * A streaming speech recognition result corresponding to a portion of the audio
  * that is currently being processed.
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.cloud.speech.v1.StreamingRecognitionResult}
  */
-public final class StreamingRecognitionResult extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class StreamingRecognitionResult extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.speech.v1.StreamingRecognitionResult)
     StreamingRecognitionResultOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use StreamingRecognitionResult.newBuilder() to construct.
   private StreamingRecognitionResult(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private StreamingRecognitionResult() {
     alternatives_ = java.util.Collections.emptyList();
     languageCode_ = "";
@@ -27,16 +45,15 @@ private StreamingRecognitionResult() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new StreamingRecognitionResult();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private StreamingRecognitionResult(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -56,63 +73,70 @@ private StreamingRecognitionResult(
           case 0:
             done = true;
             break;
-          case 10: {
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              alternatives_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000001;
+          case 10:
+            {
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                alternatives_ =
+                    new java.util.ArrayList<
+                        com.google.cloud.speech.v1.SpeechRecognitionAlternative>();
+                mutable_bitField0_ |= 0x00000001;
+              }
+              alternatives_.add(
+                  input.readMessage(
+                      com.google.cloud.speech.v1.SpeechRecognitionAlternative.parser(),
+                      extensionRegistry));
+              break;
             }
-            alternatives_.add(
-                input.readMessage(com.google.cloud.speech.v1.SpeechRecognitionAlternative.parser(), extensionRegistry));
-            break;
-          }
-          case 16: {
-
-            isFinal_ = input.readBool();
-            break;
-          }
-          case 29: {
-
-            stability_ = input.readFloat();
-            break;
-          }
-          case 34: {
-            com.google.protobuf.Duration.Builder subBuilder = null;
-            if (resultEndTime_ != null) {
-              subBuilder = resultEndTime_.toBuilder();
+          case 16:
+            {
+              isFinal_ = input.readBool();
+              break;
             }
-            resultEndTime_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(resultEndTime_);
-              resultEndTime_ = subBuilder.buildPartial();
+          case 29:
+            {
+              stability_ = input.readFloat();
+              break;
             }
+          case 34:
+            {
+              com.google.protobuf.Duration.Builder subBuilder = null;
+              if (resultEndTime_ != null) {
+                subBuilder = resultEndTime_.toBuilder();
+              }
+              resultEndTime_ =
+                  input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(resultEndTime_);
+                resultEndTime_ = subBuilder.buildPartial();
+              }
+
+              break;
+            }
+          case 40:
+            {
+              channelTag_ = input.readInt32();
+              break;
+            }
+          case 50:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            break;
-          }
-          case 40: {
-
-            channelTag_ = input.readInt32();
-            break;
-          }
-          case 50: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            languageCode_ = s;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              languageCode_ = s;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         alternatives_ = java.util.Collections.unmodifiableList(alternatives_);
@@ -121,22 +145,27 @@ private StreamingRecognitionResult(
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_StreamingRecognitionResult_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.speech.v1.SpeechProto
+        .internal_static_google_cloud_speech_v1_StreamingRecognitionResult_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_StreamingRecognitionResult_fieldAccessorTable
+    return com.google.cloud.speech.v1.SpeechProto
+        .internal_static_google_cloud_speech_v1_StreamingRecognitionResult_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v1.StreamingRecognitionResult.class, com.google.cloud.speech.v1.StreamingRecognitionResult.Builder.class);
+            com.google.cloud.speech.v1.StreamingRecognitionResult.class,
+            com.google.cloud.speech.v1.StreamingRecognitionResult.Builder.class);
   }
 
   public static final int ALTERNATIVES_FIELD_NUMBER = 1;
   private java.util.List alternatives_;
   /**
+   *
+   *
    * 
    * May contain one or more recognition hypotheses (up to the
    * maximum specified in `max_alternatives`).
@@ -147,10 +176,13 @@ private StreamingRecognitionResult(
    * repeated .google.cloud.speech.v1.SpeechRecognitionAlternative alternatives = 1;
    */
   @java.lang.Override
-  public java.util.List getAlternativesList() {
+  public java.util.List
+      getAlternativesList() {
     return alternatives_;
   }
   /**
+   *
+   *
    * 
    * May contain one or more recognition hypotheses (up to the
    * maximum specified in `max_alternatives`).
@@ -161,11 +193,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`).
@@ -180,6 +214,8 @@ public int getAlternativesCount() {
     return alternatives_.size();
   }
   /**
+   *
+   *
    * 
    * May contain one or more recognition hypotheses (up to the
    * maximum specified in `max_alternatives`).
@@ -194,6 +230,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`).
@@ -212,6 +250,8 @@ public com.google.cloud.speech.v1.SpeechRecognitionAlternativeOrBuilder getAlter
   public static final int IS_FINAL_FIELD_NUMBER = 2;
   private boolean isFinal_;
   /**
+   *
+   *
    * 
    * If `false`, this `StreamingRecognitionResult` represents an
    * interim result that may change. If `true`, this is the final time the
@@ -221,6 +261,7 @@ public com.google.cloud.speech.v1.SpeechRecognitionAlternativeOrBuilder getAlter
    * 
* * bool is_final = 2; + * * @return The isFinal. */ @java.lang.Override @@ -231,6 +272,8 @@ public boolean getIsFinal() { public static final int STABILITY_FIELD_NUMBER = 3; private float stability_; /** + * + * *
    * An estimate of the likelihood that the recognizer will not
    * change its guess about this interim result. Values range from 0.0
@@ -240,6 +283,7 @@ public boolean getIsFinal() {
    * 
* * float stability = 3; + * * @return The stability. */ @java.lang.Override @@ -250,12 +294,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 @@ -263,19 +310,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.
@@ -291,6 +345,8 @@ public com.google.protobuf.DurationOrBuilder getResultEndTimeOrBuilder() {
   public static final int CHANNEL_TAG_FIELD_NUMBER = 5;
   private int channelTag_;
   /**
+   *
+   *
    * 
    * For multi-channel audio, this is the channel number corresponding to the
    * recognized result for the audio from that channel.
@@ -298,6 +354,7 @@ public com.google.protobuf.DurationOrBuilder getResultEndTimeOrBuilder() {
    * 
* * int32 channel_tag = 5; + * * @return The channelTag. */ @java.lang.Override @@ -308,6 +365,8 @@ public int getChannelTag() { public static final int LANGUAGE_CODE_FIELD_NUMBER = 6; private volatile java.lang.Object languageCode_; /** + * + * *
    * Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag
    * of the language in this result. This language code was detected to have
@@ -315,6 +374,7 @@ public int getChannelTag() {
    * 
* * string language_code = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The languageCode. */ @java.lang.Override @@ -323,14 +383,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
@@ -338,16 +399,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 { @@ -356,6 +416,7 @@ public java.lang.String getLanguageCode() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -367,8 +428,7 @@ public final boolean isInitialized() { } @java.lang.Override - 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)); } @@ -397,24 +457,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 (stability_ != 0F) { - 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_); @@ -427,29 +482,24 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1.StreamingRecognitionResult)) { return super.equals(obj); } - com.google.cloud.speech.v1.StreamingRecognitionResult other = (com.google.cloud.speech.v1.StreamingRecognitionResult) obj; + com.google.cloud.speech.v1.StreamingRecognitionResult other = + (com.google.cloud.speech.v1.StreamingRecognitionResult) obj; - if (!getAlternativesList() - .equals(other.getAlternativesList())) return false; - if (getIsFinal() - != other.getIsFinal()) return false; + if (!getAlternativesList().equals(other.getAlternativesList())) return false; + if (getIsFinal() != other.getIsFinal()) return false; if (java.lang.Float.floatToIntBits(getStability()) - != java.lang.Float.floatToIntBits( - other.getStability())) return false; + != java.lang.Float.floatToIntBits(other.getStability())) return false; if (hasResultEndTime() != other.hasResultEndTime()) return false; if (hasResultEndTime()) { - if (!getResultEndTime() - .equals(other.getResultEndTime())) return false; + if (!getResultEndTime().equals(other.getResultEndTime())) return false; } - if (getChannelTag() - != other.getChannelTag()) return false; - if (!getLanguageCode() - .equals(other.getLanguageCode())) return false; + if (getChannelTag() != other.getChannelTag()) return false; + if (!getLanguageCode().equals(other.getLanguageCode())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -466,11 +516,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(); @@ -485,96 +533,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.
@@ -582,21 +638,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.speech.v1.StreamingRecognitionResult}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1.StreamingRecognitionResult)
       com.google.cloud.speech.v1.StreamingRecognitionResultOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_StreamingRecognitionResult_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.speech.v1.SpeechProto
+          .internal_static_google_cloud_speech_v1_StreamingRecognitionResult_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_StreamingRecognitionResult_fieldAccessorTable
+      return com.google.cloud.speech.v1.SpeechProto
+          .internal_static_google_cloud_speech_v1_StreamingRecognitionResult_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v1.StreamingRecognitionResult.class, com.google.cloud.speech.v1.StreamingRecognitionResult.Builder.class);
+              com.google.cloud.speech.v1.StreamingRecognitionResult.class,
+              com.google.cloud.speech.v1.StreamingRecognitionResult.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v1.StreamingRecognitionResult.newBuilder()
@@ -604,17 +662,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
         getAlternativesFieldBuilder();
       }
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -642,9 +700,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
@@ -663,7 +721,8 @@ public com.google.cloud.speech.v1.StreamingRecognitionResult build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v1.StreamingRecognitionResult buildPartial() {
-      com.google.cloud.speech.v1.StreamingRecognitionResult result = new com.google.cloud.speech.v1.StreamingRecognitionResult(this);
+      com.google.cloud.speech.v1.StreamingRecognitionResult result =
+          new com.google.cloud.speech.v1.StreamingRecognitionResult(this);
       int from_bitField0_ = bitField0_;
       if (alternativesBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
@@ -691,38 +750,39 @@ public com.google.cloud.speech.v1.StreamingRecognitionResult buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.speech.v1.StreamingRecognitionResult) {
-        return mergeFrom((com.google.cloud.speech.v1.StreamingRecognitionResult)other);
+        return mergeFrom((com.google.cloud.speech.v1.StreamingRecognitionResult) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -730,7 +790,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()) {
@@ -749,9 +810,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_);
           }
@@ -792,7 +854,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.speech.v1.StreamingRecognitionResult) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.speech.v1.StreamingRecognitionResult) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -801,21 +864,30 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
     private java.util.List alternatives_ =
-      java.util.Collections.emptyList();
+        java.util.Collections.emptyList();
+
     private void ensureAlternativesIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
-        alternatives_ = new java.util.ArrayList(alternatives_);
+        alternatives_ =
+            new java.util.ArrayList(
+                alternatives_);
         bitField0_ |= 0x00000001;
-       }
+      }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.speech.v1.SpeechRecognitionAlternative, com.google.cloud.speech.v1.SpeechRecognitionAlternative.Builder, com.google.cloud.speech.v1.SpeechRecognitionAlternativeOrBuilder> alternativesBuilder_;
+            com.google.cloud.speech.v1.SpeechRecognitionAlternative,
+            com.google.cloud.speech.v1.SpeechRecognitionAlternative.Builder,
+            com.google.cloud.speech.v1.SpeechRecognitionAlternativeOrBuilder>
+        alternativesBuilder_;
 
     /**
+     *
+     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -825,7 +897,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 {
@@ -833,6 +906,8 @@ public java.util.List g
       }
     }
     /**
+     *
+     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -850,6 +925,8 @@ public int getAlternativesCount() {
       }
     }
     /**
+     *
+     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -867,6 +944,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`).
@@ -891,6 +970,8 @@ public Builder setAlternatives(
       return this;
     }
     /**
+     *
+     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -901,7 +982,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());
@@ -912,6 +994,8 @@ public Builder setAlternatives(
       return this;
     }
     /**
+     *
+     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -935,6 +1019,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`).
@@ -959,6 +1045,8 @@ public Builder addAlternatives(
       return this;
     }
     /**
+     *
+     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -980,6 +1068,8 @@ public Builder addAlternatives(
       return this;
     }
     /**
+     *
+     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -990,7 +1080,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());
@@ -1001,6 +1092,8 @@ public Builder addAlternatives(
       return this;
     }
     /**
+     *
+     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -1011,11 +1104,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);
@@ -1023,6 +1116,8 @@ public Builder addAllAlternatives(
       return this;
     }
     /**
+     *
+     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -1043,6 +1138,8 @@ public Builder clearAlternatives() {
       return this;
     }
     /**
+     *
+     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -1063,6 +1160,8 @@ public Builder removeAlternatives(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -1077,6 +1176,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`).
@@ -1086,14 +1187,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`).
@@ -1103,8 +1207,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 {
@@ -1112,6 +1217,8 @@ public com.google.cloud.speech.v1.SpeechRecognitionAlternativeOrBuilder getAlter
       }
     }
     /**
+     *
+     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -1121,11 +1228,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`).
@@ -1137,10 +1247,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`).
@@ -1150,27 +1263,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
@@ -1180,6 +1298,7 @@ public com.google.cloud.speech.v1.SpeechRecognitionAlternative.Builder addAltern
      * 
* * bool is_final = 2; + * * @return The isFinal. */ @java.lang.Override @@ -1187,6 +1306,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
@@ -1196,16 +1317,19 @@ public boolean getIsFinal() {
      * 
* * bool is_final = 2; + * * @param value The isFinal to set. * @return This builder for chaining. */ public Builder setIsFinal(boolean value) { - + isFinal_ = value; onChanged(); return this; } /** + * + * *
      * If `false`, this `StreamingRecognitionResult` represents an
      * interim result that may change. If `true`, this is the final time the
@@ -1215,17 +1339,20 @@ public Builder setIsFinal(boolean value) {
      * 
* * bool is_final = 2; + * * @return This builder for chaining. */ public Builder clearIsFinal() { - + isFinal_ = false; onChanged(); return this; } - private float stability_ ; + private float stability_; /** + * + * *
      * An estimate of the likelihood that the recognizer will not
      * change its guess about this interim result. Values range from 0.0
@@ -1235,6 +1362,7 @@ public Builder clearIsFinal() {
      * 
* * float stability = 3; + * * @return The stability. */ @java.lang.Override @@ -1242,6 +1370,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
@@ -1251,16 +1381,19 @@ public float getStability() {
      * 
* * float stability = 3; + * * @param value The stability to set. * @return This builder for chaining. */ public Builder setStability(float value) { - + stability_ = value; onChanged(); return this; } /** + * + * *
      * An estimate of the likelihood that the recognizer will not
      * change its guess about this interim result. Values range from 0.0
@@ -1270,10 +1403,11 @@ public Builder setStability(float value) {
      * 
* * float stability = 3; + * * @return This builder for chaining. */ public Builder clearStability() { - + stability_ = 0F; onChanged(); return this; @@ -1281,36 +1415,49 @@ public Builder clearStability() { private com.google.protobuf.Duration resultEndTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> resultEndTimeBuilder_; + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + resultEndTimeBuilder_; /** + * + * *
      * Time offset of the end of this result relative to the
      * beginning of the audio.
      * 
* * .google.protobuf.Duration result_end_time = 4; + * * @return Whether the resultEndTime field is set. */ public boolean hasResultEndTime() { return resultEndTimeBuilder_ != null || resultEndTime_ != null; } /** + * + * *
      * Time offset of the end of this result relative to the
      * beginning of the audio.
      * 
* * .google.protobuf.Duration result_end_time = 4; + * * @return The resultEndTime. */ public com.google.protobuf.Duration getResultEndTime() { if (resultEndTimeBuilder_ == null) { - return resultEndTime_ == null ? com.google.protobuf.Duration.getDefaultInstance() : resultEndTime_; + return resultEndTime_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : resultEndTime_; } else { return resultEndTimeBuilder_.getMessage(); } } /** + * + * *
      * Time offset of the end of this result relative to the
      * beginning of the audio.
@@ -1332,6 +1479,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.
@@ -1339,8 +1488,7 @@ public Builder setResultEndTime(com.google.protobuf.Duration value) {
      *
      * .google.protobuf.Duration result_end_time = 4;
      */
-    public Builder setResultEndTime(
-        com.google.protobuf.Duration.Builder builderForValue) {
+    public Builder setResultEndTime(com.google.protobuf.Duration.Builder builderForValue) {
       if (resultEndTimeBuilder_ == null) {
         resultEndTime_ = builderForValue.build();
         onChanged();
@@ -1351,6 +1499,8 @@ public Builder setResultEndTime(
       return this;
     }
     /**
+     *
+     *
      * 
      * Time offset of the end of this result relative to the
      * beginning of the audio.
@@ -1362,7 +1512,9 @@ public Builder mergeResultEndTime(com.google.protobuf.Duration value) {
       if (resultEndTimeBuilder_ == null) {
         if (resultEndTime_ != null) {
           resultEndTime_ =
-            com.google.protobuf.Duration.newBuilder(resultEndTime_).mergeFrom(value).buildPartial();
+              com.google.protobuf.Duration.newBuilder(resultEndTime_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           resultEndTime_ = value;
         }
@@ -1374,6 +1526,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.
@@ -1393,6 +1547,8 @@ public Builder clearResultEndTime() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Time offset of the end of this result relative to the
      * beginning of the audio.
@@ -1401,11 +1557,13 @@ public Builder clearResultEndTime() {
      * .google.protobuf.Duration result_end_time = 4;
      */
     public com.google.protobuf.Duration.Builder getResultEndTimeBuilder() {
-      
+
       onChanged();
       return getResultEndTimeFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Time offset of the end of this result relative to the
      * beginning of the audio.
@@ -1417,11 +1575,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.
@@ -1430,21 +1591,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.
@@ -1452,6 +1618,7 @@ public com.google.protobuf.DurationOrBuilder getResultEndTimeOrBuilder() {
      * 
* * int32 channel_tag = 5; + * * @return The channelTag. */ @java.lang.Override @@ -1459,6 +1626,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.
@@ -1466,16 +1635,19 @@ public int getChannelTag() {
      * 
* * int32 channel_tag = 5; + * * @param value The channelTag to set. * @return This builder for chaining. */ public Builder setChannelTag(int value) { - + channelTag_ = value; onChanged(); return this; } /** + * + * *
      * For multi-channel audio, this is the channel number corresponding to the
      * recognized result for the audio from that channel.
@@ -1483,10 +1655,11 @@ public Builder setChannelTag(int value) {
      * 
* * int32 channel_tag = 5; + * * @return This builder for chaining. */ public Builder clearChannelTag() { - + channelTag_ = 0; onChanged(); return this; @@ -1494,6 +1667,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
@@ -1501,13 +1676,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; @@ -1516,6 +1691,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
@@ -1523,15 +1700,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 { @@ -1539,6 +1715,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
@@ -1546,20 +1724,22 @@ public java.lang.String getLanguageCode() {
      * 
* * string language_code = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCode( - java.lang.String value) { + public Builder setLanguageCode(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + languageCode_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag
      * of the language in this result. This language code was detected to have
@@ -1567,15 +1747,18 @@ public Builder setLanguageCode(
      * 
* * string language_code = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearLanguageCode() { - + languageCode_ = getDefaultInstance().getLanguageCode(); onChanged(); return this; } /** + * + * *
      * Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag
      * of the language in this result. This language code was detected to have
@@ -1583,23 +1766,23 @@ public Builder clearLanguageCode() {
      * 
* * string language_code = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCodeBytes( - com.google.protobuf.ByteString value) { + public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + languageCode_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1609,12 +1792,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(); } @@ -1623,16 +1806,16 @@ public static com.google.cloud.speech.v1.StreamingRecognitionResult getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StreamingRecognitionResult parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new StreamingRecognitionResult(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StreamingRecognitionResult parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new StreamingRecognitionResult(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1647,6 +1830,4 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.speech.v1.StreamingRecognitionResult getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognitionResultOrBuilder.java b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognitionResultOrBuilder.java similarity index 85% rename from owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognitionResultOrBuilder.java rename to proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognitionResultOrBuilder.java index c44aa1077..21ef917f1 100644 --- a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognitionResultOrBuilder.java +++ b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognitionResultOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1/cloud_speech.proto package com.google.cloud.speech.v1; -public interface StreamingRecognitionResultOrBuilder extends +public interface StreamingRecognitionResultOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1.StreamingRecognitionResult) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * May contain one or more recognition hypotheses (up to the
    * maximum specified in `max_alternatives`).
@@ -17,9 +35,10 @@ public interface StreamingRecognitionResultOrBuilder extends
    *
    * repeated .google.cloud.speech.v1.SpeechRecognitionAlternative alternatives = 1;
    */
-  java.util.List 
-      getAlternativesList();
+  java.util.List getAlternativesList();
   /**
+   *
+   *
    * 
    * May contain one or more recognition hypotheses (up to the
    * maximum specified in `max_alternatives`).
@@ -31,6 +50,8 @@ public interface StreamingRecognitionResultOrBuilder extends
    */
   com.google.cloud.speech.v1.SpeechRecognitionAlternative getAlternatives(int index);
   /**
+   *
+   *
    * 
    * May contain one or more recognition hypotheses (up to the
    * maximum specified in `max_alternatives`).
@@ -42,6 +63,8 @@ public interface StreamingRecognitionResultOrBuilder extends
    */
   int getAlternativesCount();
   /**
+   *
+   *
    * 
    * May contain one or more recognition hypotheses (up to the
    * maximum specified in `max_alternatives`).
@@ -51,9 +74,11 @@ public interface StreamingRecognitionResultOrBuilder extends
    *
    * repeated .google.cloud.speech.v1.SpeechRecognitionAlternative alternatives = 1;
    */
-  java.util.List 
+  java.util.List
       getAlternativesOrBuilderList();
   /**
+   *
+   *
    * 
    * May contain one or more recognition hypotheses (up to the
    * maximum specified in `max_alternatives`).
@@ -67,6 +92,8 @@ com.google.cloud.speech.v1.SpeechRecognitionAlternativeOrBuilder getAlternatives
       int index);
 
   /**
+   *
+   *
    * 
    * If `false`, this `StreamingRecognitionResult` represents an
    * interim result that may change. If `true`, this is the final time the
@@ -76,11 +103,14 @@ com.google.cloud.speech.v1.SpeechRecognitionAlternativeOrBuilder getAlternatives
    * 
* * bool is_final = 2; + * * @return The isFinal. */ boolean getIsFinal(); /** + * + * *
    * An estimate of the likelihood that the recognizer will not
    * change its guess about this interim result. Values range from 0.0
@@ -90,31 +120,40 @@ com.google.cloud.speech.v1.SpeechRecognitionAlternativeOrBuilder getAlternatives
    * 
* * float stability = 3; + * * @return The stability. */ float getStability(); /** + * + * *
    * Time offset of the end of this result relative to the
    * beginning of the audio.
    * 
* * .google.protobuf.Duration result_end_time = 4; + * * @return Whether the resultEndTime field is set. */ boolean hasResultEndTime(); /** + * + * *
    * Time offset of the end of this result relative to the
    * beginning of the audio.
    * 
* * .google.protobuf.Duration result_end_time = 4; + * * @return The resultEndTime. */ com.google.protobuf.Duration getResultEndTime(); /** + * + * *
    * Time offset of the end of this result relative to the
    * beginning of the audio.
@@ -125,6 +164,8 @@ com.google.cloud.speech.v1.SpeechRecognitionAlternativeOrBuilder getAlternatives
   com.google.protobuf.DurationOrBuilder getResultEndTimeOrBuilder();
 
   /**
+   *
+   *
    * 
    * For multi-channel audio, this is the channel number corresponding to the
    * recognized result for the audio from that channel.
@@ -132,11 +173,14 @@ com.google.cloud.speech.v1.SpeechRecognitionAlternativeOrBuilder getAlternatives
    * 
* * int32 channel_tag = 5; + * * @return The channelTag. */ int getChannelTag(); /** + * + * *
    * Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag
    * of the language in this result. This language code was detected to have
@@ -144,10 +188,13 @@ com.google.cloud.speech.v1.SpeechRecognitionAlternativeOrBuilder getAlternatives
    * 
* * string language_code = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The languageCode. */ java.lang.String getLanguageCode(); /** + * + * *
    * Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag
    * of the language in this result. This language code was detected to have
@@ -155,8 +202,8 @@ com.google.cloud.speech.v1.SpeechRecognitionAlternativeOrBuilder getAlternatives
    * 
* * string language_code = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for languageCode. */ - com.google.protobuf.ByteString - getLanguageCodeBytes(); + com.google.protobuf.ByteString getLanguageCodeBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeRequest.java b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeRequest.java similarity index 73% rename from owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeRequest.java rename to proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeRequest.java index 993690496..da898b89e 100644 --- a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeRequest.java +++ b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeRequest.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1/cloud_speech.proto package com.google.cloud.speech.v1; /** + * + * *
  * The top-level message sent by the client for the `StreamingRecognize` method.
  * Multiple `StreamingRecognizeRequest` messages are sent. The first message
@@ -14,30 +31,29 @@
  *
  * Protobuf type {@code google.cloud.speech.v1.StreamingRecognizeRequest}
  */
-public final class StreamingRecognizeRequest extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class StreamingRecognizeRequest extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.speech.v1.StreamingRecognizeRequest)
     StreamingRecognizeRequestOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use StreamingRecognizeRequest.newBuilder() to construct.
   private StreamingRecognizeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-  private StreamingRecognizeRequest() {
-  }
+
+  private StreamingRecognizeRequest() {}
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new StreamingRecognizeRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private StreamingRecognizeRequest(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -56,66 +72,78 @@ private StreamingRecognizeRequest(
           case 0:
             done = true;
             break;
-          case 10: {
-            com.google.cloud.speech.v1.StreamingRecognitionConfig.Builder subBuilder = null;
-            if (streamingRequestCase_ == 1) {
-              subBuilder = ((com.google.cloud.speech.v1.StreamingRecognitionConfig) streamingRequest_).toBuilder();
+          case 10:
+            {
+              com.google.cloud.speech.v1.StreamingRecognitionConfig.Builder subBuilder = null;
+              if (streamingRequestCase_ == 1) {
+                subBuilder =
+                    ((com.google.cloud.speech.v1.StreamingRecognitionConfig) streamingRequest_)
+                        .toBuilder();
+              }
+              streamingRequest_ =
+                  input.readMessage(
+                      com.google.cloud.speech.v1.StreamingRecognitionConfig.parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(
+                    (com.google.cloud.speech.v1.StreamingRecognitionConfig) streamingRequest_);
+                streamingRequest_ = subBuilder.buildPartial();
+              }
+              streamingRequestCase_ = 1;
+              break;
             }
-            streamingRequest_ =
-                input.readMessage(com.google.cloud.speech.v1.StreamingRecognitionConfig.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom((com.google.cloud.speech.v1.StreamingRecognitionConfig) streamingRequest_);
-              streamingRequest_ = subBuilder.buildPartial();
+          case 18:
+            {
+              streamingRequestCase_ = 2;
+              streamingRequest_ = input.readBytes();
+              break;
             }
-            streamingRequestCase_ = 1;
-            break;
-          }
-          case 18: {
-            streamingRequestCase_ = 2;
-            streamingRequest_ = input.readBytes();
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_StreamingRecognizeRequest_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.speech.v1.SpeechProto
+        .internal_static_google_cloud_speech_v1_StreamingRecognizeRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_StreamingRecognizeRequest_fieldAccessorTable
+    return com.google.cloud.speech.v1.SpeechProto
+        .internal_static_google_cloud_speech_v1_StreamingRecognizeRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v1.StreamingRecognizeRequest.class, com.google.cloud.speech.v1.StreamingRecognizeRequest.Builder.class);
+            com.google.cloud.speech.v1.StreamingRecognizeRequest.class,
+            com.google.cloud.speech.v1.StreamingRecognizeRequest.Builder.class);
   }
 
   private int streamingRequestCase_ = 0;
   private java.lang.Object streamingRequest_;
+
   public enum StreamingRequestCase
-      implements com.google.protobuf.Internal.EnumLite,
+      implements
+          com.google.protobuf.Internal.EnumLite,
           com.google.protobuf.AbstractMessage.InternalOneOfEnum {
     STREAMING_CONFIG(1),
     AUDIO_CONTENT(2),
     STREAMINGREQUEST_NOT_SET(0);
     private final int value;
+
     private StreamingRequestCase(int value) {
       this.value = value;
     }
@@ -131,25 +159,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
@@ -157,6 +190,7 @@ public int getNumber() {
    * 
* * .google.cloud.speech.v1.StreamingRecognitionConfig streaming_config = 1; + * * @return Whether the streamingConfig field is set. */ @java.lang.Override @@ -164,6 +198,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
@@ -171,16 +207,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
@@ -190,15 +229,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
@@ -211,6 +253,7 @@ public com.google.cloud.speech.v1.StreamingRecognitionConfigOrBuilder getStreami
    * 
* * bytes audio_content = 2; + * * @return Whether the audioContent field is set. */ @java.lang.Override @@ -218,6 +261,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
@@ -230,6 +275,7 @@ public boolean hasAudioContent() {
    * 
* * bytes audio_content = 2; + * * @return The audioContent. */ @java.lang.Override @@ -241,6 +287,7 @@ public com.google.protobuf.ByteString getAudioContent() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -252,14 +299,13 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (streamingRequestCase_ == 1) { - output.writeMessage(1, (com.google.cloud.speech.v1.StreamingRecognitionConfig) streamingRequest_); + output.writeMessage( + 1, (com.google.cloud.speech.v1.StreamingRecognitionConfig) streamingRequest_); } if (streamingRequestCase_ == 2) { - output.writeBytes( - 2, (com.google.protobuf.ByteString) streamingRequest_); + output.writeBytes(2, (com.google.protobuf.ByteString) streamingRequest_); } unknownFields.writeTo(output); } @@ -271,13 +317,14 @@ public int getSerializedSize() { size = 0; if (streamingRequestCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, (com.google.cloud.speech.v1.StreamingRecognitionConfig) streamingRequest_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, (com.google.cloud.speech.v1.StreamingRecognitionConfig) streamingRequest_); } if (streamingRequestCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize( - 2, (com.google.protobuf.ByteString) streamingRequest_); + size += + com.google.protobuf.CodedOutputStream.computeBytesSize( + 2, (com.google.protobuf.ByteString) streamingRequest_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -287,22 +334,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: @@ -336,96 +382,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
@@ -436,21 +489,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.speech.v1.StreamingRecognizeRequest}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1.StreamingRecognizeRequest)
       com.google.cloud.speech.v1.StreamingRecognizeRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_StreamingRecognizeRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.speech.v1.SpeechProto
+          .internal_static_google_cloud_speech_v1_StreamingRecognizeRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_StreamingRecognizeRequest_fieldAccessorTable
+      return com.google.cloud.speech.v1.SpeechProto
+          .internal_static_google_cloud_speech_v1_StreamingRecognizeRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v1.StreamingRecognizeRequest.class, com.google.cloud.speech.v1.StreamingRecognizeRequest.Builder.class);
+              com.google.cloud.speech.v1.StreamingRecognizeRequest.class,
+              com.google.cloud.speech.v1.StreamingRecognizeRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v1.StreamingRecognizeRequest.newBuilder()
@@ -458,16 +513,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -477,9 +531,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
@@ -498,7 +552,8 @@ public com.google.cloud.speech.v1.StreamingRecognizeRequest build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v1.StreamingRecognizeRequest buildPartial() {
-      com.google.cloud.speech.v1.StreamingRecognizeRequest result = new com.google.cloud.speech.v1.StreamingRecognizeRequest(this);
+      com.google.cloud.speech.v1.StreamingRecognizeRequest result =
+          new com.google.cloud.speech.v1.StreamingRecognizeRequest(this);
       if (streamingRequestCase_ == 1) {
         if (streamingConfigBuilder_ == null) {
           result.streamingRequest_ = streamingRequest_;
@@ -518,38 +573,39 @@ public com.google.cloud.speech.v1.StreamingRecognizeRequest buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.speech.v1.StreamingRecognizeRequest) {
-        return mergeFrom((com.google.cloud.speech.v1.StreamingRecognizeRequest)other);
+        return mergeFrom((com.google.cloud.speech.v1.StreamingRecognizeRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -557,19 +613,23 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.speech.v1.StreamingRecognizeRequest other) {
-      if (other == com.google.cloud.speech.v1.StreamingRecognizeRequest.getDefaultInstance()) return this;
+      if (other == com.google.cloud.speech.v1.StreamingRecognizeRequest.getDefaultInstance())
+        return this;
       switch (other.getStreamingRequestCase()) {
-        case STREAMING_CONFIG: {
-          mergeStreamingConfig(other.getStreamingConfig());
-          break;
-        }
-        case AUDIO_CONTENT: {
-          setAudioContent(other.getAudioContent());
-          break;
-        }
-        case STREAMINGREQUEST_NOT_SET: {
-          break;
-        }
+        case STREAMING_CONFIG:
+          {
+            mergeStreamingConfig(other.getStreamingConfig());
+            break;
+          }
+        case AUDIO_CONTENT:
+          {
+            setAudioContent(other.getAudioContent());
+            break;
+          }
+        case STREAMINGREQUEST_NOT_SET:
+          {
+            break;
+          }
       }
       this.mergeUnknownFields(other.unknownFields);
       onChanged();
@@ -590,7 +650,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.speech.v1.StreamingRecognizeRequest) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.speech.v1.StreamingRecognizeRequest) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -599,12 +660,12 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int streamingRequestCase_ = 0;
     private java.lang.Object streamingRequest_;
-    public StreamingRequestCase
-        getStreamingRequestCase() {
-      return StreamingRequestCase.forNumber(
-          streamingRequestCase_);
+
+    public StreamingRequestCase getStreamingRequestCase() {
+      return StreamingRequestCase.forNumber(streamingRequestCase_);
     }
 
     public Builder clearStreamingRequest() {
@@ -614,10 +675,14 @@ public Builder clearStreamingRequest() {
       return this;
     }
 
-
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.speech.v1.StreamingRecognitionConfig, com.google.cloud.speech.v1.StreamingRecognitionConfig.Builder, com.google.cloud.speech.v1.StreamingRecognitionConfigOrBuilder> streamingConfigBuilder_;
+            com.google.cloud.speech.v1.StreamingRecognitionConfig,
+            com.google.cloud.speech.v1.StreamingRecognitionConfig.Builder,
+            com.google.cloud.speech.v1.StreamingRecognitionConfigOrBuilder>
+        streamingConfigBuilder_;
     /**
+     *
+     *
      * 
      * Provides information to the recognizer that specifies how to process the
      * request. The first `StreamingRecognizeRequest` message must contain a
@@ -625,6 +690,7 @@ public Builder clearStreamingRequest() {
      * 
* * .google.cloud.speech.v1.StreamingRecognitionConfig streaming_config = 1; + * * @return Whether the streamingConfig field is set. */ @java.lang.Override @@ -632,6 +698,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
@@ -639,6 +707,7 @@ public boolean hasStreamingConfig() {
      * 
* * .google.cloud.speech.v1.StreamingRecognitionConfig streaming_config = 1; + * * @return The streamingConfig. */ @java.lang.Override @@ -656,6 +725,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
@@ -678,6 +749,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
@@ -698,6 +771,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
@@ -706,12 +781,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;
         }
@@ -726,6 +806,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
@@ -751,6 +833,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
@@ -759,10 +843,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
@@ -772,7 +859,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 {
@@ -783,6 +871,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
@@ -792,25 +882,34 @@ public com.google.cloud.speech.v1.StreamingRecognitionConfigOrBuilder getStreami
      * .google.cloud.speech.v1.StreamingRecognitionConfig streaming_config = 1;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.speech.v1.StreamingRecognitionConfig, com.google.cloud.speech.v1.StreamingRecognitionConfig.Builder, com.google.cloud.speech.v1.StreamingRecognitionConfigOrBuilder> 
+            com.google.cloud.speech.v1.StreamingRecognitionConfig,
+            com.google.cloud.speech.v1.StreamingRecognitionConfig.Builder,
+            com.google.cloud.speech.v1.StreamingRecognitionConfigOrBuilder>
         getStreamingConfigFieldBuilder() {
       if (streamingConfigBuilder_ == null) {
         if (!(streamingRequestCase_ == 1)) {
-          streamingRequest_ = com.google.cloud.speech.v1.StreamingRecognitionConfig.getDefaultInstance();
+          streamingRequest_ =
+              com.google.cloud.speech.v1.StreamingRecognitionConfig.getDefaultInstance();
         }
-        streamingConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.speech.v1.StreamingRecognitionConfig, com.google.cloud.speech.v1.StreamingRecognitionConfig.Builder, com.google.cloud.speech.v1.StreamingRecognitionConfigOrBuilder>(
+        streamingConfigBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.speech.v1.StreamingRecognitionConfig,
+                com.google.cloud.speech.v1.StreamingRecognitionConfig.Builder,
+                com.google.cloud.speech.v1.StreamingRecognitionConfigOrBuilder>(
                 (com.google.cloud.speech.v1.StreamingRecognitionConfig) streamingRequest_,
                 getParentForChildren(),
                 isClean());
         streamingRequest_ = null;
       }
       streamingRequestCase_ = 1;
-      onChanged();;
+      onChanged();
+      ;
       return streamingConfigBuilder_;
     }
 
     /**
+     *
+     *
      * 
      * The audio data to be recognized. Sequential chunks of audio data are sent
      * in sequential `StreamingRecognizeRequest` messages. The first
@@ -823,12 +922,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
@@ -841,6 +943,7 @@ public boolean hasAudioContent() {
      * 
* * bytes audio_content = 2; + * * @return The audioContent. */ public com.google.protobuf.ByteString getAudioContent() { @@ -850,6 +953,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
@@ -862,19 +967,22 @@ public com.google.protobuf.ByteString getAudioContent() {
      * 
* * bytes audio_content = 2; + * * @param value The audioContent to set. * @return This builder for chaining. */ public Builder setAudioContent(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - streamingRequestCase_ = 2; + throw new NullPointerException(); + } + streamingRequestCase_ = 2; streamingRequest_ = value; onChanged(); return this; } /** + * + * *
      * The audio data to be recognized. Sequential chunks of audio data are sent
      * in sequential `StreamingRecognizeRequest` messages. The first
@@ -887,6 +995,7 @@ public Builder setAudioContent(com.google.protobuf.ByteString value) {
      * 
* * bytes audio_content = 2; + * * @return This builder for chaining. */ public Builder clearAudioContent() { @@ -897,9 +1006,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); } @@ -909,12 +1018,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(); } @@ -923,16 +1032,16 @@ public static com.google.cloud.speech.v1.StreamingRecognizeRequest getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StreamingRecognizeRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new StreamingRecognizeRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StreamingRecognizeRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new StreamingRecognizeRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -947,6 +1056,4 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.speech.v1.StreamingRecognizeRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeRequestOrBuilder.java b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeRequestOrBuilder.java similarity index 79% rename from owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeRequestOrBuilder.java rename to proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeRequestOrBuilder.java index 28ed92b15..13fc461c9 100644 --- a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeRequestOrBuilder.java +++ b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeRequestOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1/cloud_speech.proto package com.google.cloud.speech.v1; -public interface StreamingRecognizeRequestOrBuilder extends +public interface StreamingRecognizeRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1.StreamingRecognizeRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Provides information to the recognizer that specifies how to process the
    * request. The first `StreamingRecognizeRequest` message must contain a
@@ -15,10 +33,13 @@ public interface StreamingRecognizeRequestOrBuilder extends
    * 
* * .google.cloud.speech.v1.StreamingRecognitionConfig streaming_config = 1; + * * @return Whether the streamingConfig field is set. */ boolean hasStreamingConfig(); /** + * + * *
    * Provides information to the recognizer that specifies how to process the
    * request. The first `StreamingRecognizeRequest` message must contain a
@@ -26,10 +47,13 @@ public interface StreamingRecognizeRequestOrBuilder extends
    * 
* * .google.cloud.speech.v1.StreamingRecognitionConfig streaming_config = 1; + * * @return The streamingConfig. */ com.google.cloud.speech.v1.StreamingRecognitionConfig getStreamingConfig(); /** + * + * *
    * Provides information to the recognizer that specifies how to process the
    * request. The first `StreamingRecognizeRequest` message must contain a
@@ -41,6 +65,8 @@ public interface StreamingRecognizeRequestOrBuilder extends
   com.google.cloud.speech.v1.StreamingRecognitionConfigOrBuilder getStreamingConfigOrBuilder();
 
   /**
+   *
+   *
    * 
    * The audio data to be recognized. Sequential chunks of audio data are sent
    * in sequential `StreamingRecognizeRequest` messages. The first
@@ -53,10 +79,13 @@ public interface StreamingRecognizeRequestOrBuilder extends
    * 
* * bytes audio_content = 2; + * * @return Whether the audioContent field is set. */ boolean hasAudioContent(); /** + * + * *
    * The audio data to be recognized. Sequential chunks of audio data are sent
    * in sequential `StreamingRecognizeRequest` messages. The first
@@ -69,9 +98,11 @@ public interface StreamingRecognizeRequestOrBuilder extends
    * 
* * bytes audio_content = 2; + * * @return The audioContent. */ com.google.protobuf.ByteString getAudioContent(); - public com.google.cloud.speech.v1.StreamingRecognizeRequest.StreamingRequestCase getStreamingRequestCase(); + public com.google.cloud.speech.v1.StreamingRecognizeRequest.StreamingRequestCase + getStreamingRequestCase(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeResponse.java b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeResponse.java similarity index 77% rename from owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeResponse.java rename to proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeResponse.java index 4ad45bf54..dc980f5a4 100644 --- a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeResponse.java +++ b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeResponse.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1/cloud_speech.proto package com.google.cloud.speech.v1; /** + * + * *
  * `StreamingRecognizeResponse` is the only message returned to the client by
  * `StreamingRecognize`. A series of zero or more `StreamingRecognizeResponse`
@@ -45,15 +62,16 @@
  *
  * Protobuf type {@code google.cloud.speech.v1.StreamingRecognizeResponse}
  */
-public final class StreamingRecognizeResponse extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class StreamingRecognizeResponse extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.speech.v1.StreamingRecognizeResponse)
     StreamingRecognizeResponseOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use StreamingRecognizeResponse.newBuilder() to construct.
   private StreamingRecognizeResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private StreamingRecognizeResponse() {
     results_ = java.util.Collections.emptyList();
     speechEventType_ = 0;
@@ -61,16 +79,15 @@ private StreamingRecognizeResponse() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new StreamingRecognizeResponse();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private StreamingRecognizeResponse(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -90,61 +107,69 @@ private StreamingRecognizeResponse(
           case 0:
             done = true;
             break;
-          case 10: {
-            com.google.rpc.Status.Builder subBuilder = null;
-            if (error_ != null) {
-              subBuilder = error_.toBuilder();
+          case 10:
+            {
+              com.google.rpc.Status.Builder subBuilder = null;
+              if (error_ != null) {
+                subBuilder = error_.toBuilder();
+              }
+              error_ = input.readMessage(com.google.rpc.Status.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(error_);
+                error_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
-            error_ = input.readMessage(com.google.rpc.Status.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(error_);
-              error_ = subBuilder.buildPartial();
+          case 18:
+            {
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                results_ =
+                    new java.util.ArrayList<
+                        com.google.cloud.speech.v1.StreamingRecognitionResult>();
+                mutable_bitField0_ |= 0x00000001;
+              }
+              results_.add(
+                  input.readMessage(
+                      com.google.cloud.speech.v1.StreamingRecognitionResult.parser(),
+                      extensionRegistry));
+              break;
             }
+          case 32:
+            {
+              int rawValue = input.readEnum();
 
-            break;
-          }
-          case 18: {
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              results_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000001;
+              speechEventType_ = rawValue;
+              break;
             }
-            results_.add(
-                input.readMessage(com.google.cloud.speech.v1.StreamingRecognitionResult.parser(), extensionRegistry));
-            break;
-          }
-          case 32: {
-            int rawValue = input.readEnum();
-
-            speechEventType_ = rawValue;
-            break;
-          }
-          case 42: {
-            com.google.protobuf.Duration.Builder subBuilder = null;
-            if (totalBilledTime_ != null) {
-              subBuilder = totalBilledTime_.toBuilder();
+          case 42:
+            {
+              com.google.protobuf.Duration.Builder subBuilder = null;
+              if (totalBilledTime_ != null) {
+                subBuilder = totalBilledTime_.toBuilder();
+              }
+              totalBilledTime_ =
+                  input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(totalBilledTime_);
+                totalBilledTime_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
-            totalBilledTime_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(totalBilledTime_);
-              totalBilledTime_ = subBuilder.buildPartial();
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
-            }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         results_ = java.util.Collections.unmodifiableList(results_);
@@ -153,29 +178,35 @@ private StreamingRecognizeResponse(
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_StreamingRecognizeResponse_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.speech.v1.SpeechProto
+        .internal_static_google_cloud_speech_v1_StreamingRecognizeResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_StreamingRecognizeResponse_fieldAccessorTable
+    return com.google.cloud.speech.v1.SpeechProto
+        .internal_static_google_cloud_speech_v1_StreamingRecognizeResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v1.StreamingRecognizeResponse.class, com.google.cloud.speech.v1.StreamingRecognizeResponse.Builder.class);
+            com.google.cloud.speech.v1.StreamingRecognizeResponse.class,
+            com.google.cloud.speech.v1.StreamingRecognizeResponse.Builder.class);
   }
 
   /**
+   *
+   *
    * 
    * Indicates the type of speech event.
    * 
* * Protobuf enum {@code google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType} */ - public enum SpeechEventType - implements com.google.protobuf.ProtocolMessageEnum { + public enum SpeechEventType implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * No speech event specified.
      * 
@@ -184,6 +215,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
@@ -201,6 +234,8 @@ public enum SpeechEventType
     ;
 
     /**
+     *
+     *
      * 
      * No speech event specified.
      * 
@@ -209,6 +244,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
@@ -223,7 +260,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(
@@ -248,39 +284,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();
@@ -288,8 +328,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;
@@ -309,12 +348,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 @@ -322,12 +364,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 @@ -335,6 +380,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.
@@ -350,6 +397,8 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() {
   public static final int RESULTS_FIELD_NUMBER = 2;
   private java.util.List results_;
   /**
+   *
+   *
    * 
    * This repeated list contains zero or more results that
    * correspond to consecutive portions of the audio currently being processed.
@@ -364,6 +413,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.
@@ -374,11 +425,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.
@@ -393,6 +446,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.
@@ -407,6 +462,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.
@@ -425,39 +482,57 @@ public com.google.cloud.speech.v1.StreamingRecognitionResultOrBuilder getResults
   public static final int SPEECH_EVENT_TYPE_FIELD_NUMBER = 4;
   private int speechEventType_;
   /**
+   *
+   *
    * 
    * Indicates the type of speech event.
    * 
* - * .google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType speech_event_type = 4; + * .google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType speech_event_type = 4; + * + * * @return The enum numeric value on the wire for speechEventType. */ - @java.lang.Override public int getSpeechEventTypeValue() { + @java.lang.Override + public int getSpeechEventTypeValue() { return speechEventType_; } /** + * + * *
    * Indicates the type of speech event.
    * 
* - * .google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType speech_event_type = 4; + * .google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType speech_event_type = 4; + * + * * @return The speechEventType. */ - @java.lang.Override public com.google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType getSpeechEventType() { + @java.lang.Override + public com.google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType + getSpeechEventType() { @SuppressWarnings("deprecation") - com.google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType result = com.google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType.valueOf(speechEventType_); - return result == null ? com.google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType.UNRECOGNIZED : result; + com.google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType result = + com.google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType.valueOf( + speechEventType_); + return result == null + ? com.google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType.UNRECOGNIZED + : result; } public static final int TOTAL_BILLED_TIME_FIELD_NUMBER = 5; private com.google.protobuf.Duration totalBilledTime_; /** + * + * *
    * When available, billed audio seconds for the stream.
    * Set only if this is the last response in the stream.
    * 
* * .google.protobuf.Duration total_billed_time = 5; + * * @return Whether the totalBilledTime field is set. */ @java.lang.Override @@ -465,19 +540,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.
@@ -491,6 +573,7 @@ public com.google.protobuf.DurationOrBuilder getTotalBilledTimeOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -502,15 +585,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) {
@@ -526,20 +611,19 @@ public int getSerializedSize() {
 
     size = 0;
     if (error_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(1, getError());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getError());
     }
     for (int i = 0; i < results_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(2, results_.get(i));
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, results_.get(i));
     }
-    if (speechEventType_ != com.google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType.SPEECH_EVENT_UNSPECIFIED.getNumber()) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeEnumSize(4, speechEventType_);
+    if (speechEventType_
+        != com.google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType
+            .SPEECH_EVENT_UNSPECIFIED
+            .getNumber()) {
+      size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, speechEventType_);
     }
     if (totalBilledTime_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(5, getTotalBilledTime());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getTotalBilledTime());
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -549,25 +633,23 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.speech.v1.StreamingRecognizeResponse)) {
       return super.equals(obj);
     }
-    com.google.cloud.speech.v1.StreamingRecognizeResponse other = (com.google.cloud.speech.v1.StreamingRecognizeResponse) obj;
+    com.google.cloud.speech.v1.StreamingRecognizeResponse other =
+        (com.google.cloud.speech.v1.StreamingRecognizeResponse) obj;
 
     if (hasError() != other.hasError()) return false;
     if (hasError()) {
-      if (!getError()
-          .equals(other.getError())) return false;
+      if (!getError().equals(other.getError())) return false;
     }
-    if (!getResultsList()
-        .equals(other.getResultsList())) return false;
+    if (!getResultsList().equals(other.getResultsList())) return false;
     if (speechEventType_ != other.speechEventType_) return false;
     if (hasTotalBilledTime() != other.hasTotalBilledTime()) return false;
     if (hasTotalBilledTime()) {
-      if (!getTotalBilledTime()
-          .equals(other.getTotalBilledTime())) return false;
+      if (!getTotalBilledTime().equals(other.getTotalBilledTime())) return false;
     }
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
@@ -600,96 +682,104 @@ public int hashCode() {
   }
 
   public static com.google.cloud.speech.v1.StreamingRecognizeResponse parseFrom(
-      java.nio.ByteBuffer data)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.speech.v1.StreamingRecognizeResponse parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.speech.v1.StreamingRecognizeResponse parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.speech.v1.StreamingRecognizeResponse parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.speech.v1.StreamingRecognizeResponse parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.speech.v1.StreamingRecognizeResponse parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.speech.v1.StreamingRecognizeResponse parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.speech.v1.StreamingRecognizeResponse parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.speech.v1.StreamingRecognizeResponse parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
-  public static com.google.cloud.speech.v1.StreamingRecognizeResponse parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+
+  public static com.google.cloud.speech.v1.StreamingRecognizeResponse parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.speech.v1.StreamingRecognizeResponse parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.speech.v1.StreamingRecognizeResponse parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.speech.v1.StreamingRecognizeResponse parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-  public static Builder newBuilder(com.google.cloud.speech.v1.StreamingRecognizeResponse prototype) {
+
+  public static Builder newBuilder(
+      com.google.cloud.speech.v1.StreamingRecognizeResponse prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * `StreamingRecognizeResponse` is the only message returned to the client by
    * `StreamingRecognize`. A series of zero or more `StreamingRecognizeResponse`
@@ -731,21 +821,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.speech.v1.StreamingRecognizeResponse}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1.StreamingRecognizeResponse)
       com.google.cloud.speech.v1.StreamingRecognizeResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_StreamingRecognizeResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.speech.v1.SpeechProto
+          .internal_static_google_cloud_speech_v1_StreamingRecognizeResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_StreamingRecognizeResponse_fieldAccessorTable
+      return com.google.cloud.speech.v1.SpeechProto
+          .internal_static_google_cloud_speech_v1_StreamingRecognizeResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v1.StreamingRecognizeResponse.class, com.google.cloud.speech.v1.StreamingRecognizeResponse.Builder.class);
+              com.google.cloud.speech.v1.StreamingRecognizeResponse.class,
+              com.google.cloud.speech.v1.StreamingRecognizeResponse.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v1.StreamingRecognizeResponse.newBuilder()
@@ -753,17 +845,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
         getResultsFieldBuilder();
       }
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -791,9 +883,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
@@ -812,7 +904,8 @@ public com.google.cloud.speech.v1.StreamingRecognizeResponse build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v1.StreamingRecognizeResponse buildPartial() {
-      com.google.cloud.speech.v1.StreamingRecognizeResponse result = new com.google.cloud.speech.v1.StreamingRecognizeResponse(this);
+      com.google.cloud.speech.v1.StreamingRecognizeResponse result =
+          new com.google.cloud.speech.v1.StreamingRecognizeResponse(this);
       int from_bitField0_ = bitField0_;
       if (errorBuilder_ == null) {
         result.error_ = error_;
@@ -842,38 +935,39 @@ public com.google.cloud.speech.v1.StreamingRecognizeResponse buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.speech.v1.StreamingRecognizeResponse) {
-        return mergeFrom((com.google.cloud.speech.v1.StreamingRecognizeResponse)other);
+        return mergeFrom((com.google.cloud.speech.v1.StreamingRecognizeResponse) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -881,7 +975,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());
       }
@@ -903,9 +998,10 @@ public Builder mergeFrom(com.google.cloud.speech.v1.StreamingRecognizeResponse o
             resultsBuilder_ = null;
             results_ = other.results_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            resultsBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getResultsFieldBuilder() : null;
+            resultsBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getResultsFieldBuilder()
+                    : null;
           } else {
             resultsBuilder_.addAllMessages(other.results_);
           }
@@ -936,7 +1032,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.speech.v1.StreamingRecognizeResponse) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.speech.v1.StreamingRecognizeResponse) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -945,30 +1042,38 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
     private com.google.rpc.Status error_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> errorBuilder_;
+            com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>
+        errorBuilder_;
     /**
+     *
+     *
      * 
      * If set, returns a [google.rpc.Status][google.rpc.Status] message that
      * specifies the error for the operation.
      * 
* * .google.rpc.Status error = 1; + * * @return Whether the error field is set. */ public boolean hasError() { return errorBuilder_ != null || error_ != null; } /** + * + * *
      * If set, returns a [google.rpc.Status][google.rpc.Status] message that
      * specifies the error for the operation.
      * 
* * .google.rpc.Status error = 1; + * * @return The error. */ public com.google.rpc.Status getError() { @@ -979,6 +1084,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.
@@ -1000,6 +1107,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.
@@ -1007,8 +1116,7 @@ public Builder setError(com.google.rpc.Status value) {
      *
      * .google.rpc.Status error = 1;
      */
-    public Builder setError(
-        com.google.rpc.Status.Builder builderForValue) {
+    public Builder setError(com.google.rpc.Status.Builder builderForValue) {
       if (errorBuilder_ == null) {
         error_ = builderForValue.build();
         onChanged();
@@ -1019,6 +1127,8 @@ public Builder setError(
       return this;
     }
     /**
+     *
+     *
      * 
      * If set, returns a [google.rpc.Status][google.rpc.Status] message that
      * specifies the error for the operation.
@@ -1029,8 +1139,7 @@ public Builder setError(
     public Builder mergeError(com.google.rpc.Status value) {
       if (errorBuilder_ == null) {
         if (error_ != null) {
-          error_ =
-            com.google.rpc.Status.newBuilder(error_).mergeFrom(value).buildPartial();
+          error_ = com.google.rpc.Status.newBuilder(error_).mergeFrom(value).buildPartial();
         } else {
           error_ = value;
         }
@@ -1042,6 +1151,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.
@@ -1061,6 +1172,8 @@ public Builder clearError() {
       return this;
     }
     /**
+     *
+     *
      * 
      * If set, returns a [google.rpc.Status][google.rpc.Status] message that
      * specifies the error for the operation.
@@ -1069,11 +1182,13 @@ public Builder clearError() {
      * .google.rpc.Status error = 1;
      */
     public com.google.rpc.Status.Builder getErrorBuilder() {
-      
+
       onChanged();
       return getErrorFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * If set, returns a [google.rpc.Status][google.rpc.Status] message that
      * specifies the error for the operation.
@@ -1085,11 +1200,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.
@@ -1098,32 +1214,40 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() {
      * .google.rpc.Status error = 1;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> 
+            com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>
         getErrorFieldBuilder() {
       if (errorBuilder_ == null) {
-        errorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>(
-                getError(),
-                getParentForChildren(),
-                isClean());
+        errorBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.rpc.Status,
+                com.google.rpc.Status.Builder,
+                com.google.rpc.StatusOrBuilder>(getError(), getParentForChildren(), isClean());
         error_ = null;
       }
       return errorBuilder_;
     }
 
     private java.util.List results_ =
-      java.util.Collections.emptyList();
+        java.util.Collections.emptyList();
+
     private void ensureResultsIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
-        results_ = new java.util.ArrayList(results_);
+        results_ =
+            new java.util.ArrayList(
+                results_);
         bitField0_ |= 0x00000001;
-       }
+      }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.speech.v1.StreamingRecognitionResult, com.google.cloud.speech.v1.StreamingRecognitionResult.Builder, com.google.cloud.speech.v1.StreamingRecognitionResultOrBuilder> resultsBuilder_;
+            com.google.cloud.speech.v1.StreamingRecognitionResult,
+            com.google.cloud.speech.v1.StreamingRecognitionResult.Builder,
+            com.google.cloud.speech.v1.StreamingRecognitionResultOrBuilder>
+        resultsBuilder_;
 
     /**
+     *
+     *
      * 
      * This repeated list contains zero or more results that
      * correspond to consecutive portions of the audio currently being processed.
@@ -1141,6 +1265,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.
@@ -1158,6 +1284,8 @@ public int getResultsCount() {
       }
     }
     /**
+     *
+     *
      * 
      * This repeated list contains zero or more results that
      * correspond to consecutive portions of the audio currently being processed.
@@ -1175,6 +1303,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.
@@ -1199,6 +1329,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.
@@ -1220,6 +1352,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.
@@ -1243,6 +1377,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.
@@ -1267,6 +1403,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.
@@ -1288,6 +1426,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.
@@ -1309,6 +1449,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.
@@ -1319,11 +1461,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);
@@ -1331,6 +1473,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.
@@ -1351,6 +1495,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.
@@ -1371,6 +1517,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.
@@ -1385,6 +1533,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.
@@ -1397,11 +1547,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.
@@ -1411,8 +1564,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 {
@@ -1420,6 +1573,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.
@@ -1430,10 +1585,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.
@@ -1445,10 +1602,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.
@@ -1458,20 +1618,23 @@ public com.google.cloud.speech.v1.StreamingRecognitionResult.Builder addResultsB
      *
      * repeated .google.cloud.speech.v1.StreamingRecognitionResult results = 2;
      */
-    public java.util.List 
-         getResultsBuilderList() {
+    public java.util.List
+        getResultsBuilderList() {
       return getResultsFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.speech.v1.StreamingRecognitionResult, com.google.cloud.speech.v1.StreamingRecognitionResult.Builder, com.google.cloud.speech.v1.StreamingRecognitionResultOrBuilder> 
+            com.google.cloud.speech.v1.StreamingRecognitionResult,
+            com.google.cloud.speech.v1.StreamingRecognitionResult.Builder,
+            com.google.cloud.speech.v1.StreamingRecognitionResultOrBuilder>
         getResultsFieldBuilder() {
       if (resultsBuilder_ == null) {
-        resultsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.speech.v1.StreamingRecognitionResult, com.google.cloud.speech.v1.StreamingRecognitionResult.Builder, com.google.cloud.speech.v1.StreamingRecognitionResultOrBuilder>(
-                results_,
-                ((bitField0_ & 0x00000001) != 0),
-                getParentForChildren(),
-                isClean());
+        resultsBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.cloud.speech.v1.StreamingRecognitionResult,
+                com.google.cloud.speech.v1.StreamingRecognitionResult.Builder,
+                com.google.cloud.speech.v1.StreamingRecognitionResultOrBuilder>(
+                results_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
         results_ = null;
       }
       return resultsBuilder_;
@@ -1479,73 +1642,105 @@ public com.google.cloud.speech.v1.StreamingRecognitionResult.Builder addResultsB
 
     private int speechEventType_ = 0;
     /**
+     *
+     *
      * 
      * Indicates the type of speech event.
      * 
* - * .google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType speech_event_type = 4; + * + * .google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType speech_event_type = 4; + * + * * @return The enum numeric value on the wire for speechEventType. */ - @java.lang.Override public int getSpeechEventTypeValue() { + @java.lang.Override + public int getSpeechEventTypeValue() { return speechEventType_; } /** + * + * *
      * Indicates the type of speech event.
      * 
* - * .google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType speech_event_type = 4; + * + * .google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType speech_event_type = 4; + * + * * @param value The enum numeric value on the wire for speechEventType to set. * @return This builder for chaining. */ public Builder setSpeechEventTypeValue(int value) { - + speechEventType_ = value; onChanged(); return this; } /** + * + * *
      * Indicates the type of speech event.
      * 
* - * .google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType speech_event_type = 4; + * + * .google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType speech_event_type = 4; + * + * * @return The speechEventType. */ @java.lang.Override - public com.google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType getSpeechEventType() { + public com.google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType + getSpeechEventType() { @SuppressWarnings("deprecation") - com.google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType result = com.google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType.valueOf(speechEventType_); - return result == null ? com.google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType.UNRECOGNIZED : result; + com.google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType result = + com.google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType.valueOf( + speechEventType_); + return result == null + ? com.google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType.UNRECOGNIZED + : result; } /** + * + * *
      * Indicates the type of speech event.
      * 
* - * .google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType speech_event_type = 4; + * + * .google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType speech_event_type = 4; + * + * * @param value The speechEventType to set. * @return This builder for chaining. */ - public Builder setSpeechEventType(com.google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType value) { + public Builder setSpeechEventType( + com.google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType value) { if (value == null) { throw new NullPointerException(); } - + speechEventType_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Indicates the type of speech event.
      * 
* - * .google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType speech_event_type = 4; + * + * .google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType speech_event_type = 4; + * + * * @return This builder for chaining. */ public Builder clearSpeechEventType() { - + speechEventType_ = 0; onChanged(); return this; @@ -1553,36 +1748,49 @@ public Builder clearSpeechEventType() { private com.google.protobuf.Duration totalBilledTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> totalBilledTimeBuilder_; + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + totalBilledTimeBuilder_; /** + * + * *
      * When available, billed audio seconds for the stream.
      * Set only if this is the last response in the stream.
      * 
* * .google.protobuf.Duration total_billed_time = 5; + * * @return Whether the totalBilledTime field is set. */ public boolean hasTotalBilledTime() { return totalBilledTimeBuilder_ != null || totalBilledTime_ != null; } /** + * + * *
      * When available, billed audio seconds for the stream.
      * Set only if this is the last response in the stream.
      * 
* * .google.protobuf.Duration total_billed_time = 5; + * * @return The totalBilledTime. */ public com.google.protobuf.Duration getTotalBilledTime() { if (totalBilledTimeBuilder_ == null) { - return totalBilledTime_ == null ? com.google.protobuf.Duration.getDefaultInstance() : totalBilledTime_; + return totalBilledTime_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : totalBilledTime_; } else { return totalBilledTimeBuilder_.getMessage(); } } /** + * + * *
      * When available, billed audio seconds for the stream.
      * Set only if this is the last response in the stream.
@@ -1604,6 +1812,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.
@@ -1611,8 +1821,7 @@ public Builder setTotalBilledTime(com.google.protobuf.Duration value) {
      *
      * .google.protobuf.Duration total_billed_time = 5;
      */
-    public Builder setTotalBilledTime(
-        com.google.protobuf.Duration.Builder builderForValue) {
+    public Builder setTotalBilledTime(com.google.protobuf.Duration.Builder builderForValue) {
       if (totalBilledTimeBuilder_ == null) {
         totalBilledTime_ = builderForValue.build();
         onChanged();
@@ -1623,6 +1832,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.
@@ -1634,7 +1845,9 @@ public Builder mergeTotalBilledTime(com.google.protobuf.Duration value) {
       if (totalBilledTimeBuilder_ == null) {
         if (totalBilledTime_ != null) {
           totalBilledTime_ =
-            com.google.protobuf.Duration.newBuilder(totalBilledTime_).mergeFrom(value).buildPartial();
+              com.google.protobuf.Duration.newBuilder(totalBilledTime_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           totalBilledTime_ = value;
         }
@@ -1646,6 +1859,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.
@@ -1665,6 +1880,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.
@@ -1673,11 +1890,13 @@ public Builder clearTotalBilledTime() {
      * .google.protobuf.Duration total_billed_time = 5;
      */
     public com.google.protobuf.Duration.Builder getTotalBilledTimeBuilder() {
-      
+
       onChanged();
       return getTotalBilledTimeFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * When available, billed audio seconds for the stream.
      * Set only if this is the last response in the stream.
@@ -1689,11 +1908,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.
@@ -1702,21 +1924,24 @@ public com.google.protobuf.DurationOrBuilder getTotalBilledTimeOrBuilder() {
      * .google.protobuf.Duration total_billed_time = 5;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> 
+            com.google.protobuf.Duration,
+            com.google.protobuf.Duration.Builder,
+            com.google.protobuf.DurationOrBuilder>
         getTotalBilledTimeFieldBuilder() {
       if (totalBilledTimeBuilder_ == null) {
-        totalBilledTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
-                getTotalBilledTime(),
-                getParentForChildren(),
-                isClean());
+        totalBilledTimeBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.Duration,
+                com.google.protobuf.Duration.Builder,
+                com.google.protobuf.DurationOrBuilder>(
+                getTotalBilledTime(), getParentForChildren(), isClean());
         totalBilledTime_ = null;
       }
       return totalBilledTimeBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1726,12 +1951,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();
   }
@@ -1740,16 +1965,16 @@ public static com.google.cloud.speech.v1.StreamingRecognizeResponse getDefaultIn
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public StreamingRecognizeResponse parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return new StreamingRecognizeResponse(input, extensionRegistry);
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public StreamingRecognizeResponse parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          return new StreamingRecognizeResponse(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1764,6 +1989,4 @@ public com.google.protobuf.Parser getParserForType()
   public com.google.cloud.speech.v1.StreamingRecognizeResponse getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeResponseOrBuilder.java b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeResponseOrBuilder.java
similarity index 83%
rename from owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeResponseOrBuilder.java
rename to proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeResponseOrBuilder.java
index 1a3c3b062..2c285ed9f 100644
--- a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeResponseOrBuilder.java
+++ b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeResponseOrBuilder.java
@@ -1,33 +1,57 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/speech/v1/cloud_speech.proto
 
 package com.google.cloud.speech.v1;
 
-public interface StreamingRecognizeResponseOrBuilder extends
+public interface StreamingRecognizeResponseOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1.StreamingRecognizeResponse)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * If set, returns a [google.rpc.Status][google.rpc.Status] message that
    * specifies the error for the operation.
    * 
* * .google.rpc.Status error = 1; + * * @return Whether the error field is set. */ boolean hasError(); /** + * + * *
    * If set, returns a [google.rpc.Status][google.rpc.Status] message that
    * specifies the error for the operation.
    * 
* * .google.rpc.Status error = 1; + * * @return The error. */ com.google.rpc.Status getError(); /** + * + * *
    * If set, returns a [google.rpc.Status][google.rpc.Status] message that
    * specifies the error for the operation.
@@ -38,6 +62,8 @@ public interface StreamingRecognizeResponseOrBuilder extends
   com.google.rpc.StatusOrBuilder getErrorOrBuilder();
 
   /**
+   *
+   *
    * 
    * This repeated list contains zero or more results that
    * correspond to consecutive portions of the audio currently being processed.
@@ -47,9 +73,10 @@ public interface StreamingRecognizeResponseOrBuilder extends
    *
    * repeated .google.cloud.speech.v1.StreamingRecognitionResult results = 2;
    */
-  java.util.List 
-      getResultsList();
+  java.util.List getResultsList();
   /**
+   *
+   *
    * 
    * This repeated list contains zero or more results that
    * correspond to consecutive portions of the audio currently being processed.
@@ -61,6 +88,8 @@ public interface StreamingRecognizeResponseOrBuilder extends
    */
   com.google.cloud.speech.v1.StreamingRecognitionResult getResults(int index);
   /**
+   *
+   *
    * 
    * This repeated list contains zero or more results that
    * correspond to consecutive portions of the audio currently being processed.
@@ -72,6 +101,8 @@ public interface StreamingRecognizeResponseOrBuilder extends
    */
   int getResultsCount();
   /**
+   *
+   *
    * 
    * This repeated list contains zero or more results that
    * correspond to consecutive portions of the audio currently being processed.
@@ -81,9 +112,11 @@ public interface StreamingRecognizeResponseOrBuilder extends
    *
    * repeated .google.cloud.speech.v1.StreamingRecognitionResult results = 2;
    */
-  java.util.List 
+  java.util.List
       getResultsOrBuilderList();
   /**
+   *
+   *
    * 
    * This repeated list contains zero or more results that
    * correspond to consecutive portions of the audio currently being processed.
@@ -93,49 +126,64 @@ public interface StreamingRecognizeResponseOrBuilder extends
    *
    * repeated .google.cloud.speech.v1.StreamingRecognitionResult results = 2;
    */
-  com.google.cloud.speech.v1.StreamingRecognitionResultOrBuilder getResultsOrBuilder(
-      int index);
+  com.google.cloud.speech.v1.StreamingRecognitionResultOrBuilder getResultsOrBuilder(int index);
 
   /**
+   *
+   *
    * 
    * Indicates the type of speech event.
    * 
* - * .google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType speech_event_type = 4; + * .google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType speech_event_type = 4; + * + * * @return The enum numeric value on the wire for speechEventType. */ int getSpeechEventTypeValue(); /** + * + * *
    * Indicates the type of speech event.
    * 
* - * .google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType speech_event_type = 4; + * .google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType speech_event_type = 4; + * + * * @return The speechEventType. */ com.google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType getSpeechEventType(); /** + * + * *
    * When available, billed audio seconds for the stream.
    * Set only if this is the last response in the stream.
    * 
* * .google.protobuf.Duration total_billed_time = 5; + * * @return Whether the totalBilledTime field is set. */ boolean hasTotalBilledTime(); /** + * + * *
    * When available, billed audio seconds for the stream.
    * Set only if this is the last response in the stream.
    * 
* * .google.protobuf.Duration total_billed_time = 5; + * * @return The totalBilledTime. */ com.google.protobuf.Duration getTotalBilledTime(); /** + * + * *
    * When available, billed audio seconds for the stream.
    * Set only if this is the last response in the stream.
diff --git a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/TranscriptOutputConfig.java b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/TranscriptOutputConfig.java
similarity index 70%
rename from owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/TranscriptOutputConfig.java
rename to proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/TranscriptOutputConfig.java
index 765850ebb..93ce8b9db 100644
--- a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/TranscriptOutputConfig.java
+++ b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/TranscriptOutputConfig.java
@@ -1,39 +1,55 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/speech/v1/cloud_speech.proto
 
 package com.google.cloud.speech.v1;
 
 /**
+ *
+ *
  * 
  * Specifies an optional destination for the recognition results.
  * 
* * Protobuf type {@code google.cloud.speech.v1.TranscriptOutputConfig} */ -public final class TranscriptOutputConfig extends - com.google.protobuf.GeneratedMessageV3 implements +public final class TranscriptOutputConfig extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v1.TranscriptOutputConfig) TranscriptOutputConfigOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use TranscriptOutputConfig.newBuilder() to construct. private TranscriptOutputConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private TranscriptOutputConfig() { - } + + private TranscriptOutputConfig() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new TranscriptOutputConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private TranscriptOutputConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,52 +68,58 @@ private TranscriptOutputConfig( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - outputTypeCase_ = 1; - outputType_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + outputTypeCase_ = 1; + outputType_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_TranscriptOutputConfig_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1.SpeechProto + .internal_static_google_cloud_speech_v1_TranscriptOutputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_TranscriptOutputConfig_fieldAccessorTable + return com.google.cloud.speech.v1.SpeechProto + .internal_static_google_cloud_speech_v1_TranscriptOutputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1.TranscriptOutputConfig.class, com.google.cloud.speech.v1.TranscriptOutputConfig.Builder.class); + com.google.cloud.speech.v1.TranscriptOutputConfig.class, + com.google.cloud.speech.v1.TranscriptOutputConfig.Builder.class); } private int outputTypeCase_ = 0; private java.lang.Object outputType_; + public enum OutputTypeCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { GCS_URI(1), OUTPUTTYPE_NOT_SET(0); private final int value; + private OutputTypeCase(int value) { this.value = value; } @@ -113,24 +135,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
@@ -138,12 +164,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
@@ -151,6 +180,7 @@ public boolean hasGcsUri() {
    * 
* * string gcs_uri = 1; + * * @return The gcsUri. */ public java.lang.String getGcsUri() { @@ -161,8 +191,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; @@ -171,6 +200,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
@@ -178,18 +209,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; } @@ -200,6 +230,7 @@ public java.lang.String getGcsUri() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -211,8 +242,7 @@ public final boolean isInitialized() { } @java.lang.Override - public 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_); } @@ -236,18 +266,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: @@ -277,117 +307,126 @@ public int hashCode() { } public static com.google.cloud.speech.v1.TranscriptOutputConfig parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1.TranscriptOutputConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1.TranscriptOutputConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1.TranscriptOutputConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1.TranscriptOutputConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1.TranscriptOutputConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1.TranscriptOutputConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1.TranscriptOutputConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1.TranscriptOutputConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1.TranscriptOutputConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1.TranscriptOutputConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1.TranscriptOutputConfig parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.speech.v1.TranscriptOutputConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1.TranscriptOutputConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.speech.v1.TranscriptOutputConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Specifies an optional destination for the recognition results.
    * 
* * Protobuf type {@code google.cloud.speech.v1.TranscriptOutputConfig} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1.TranscriptOutputConfig) com.google.cloud.speech.v1.TranscriptOutputConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_TranscriptOutputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1.SpeechProto + .internal_static_google_cloud_speech_v1_TranscriptOutputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_TranscriptOutputConfig_fieldAccessorTable + return com.google.cloud.speech.v1.SpeechProto + .internal_static_google_cloud_speech_v1_TranscriptOutputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1.TranscriptOutputConfig.class, com.google.cloud.speech.v1.TranscriptOutputConfig.Builder.class); + com.google.cloud.speech.v1.TranscriptOutputConfig.class, + com.google.cloud.speech.v1.TranscriptOutputConfig.Builder.class); } // Construct using com.google.cloud.speech.v1.TranscriptOutputConfig.newBuilder() @@ -395,16 +434,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -414,9 +452,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_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 @@ -435,7 +473,8 @@ public com.google.cloud.speech.v1.TranscriptOutputConfig build() { @java.lang.Override public com.google.cloud.speech.v1.TranscriptOutputConfig buildPartial() { - com.google.cloud.speech.v1.TranscriptOutputConfig result = new com.google.cloud.speech.v1.TranscriptOutputConfig(this); + com.google.cloud.speech.v1.TranscriptOutputConfig result = + new com.google.cloud.speech.v1.TranscriptOutputConfig(this); if (outputTypeCase_ == 1) { result.outputType_ = outputType_; } @@ -448,38 +487,39 @@ public com.google.cloud.speech.v1.TranscriptOutputConfig buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.speech.v1.TranscriptOutputConfig) { - return mergeFrom((com.google.cloud.speech.v1.TranscriptOutputConfig)other); + return mergeFrom((com.google.cloud.speech.v1.TranscriptOutputConfig) other); } else { super.mergeFrom(other); return this; @@ -487,17 +527,20 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.speech.v1.TranscriptOutputConfig other) { - if (other == com.google.cloud.speech.v1.TranscriptOutputConfig.getDefaultInstance()) return this; + if (other == com.google.cloud.speech.v1.TranscriptOutputConfig.getDefaultInstance()) + return this; switch (other.getOutputTypeCase()) { - case GCS_URI: { - outputTypeCase_ = 1; - outputType_ = other.outputType_; - onChanged(); - break; - } - case OUTPUTTYPE_NOT_SET: { - break; - } + case GCS_URI: + { + outputTypeCase_ = 1; + outputType_ = other.outputType_; + onChanged(); + break; + } + case OUTPUTTYPE_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -518,7 +561,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.speech.v1.TranscriptOutputConfig) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.speech.v1.TranscriptOutputConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -527,12 +571,12 @@ public Builder mergeFrom( } return this; } + private int outputTypeCase_ = 0; private java.lang.Object outputType_; - public OutputTypeCase - getOutputTypeCase() { - return OutputTypeCase.forNumber( - outputTypeCase_); + + public OutputTypeCase getOutputTypeCase() { + return OutputTypeCase.forNumber(outputTypeCase_); } public Builder clearOutputType() { @@ -542,8 +586,9 @@ public Builder clearOutputType() { return this; } - /** + * + * *
      * Specifies a Cloud Storage URI for the recognition results. Must be
      * specified in the format: `gs://bucket_name/object_name`, and the bucket
@@ -551,6 +596,7 @@ public Builder clearOutputType() {
      * 
* * string gcs_uri = 1; + * * @return Whether the gcsUri field is set. */ @java.lang.Override @@ -558,6 +604,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
@@ -565,6 +613,7 @@ public boolean hasGcsUri() {
      * 
* * string gcs_uri = 1; + * * @return The gcsUri. */ @java.lang.Override @@ -574,8 +623,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; @@ -586,6 +634,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
@@ -593,19 +643,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; } @@ -615,6 +664,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
@@ -622,20 +673,22 @@ public java.lang.String getGcsUri() {
      * 
* * string gcs_uri = 1; + * * @param value The gcsUri to set. * @return This builder for chaining. */ - public Builder setGcsUri( - java.lang.String value) { + public Builder setGcsUri(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - outputTypeCase_ = 1; + throw new NullPointerException(); + } + outputTypeCase_ = 1; outputType_ = value; onChanged(); return this; } /** + * + * *
      * Specifies a Cloud Storage URI for the recognition results. Must be
      * specified in the format: `gs://bucket_name/object_name`, and the bucket
@@ -643,6 +696,7 @@ public Builder setGcsUri(
      * 
* * string gcs_uri = 1; + * * @return This builder for chaining. */ public Builder clearGcsUri() { @@ -654,6 +708,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
@@ -661,23 +717,23 @@ public Builder clearGcsUri() {
      * 
* * string gcs_uri = 1; + * * @param value The bytes for gcsUri to set. * @return This builder for chaining. */ - public Builder setGcsUriBytes( - com.google.protobuf.ByteString value) { + public Builder setGcsUriBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); outputTypeCase_ = 1; outputType_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -687,12 +743,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(); } @@ -701,16 +757,16 @@ public static com.google.cloud.speech.v1.TranscriptOutputConfig getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TranscriptOutputConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TranscriptOutputConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TranscriptOutputConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TranscriptOutputConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -725,6 +781,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1.TranscriptOutputConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/TranscriptOutputConfigOrBuilder.java b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/TranscriptOutputConfigOrBuilder.java similarity index 63% rename from owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/TranscriptOutputConfigOrBuilder.java rename to proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/TranscriptOutputConfigOrBuilder.java index 5ce9fd833..c5255ae75 100644 --- a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/TranscriptOutputConfigOrBuilder.java +++ b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/TranscriptOutputConfigOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1/cloud_speech.proto package com.google.cloud.speech.v1; -public interface TranscriptOutputConfigOrBuilder extends +public interface TranscriptOutputConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1.TranscriptOutputConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Specifies a Cloud Storage URI for the recognition results. Must be
    * specified in the format: `gs://bucket_name/object_name`, and the bucket
@@ -15,10 +33,13 @@ public interface TranscriptOutputConfigOrBuilder extends
    * 
* * string gcs_uri = 1; + * * @return Whether the gcsUri field is set. */ boolean hasGcsUri(); /** + * + * *
    * Specifies a Cloud Storage URI for the recognition results. Must be
    * specified in the format: `gs://bucket_name/object_name`, and the bucket
@@ -26,10 +47,13 @@ public interface TranscriptOutputConfigOrBuilder extends
    * 
* * string gcs_uri = 1; + * * @return The gcsUri. */ java.lang.String getGcsUri(); /** + * + * *
    * Specifies a Cloud Storage URI for the recognition results. Must be
    * specified in the format: `gs://bucket_name/object_name`, and the bucket
@@ -37,10 +61,10 @@ public interface TranscriptOutputConfigOrBuilder extends
    * 
* * string gcs_uri = 1; + * * @return The bytes for gcsUri. */ - com.google.protobuf.ByteString - getGcsUriBytes(); + com.google.protobuf.ByteString getGcsUriBytes(); public com.google.cloud.speech.v1.TranscriptOutputConfig.OutputTypeCase getOutputTypeCase(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/WordInfo.java b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/WordInfo.java similarity index 77% rename from owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/WordInfo.java rename to proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/WordInfo.java index a4d0777b6..0acf4170a 100644 --- a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/WordInfo.java +++ b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/WordInfo.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1/cloud_speech.proto package com.google.cloud.speech.v1; /** + * + * *
  * Word-specific information for recognized words.
  * 
* * Protobuf type {@code google.cloud.speech.v1.WordInfo} */ -public final class WordInfo extends - com.google.protobuf.GeneratedMessageV3 implements +public final class WordInfo extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v1.WordInfo) WordInfoOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use WordInfo.newBuilder() to construct. private WordInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private WordInfo() { word_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new WordInfo(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private WordInfo( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,83 +70,92 @@ private WordInfo( case 0: done = true; break; - case 10: { - com.google.protobuf.Duration.Builder subBuilder = null; - if (startTime_ != null) { - subBuilder = startTime_.toBuilder(); + case 10: + { + com.google.protobuf.Duration.Builder subBuilder = null; + if (startTime_ != null) { + subBuilder = startTime_.toBuilder(); + } + startTime_ = + input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(startTime_); + startTime_ = subBuilder.buildPartial(); + } + + break; } - startTime_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(startTime_); - startTime_ = subBuilder.buildPartial(); + case 18: + { + com.google.protobuf.Duration.Builder subBuilder = null; + if (endTime_ != null) { + subBuilder = endTime_.toBuilder(); + } + endTime_ = + input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(endTime_); + endTime_ = subBuilder.buildPartial(); + } + + break; } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - break; - } - case 18: { - com.google.protobuf.Duration.Builder subBuilder = null; - if (endTime_ != null) { - subBuilder = endTime_.toBuilder(); + word_ = s; + break; } - endTime_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(endTime_); - endTime_ = subBuilder.buildPartial(); + case 37: + { + confidence_ = input.readFloat(); + break; } - - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - word_ = s; - break; - } - case 37: { - - confidence_ = input.readFloat(); - break; - } - case 40: { - - speakerTag_ = input.readInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 40: + { + speakerTag_ = input.readInt32(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_WordInfo_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1.SpeechProto + .internal_static_google_cloud_speech_v1_WordInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_WordInfo_fieldAccessorTable + return com.google.cloud.speech.v1.SpeechProto + .internal_static_google_cloud_speech_v1_WordInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1.WordInfo.class, com.google.cloud.speech.v1.WordInfo.Builder.class); + com.google.cloud.speech.v1.WordInfo.class, + com.google.cloud.speech.v1.WordInfo.Builder.class); } public static final int START_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Duration startTime_; /** + * + * *
    * Time offset relative to the beginning of the audio,
    * and corresponding to the start of the spoken word.
@@ -140,6 +166,7 @@ private WordInfo(
    * 
* * .google.protobuf.Duration start_time = 1; + * * @return Whether the startTime field is set. */ @java.lang.Override @@ -147,6 +174,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.
@@ -157,6 +186,7 @@ public boolean hasStartTime() {
    * 
* * .google.protobuf.Duration start_time = 1; + * * @return The startTime. */ @java.lang.Override @@ -164,6 +194,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.
@@ -183,6 +215,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.
@@ -193,6 +227,7 @@ public com.google.protobuf.DurationOrBuilder getStartTimeOrBuilder() {
    * 
* * .google.protobuf.Duration end_time = 2; + * * @return Whether the endTime field is set. */ @java.lang.Override @@ -200,6 +235,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.
@@ -210,6 +247,7 @@ public boolean hasEndTime() {
    * 
* * .google.protobuf.Duration end_time = 2; + * * @return The endTime. */ @java.lang.Override @@ -217,6 +255,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.
@@ -236,11 +276,14 @@ public com.google.protobuf.DurationOrBuilder getEndTimeOrBuilder() {
   public static final int WORD_FIELD_NUMBER = 3;
   private volatile java.lang.Object word_;
   /**
+   *
+   *
    * 
    * The word corresponding to this set of information.
    * 
* * string word = 3; + * * @return The word. */ @java.lang.Override @@ -249,29 +292,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 { @@ -282,6 +325,8 @@ public java.lang.String getWord() { public static final int CONFIDENCE_FIELD_NUMBER = 4; private float confidence_; /** + * + * *
    * The confidence estimate between 0.0 and 1.0. A higher number
    * indicates an estimated greater likelihood that the recognized words are
@@ -293,6 +338,7 @@ public java.lang.String getWord() {
    * 
* * float confidence = 4; + * * @return The confidence. */ @java.lang.Override @@ -303,6 +349,8 @@ public float getConfidence() { public static final int SPEAKER_TAG_FIELD_NUMBER = 5; private int speakerTag_; /** + * + * *
    * Output only. A distinct integer value is assigned for every speaker within
    * the audio. This field specifies which one of those speakers was detected to
@@ -312,6 +360,7 @@ public float getConfidence() {
    * 
* * int32 speaker_tag = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The speakerTag. */ @java.lang.Override @@ -320,6 +369,7 @@ public int getSpeakerTag() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -331,8 +381,7 @@ public final boolean isInitialized() { } @java.lang.Override - public 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()); } @@ -358,23 +407,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 (confidence_ != 0F) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(4, confidence_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(4, confidence_); } if (speakerTag_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(5, speakerTag_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, speakerTag_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -384,7 +429,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); @@ -393,21 +438,16 @@ public boolean equals(final java.lang.Object obj) { if (hasStartTime() != other.hasStartTime()) return false; if (hasStartTime()) { - if (!getStartTime() - .equals(other.getStartTime())) return false; + if (!getStartTime().equals(other.getStartTime())) return false; } if (hasEndTime() != other.hasEndTime()) return false; if (hasEndTime()) { - if (!getEndTime() - .equals(other.getEndTime())) return false; + if (!getEndTime().equals(other.getEndTime())) return false; } - if (!getWord() - .equals(other.getWord())) return false; + if (!getWord().equals(other.getWord())) return false; if (java.lang.Float.floatToIntBits(getConfidence()) - != java.lang.Float.floatToIntBits( - other.getConfidence())) return false; - if (getSpeakerTag() - != other.getSpeakerTag()) return false; + != java.lang.Float.floatToIntBits(other.getConfidence())) return false; + if (getSpeakerTag() != other.getSpeakerTag()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -430,8 +470,7 @@ public int hashCode() { hash = (37 * hash) + WORD_FIELD_NUMBER; hash = (53 * hash) + getWord().hashCode(); hash = (37 * hash) + CONFIDENCE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getConfidence()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getConfidence()); hash = (37 * hash) + SPEAKER_TAG_FIELD_NUMBER; hash = (53 * hash) + getSpeakerTag(); hash = (29 * hash) + unknownFields.hashCode(); @@ -439,118 +478,126 @@ public int hashCode() { return hash; } - public static com.google.cloud.speech.v1.WordInfo parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.speech.v1.WordInfo parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1.WordInfo parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1.WordInfo parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.cloud.speech.v1.WordInfo parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1.WordInfo parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1.WordInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1.WordInfo parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1.WordInfo parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1.WordInfo parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.speech.v1.WordInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1.WordInfo parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.speech.v1.WordInfo parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1.WordInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.speech.v1.WordInfo prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Word-specific information for recognized words.
    * 
* * Protobuf type {@code google.cloud.speech.v1.WordInfo} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1.WordInfo) com.google.cloud.speech.v1.WordInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_WordInfo_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1.SpeechProto + .internal_static_google_cloud_speech_v1_WordInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_WordInfo_fieldAccessorTable + return com.google.cloud.speech.v1.SpeechProto + .internal_static_google_cloud_speech_v1_WordInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1.WordInfo.class, com.google.cloud.speech.v1.WordInfo.Builder.class); + com.google.cloud.speech.v1.WordInfo.class, + com.google.cloud.speech.v1.WordInfo.Builder.class); } // Construct using com.google.cloud.speech.v1.WordInfo.newBuilder() @@ -558,16 +605,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -593,9 +639,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 @@ -636,38 +682,39 @@ public com.google.cloud.speech.v1.WordInfo buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.speech.v1.WordInfo) { - return mergeFrom((com.google.cloud.speech.v1.WordInfo)other); + return mergeFrom((com.google.cloud.speech.v1.WordInfo) other); } else { super.mergeFrom(other); return this; @@ -723,8 +770,13 @@ public Builder mergeFrom( private com.google.protobuf.Duration startTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> startTimeBuilder_; + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + startTimeBuilder_; /** + * + * *
      * Time offset relative to the beginning of the audio,
      * and corresponding to the start of the spoken word.
@@ -735,12 +787,15 @@ public Builder mergeFrom(
      * 
* * .google.protobuf.Duration start_time = 1; + * * @return Whether the startTime field is set. */ public boolean hasStartTime() { return startTimeBuilder_ != null || startTime_ != null; } /** + * + * *
      * Time offset relative to the beginning of the audio,
      * and corresponding to the start of the spoken word.
@@ -751,6 +806,7 @@ public boolean hasStartTime() {
      * 
* * .google.protobuf.Duration start_time = 1; + * * @return The startTime. */ public com.google.protobuf.Duration getStartTime() { @@ -761,6 +817,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.
@@ -786,6 +844,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.
@@ -797,8 +857,7 @@ public Builder setStartTime(com.google.protobuf.Duration value) {
      *
      * .google.protobuf.Duration start_time = 1;
      */
-    public Builder setStartTime(
-        com.google.protobuf.Duration.Builder builderForValue) {
+    public Builder setStartTime(com.google.protobuf.Duration.Builder builderForValue) {
       if (startTimeBuilder_ == null) {
         startTime_ = builderForValue.build();
         onChanged();
@@ -809,6 +868,8 @@ public Builder setStartTime(
       return this;
     }
     /**
+     *
+     *
      * 
      * Time offset relative to the beginning of the audio,
      * and corresponding to the start of the spoken word.
@@ -824,7 +885,7 @@ public Builder mergeStartTime(com.google.protobuf.Duration value) {
       if (startTimeBuilder_ == null) {
         if (startTime_ != null) {
           startTime_ =
-            com.google.protobuf.Duration.newBuilder(startTime_).mergeFrom(value).buildPartial();
+              com.google.protobuf.Duration.newBuilder(startTime_).mergeFrom(value).buildPartial();
         } else {
           startTime_ = value;
         }
@@ -836,6 +897,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.
@@ -859,6 +922,8 @@ public Builder clearStartTime() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Time offset relative to the beginning of the audio,
      * and corresponding to the start of the spoken word.
@@ -871,11 +936,13 @@ public Builder clearStartTime() {
      * .google.protobuf.Duration start_time = 1;
      */
     public com.google.protobuf.Duration.Builder getStartTimeBuilder() {
-      
+
       onChanged();
       return getStartTimeFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Time offset relative to the beginning of the audio,
      * and corresponding to the start of the spoken word.
@@ -891,11 +958,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.
@@ -908,14 +976,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_;
@@ -923,8 +994,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.
@@ -935,12 +1011,15 @@ public com.google.protobuf.DurationOrBuilder getStartTimeOrBuilder() {
      * 
* * .google.protobuf.Duration end_time = 2; + * * @return Whether the endTime field is set. */ public boolean hasEndTime() { return endTimeBuilder_ != null || endTime_ != null; } /** + * + * *
      * Time offset relative to the beginning of the audio,
      * and corresponding to the end of the spoken word.
@@ -951,6 +1030,7 @@ public boolean hasEndTime() {
      * 
* * .google.protobuf.Duration end_time = 2; + * * @return The endTime. */ public com.google.protobuf.Duration getEndTime() { @@ -961,6 +1041,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.
@@ -986,6 +1068,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.
@@ -997,8 +1081,7 @@ public Builder setEndTime(com.google.protobuf.Duration value) {
      *
      * .google.protobuf.Duration end_time = 2;
      */
-    public Builder setEndTime(
-        com.google.protobuf.Duration.Builder builderForValue) {
+    public Builder setEndTime(com.google.protobuf.Duration.Builder builderForValue) {
       if (endTimeBuilder_ == null) {
         endTime_ = builderForValue.build();
         onChanged();
@@ -1009,6 +1092,8 @@ public Builder setEndTime(
       return this;
     }
     /**
+     *
+     *
      * 
      * Time offset relative to the beginning of the audio,
      * and corresponding to the end of the spoken word.
@@ -1024,7 +1109,7 @@ public Builder mergeEndTime(com.google.protobuf.Duration value) {
       if (endTimeBuilder_ == null) {
         if (endTime_ != null) {
           endTime_ =
-            com.google.protobuf.Duration.newBuilder(endTime_).mergeFrom(value).buildPartial();
+              com.google.protobuf.Duration.newBuilder(endTime_).mergeFrom(value).buildPartial();
         } else {
           endTime_ = value;
         }
@@ -1036,6 +1121,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.
@@ -1059,6 +1146,8 @@ public Builder clearEndTime() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Time offset relative to the beginning of the audio,
      * and corresponding to the end of the spoken word.
@@ -1071,11 +1160,13 @@ public Builder clearEndTime() {
      * .google.protobuf.Duration end_time = 2;
      */
     public com.google.protobuf.Duration.Builder getEndTimeBuilder() {
-      
+
       onChanged();
       return getEndTimeFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Time offset relative to the beginning of the audio,
      * and corresponding to the end of the spoken word.
@@ -1091,11 +1182,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.
@@ -1108,14 +1200,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_;
@@ -1123,18 +1218,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; @@ -1143,20 +1240,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 { @@ -1164,61 +1262,70 @@ public java.lang.String getWord() { } } /** + * + * *
      * The word corresponding to this set of information.
      * 
* * string word = 3; + * * @param value The word to set. * @return This builder for chaining. */ - public Builder setWord( - java.lang.String value) { + public Builder setWord(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + word_ = value; onChanged(); return this; } /** + * + * *
      * The word corresponding to this set of information.
      * 
* * string word = 3; + * * @return This builder for chaining. */ public Builder clearWord() { - + word_ = getDefaultInstance().getWord(); onChanged(); return this; } /** + * + * *
      * The word corresponding to this set of information.
      * 
* * string word = 3; + * * @param value The bytes for word to set. * @return This builder for chaining. */ - public Builder setWordBytes( - com.google.protobuf.ByteString value) { + public Builder setWordBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + word_ = value; onChanged(); return this; } - private float confidence_ ; + private float confidence_; /** + * + * *
      * The confidence estimate between 0.0 and 1.0. A higher number
      * indicates an estimated greater likelihood that the recognized words are
@@ -1230,6 +1337,7 @@ public Builder setWordBytes(
      * 
* * float confidence = 4; + * * @return The confidence. */ @java.lang.Override @@ -1237,6 +1345,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
@@ -1248,16 +1358,19 @@ public float getConfidence() {
      * 
* * float confidence = 4; + * * @param value The confidence to set. * @return This builder for chaining. */ public Builder setConfidence(float value) { - + confidence_ = value; onChanged(); return this; } /** + * + * *
      * The confidence estimate between 0.0 and 1.0. A higher number
      * indicates an estimated greater likelihood that the recognized words are
@@ -1269,17 +1382,20 @@ public Builder setConfidence(float value) {
      * 
* * float confidence = 4; + * * @return This builder for chaining. */ public Builder clearConfidence() { - + confidence_ = 0F; onChanged(); return this; } - private int speakerTag_ ; + private int speakerTag_; /** + * + * *
      * Output only. A distinct integer value is assigned for every speaker within
      * the audio. This field specifies which one of those speakers was detected to
@@ -1289,6 +1405,7 @@ public Builder clearConfidence() {
      * 
* * int32 speaker_tag = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The speakerTag. */ @java.lang.Override @@ -1296,6 +1413,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
@@ -1305,16 +1424,19 @@ public int getSpeakerTag() {
      * 
* * int32 speaker_tag = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The speakerTag to set. * @return This builder for chaining. */ public Builder setSpeakerTag(int value) { - + speakerTag_ = value; onChanged(); return this; } /** + * + * *
      * Output only. A distinct integer value is assigned for every speaker within
      * the audio. This field specifies which one of those speakers was detected to
@@ -1324,17 +1446,18 @@ public Builder setSpeakerTag(int value) {
      * 
* * int32 speaker_tag = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearSpeakerTag() { - + speakerTag_ = 0; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1344,12 +1467,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(); } @@ -1358,16 +1481,16 @@ public static com.google.cloud.speech.v1.WordInfo getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WordInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new WordInfo(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WordInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WordInfo(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1382,6 +1505,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1.WordInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/WordInfoOrBuilder.java b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/WordInfoOrBuilder.java similarity index 84% rename from owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/WordInfoOrBuilder.java rename to proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/WordInfoOrBuilder.java index f8e889216..45ed38fc6 100644 --- a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/WordInfoOrBuilder.java +++ b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/WordInfoOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1/cloud_speech.proto package com.google.cloud.speech.v1; -public interface WordInfoOrBuilder extends +public interface WordInfoOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1.WordInfo) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Time offset relative to the beginning of the audio,
    * and corresponding to the start of the spoken word.
@@ -18,10 +36,13 @@ public interface WordInfoOrBuilder extends
    * 
* * .google.protobuf.Duration start_time = 1; + * * @return Whether the startTime field is set. */ boolean hasStartTime(); /** + * + * *
    * Time offset relative to the beginning of the audio,
    * and corresponding to the start of the spoken word.
@@ -32,10 +53,13 @@ public interface WordInfoOrBuilder extends
    * 
* * .google.protobuf.Duration start_time = 1; + * * @return The startTime. */ com.google.protobuf.Duration getStartTime(); /** + * + * *
    * Time offset relative to the beginning of the audio,
    * and corresponding to the start of the spoken word.
@@ -50,6 +74,8 @@ public interface WordInfoOrBuilder extends
   com.google.protobuf.DurationOrBuilder getStartTimeOrBuilder();
 
   /**
+   *
+   *
    * 
    * Time offset relative to the beginning of the audio,
    * and corresponding to the end of the spoken word.
@@ -60,10 +86,13 @@ public interface WordInfoOrBuilder extends
    * 
* * .google.protobuf.Duration end_time = 2; + * * @return Whether the endTime field is set. */ boolean hasEndTime(); /** + * + * *
    * Time offset relative to the beginning of the audio,
    * and corresponding to the end of the spoken word.
@@ -74,10 +103,13 @@ public interface WordInfoOrBuilder extends
    * 
* * .google.protobuf.Duration end_time = 2; + * * @return The endTime. */ com.google.protobuf.Duration getEndTime(); /** + * + * *
    * Time offset relative to the beginning of the audio,
    * and corresponding to the end of the spoken word.
@@ -92,26 +124,33 @@ public interface WordInfoOrBuilder extends
   com.google.protobuf.DurationOrBuilder getEndTimeOrBuilder();
 
   /**
+   *
+   *
    * 
    * The word corresponding to this set of information.
    * 
* * string word = 3; + * * @return The word. */ java.lang.String getWord(); /** + * + * *
    * The word corresponding to this set of information.
    * 
* * string word = 3; + * * @return The bytes for word. */ - com.google.protobuf.ByteString - getWordBytes(); + com.google.protobuf.ByteString getWordBytes(); /** + * + * *
    * The confidence estimate between 0.0 and 1.0. A higher number
    * indicates an estimated greater likelihood that the recognized words are
@@ -123,11 +162,14 @@ public interface WordInfoOrBuilder extends
    * 
* * float confidence = 4; + * * @return The confidence. */ float getConfidence(); /** + * + * *
    * Output only. A distinct integer value is assigned for every speaker within
    * the audio. This field specifies which one of those speakers was detected to
@@ -137,6 +179,7 @@ public interface WordInfoOrBuilder extends
    * 
* * int32 speaker_tag = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The speakerTag. */ int getSpeakerTag(); diff --git a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/proto/google/cloud/speech/v1/cloud_speech.proto b/proto-google-cloud-speech-v1/src/main/proto/google/cloud/speech/v1/cloud_speech.proto similarity index 100% rename from owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/proto/google/cloud/speech/v1/cloud_speech.proto rename to proto-google-cloud-speech-v1/src/main/proto/google/cloud/speech/v1/cloud_speech.proto diff --git a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/proto/google/cloud/speech/v1/resource.proto b/proto-google-cloud-speech-v1/src/main/proto/google/cloud/speech/v1/resource.proto similarity index 100% rename from owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/proto/google/cloud/speech/v1/resource.proto rename to proto-google-cloud-speech-v1/src/main/proto/google/cloud/speech/v1/resource.proto diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreateCustomClassRequest.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreateCustomClassRequest.java similarity index 68% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreateCustomClassRequest.java rename to proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreateCustomClassRequest.java index 4f3543180..6b427baeb 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreateCustomClassRequest.java +++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreateCustomClassRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech_adaptation.proto package com.google.cloud.speech.v1p1beta1; /** + * + * *
  * Message sent by the client for the `CreateCustomClass` method.
  * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.CreateCustomClassRequest} */ -public final class CreateCustomClassRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CreateCustomClassRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v1p1beta1.CreateCustomClassRequest) CreateCustomClassRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CreateCustomClassRequest.newBuilder() to construct. private CreateCustomClassRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CreateCustomClassRequest() { parent_ = ""; customClassId_ = ""; @@ -26,16 +44,15 @@ private CreateCustomClassRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreateCustomClassRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private CreateCustomClassRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,66 +71,75 @@ private CreateCustomClassRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - customClassId_ = s; - break; - } - case 26: { - com.google.cloud.speech.v1p1beta1.CustomClass.Builder subBuilder = null; - if (customClass_ != null) { - subBuilder = customClass_.toBuilder(); + parent_ = s; + break; } - customClass_ = input.readMessage(com.google.cloud.speech.v1p1beta1.CustomClass.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(customClass_); - customClass_ = subBuilder.buildPartial(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + customClassId_ = s; + break; } + case 26: + { + com.google.cloud.speech.v1p1beta1.CustomClass.Builder subBuilder = null; + if (customClass_ != null) { + subBuilder = customClass_.toBuilder(); + } + customClass_ = + input.readMessage( + com.google.cloud.speech.v1p1beta1.CustomClass.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(customClass_); + customClass_ = subBuilder.buildPartial(); + } - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_CreateCustomClassRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1p1beta1_CreateCustomClassRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_CreateCustomClassRequest_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1p1beta1_CreateCustomClassRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest.class, com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest.Builder.class); + com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest.class, + com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. The parent resource where this custom class will be created.
    * Format:
@@ -125,7 +151,10 @@ private CreateCustomClassRequest(
    * with matching `us` or `eu` location value.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -134,14 +163,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:
@@ -153,17 +183,18 @@ public java.lang.String getParent() {
    * with matching `us` or `eu` location value.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -174,6 +205,8 @@ public java.lang.String getParent() { public static final int CUSTOM_CLASS_ID_FIELD_NUMBER = 2; private volatile java.lang.Object customClassId_; /** + * + * *
    * Required. The ID to use for the custom class, which will become the final
    * component of the custom class' resource name.
@@ -182,6 +215,7 @@ public java.lang.String getParent() {
    * 
* * string custom_class_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The customClassId. */ @java.lang.Override @@ -190,14 +224,15 @@ public java.lang.String getCustomClassId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); customClassId_ = s; return s; } } /** + * + * *
    * Required. The ID to use for the custom class, which will become the final
    * component of the custom class' resource name.
@@ -206,16 +241,15 @@ public java.lang.String getCustomClassId() {
    * 
* * string custom_class_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for customClassId. */ @java.lang.Override - public com.google.protobuf.ByteString - getCustomClassIdBytes() { + public com.google.protobuf.ByteString getCustomClassIdBytes() { java.lang.Object ref = customClassId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); customClassId_ = b; return b; } else { @@ -226,11 +260,16 @@ public java.lang.String getCustomClassId() { public static final int CUSTOM_CLASS_FIELD_NUMBER = 3; private com.google.cloud.speech.v1p1beta1.CustomClass customClass_; /** + * + * *
    * Required. The custom class to create.
    * 
* - * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the customClass field is set. */ @java.lang.Override @@ -238,23 +277,34 @@ public boolean hasCustomClass() { return customClass_ != null; } /** + * + * *
    * Required. The custom class to create.
    * 
* - * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The customClass. */ @java.lang.Override public com.google.cloud.speech.v1p1beta1.CustomClass getCustomClass() { - return customClass_ == null ? com.google.cloud.speech.v1p1beta1.CustomClass.getDefaultInstance() : customClass_; + return customClass_ == null + ? com.google.cloud.speech.v1p1beta1.CustomClass.getDefaultInstance() + : customClass_; } /** + * + * *
    * Required. The custom class to create.
    * 
* - * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.speech.v1p1beta1.CustomClassOrBuilder getCustomClassOrBuilder() { @@ -262,6 +312,7 @@ public com.google.cloud.speech.v1p1beta1.CustomClassOrBuilder getCustomClassOrBu } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -273,8 +324,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -300,8 +350,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, customClassId_); } if (customClass_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getCustomClass()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCustomClass()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -311,21 +360,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest)) { return super.equals(obj); } - com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest other = (com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest) obj; + com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest other = + (com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (!getCustomClassId() - .equals(other.getCustomClassId())) return false; + if (!getParent().equals(other.getParent())) return false; + if (!getCustomClassId().equals(other.getCustomClassId())) return false; if (hasCustomClass() != other.hasCustomClass()) return false; if (hasCustomClass()) { - if (!getCustomClass() - .equals(other.getCustomClass())) return false; + if (!getCustomClass().equals(other.getCustomClass())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -352,117 +399,127 @@ public int hashCode() { } public static com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Message sent by the client for the `CreateCustomClass` method.
    * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.CreateCustomClassRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1p1beta1.CreateCustomClassRequest) com.google.cloud.speech.v1p1beta1.CreateCustomClassRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_CreateCustomClassRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1p1beta1_CreateCustomClassRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_CreateCustomClassRequest_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1p1beta1_CreateCustomClassRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest.class, com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest.Builder.class); + com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest.class, + com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest.Builder.class); } // Construct using com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest.newBuilder() @@ -470,16 +527,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -497,9 +553,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_CreateCustomClassRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1p1beta1_CreateCustomClassRequest_descriptor; } @java.lang.Override @@ -518,7 +574,8 @@ public com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest build() { @java.lang.Override public com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest buildPartial() { - com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest result = new com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest(this); + com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest result = + new com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest(this); result.parent_ = parent_; result.customClassId_ = customClassId_; if (customClassBuilder_ == null) { @@ -534,38 +591,39 @@ public com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest buildPartial() public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest) { - return mergeFrom((com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest)other); + return mergeFrom((com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest) other); } else { super.mergeFrom(other); return this; @@ -573,7 +631,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest other) { - if (other == com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -604,7 +663,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -616,6 +676,8 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The parent resource where this custom class will be created.
      * Format:
@@ -627,14 +689,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; @@ -643,6 +707,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent resource where this custom class will be created.
      * Format:
@@ -654,16 +720,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 { @@ -671,6 +738,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent resource where this custom class will be created.
      * Format:
@@ -682,21 +751,25 @@ public java.lang.String getParent() {
      * with matching `us` or `eu` location value.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * Required. The parent resource where this custom class will be created.
      * Format:
@@ -708,16 +781,21 @@ public Builder setParent(
      * with matching `us` or `eu` location value.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * Required. The parent resource where this custom class will be created.
      * Format:
@@ -729,17 +807,19 @@ public Builder clearParent() {
      * with matching `us` or `eu` location value.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -747,6 +827,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.
@@ -755,13 +837,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; @@ -770,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.
@@ -778,15 +862,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 { @@ -794,6 +877,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.
@@ -802,20 +887,22 @@ public java.lang.String getCustomClassId() {
      * 
* * string custom_class_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The customClassId to set. * @return This builder for chaining. */ - public Builder setCustomClassId( - java.lang.String value) { + public Builder setCustomClassId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + customClassId_ = value; onChanged(); return this; } /** + * + * *
      * Required. The ID to use for the custom class, which will become the final
      * component of the custom class' resource name.
@@ -824,15 +911,18 @@ public Builder setCustomClassId(
      * 
* * string custom_class_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearCustomClassId() { - + customClassId_ = getDefaultInstance().getCustomClassId(); onChanged(); return this; } /** + * + * *
      * Required. The ID to use for the custom class, which will become the final
      * component of the custom class' resource name.
@@ -841,16 +931,16 @@ public Builder clearCustomClassId() {
      * 
* * string custom_class_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for customClassId to set. * @return This builder for chaining. */ - public Builder setCustomClassIdBytes( - com.google.protobuf.ByteString value) { + public Builder setCustomClassIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + customClassId_ = value; onChanged(); return this; @@ -858,39 +948,58 @@ public Builder setCustomClassIdBytes( private com.google.cloud.speech.v1p1beta1.CustomClass customClass_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.CustomClass, com.google.cloud.speech.v1p1beta1.CustomClass.Builder, com.google.cloud.speech.v1p1beta1.CustomClassOrBuilder> customClassBuilder_; + com.google.cloud.speech.v1p1beta1.CustomClass, + com.google.cloud.speech.v1p1beta1.CustomClass.Builder, + com.google.cloud.speech.v1p1beta1.CustomClassOrBuilder> + customClassBuilder_; /** + * + * *
      * Required. The custom class to create.
      * 
* - * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the customClass field is set. */ public boolean hasCustomClass() { return customClassBuilder_ != null || customClass_ != null; } /** + * + * *
      * Required. The custom class to create.
      * 
* - * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The customClass. */ public com.google.cloud.speech.v1p1beta1.CustomClass getCustomClass() { if (customClassBuilder_ == null) { - return customClass_ == null ? com.google.cloud.speech.v1p1beta1.CustomClass.getDefaultInstance() : customClass_; + return customClass_ == null + ? com.google.cloud.speech.v1p1beta1.CustomClass.getDefaultInstance() + : customClass_; } else { return customClassBuilder_.getMessage(); } } /** + * + * *
      * Required. The custom class to create.
      * 
* - * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setCustomClass(com.google.cloud.speech.v1p1beta1.CustomClass value) { if (customClassBuilder_ == null) { @@ -906,11 +1015,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) { @@ -924,17 +1037,23 @@ public Builder setCustomClass( return this; } /** + * + * *
      * Required. The custom class to create.
      * 
* - * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeCustomClass(com.google.cloud.speech.v1p1beta1.CustomClass value) { if (customClassBuilder_ == null) { if (customClass_ != null) { customClass_ = - com.google.cloud.speech.v1p1beta1.CustomClass.newBuilder(customClass_).mergeFrom(value).buildPartial(); + com.google.cloud.speech.v1p1beta1.CustomClass.newBuilder(customClass_) + .mergeFrom(value) + .buildPartial(); } else { customClass_ = value; } @@ -946,11 +1065,15 @@ public Builder mergeCustomClass(com.google.cloud.speech.v1p1beta1.CustomClass va return this; } /** + * + * *
      * Required. The custom class to create.
      * 
* - * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearCustomClass() { if (customClassBuilder_ == null) { @@ -964,55 +1087,71 @@ public Builder clearCustomClass() { return this; } /** + * + * *
      * Required. The custom class to create.
      * 
* - * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.speech.v1p1beta1.CustomClass.Builder getCustomClassBuilder() { - + onChanged(); return getCustomClassFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The custom class to create.
      * 
* - * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.speech.v1p1beta1.CustomClassOrBuilder getCustomClassOrBuilder() { if (customClassBuilder_ != null) { return customClassBuilder_.getMessageOrBuilder(); } else { - return customClass_ == null ? - com.google.cloud.speech.v1p1beta1.CustomClass.getDefaultInstance() : customClass_; + return customClass_ == null + ? com.google.cloud.speech.v1p1beta1.CustomClass.getDefaultInstance() + : customClass_; } } /** + * + * *
      * Required. The custom class to create.
      * 
* - * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.CustomClass, com.google.cloud.speech.v1p1beta1.CustomClass.Builder, com.google.cloud.speech.v1p1beta1.CustomClassOrBuilder> + com.google.cloud.speech.v1p1beta1.CustomClass, + com.google.cloud.speech.v1p1beta1.CustomClass.Builder, + com.google.cloud.speech.v1p1beta1.CustomClassOrBuilder> getCustomClassFieldBuilder() { if (customClassBuilder_ == null) { - customClassBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.CustomClass, com.google.cloud.speech.v1p1beta1.CustomClass.Builder, com.google.cloud.speech.v1p1beta1.CustomClassOrBuilder>( - getCustomClass(), - getParentForChildren(), - isClean()); + customClassBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v1p1beta1.CustomClass, + com.google.cloud.speech.v1p1beta1.CustomClass.Builder, + com.google.cloud.speech.v1p1beta1.CustomClassOrBuilder>( + getCustomClass(), getParentForChildren(), isClean()); customClass_ = null; } return customClassBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1022,12 +1161,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(); } @@ -1036,16 +1175,16 @@ public static com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateCustomClassRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateCustomClassRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateCustomClassRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateCustomClassRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1060,6 +1199,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreateCustomClassRequestOrBuilder.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreateCustomClassRequestOrBuilder.java similarity index 64% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreateCustomClassRequestOrBuilder.java rename to proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreateCustomClassRequestOrBuilder.java index 9052226ab..f86f6921c 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreateCustomClassRequestOrBuilder.java +++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreateCustomClassRequestOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech_adaptation.proto package com.google.cloud.speech.v1p1beta1; -public interface CreateCustomClassRequestOrBuilder extends +public interface CreateCustomClassRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1p1beta1.CreateCustomClassRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The parent resource where this custom class will be created.
    * Format:
@@ -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/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreatePhraseSetRequest.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreatePhraseSetRequest.java similarity index 68% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreatePhraseSetRequest.java rename to proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreatePhraseSetRequest.java index 3ca0a6e05..58268e2f4 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreatePhraseSetRequest.java +++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreatePhraseSetRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech_adaptation.proto package com.google.cloud.speech.v1p1beta1; /** + * + * *
  * Message sent by the client for the `CreatePhraseSet` method.
  * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.CreatePhraseSetRequest} */ -public final class CreatePhraseSetRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CreatePhraseSetRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v1p1beta1.CreatePhraseSetRequest) CreatePhraseSetRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CreatePhraseSetRequest.newBuilder() to construct. private CreatePhraseSetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CreatePhraseSetRequest() { parent_ = ""; phraseSetId_ = ""; @@ -26,16 +44,15 @@ private CreatePhraseSetRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreatePhraseSetRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private CreatePhraseSetRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,66 +71,75 @@ private CreatePhraseSetRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - phraseSetId_ = s; - break; - } - case 26: { - com.google.cloud.speech.v1p1beta1.PhraseSet.Builder subBuilder = null; - if (phraseSet_ != null) { - subBuilder = phraseSet_.toBuilder(); + parent_ = s; + break; } - phraseSet_ = input.readMessage(com.google.cloud.speech.v1p1beta1.PhraseSet.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(phraseSet_); - phraseSet_ = subBuilder.buildPartial(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + phraseSetId_ = s; + break; } + case 26: + { + com.google.cloud.speech.v1p1beta1.PhraseSet.Builder subBuilder = null; + if (phraseSet_ != null) { + subBuilder = phraseSet_.toBuilder(); + } + phraseSet_ = + input.readMessage( + com.google.cloud.speech.v1p1beta1.PhraseSet.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(phraseSet_); + phraseSet_ = subBuilder.buildPartial(); + } - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_CreatePhraseSetRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1p1beta1_CreatePhraseSetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_CreatePhraseSetRequest_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1p1beta1_CreatePhraseSetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest.class, com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest.Builder.class); + com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest.class, + com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. The parent resource where this phrase set will be created.
    * Format:
@@ -125,7 +151,10 @@ private CreatePhraseSetRequest(
    * with matching `us` or `eu` location value.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -134,14 +163,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:
@@ -153,17 +183,18 @@ public java.lang.String getParent() {
    * with matching `us` or `eu` location value.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -174,6 +205,8 @@ public java.lang.String getParent() { public static final int PHRASE_SET_ID_FIELD_NUMBER = 2; private volatile java.lang.Object phraseSetId_; /** + * + * *
    * Required. The ID to use for the phrase set, which will become the final
    * component of the phrase set's resource name.
@@ -182,6 +215,7 @@ public java.lang.String getParent() {
    * 
* * string phrase_set_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The phraseSetId. */ @java.lang.Override @@ -190,14 +224,15 @@ public java.lang.String getPhraseSetId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); phraseSetId_ = s; return s; } } /** + * + * *
    * Required. The ID to use for the phrase set, which will become the final
    * component of the phrase set's resource name.
@@ -206,16 +241,15 @@ public java.lang.String getPhraseSetId() {
    * 
* * string phrase_set_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for phraseSetId. */ @java.lang.Override - public com.google.protobuf.ByteString - getPhraseSetIdBytes() { + public com.google.protobuf.ByteString getPhraseSetIdBytes() { java.lang.Object ref = phraseSetId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); phraseSetId_ = b; return b; } else { @@ -226,11 +260,16 @@ public java.lang.String getPhraseSetId() { public static final int PHRASE_SET_FIELD_NUMBER = 3; private com.google.cloud.speech.v1p1beta1.PhraseSet phraseSet_; /** + * + * *
    * Required. The phrase set to create.
    * 
* - * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the phraseSet field is set. */ @java.lang.Override @@ -238,23 +277,34 @@ public boolean hasPhraseSet() { return phraseSet_ != null; } /** + * + * *
    * Required. The phrase set to create.
    * 
* - * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The phraseSet. */ @java.lang.Override public com.google.cloud.speech.v1p1beta1.PhraseSet getPhraseSet() { - return phraseSet_ == null ? com.google.cloud.speech.v1p1beta1.PhraseSet.getDefaultInstance() : phraseSet_; + return phraseSet_ == null + ? com.google.cloud.speech.v1p1beta1.PhraseSet.getDefaultInstance() + : phraseSet_; } /** + * + * *
    * Required. The phrase set to create.
    * 
* - * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.speech.v1p1beta1.PhraseSetOrBuilder getPhraseSetOrBuilder() { @@ -262,6 +312,7 @@ public com.google.cloud.speech.v1p1beta1.PhraseSetOrBuilder getPhraseSetOrBuilde } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -273,8 +324,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -300,8 +350,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, phraseSetId_); } if (phraseSet_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getPhraseSet()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getPhraseSet()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -311,21 +360,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest)) { return super.equals(obj); } - com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest other = (com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest) obj; + com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest other = + (com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (!getPhraseSetId() - .equals(other.getPhraseSetId())) return false; + if (!getParent().equals(other.getParent())) return false; + if (!getPhraseSetId().equals(other.getPhraseSetId())) return false; if (hasPhraseSet() != other.hasPhraseSet()) return false; if (hasPhraseSet()) { - if (!getPhraseSet() - .equals(other.getPhraseSet())) return false; + if (!getPhraseSet().equals(other.getPhraseSet())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -352,117 +399,127 @@ public int hashCode() { } public static com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Message sent by the client for the `CreatePhraseSet` method.
    * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.CreatePhraseSetRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1p1beta1.CreatePhraseSetRequest) com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_CreatePhraseSetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1p1beta1_CreatePhraseSetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_CreatePhraseSetRequest_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1p1beta1_CreatePhraseSetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest.class, com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest.Builder.class); + com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest.class, + com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest.Builder.class); } // Construct using com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest.newBuilder() @@ -470,16 +527,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -497,9 +553,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_CreatePhraseSetRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1p1beta1_CreatePhraseSetRequest_descriptor; } @java.lang.Override @@ -518,7 +574,8 @@ public com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest build() { @java.lang.Override public com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest buildPartial() { - com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest result = new com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest(this); + com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest result = + new com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest(this); result.parent_ = parent_; result.phraseSetId_ = phraseSetId_; if (phraseSetBuilder_ == null) { @@ -534,38 +591,39 @@ public com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest) { - return mergeFrom((com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest)other); + return mergeFrom((com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest) other); } else { super.mergeFrom(other); return this; @@ -573,7 +631,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest other) { - if (other == com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -604,7 +663,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -616,6 +676,8 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The parent resource where this phrase set will be created.
      * Format:
@@ -627,14 +689,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; @@ -643,6 +707,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent resource where this phrase set will be created.
      * Format:
@@ -654,16 +720,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 { @@ -671,6 +738,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent resource where this phrase set will be created.
      * Format:
@@ -682,21 +751,25 @@ public java.lang.String getParent() {
      * with matching `us` or `eu` location value.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * Required. The parent resource where this phrase set will be created.
      * Format:
@@ -708,16 +781,21 @@ public Builder setParent(
      * with matching `us` or `eu` location value.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * Required. The parent resource where this phrase set will be created.
      * Format:
@@ -729,17 +807,19 @@ public Builder clearParent() {
      * with matching `us` or `eu` location value.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -747,6 +827,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.
@@ -755,13 +837,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; @@ -770,6 +852,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.
@@ -778,15 +862,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 { @@ -794,6 +877,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.
@@ -802,20 +887,22 @@ public java.lang.String getPhraseSetId() {
      * 
* * string phrase_set_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The phraseSetId to set. * @return This builder for chaining. */ - public Builder setPhraseSetId( - java.lang.String value) { + public Builder setPhraseSetId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + phraseSetId_ = value; onChanged(); return this; } /** + * + * *
      * Required. The ID to use for the phrase set, which will become the final
      * component of the phrase set's resource name.
@@ -824,15 +911,18 @@ public Builder setPhraseSetId(
      * 
* * string phrase_set_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearPhraseSetId() { - + phraseSetId_ = getDefaultInstance().getPhraseSetId(); onChanged(); return this; } /** + * + * *
      * Required. The ID to use for the phrase set, which will become the final
      * component of the phrase set's resource name.
@@ -841,16 +931,16 @@ public Builder clearPhraseSetId() {
      * 
* * string phrase_set_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for phraseSetId to set. * @return This builder for chaining. */ - public Builder setPhraseSetIdBytes( - com.google.protobuf.ByteString value) { + public Builder setPhraseSetIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + phraseSetId_ = value; onChanged(); return this; @@ -858,39 +948,58 @@ public Builder setPhraseSetIdBytes( private com.google.cloud.speech.v1p1beta1.PhraseSet phraseSet_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.PhraseSet, com.google.cloud.speech.v1p1beta1.PhraseSet.Builder, com.google.cloud.speech.v1p1beta1.PhraseSetOrBuilder> phraseSetBuilder_; + com.google.cloud.speech.v1p1beta1.PhraseSet, + com.google.cloud.speech.v1p1beta1.PhraseSet.Builder, + com.google.cloud.speech.v1p1beta1.PhraseSetOrBuilder> + phraseSetBuilder_; /** + * + * *
      * Required. The phrase set to create.
      * 
* - * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the phraseSet field is set. */ public boolean hasPhraseSet() { return phraseSetBuilder_ != null || phraseSet_ != null; } /** + * + * *
      * Required. The phrase set to create.
      * 
* - * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The phraseSet. */ public com.google.cloud.speech.v1p1beta1.PhraseSet getPhraseSet() { if (phraseSetBuilder_ == null) { - return phraseSet_ == null ? com.google.cloud.speech.v1p1beta1.PhraseSet.getDefaultInstance() : phraseSet_; + return phraseSet_ == null + ? com.google.cloud.speech.v1p1beta1.PhraseSet.getDefaultInstance() + : phraseSet_; } else { return phraseSetBuilder_.getMessage(); } } /** + * + * *
      * Required. The phrase set to create.
      * 
* - * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setPhraseSet(com.google.cloud.speech.v1p1beta1.PhraseSet value) { if (phraseSetBuilder_ == null) { @@ -906,11 +1015,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) { @@ -924,17 +1037,23 @@ public Builder setPhraseSet( return this; } /** + * + * *
      * Required. The phrase set to create.
      * 
* - * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergePhraseSet(com.google.cloud.speech.v1p1beta1.PhraseSet value) { if (phraseSetBuilder_ == null) { if (phraseSet_ != null) { phraseSet_ = - com.google.cloud.speech.v1p1beta1.PhraseSet.newBuilder(phraseSet_).mergeFrom(value).buildPartial(); + com.google.cloud.speech.v1p1beta1.PhraseSet.newBuilder(phraseSet_) + .mergeFrom(value) + .buildPartial(); } else { phraseSet_ = value; } @@ -946,11 +1065,15 @@ public Builder mergePhraseSet(com.google.cloud.speech.v1p1beta1.PhraseSet value) return this; } /** + * + * *
      * Required. The phrase set to create.
      * 
* - * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearPhraseSet() { if (phraseSetBuilder_ == null) { @@ -964,55 +1087,71 @@ public Builder clearPhraseSet() { return this; } /** + * + * *
      * Required. The phrase set to create.
      * 
* - * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.speech.v1p1beta1.PhraseSet.Builder getPhraseSetBuilder() { - + onChanged(); return getPhraseSetFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The phrase set to create.
      * 
* - * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.speech.v1p1beta1.PhraseSetOrBuilder getPhraseSetOrBuilder() { if (phraseSetBuilder_ != null) { return phraseSetBuilder_.getMessageOrBuilder(); } else { - return phraseSet_ == null ? - com.google.cloud.speech.v1p1beta1.PhraseSet.getDefaultInstance() : phraseSet_; + return phraseSet_ == null + ? com.google.cloud.speech.v1p1beta1.PhraseSet.getDefaultInstance() + : phraseSet_; } } /** + * + * *
      * Required. The phrase set to create.
      * 
* - * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.PhraseSet, com.google.cloud.speech.v1p1beta1.PhraseSet.Builder, com.google.cloud.speech.v1p1beta1.PhraseSetOrBuilder> + com.google.cloud.speech.v1p1beta1.PhraseSet, + com.google.cloud.speech.v1p1beta1.PhraseSet.Builder, + com.google.cloud.speech.v1p1beta1.PhraseSetOrBuilder> getPhraseSetFieldBuilder() { if (phraseSetBuilder_ == null) { - phraseSetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.PhraseSet, com.google.cloud.speech.v1p1beta1.PhraseSet.Builder, com.google.cloud.speech.v1p1beta1.PhraseSetOrBuilder>( - getPhraseSet(), - getParentForChildren(), - isClean()); + phraseSetBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v1p1beta1.PhraseSet, + com.google.cloud.speech.v1p1beta1.PhraseSet.Builder, + com.google.cloud.speech.v1p1beta1.PhraseSetOrBuilder>( + getPhraseSet(), getParentForChildren(), isClean()); phraseSet_ = null; } return phraseSetBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1022,12 +1161,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(); } @@ -1036,16 +1175,16 @@ public static com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreatePhraseSetRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreatePhraseSetRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreatePhraseSetRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreatePhraseSetRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1060,6 +1199,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreatePhraseSetRequestOrBuilder.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreatePhraseSetRequestOrBuilder.java similarity index 64% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreatePhraseSetRequestOrBuilder.java rename to proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreatePhraseSetRequestOrBuilder.java index 70540b9c8..9f9da18ba 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreatePhraseSetRequestOrBuilder.java +++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreatePhraseSetRequestOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech_adaptation.proto package com.google.cloud.speech.v1p1beta1; -public interface CreatePhraseSetRequestOrBuilder extends +public interface CreatePhraseSetRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1p1beta1.CreatePhraseSetRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The parent resource where this phrase set will be created.
    * Format:
@@ -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/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CustomClass.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CustomClass.java similarity index 74% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CustomClass.java rename to proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CustomClass.java index 81c2dec7e..cd805e892 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CustomClass.java +++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CustomClass.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/resource.proto package com.google.cloud.speech.v1p1beta1; /** + * + * *
  * A set of words or phrases that represents a common concept likely to appear
  * in your audio, for example a list of passenger ship names. CustomClass items
@@ -12,15 +29,16 @@
  *
  * Protobuf type {@code google.cloud.speech.v1p1beta1.CustomClass}
  */
-public final class CustomClass extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class CustomClass extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.speech.v1p1beta1.CustomClass)
     CustomClassOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use CustomClass.newBuilder() to construct.
   private CustomClass(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private CustomClass() {
     name_ = "";
     customClassId_ = "";
@@ -29,16 +47,15 @@ private CustomClass() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new CustomClass();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private CustomClass(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -58,41 +75,47 @@ private CustomClass(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            name_ = s;
-            break;
-          }
-          case 18: {
-            java.lang.String s = input.readStringRequireUtf8();
+              name_ = s;
+              break;
+            }
+          case 18:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            customClassId_ = s;
-            break;
-          }
-          case 26: {
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              items_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000001;
+              customClassId_ = s;
+              break;
             }
-            items_.add(
-                input.readMessage(com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem.parser(), extensionRegistry));
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          case 26:
+            {
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                items_ =
+                    new java.util.ArrayList<
+                        com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem>();
+                mutable_bitField0_ |= 0x00000001;
+              }
+              items_.add(
+                  input.readMessage(
+                      com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem.parser(),
+                      extensionRegistry));
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         items_ = java.util.Collections.unmodifiableList(items_);
@@ -101,75 +124,86 @@ private CustomClass(
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.speech.v1p1beta1.SpeechResourceProto.internal_static_google_cloud_speech_v1p1beta1_CustomClass_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.speech.v1p1beta1.SpeechResourceProto
+        .internal_static_google_cloud_speech_v1p1beta1_CustomClass_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v1p1beta1.SpeechResourceProto.internal_static_google_cloud_speech_v1p1beta1_CustomClass_fieldAccessorTable
+    return com.google.cloud.speech.v1p1beta1.SpeechResourceProto
+        .internal_static_google_cloud_speech_v1p1beta1_CustomClass_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v1p1beta1.CustomClass.class, com.google.cloud.speech.v1p1beta1.CustomClass.Builder.class);
+            com.google.cloud.speech.v1p1beta1.CustomClass.class,
+            com.google.cloud.speech.v1p1beta1.CustomClass.Builder.class);
   }
 
-  public interface ClassItemOrBuilder extends
+  public interface ClassItemOrBuilder
+      extends
       // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1p1beta1.CustomClass.ClassItem)
       com.google.protobuf.MessageOrBuilder {
 
     /**
+     *
+     *
      * 
      * The class item's value.
      * 
* * string value = 1; + * * @return The value. */ java.lang.String getValue(); /** + * + * *
      * The class item's value.
      * 
* * string value = 1; + * * @return The bytes for value. */ - com.google.protobuf.ByteString - getValueBytes(); + com.google.protobuf.ByteString getValueBytes(); } /** + * + * *
    * An item of the class.
    * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.CustomClass.ClassItem} */ - public static final class ClassItem extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class ClassItem extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v1p1beta1.CustomClass.ClassItem) ClassItemOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ClassItem.newBuilder() to construct. private ClassItem(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ClassItem() { value_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ClassItem(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ClassItem( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -188,52 +222,58 @@ private ClassItem( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - value_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + value_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechResourceProto.internal_static_google_cloud_speech_v1p1beta1_CustomClass_ClassItem_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechResourceProto + .internal_static_google_cloud_speech_v1p1beta1_CustomClass_ClassItem_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechResourceProto.internal_static_google_cloud_speech_v1p1beta1_CustomClass_ClassItem_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechResourceProto + .internal_static_google_cloud_speech_v1p1beta1_CustomClass_ClassItem_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem.class, com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem.Builder.class); + com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem.class, + com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem.Builder.class); } public static final int VALUE_FIELD_NUMBER = 1; private volatile java.lang.Object value_; /** + * + * *
      * The class item's value.
      * 
* * string value = 1; + * * @return The value. */ @java.lang.Override @@ -242,29 +282,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 { @@ -273,6 +313,7 @@ public java.lang.String getValue() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -284,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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(value_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, value_); } @@ -309,15 +349,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem)) { return super.equals(obj); } - com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem other = (com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem) obj; + com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem other = + (com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem) obj; - if (!getValue() - .equals(other.getValue())) return false; + if (!getValue().equals(other.getValue())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -337,87 +377,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 @@ -427,27 +474,32 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * An item of the class.
      * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.CustomClass.ClassItem} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1p1beta1.CustomClass.ClassItem) com.google.cloud.speech.v1p1beta1.CustomClass.ClassItemOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechResourceProto.internal_static_google_cloud_speech_v1p1beta1_CustomClass_ClassItem_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechResourceProto + .internal_static_google_cloud_speech_v1p1beta1_CustomClass_ClassItem_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechResourceProto.internal_static_google_cloud_speech_v1p1beta1_CustomClass_ClassItem_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechResourceProto + .internal_static_google_cloud_speech_v1p1beta1_CustomClass_ClassItem_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem.class, com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem.Builder.class); + com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem.class, + com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem.Builder.class); } // Construct using com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem.newBuilder() @@ -455,16 +507,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -474,9 +525,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 @@ -495,7 +546,8 @@ public com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem build() { @java.lang.Override public com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem buildPartial() { - com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem result = new com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem(this); + com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem result = + new com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem(this); result.value_ = value_; onBuilt(); return result; @@ -505,38 +557,41 @@ public com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem) { - return mergeFrom((com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem)other); + return mergeFrom((com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem) other); } else { super.mergeFrom(other); return this; @@ -544,7 +599,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem other) { - if (other == com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem.getDefaultInstance()) return this; + if (other == com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem.getDefaultInstance()) + return this; if (!other.getValue().isEmpty()) { value_ = other.value_; onChanged(); @@ -568,7 +624,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -580,18 +637,20 @@ public Builder mergeFrom( private java.lang.Object value_ = ""; /** + * + * *
        * The class item's value.
        * 
* * string value = 1; + * * @return The value. */ public java.lang.String getValue() { java.lang.Object ref = value_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); value_ = s; return s; @@ -600,20 +659,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 { @@ -621,58 +681,66 @@ public java.lang.String getValue() { } } /** + * + * *
        * The class item's value.
        * 
* * string value = 1; + * * @param value The value to set. * @return This builder for chaining. */ - public Builder setValue( - java.lang.String value) { + public Builder setValue(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + value_ = value; onChanged(); return this; } /** + * + * *
        * The class item's value.
        * 
* * string value = 1; + * * @return This builder for chaining. */ public Builder clearValue() { - + value_ = getDefaultInstance().getValue(); onChanged(); return this; } /** + * + * *
        * The class item's value.
        * 
* * string value = 1; + * * @param value The bytes for value to set. * @return This builder for chaining. */ - public Builder setValueBytes( - com.google.protobuf.ByteString value) { + public Builder setValueBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + value_ = value; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -685,12 +753,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(); } @@ -699,16 +767,16 @@ public static com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ClassItem parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ClassItem(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ClassItem parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ClassItem(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -723,17 +791,19 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * The resource name of the custom class.
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -742,29 +812,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 { @@ -775,12 +845,15 @@ public java.lang.String getName() { public static final int CUSTOM_CLASS_ID_FIELD_NUMBER = 2; private volatile java.lang.Object customClassId_; /** + * + * *
    * If this custom class is a resource, the custom_class_id is the resource id
    * of the CustomClass. Case sensitive.
    * 
* * string custom_class_id = 2; + * * @return The customClassId. */ @java.lang.Override @@ -789,30 +862,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,6 +896,8 @@ public java.lang.String getCustomClassId() { public static final int ITEMS_FIELD_NUMBER = 3; private java.util.List items_; /** + * + * *
    * A collection of class items.
    * 
@@ -834,6 +909,8 @@ public java.util.List g return items_; } /** + * + * *
    * A collection of class items.
    * 
@@ -841,11 +918,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.
    * 
@@ -857,6 +936,8 @@ public int getItemsCount() { return items_.size(); } /** + * + * *
    * A collection of class items.
    * 
@@ -868,6 +949,8 @@ public com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem getItems(int inde return items_.get(index); } /** + * + * *
    * A collection of class items.
    * 
@@ -881,6 +964,7 @@ public com.google.cloud.speech.v1p1beta1.CustomClass.ClassItemOrBuilder getItems } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -892,8 +976,7 @@ public final boolean isInitialized() { } @java.lang.Override - public 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_); } @@ -919,8 +1002,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, customClassId_); } for (int i = 0; i < items_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, items_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, items_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -930,19 +1012,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1p1beta1.CustomClass)) { return super.equals(obj); } - com.google.cloud.speech.v1p1beta1.CustomClass other = (com.google.cloud.speech.v1p1beta1.CustomClass) obj; + com.google.cloud.speech.v1p1beta1.CustomClass other = + (com.google.cloud.speech.v1p1beta1.CustomClass) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getCustomClassId() - .equals(other.getCustomClassId())) return false; - if (!getItemsList() - .equals(other.getItemsList())) return false; + if (!getName().equals(other.getName())) return false; + if (!getCustomClassId().equals(other.getCustomClassId())) return false; + if (!getItemsList().equals(other.getItemsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -967,97 +1047,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
@@ -1066,21 +1153,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.speech.v1p1beta1.CustomClass}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1p1beta1.CustomClass)
       com.google.cloud.speech.v1p1beta1.CustomClassOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.speech.v1p1beta1.SpeechResourceProto.internal_static_google_cloud_speech_v1p1beta1_CustomClass_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.speech.v1p1beta1.SpeechResourceProto
+          .internal_static_google_cloud_speech_v1p1beta1_CustomClass_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v1p1beta1.SpeechResourceProto.internal_static_google_cloud_speech_v1p1beta1_CustomClass_fieldAccessorTable
+      return com.google.cloud.speech.v1p1beta1.SpeechResourceProto
+          .internal_static_google_cloud_speech_v1p1beta1_CustomClass_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v1p1beta1.CustomClass.class, com.google.cloud.speech.v1p1beta1.CustomClass.Builder.class);
+              com.google.cloud.speech.v1p1beta1.CustomClass.class,
+              com.google.cloud.speech.v1p1beta1.CustomClass.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v1p1beta1.CustomClass.newBuilder()
@@ -1088,17 +1177,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
         getItemsFieldBuilder();
       }
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1116,9 +1205,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
@@ -1137,7 +1226,8 @@ public com.google.cloud.speech.v1p1beta1.CustomClass build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v1p1beta1.CustomClass buildPartial() {
-      com.google.cloud.speech.v1p1beta1.CustomClass result = new com.google.cloud.speech.v1p1beta1.CustomClass(this);
+      com.google.cloud.speech.v1p1beta1.CustomClass result =
+          new com.google.cloud.speech.v1p1beta1.CustomClass(this);
       int from_bitField0_ = bitField0_;
       result.name_ = name_;
       result.customClassId_ = customClassId_;
@@ -1158,38 +1248,39 @@ public com.google.cloud.speech.v1p1beta1.CustomClass buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.speech.v1p1beta1.CustomClass) {
-        return mergeFrom((com.google.cloud.speech.v1p1beta1.CustomClass)other);
+        return mergeFrom((com.google.cloud.speech.v1p1beta1.CustomClass) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1224,9 +1315,10 @@ public Builder mergeFrom(com.google.cloud.speech.v1p1beta1.CustomClass other) {
             itemsBuilder_ = null;
             items_ = other.items_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            itemsBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getItemsFieldBuilder() : null;
+            itemsBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getItemsFieldBuilder()
+                    : null;
           } else {
             itemsBuilder_.addAllMessages(other.items_);
           }
@@ -1260,22 +1352,25 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * The resource name of the custom class.
      * 
* * string name = 1; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1284,20 +1379,21 @@ public java.lang.String getName() { } } /** + * + * *
      * The resource name of the custom class.
      * 
* * string name = 1; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -1305,54 +1401,61 @@ public java.lang.String getName() { } } /** + * + * *
      * The resource name of the custom class.
      * 
* * string name = 1; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * The resource name of the custom class.
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * The resource name of the custom class.
      * 
* * string name = 1; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -1360,19 +1463,21 @@ public Builder setNameBytes( private java.lang.Object customClassId_ = ""; /** + * + * *
      * If this custom class is a resource, the custom_class_id is the resource id
      * of the CustomClass. Case sensitive.
      * 
* * string custom_class_id = 2; + * * @return The customClassId. */ public java.lang.String getCustomClassId() { java.lang.Object ref = customClassId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); customClassId_ = s; return s; @@ -1381,21 +1486,22 @@ public java.lang.String getCustomClassId() { } } /** + * + * *
      * If this custom class is a resource, the custom_class_id is the resource id
      * of the CustomClass. Case sensitive.
      * 
* * string custom_class_id = 2; + * * @return The bytes for customClassId. */ - public com.google.protobuf.ByteString - getCustomClassIdBytes() { + public com.google.protobuf.ByteString getCustomClassIdBytes() { java.lang.Object ref = customClassId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); customClassId_ = b; return b; } else { @@ -1403,75 +1509,90 @@ public java.lang.String getCustomClassId() { } } /** + * + * *
      * If this custom class is a resource, the custom_class_id is the resource id
      * of the CustomClass. Case sensitive.
      * 
* * string custom_class_id = 2; + * * @param value The customClassId to set. * @return This builder for chaining. */ - public Builder setCustomClassId( - java.lang.String value) { + public Builder setCustomClassId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + customClassId_ = value; onChanged(); return this; } /** + * + * *
      * If this custom class is a resource, the custom_class_id is the resource id
      * of the CustomClass. Case sensitive.
      * 
* * string custom_class_id = 2; + * * @return This builder for chaining. */ public Builder clearCustomClassId() { - + customClassId_ = getDefaultInstance().getCustomClassId(); onChanged(); return this; } /** + * + * *
      * If this custom class is a resource, the custom_class_id is the resource id
      * of the CustomClass. Case sensitive.
      * 
* * string custom_class_id = 2; + * * @param value The bytes for customClassId to set. * @return This builder for chaining. */ - public Builder setCustomClassIdBytes( - com.google.protobuf.ByteString value) { + public Builder setCustomClassIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + customClassId_ = value; onChanged(); return this; } private java.util.List items_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureItemsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - items_ = new java.util.ArrayList(items_); + items_ = + new java.util.ArrayList( + items_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem, com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem.Builder, com.google.cloud.speech.v1p1beta1.CustomClass.ClassItemOrBuilder> itemsBuilder_; + com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem, + com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem.Builder, + com.google.cloud.speech.v1p1beta1.CustomClass.ClassItemOrBuilder> + itemsBuilder_; /** + * + * *
      * A collection of class items.
      * 
@@ -1486,6 +1607,8 @@ public java.util.List g } } /** + * + * *
      * A collection of class items.
      * 
@@ -1500,6 +1623,8 @@ public int getItemsCount() { } } /** + * + * *
      * A collection of class items.
      * 
@@ -1514,6 +1639,8 @@ public com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem getItems(int inde } } /** + * + * *
      * A collection of class items.
      * 
@@ -1535,6 +1662,8 @@ public Builder setItems( return this; } /** + * + * *
      * A collection of class items.
      * 
@@ -1542,7 +1671,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()); @@ -1553,6 +1683,8 @@ public Builder setItems( return this; } /** + * + * *
      * A collection of class items.
      * 
@@ -1573,6 +1705,8 @@ public Builder addItems(com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem return this; } /** + * + * *
      * A collection of class items.
      * 
@@ -1594,6 +1728,8 @@ public Builder addItems( return this; } /** + * + * *
      * A collection of class items.
      * 
@@ -1612,6 +1748,8 @@ public Builder addItems( return this; } /** + * + * *
      * A collection of class items.
      * 
@@ -1619,7 +1757,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()); @@ -1630,6 +1769,8 @@ public Builder addItems( return this; } /** + * + * *
      * A collection of class items.
      * 
@@ -1637,11 +1778,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); @@ -1649,6 +1790,8 @@ public Builder addAllItems( return this; } /** + * + * *
      * A collection of class items.
      * 
@@ -1666,6 +1809,8 @@ public Builder clearItems() { return this; } /** + * + * *
      * A collection of class items.
      * 
@@ -1683,6 +1828,8 @@ public Builder removeItems(int index) { return this; } /** + * + * *
      * A collection of class items.
      * 
@@ -1694,6 +1841,8 @@ public com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem.Builder getItemsB return getItemsFieldBuilder().getBuilder(index); } /** + * + * *
      * A collection of class items.
      * 
@@ -1703,19 +1852,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 { @@ -1723,6 +1876,8 @@ public com.google.cloud.speech.v1p1beta1.CustomClass.ClassItemOrBuilder getItems } } /** + * + * *
      * A collection of class items.
      * 
@@ -1730,10 +1885,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.
      * 
@@ -1742,37 +1899,43 @@ public com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem.Builder addItemsB */ public com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem.Builder addItemsBuilder( int index) { - return getItemsFieldBuilder().addBuilder( - index, com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem.getDefaultInstance()); + return getItemsFieldBuilder() + .addBuilder( + index, com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem.getDefaultInstance()); } /** + * + * *
      * A collection of class items.
      * 
* * repeated .google.cloud.speech.v1p1beta1.CustomClass.ClassItem items = 3; */ - public java.util.List - getItemsBuilderList() { + public java.util.List + getItemsBuilderList() { return getItemsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem, com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem.Builder, com.google.cloud.speech.v1p1beta1.CustomClass.ClassItemOrBuilder> + com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem, + com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem.Builder, + com.google.cloud.speech.v1p1beta1.CustomClass.ClassItemOrBuilder> getItemsFieldBuilder() { if (itemsBuilder_ == null) { - itemsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem, com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem.Builder, com.google.cloud.speech.v1p1beta1.CustomClass.ClassItemOrBuilder>( - items_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + itemsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem, + com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem.Builder, + com.google.cloud.speech.v1p1beta1.CustomClass.ClassItemOrBuilder>( + items_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); items_ = null; } return itemsBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1782,12 +1945,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(); } @@ -1796,16 +1959,16 @@ public static com.google.cloud.speech.v1p1beta1.CustomClass getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CustomClass parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CustomClass(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CustomClass parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CustomClass(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1820,6 +1983,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.CustomClass getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CustomClassName.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CustomClassName.java similarity index 100% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CustomClassName.java rename to proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CustomClassName.java diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CustomClassOrBuilder.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CustomClassOrBuilder.java similarity index 70% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CustomClassOrBuilder.java rename to proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CustomClassOrBuilder.java index 5a2383a9c..494362336 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CustomClassOrBuilder.java +++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CustomClassOrBuilder.java @@ -1,64 +1,93 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/resource.proto package com.google.cloud.speech.v1p1beta1; -public interface CustomClassOrBuilder extends +public interface CustomClassOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1p1beta1.CustomClass) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The resource name of the custom class.
    * 
* * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * The resource name of the custom class.
    * 
* * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * If this custom class is a resource, the custom_class_id is the resource id
    * of the CustomClass. Case sensitive.
    * 
* * string custom_class_id = 2; + * * @return The customClassId. */ java.lang.String getCustomClassId(); /** + * + * *
    * If this custom class is a resource, the custom_class_id is the resource id
    * of the CustomClass. Case sensitive.
    * 
* * string custom_class_id = 2; + * * @return The bytes for customClassId. */ - com.google.protobuf.ByteString - getCustomClassIdBytes(); + com.google.protobuf.ByteString getCustomClassIdBytes(); /** + * + * *
    * A collection of class items.
    * 
* * repeated .google.cloud.speech.v1p1beta1.CustomClass.ClassItem items = 3; */ - java.util.List - getItemsList(); + java.util.List getItemsList(); /** + * + * *
    * A collection of class items.
    * 
@@ -67,6 +96,8 @@ public interface CustomClassOrBuilder extends */ com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem getItems(int index); /** + * + * *
    * A collection of class items.
    * 
@@ -75,21 +106,24 @@ public interface CustomClassOrBuilder extends */ int getItemsCount(); /** + * + * *
    * A collection of class items.
    * 
* * repeated .google.cloud.speech.v1p1beta1.CustomClass.ClassItem items = 3; */ - java.util.List + java.util.List getItemsOrBuilderList(); /** + * + * *
    * A collection of class items.
    * 
* * repeated .google.cloud.speech.v1p1beta1.CustomClass.ClassItem items = 3; */ - com.google.cloud.speech.v1p1beta1.CustomClass.ClassItemOrBuilder getItemsOrBuilder( - int index); + com.google.cloud.speech.v1p1beta1.CustomClass.ClassItemOrBuilder getItemsOrBuilder(int index); } diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeleteCustomClassRequest.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeleteCustomClassRequest.java similarity index 69% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeleteCustomClassRequest.java rename to proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeleteCustomClassRequest.java index c50330b25..fd974e693 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeleteCustomClassRequest.java +++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeleteCustomClassRequest.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech_adaptation.proto package com.google.cloud.speech.v1p1beta1; /** + * + * *
  * Message sent by the client for the `DeleteCustomClass` method.
  * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.DeleteCustomClassRequest} */ -public final class DeleteCustomClassRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DeleteCustomClassRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v1p1beta1.DeleteCustomClassRequest) DeleteCustomClassRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DeleteCustomClassRequest.newBuilder() to construct. private DeleteCustomClassRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DeleteCustomClassRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DeleteCustomClassRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private DeleteCustomClassRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,47 +70,52 @@ private DeleteCustomClassRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_DeleteCustomClassRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1p1beta1_DeleteCustomClassRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_DeleteCustomClassRequest_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1p1beta1_DeleteCustomClassRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest.class, com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest.Builder.class); + com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest.class, + com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. The name of the custom class to delete. Format:
    * `projects/{project}/locations/{location}/customClasses/{custom_class}`
@@ -104,7 +126,10 @@ private DeleteCustomClassRequest(
    * with matching `us` or `eu` location value.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -113,14 +138,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}`
@@ -131,17 +157,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 { @@ -150,6 +177,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -161,8 +189,7 @@ public final boolean isInitialized() { } @java.lang.Override - public 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_); } @@ -186,15 +213,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest)) { return super.equals(obj); } - com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest other = (com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest) obj; + com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest other = + (com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -214,117 +241,127 @@ public int hashCode() { } public static com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Message sent by the client for the `DeleteCustomClass` method.
    * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.DeleteCustomClassRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1p1beta1.DeleteCustomClassRequest) com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_DeleteCustomClassRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1p1beta1_DeleteCustomClassRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_DeleteCustomClassRequest_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1p1beta1_DeleteCustomClassRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest.class, com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest.Builder.class); + com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest.class, + com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest.Builder.class); } // Construct using com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest.newBuilder() @@ -332,16 +369,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -351,9 +387,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 @@ -372,7 +408,8 @@ public com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest build() { @java.lang.Override public com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest buildPartial() { - com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest result = new com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest(this); + com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest result = + new com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest(this); result.name_ = name_; onBuilt(); return result; @@ -382,38 +419,39 @@ public com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest buildPartial() public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest) { - return mergeFrom((com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest)other); + return mergeFrom((com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest) other); } else { super.mergeFrom(other); return this; @@ -421,7 +459,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest other) { - if (other == com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -445,7 +484,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -457,6 +497,8 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. The name of the custom class to delete. Format:
      * `projects/{project}/locations/{location}/customClasses/{custom_class}`
@@ -467,14 +509,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; @@ -483,6 +527,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the custom class to delete. Format:
      * `projects/{project}/locations/{location}/customClasses/{custom_class}`
@@ -493,16 +539,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 { @@ -510,6 +557,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the custom class to delete. Format:
      * `projects/{project}/locations/{location}/customClasses/{custom_class}`
@@ -520,21 +569,25 @@ public java.lang.String getName() {
      * with matching `us` or `eu` location value.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. The name of the custom class to delete. Format:
      * `projects/{project}/locations/{location}/customClasses/{custom_class}`
@@ -545,16 +598,21 @@ public Builder setName(
      * with matching `us` or `eu` location value.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. The name of the custom class to delete. Format:
      * `projects/{project}/locations/{location}/customClasses/{custom_class}`
@@ -565,24 +623,26 @@ public Builder clearName() {
      * with matching `us` or `eu` location value.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -592,12 +652,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(); } @@ -606,16 +666,16 @@ public static com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteCustomClassRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteCustomClassRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteCustomClassRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteCustomClassRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -630,6 +690,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeleteCustomClassRequestOrBuilder.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeleteCustomClassRequestOrBuilder.java similarity index 59% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeleteCustomClassRequestOrBuilder.java rename to proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeleteCustomClassRequestOrBuilder.java index 477f46c0e..21121096e 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeleteCustomClassRequestOrBuilder.java +++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeleteCustomClassRequestOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech_adaptation.proto package com.google.cloud.speech.v1p1beta1; -public interface DeleteCustomClassRequestOrBuilder extends +public interface DeleteCustomClassRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1p1beta1.DeleteCustomClassRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The name of the custom class to delete. Format:
    * `projects/{project}/locations/{location}/customClasses/{custom_class}`
@@ -18,11 +36,16 @@ public interface DeleteCustomClassRequestOrBuilder extends
    * with matching `us` or `eu` location value.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. The name of the custom class to delete. Format:
    * `projects/{project}/locations/{location}/customClasses/{custom_class}`
@@ -33,9 +56,11 @@ public interface DeleteCustomClassRequestOrBuilder extends
    * with matching `us` or `eu` location value.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); } diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeletePhraseSetRequest.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeletePhraseSetRequest.java similarity index 66% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeletePhraseSetRequest.java rename to proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeletePhraseSetRequest.java index b866a39b9..19d61461d 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeletePhraseSetRequest.java +++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeletePhraseSetRequest.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech_adaptation.proto package com.google.cloud.speech.v1p1beta1; /** + * + * *
  * Message sent by the client for the `DeletePhraseSet` method.
  * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.DeletePhraseSetRequest} */ -public final class DeletePhraseSetRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DeletePhraseSetRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v1p1beta1.DeletePhraseSetRequest) DeletePhraseSetRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DeletePhraseSetRequest.newBuilder() to construct. private DeletePhraseSetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DeletePhraseSetRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DeletePhraseSetRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private DeletePhraseSetRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,53 +70,61 @@ private DeletePhraseSetRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_DeletePhraseSetRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1p1beta1_DeletePhraseSetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_DeletePhraseSetRequest_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1p1beta1_DeletePhraseSetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest.class, com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest.Builder.class); + com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest.class, + com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. The name of the phrase set to delete. Format:
    * `projects/{project}/locations/{location}/phraseSets/{phrase_set}`
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -108,30 +133,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 { @@ -140,6 +167,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -151,8 +179,7 @@ public final boolean isInitialized() { } @java.lang.Override - public 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_); } @@ -176,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.v1p1beta1.DeletePhraseSetRequest)) { return super.equals(obj); } - com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest other = (com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest) obj; + com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest other = + (com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -204,117 +231,127 @@ public int hashCode() { } public static com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Message sent by the client for the `DeletePhraseSet` method.
    * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.DeletePhraseSetRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1p1beta1.DeletePhraseSetRequest) com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_DeletePhraseSetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1p1beta1_DeletePhraseSetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_DeletePhraseSetRequest_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1p1beta1_DeletePhraseSetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest.class, com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest.Builder.class); + com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest.class, + com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest.Builder.class); } // Construct using com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest.newBuilder() @@ -322,16 +359,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -341,9 +377,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 @@ -362,7 +398,8 @@ public com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest build() { @java.lang.Override public com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest buildPartial() { - com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest result = new com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest(this); + com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest result = + new com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest(this); result.name_ = name_; onBuilt(); return result; @@ -372,38 +409,39 @@ public com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest) { - return mergeFrom((com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest)other); + return mergeFrom((com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest) other); } else { super.mergeFrom(other); return this; @@ -411,7 +449,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest other) { - if (other == com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -435,7 +474,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -447,19 +487,23 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. The name of the phrase set to delete. Format:
      * `projects/{project}/locations/{location}/phraseSets/{phrase_set}`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -468,21 +512,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 { @@ -490,64 +537,77 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the phrase set to delete. Format:
      * `projects/{project}/locations/{location}/phraseSets/{phrase_set}`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. The name of the phrase set to delete. Format:
      * `projects/{project}/locations/{location}/phraseSets/{phrase_set}`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. The name of the phrase set to delete. Format:
      * `projects/{project}/locations/{location}/phraseSets/{phrase_set}`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -557,12 +617,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(); } @@ -571,16 +631,16 @@ public static com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeletePhraseSetRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeletePhraseSetRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeletePhraseSetRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeletePhraseSetRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -595,6 +655,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeletePhraseSetRequestOrBuilder.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeletePhraseSetRequestOrBuilder.java new file mode 100644 index 000000000..f6228f5da --- /dev/null +++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeletePhraseSetRequestOrBuilder.java @@ -0,0 +1,56 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/speech/v1p1beta1/cloud_speech_adaptation.proto + +package com.google.cloud.speech.v1p1beta1; + +public interface DeletePhraseSetRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1p1beta1.DeletePhraseSetRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the phrase set to delete. Format:
+   * `projects/{project}/locations/{location}/phraseSets/{phrase_set}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the phrase set to delete. Format:
+   * `projects/{project}/locations/{location}/phraseSets/{phrase_set}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetCustomClassRequest.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetCustomClassRequest.java similarity index 66% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetCustomClassRequest.java rename to proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetCustomClassRequest.java index 54a6bdf5b..fe9c530e9 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetCustomClassRequest.java +++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetCustomClassRequest.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech_adaptation.proto package com.google.cloud.speech.v1p1beta1; /** + * + * *
  * Message sent by the client for the `GetCustomClass` method.
  * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.GetCustomClassRequest} */ -public final class GetCustomClassRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetCustomClassRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v1p1beta1.GetCustomClassRequest) GetCustomClassRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetCustomClassRequest.newBuilder() to construct. private GetCustomClassRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetCustomClassRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetCustomClassRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GetCustomClassRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,53 +70,61 @@ private GetCustomClassRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_GetCustomClassRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1p1beta1_GetCustomClassRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_GetCustomClassRequest_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1p1beta1_GetCustomClassRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.GetCustomClassRequest.class, com.google.cloud.speech.v1p1beta1.GetCustomClassRequest.Builder.class); + com.google.cloud.speech.v1p1beta1.GetCustomClassRequest.class, + com.google.cloud.speech.v1p1beta1.GetCustomClassRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. The name of the custom class to retrieve. Format:
    * `projects/{project}/locations/{location}/customClasses/{custom_class}`
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -108,30 +133,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 { @@ -140,6 +167,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -151,8 +179,7 @@ public final boolean isInitialized() { } @java.lang.Override - public 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_); } @@ -176,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.v1p1beta1.GetCustomClassRequest)) { return super.equals(obj); } - com.google.cloud.speech.v1p1beta1.GetCustomClassRequest other = (com.google.cloud.speech.v1p1beta1.GetCustomClassRequest) obj; + com.google.cloud.speech.v1p1beta1.GetCustomClassRequest other = + (com.google.cloud.speech.v1p1beta1.GetCustomClassRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -204,117 +231,127 @@ public int hashCode() { } public static com.google.cloud.speech.v1p1beta1.GetCustomClassRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.GetCustomClassRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.GetCustomClassRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.GetCustomClassRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.GetCustomClassRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.GetCustomClassRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.GetCustomClassRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1p1beta1.GetCustomClassRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.GetCustomClassRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.GetCustomClassRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1p1beta1.GetCustomClassRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.GetCustomClassRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.GetCustomClassRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.GetCustomClassRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.speech.v1p1beta1.GetCustomClassRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.speech.v1p1beta1.GetCustomClassRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Message sent by the client for the `GetCustomClass` method.
    * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.GetCustomClassRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1p1beta1.GetCustomClassRequest) com.google.cloud.speech.v1p1beta1.GetCustomClassRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_GetCustomClassRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1p1beta1_GetCustomClassRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_GetCustomClassRequest_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1p1beta1_GetCustomClassRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.GetCustomClassRequest.class, com.google.cloud.speech.v1p1beta1.GetCustomClassRequest.Builder.class); + com.google.cloud.speech.v1p1beta1.GetCustomClassRequest.class, + com.google.cloud.speech.v1p1beta1.GetCustomClassRequest.Builder.class); } // Construct using com.google.cloud.speech.v1p1beta1.GetCustomClassRequest.newBuilder() @@ -322,16 +359,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -341,9 +377,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 @@ -362,7 +398,8 @@ public com.google.cloud.speech.v1p1beta1.GetCustomClassRequest build() { @java.lang.Override public com.google.cloud.speech.v1p1beta1.GetCustomClassRequest buildPartial() { - com.google.cloud.speech.v1p1beta1.GetCustomClassRequest result = new com.google.cloud.speech.v1p1beta1.GetCustomClassRequest(this); + com.google.cloud.speech.v1p1beta1.GetCustomClassRequest result = + new com.google.cloud.speech.v1p1beta1.GetCustomClassRequest(this); result.name_ = name_; onBuilt(); return result; @@ -372,38 +409,39 @@ public com.google.cloud.speech.v1p1beta1.GetCustomClassRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.speech.v1p1beta1.GetCustomClassRequest) { - return mergeFrom((com.google.cloud.speech.v1p1beta1.GetCustomClassRequest)other); + return mergeFrom((com.google.cloud.speech.v1p1beta1.GetCustomClassRequest) other); } else { super.mergeFrom(other); return this; @@ -411,7 +449,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.speech.v1p1beta1.GetCustomClassRequest other) { - if (other == com.google.cloud.speech.v1p1beta1.GetCustomClassRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.speech.v1p1beta1.GetCustomClassRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -435,7 +474,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.speech.v1p1beta1.GetCustomClassRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.speech.v1p1beta1.GetCustomClassRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -447,19 +487,23 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. The name of the custom class to retrieve. Format:
      * `projects/{project}/locations/{location}/customClasses/{custom_class}`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -468,21 +512,24 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the custom class to retrieve. Format:
      * `projects/{project}/locations/{location}/customClasses/{custom_class}`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -490,64 +537,77 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the custom class to retrieve. Format:
      * `projects/{project}/locations/{location}/customClasses/{custom_class}`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. The name of the custom class to retrieve. Format:
      * `projects/{project}/locations/{location}/customClasses/{custom_class}`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. The name of the custom class to retrieve. Format:
      * `projects/{project}/locations/{location}/customClasses/{custom_class}`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -557,12 +617,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(); } @@ -571,16 +631,16 @@ public static com.google.cloud.speech.v1p1beta1.GetCustomClassRequest getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetCustomClassRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetCustomClassRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetCustomClassRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetCustomClassRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -595,6 +655,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.GetCustomClassRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetCustomClassRequestOrBuilder.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetCustomClassRequestOrBuilder.java new file mode 100644 index 000000000..05350941a --- /dev/null +++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetCustomClassRequestOrBuilder.java @@ -0,0 +1,56 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/speech/v1p1beta1/cloud_speech_adaptation.proto + +package com.google.cloud.speech.v1p1beta1; + +public interface GetCustomClassRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1p1beta1.GetCustomClassRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the custom class to retrieve. Format:
+   * `projects/{project}/locations/{location}/customClasses/{custom_class}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the custom class to retrieve. Format:
+   * `projects/{project}/locations/{location}/customClasses/{custom_class}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetPhraseSetRequest.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetPhraseSetRequest.java similarity index 69% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetPhraseSetRequest.java rename to proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetPhraseSetRequest.java index 0c86e65a4..d281a26a7 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetPhraseSetRequest.java +++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetPhraseSetRequest.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech_adaptation.proto package com.google.cloud.speech.v1p1beta1; /** + * + * *
  * Message sent by the client for the `GetPhraseSet` method.
  * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.GetPhraseSetRequest} */ -public final class GetPhraseSetRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetPhraseSetRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v1p1beta1.GetPhraseSetRequest) GetPhraseSetRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetPhraseSetRequest.newBuilder() to construct. private GetPhraseSetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetPhraseSetRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetPhraseSetRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GetPhraseSetRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,47 +70,52 @@ private GetPhraseSetRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_GetPhraseSetRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1p1beta1_GetPhraseSetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_GetPhraseSetRequest_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1p1beta1_GetPhraseSetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest.class, com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest.Builder.class); + com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest.class, + com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. The name of the phrase set to retrieve. Format:
    * `projects/{project}/locations/{location}/phraseSets/{phrase_set}`
@@ -104,7 +126,10 @@ private GetPhraseSetRequest(
    * with matching `us` or `eu` location value.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -113,14 +138,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}`
@@ -131,17 +157,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 { @@ -150,6 +177,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -161,8 +189,7 @@ public final boolean isInitialized() { } @java.lang.Override - public 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_); } @@ -186,15 +213,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest)) { return super.equals(obj); } - com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest other = (com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest) obj; + com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest other = + (com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -214,117 +241,127 @@ public int hashCode() { } public static com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Message sent by the client for the `GetPhraseSet` method.
    * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.GetPhraseSetRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1p1beta1.GetPhraseSetRequest) com.google.cloud.speech.v1p1beta1.GetPhraseSetRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_GetPhraseSetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1p1beta1_GetPhraseSetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_GetPhraseSetRequest_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1p1beta1_GetPhraseSetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest.class, com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest.Builder.class); + com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest.class, + com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest.Builder.class); } // Construct using com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest.newBuilder() @@ -332,16 +369,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -351,9 +387,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 @@ -372,7 +408,8 @@ public com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest build() { @java.lang.Override public com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest buildPartial() { - com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest result = new com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest(this); + com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest result = + new com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest(this); result.name_ = name_; onBuilt(); return result; @@ -382,38 +419,39 @@ public com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest) { - return mergeFrom((com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest)other); + return mergeFrom((com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest) other); } else { super.mergeFrom(other); return this; @@ -421,7 +459,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest other) { - if (other == com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -445,7 +484,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -457,6 +497,8 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. The name of the phrase set to retrieve. Format:
      * `projects/{project}/locations/{location}/phraseSets/{phrase_set}`
@@ -467,14 +509,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; @@ -483,6 +527,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the phrase set to retrieve. Format:
      * `projects/{project}/locations/{location}/phraseSets/{phrase_set}`
@@ -493,16 +539,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 { @@ -510,6 +557,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the phrase set to retrieve. Format:
      * `projects/{project}/locations/{location}/phraseSets/{phrase_set}`
@@ -520,21 +569,25 @@ public java.lang.String getName() {
      * with matching `us` or `eu` location value.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. The name of the phrase set to retrieve. Format:
      * `projects/{project}/locations/{location}/phraseSets/{phrase_set}`
@@ -545,16 +598,21 @@ public Builder setName(
      * with matching `us` or `eu` location value.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. The name of the phrase set to retrieve. Format:
      * `projects/{project}/locations/{location}/phraseSets/{phrase_set}`
@@ -565,24 +623,26 @@ public Builder clearName() {
      * with matching `us` or `eu` location value.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -592,12 +652,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(); } @@ -606,16 +666,16 @@ public static com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetPhraseSetRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetPhraseSetRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetPhraseSetRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetPhraseSetRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -630,6 +690,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetPhraseSetRequestOrBuilder.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetPhraseSetRequestOrBuilder.java similarity index 59% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetPhraseSetRequestOrBuilder.java rename to proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetPhraseSetRequestOrBuilder.java index b5ad6ae00..fb9fa55ec 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetPhraseSetRequestOrBuilder.java +++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetPhraseSetRequestOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech_adaptation.proto package com.google.cloud.speech.v1p1beta1; -public interface GetPhraseSetRequestOrBuilder extends +public interface GetPhraseSetRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1p1beta1.GetPhraseSetRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The name of the phrase set to retrieve. Format:
    * `projects/{project}/locations/{location}/phraseSets/{phrase_set}`
@@ -18,11 +36,16 @@ public interface GetPhraseSetRequestOrBuilder extends
    * with matching `us` or `eu` location value.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. The name of the phrase set to retrieve. Format:
    * `projects/{project}/locations/{location}/phraseSets/{phrase_set}`
@@ -33,9 +56,11 @@ public interface GetPhraseSetRequestOrBuilder extends
    * with matching `us` or `eu` location value.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); } diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesRequest.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesRequest.java similarity index 73% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesRequest.java rename to proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesRequest.java index 5e13802d3..722611208 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesRequest.java +++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech_adaptation.proto package com.google.cloud.speech.v1p1beta1; /** + * + * *
  * Message sent by the client for the `ListCustomClasses` method.
  * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.ListCustomClassesRequest} */ -public final class ListCustomClassesRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListCustomClassesRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v1p1beta1.ListCustomClassesRequest) ListCustomClassesRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListCustomClassesRequest.newBuilder() to construct. private ListCustomClassesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListCustomClassesRequest() { parent_ = ""; pageToken_ = ""; @@ -26,16 +44,15 @@ private ListCustomClassesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListCustomClassesRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListCustomClassesRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,58 +71,64 @@ private ListCustomClassesRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 16: { + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - pageSize_ = input.readInt32(); - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 16: + { + pageSize_ = input.readInt32(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - pageToken_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + pageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_ListCustomClassesRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1p1beta1_ListCustomClassesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_ListCustomClassesRequest_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1p1beta1_ListCustomClassesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest.class, com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest.Builder.class); + com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest.class, + com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. The parent, which owns this collection of custom classes. Format:
    * `projects/{project}/locations/{location}/customClasses`
@@ -116,7 +139,10 @@ private ListCustomClassesRequest(
    * with matching `us` or `eu` location value.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -125,14 +151,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`
@@ -143,17 +170,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 { @@ -164,6 +192,8 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** + * + * *
    * The maximum number of custom classes to return. The service may return
    * fewer than this value. If unspecified, at most 50 custom classes will be
@@ -172,6 +202,7 @@ public java.lang.String getParent() {
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -182,6 +213,8 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** + * + * *
    * A page token, received from a previous `ListCustomClass` call.
    * Provide this to retrieve the subsequent page.
@@ -190,6 +223,7 @@ public int getPageSize() {
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -198,14 +232,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.
@@ -214,16 +249,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 { @@ -232,6 +266,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -243,8 +278,7 @@ public final boolean isInitialized() { } @java.lang.Override - public 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_); } @@ -267,8 +301,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_); @@ -281,19 +314,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest)) { return super.equals(obj); } - com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest other = (com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest) obj; + com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest other = + (com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -317,117 +348,127 @@ public int hashCode() { } public static com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Message sent by the client for the `ListCustomClasses` method.
    * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.ListCustomClassesRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1p1beta1.ListCustomClassesRequest) com.google.cloud.speech.v1p1beta1.ListCustomClassesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_ListCustomClassesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1p1beta1_ListCustomClassesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_ListCustomClassesRequest_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1p1beta1_ListCustomClassesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest.class, com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest.Builder.class); + com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest.class, + com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest.Builder.class); } // Construct using com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest.newBuilder() @@ -435,16 +476,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -458,9 +498,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 @@ -479,7 +519,8 @@ public com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest build() { @java.lang.Override public com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest buildPartial() { - com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest result = new com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest(this); + com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest result = + new com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -491,38 +532,39 @@ public com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest buildPartial() public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest) { - return mergeFrom((com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest)other); + return mergeFrom((com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest) other); } else { super.mergeFrom(other); return this; @@ -530,7 +572,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest other) { - if (other == com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -561,7 +604,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -573,6 +617,8 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The parent, which owns this collection of custom classes. Format:
      * `projects/{project}/locations/{location}/customClasses`
@@ -583,14 +629,16 @@ public Builder mergeFrom(
      * with matching `us` or `eu` location value.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -599,6 +647,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent, which owns this collection of custom classes. Format:
      * `projects/{project}/locations/{location}/customClasses`
@@ -609,16 +659,17 @@ public java.lang.String getParent() {
      * with matching `us` or `eu` location value.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -626,6 +677,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent, which owns this collection of custom classes. Format:
      * `projects/{project}/locations/{location}/customClasses`
@@ -636,21 +689,25 @@ public java.lang.String getParent() {
      * with matching `us` or `eu` location value.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * Required. The parent, which owns this collection of custom classes. Format:
      * `projects/{project}/locations/{location}/customClasses`
@@ -661,16 +718,21 @@ public Builder setParent(
      * with matching `us` or `eu` location value.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * Required. The parent, which owns this collection of custom classes. Format:
      * `projects/{project}/locations/{location}/customClasses`
@@ -681,24 +743,28 @@ public Builder clearParent() {
      * with matching `us` or `eu` location value.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * The maximum number of custom classes to return. The service may return
      * fewer than this value. If unspecified, at most 50 custom classes will be
@@ -707,6 +773,7 @@ public Builder setParentBytes(
      * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -714,6 +781,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
@@ -722,16 +791,19 @@ public int getPageSize() {
      * 
* * int32 page_size = 2; + * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** + * + * *
      * The maximum number of custom classes to return. The service may return
      * fewer than this value. If unspecified, at most 50 custom classes will be
@@ -740,10 +812,11 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2; + * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -751,6 +824,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.
@@ -759,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; @@ -774,6 +849,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A page token, received from a previous `ListCustomClass` call.
      * Provide this to retrieve the subsequent page.
@@ -782,15 +859,14 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -798,6 +874,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A page token, received from a previous `ListCustomClass` call.
      * Provide this to retrieve the subsequent page.
@@ -806,20 +884,22 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { + public Builder setPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** + * + * *
      * A page token, received from a previous `ListCustomClass` call.
      * Provide this to retrieve the subsequent page.
@@ -828,15 +908,18 @@ public Builder setPageToken(
      * 
* * string page_token = 3; + * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** + * + * *
      * A page token, received from a previous `ListCustomClass` call.
      * Provide this to retrieve the subsequent page.
@@ -845,23 +928,23 @@ public Builder clearPageToken() {
      * 
* * string page_token = 3; + * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -871,12 +954,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(); } @@ -885,16 +968,16 @@ public static com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListCustomClassesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListCustomClassesRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListCustomClassesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListCustomClassesRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -909,6 +992,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesRequestOrBuilder.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesRequestOrBuilder.java similarity index 70% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesRequestOrBuilder.java rename to proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesRequestOrBuilder.java index e83c2e601..de9020900 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesRequestOrBuilder.java +++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesRequestOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech_adaptation.proto package com.google.cloud.speech.v1p1beta1; -public interface ListCustomClassesRequestOrBuilder extends +public interface ListCustomClassesRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1p1beta1.ListCustomClassesRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The parent, which owns this collection of custom classes. Format:
    * `projects/{project}/locations/{location}/customClasses`
@@ -18,11 +36,16 @@ public interface ListCustomClassesRequestOrBuilder extends
    * with matching `us` or `eu` location value.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. The parent, which owns this collection of custom classes. Format:
    * `projects/{project}/locations/{location}/customClasses`
@@ -33,13 +56,17 @@ public interface ListCustomClassesRequestOrBuilder extends
    * with matching `us` or `eu` location value.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * The maximum number of custom classes to return. The service may return
    * fewer than this value. If unspecified, at most 50 custom classes will be
@@ -48,11 +75,14 @@ public interface ListCustomClassesRequestOrBuilder extends
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * A page token, received from a previous `ListCustomClass` call.
    * Provide this to retrieve the subsequent page.
@@ -61,10 +91,13 @@ public interface ListCustomClassesRequestOrBuilder extends
    * 
* * string page_token = 3; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * A page token, received from a previous `ListCustomClass` call.
    * Provide this to retrieve the subsequent page.
@@ -73,8 +106,8 @@ public interface ListCustomClassesRequestOrBuilder extends
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); } diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesResponse.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesResponse.java similarity index 75% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesResponse.java rename to proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesResponse.java index a84e608fa..e8a09d56c 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesResponse.java +++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesResponse.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech_adaptation.proto package com.google.cloud.speech.v1p1beta1; /** + * + * *
  * Message returned to the client by the `ListCustomClasses` method.
  * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.ListCustomClassesResponse} */ -public final class ListCustomClassesResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListCustomClassesResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v1p1beta1.ListCustomClassesResponse) ListCustomClassesResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListCustomClassesResponse.newBuilder() to construct. private ListCustomClassesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListCustomClassesResponse() { customClasses_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -26,16 +44,15 @@ private ListCustomClassesResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListCustomClassesResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListCustomClassesResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,35 +72,38 @@ private ListCustomClassesResponse( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - customClasses_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + customClasses_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + customClasses_.add( + input.readMessage( + com.google.cloud.speech.v1p1beta1.CustomClass.parser(), extensionRegistry)); + break; } - customClasses_.add( - input.readMessage(com.google.cloud.speech.v1p1beta1.CustomClass.parser(), extensionRegistry)); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + nextPageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { customClasses_ = java.util.Collections.unmodifiableList(customClasses_); @@ -92,22 +112,27 @@ private ListCustomClassesResponse( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_ListCustomClassesResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1p1beta1_ListCustomClassesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_ListCustomClassesResponse_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1p1beta1_ListCustomClassesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse.class, com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse.Builder.class); + com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse.class, + com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse.Builder.class); } public static final int CUSTOM_CLASSES_FIELD_NUMBER = 1; private java.util.List customClasses_; /** + * + * *
    * The custom classes.
    * 
@@ -119,6 +144,8 @@ public java.util.List getCustomCl return customClasses_; } /** + * + * *
    * The custom classes.
    * 
@@ -126,11 +153,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.
    * 
@@ -142,6 +171,8 @@ public int getCustomClassesCount() { return customClasses_.size(); } /** + * + * *
    * The custom classes.
    * 
@@ -153,6 +184,8 @@ public com.google.cloud.speech.v1p1beta1.CustomClass getCustomClasses(int index) return customClasses_.get(index); } /** + * + * *
    * The custom classes.
    * 
@@ -168,12 +201,15 @@ public com.google.cloud.speech.v1p1beta1.CustomClassOrBuilder getCustomClassesOr public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** + * + * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -182,30 +218,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -214,6 +250,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -225,8 +262,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < customClasses_.size(); i++) { output.writeMessage(1, customClasses_.get(i)); } @@ -243,8 +279,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < customClasses_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, customClasses_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, customClasses_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -257,17 +292,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse)) { return super.equals(obj); } - com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse other = (com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse) obj; + com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse other = + (com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse) obj; - if (!getCustomClassesList() - .equals(other.getCustomClassesList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; + if (!getCustomClassesList().equals(other.getCustomClassesList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -291,117 +325,127 @@ public int hashCode() { } public static com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Message returned to the client by the `ListCustomClasses` method.
    * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.ListCustomClassesResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1p1beta1.ListCustomClassesResponse) com.google.cloud.speech.v1p1beta1.ListCustomClassesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_ListCustomClassesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1p1beta1_ListCustomClassesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_ListCustomClassesResponse_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1p1beta1_ListCustomClassesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse.class, com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse.Builder.class); + com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse.class, + com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse.Builder.class); } // Construct using com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse.newBuilder() @@ -409,17 +453,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getCustomClassesFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -435,9 +479,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 @@ -456,7 +500,8 @@ public com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse build() { @java.lang.Override public com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse buildPartial() { - com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse result = new com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse(this); + com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse result = + new com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse(this); int from_bitField0_ = bitField0_; if (customClassesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -476,38 +521,39 @@ public com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse buildPartial( public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse) { - return mergeFrom((com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse)other); + return mergeFrom((com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse) other); } else { super.mergeFrom(other); return this; @@ -515,7 +561,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()) { @@ -534,9 +581,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_); } @@ -565,7 +613,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -574,21 +623,29 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.util.List customClasses_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureCustomClassesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - customClasses_ = new java.util.ArrayList(customClasses_); + customClasses_ = + new java.util.ArrayList(customClasses_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.CustomClass, com.google.cloud.speech.v1p1beta1.CustomClass.Builder, com.google.cloud.speech.v1p1beta1.CustomClassOrBuilder> customClassesBuilder_; + com.google.cloud.speech.v1p1beta1.CustomClass, + com.google.cloud.speech.v1p1beta1.CustomClass.Builder, + com.google.cloud.speech.v1p1beta1.CustomClassOrBuilder> + customClassesBuilder_; /** + * + * *
      * The custom classes.
      * 
@@ -603,6 +660,8 @@ public java.util.List getCustomCl } } /** + * + * *
      * The custom classes.
      * 
@@ -617,6 +676,8 @@ public int getCustomClassesCount() { } } /** + * + * *
      * The custom classes.
      * 
@@ -631,6 +692,8 @@ public com.google.cloud.speech.v1p1beta1.CustomClass getCustomClasses(int index) } } /** + * + * *
      * The custom classes.
      * 
@@ -652,6 +715,8 @@ public Builder setCustomClasses( return this; } /** + * + * *
      * The custom classes.
      * 
@@ -670,6 +735,8 @@ public Builder setCustomClasses( return this; } /** + * + * *
      * The custom classes.
      * 
@@ -690,6 +757,8 @@ public Builder addCustomClasses(com.google.cloud.speech.v1p1beta1.CustomClass va return this; } /** + * + * *
      * The custom classes.
      * 
@@ -711,6 +780,8 @@ public Builder addCustomClasses( return this; } /** + * + * *
      * The custom classes.
      * 
@@ -729,6 +800,8 @@ public Builder addCustomClasses( return this; } /** + * + * *
      * The custom classes.
      * 
@@ -747,6 +820,8 @@ public Builder addCustomClasses( return this; } /** + * + * *
      * The custom classes.
      * 
@@ -757,8 +832,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); @@ -766,6 +840,8 @@ public Builder addAllCustomClasses( return this; } /** + * + * *
      * The custom classes.
      * 
@@ -783,6 +859,8 @@ public Builder clearCustomClasses() { return this; } /** + * + * *
      * The custom classes.
      * 
@@ -800,6 +878,8 @@ public Builder removeCustomClasses(int index) { return this; } /** + * + * *
      * The custom classes.
      * 
@@ -811,6 +891,8 @@ public com.google.cloud.speech.v1p1beta1.CustomClass.Builder getCustomClassesBui return getCustomClassesFieldBuilder().getBuilder(index); } /** + * + * *
      * The custom classes.
      * 
@@ -820,19 +902,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 { @@ -840,6 +925,8 @@ public com.google.cloud.speech.v1p1beta1.CustomClassOrBuilder getCustomClassesOr } } /** + * + * *
      * The custom classes.
      * 
@@ -847,10 +934,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.
      * 
@@ -859,26 +948,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(), @@ -890,19 +987,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; @@ -911,21 +1010,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 { @@ -933,64 +1033,71 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { + public Builder setNextPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** + * + * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** + * + * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1000,12 +1107,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(); } @@ -1014,16 +1121,16 @@ public static com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListCustomClassesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListCustomClassesResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListCustomClassesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListCustomClassesResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1038,6 +1145,4 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesResponseOrBuilder.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesResponseOrBuilder.java similarity index 69% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesResponseOrBuilder.java rename to proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesResponseOrBuilder.java index bb845e981..ba426471d 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesResponseOrBuilder.java +++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesResponseOrBuilder.java @@ -1,22 +1,41 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech_adaptation.proto package com.google.cloud.speech.v1p1beta1; -public interface ListCustomClassesResponseOrBuilder extends +public interface ListCustomClassesResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1p1beta1.ListCustomClassesResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The custom classes.
    * 
* * repeated .google.cloud.speech.v1p1beta1.CustomClass custom_classes = 1; */ - java.util.List - getCustomClassesList(); + java.util.List getCustomClassesList(); /** + * + * *
    * The custom classes.
    * 
@@ -25,6 +44,8 @@ public interface ListCustomClassesResponseOrBuilder extends */ com.google.cloud.speech.v1p1beta1.CustomClass getCustomClasses(int index); /** + * + * *
    * The custom classes.
    * 
@@ -33,43 +54,51 @@ public interface ListCustomClassesResponseOrBuilder extends */ int getCustomClassesCount(); /** + * + * *
    * The custom classes.
    * 
* * repeated .google.cloud.speech.v1p1beta1.CustomClass custom_classes = 1; */ - java.util.List + java.util.List getCustomClassesOrBuilderList(); /** + * + * *
    * The custom classes.
    * 
* * repeated .google.cloud.speech.v1p1beta1.CustomClass custom_classes = 1; */ - com.google.cloud.speech.v1p1beta1.CustomClassOrBuilder getCustomClassesOrBuilder( - int index); + com.google.cloud.speech.v1p1beta1.CustomClassOrBuilder getCustomClassesOrBuilder(int index); /** + * + * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); } diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetRequest.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetRequest.java similarity index 73% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetRequest.java rename to proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetRequest.java index c3aa38744..a1c1a14f4 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetRequest.java +++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech_adaptation.proto package com.google.cloud.speech.v1p1beta1; /** + * + * *
  * Message sent by the client for the `ListPhraseSet` method.
  * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.ListPhraseSetRequest} */ -public final class ListPhraseSetRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListPhraseSetRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v1p1beta1.ListPhraseSetRequest) ListPhraseSetRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListPhraseSetRequest.newBuilder() to construct. private ListPhraseSetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListPhraseSetRequest() { parent_ = ""; pageToken_ = ""; @@ -26,16 +44,15 @@ private ListPhraseSetRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListPhraseSetRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListPhraseSetRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,58 +71,64 @@ private ListPhraseSetRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 16: { + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - pageSize_ = input.readInt32(); - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 16: + { + pageSize_ = input.readInt32(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - pageToken_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + pageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_ListPhraseSetRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1p1beta1_ListPhraseSetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_ListPhraseSetRequest_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1p1beta1_ListPhraseSetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest.class, com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest.Builder.class); + com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest.class, + com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. The parent, which owns this collection of phrase set. Format:
    * `projects/{project}/locations/{location}`
@@ -116,7 +139,10 @@ private ListPhraseSetRequest(
    * with matching `us` or `eu` location value.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -125,14 +151,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}`
@@ -143,17 +170,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 { @@ -164,6 +192,8 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** + * + * *
    * The maximum number of phrase sets to return. The service may return
    * fewer than this value. If unspecified, at most 50 phrase sets will be
@@ -172,6 +202,7 @@ public java.lang.String getParent() {
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -182,6 +213,8 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** + * + * *
    * A page token, received from a previous `ListPhraseSet` call.
    * Provide this to retrieve the subsequent page.
@@ -190,6 +223,7 @@ public int getPageSize() {
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -198,14 +232,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.
@@ -214,16 +249,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 { @@ -232,6 +266,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -243,8 +278,7 @@ public final boolean isInitialized() { } @java.lang.Override - public 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_); } @@ -267,8 +301,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_); @@ -281,19 +314,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest)) { return super.equals(obj); } - com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest other = (com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest) obj; + com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest other = + (com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -317,117 +348,127 @@ public int hashCode() { } public static com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Message sent by the client for the `ListPhraseSet` method.
    * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.ListPhraseSetRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1p1beta1.ListPhraseSetRequest) com.google.cloud.speech.v1p1beta1.ListPhraseSetRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_ListPhraseSetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1p1beta1_ListPhraseSetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_ListPhraseSetRequest_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1p1beta1_ListPhraseSetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest.class, com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest.Builder.class); + com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest.class, + com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest.Builder.class); } // Construct using com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest.newBuilder() @@ -435,16 +476,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -458,9 +498,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 @@ -479,7 +519,8 @@ public com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest build() { @java.lang.Override public com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest buildPartial() { - com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest result = new com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest(this); + com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest result = + new com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -491,38 +532,39 @@ public com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest) { - return mergeFrom((com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest)other); + return mergeFrom((com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest) other); } else { super.mergeFrom(other); return this; @@ -530,7 +572,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest other) { - if (other == com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -561,7 +604,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -573,6 +617,8 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The parent, which owns this collection of phrase set. Format:
      * `projects/{project}/locations/{location}`
@@ -583,14 +629,16 @@ public Builder mergeFrom(
      * with matching `us` or `eu` location value.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -599,6 +647,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent, which owns this collection of phrase set. Format:
      * `projects/{project}/locations/{location}`
@@ -609,16 +659,17 @@ public java.lang.String getParent() {
      * with matching `us` or `eu` location value.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -626,6 +677,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent, which owns this collection of phrase set. Format:
      * `projects/{project}/locations/{location}`
@@ -636,21 +689,25 @@ public java.lang.String getParent() {
      * with matching `us` or `eu` location value.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * Required. The parent, which owns this collection of phrase set. Format:
      * `projects/{project}/locations/{location}`
@@ -661,16 +718,21 @@ public Builder setParent(
      * with matching `us` or `eu` location value.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * Required. The parent, which owns this collection of phrase set. Format:
      * `projects/{project}/locations/{location}`
@@ -681,24 +743,28 @@ public Builder clearParent() {
      * with matching `us` or `eu` location value.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * The maximum number of phrase sets to return. The service may return
      * fewer than this value. If unspecified, at most 50 phrase sets will be
@@ -707,6 +773,7 @@ public Builder setParentBytes(
      * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -714,6 +781,8 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * The maximum number of phrase sets to return. The service may return
      * fewer than this value. If unspecified, at most 50 phrase sets will be
@@ -722,16 +791,19 @@ public int getPageSize() {
      * 
* * int32 page_size = 2; + * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** + * + * *
      * The maximum number of phrase sets to return. The service may return
      * fewer than this value. If unspecified, at most 50 phrase sets will be
@@ -740,10 +812,11 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2; + * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -751,6 +824,8 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * A page token, received from a previous `ListPhraseSet` call.
      * Provide this to retrieve the subsequent page.
@@ -759,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; @@ -774,6 +849,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A page token, received from a previous `ListPhraseSet` call.
      * Provide this to retrieve the subsequent page.
@@ -782,15 +859,14 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -798,6 +874,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A page token, received from a previous `ListPhraseSet` call.
      * Provide this to retrieve the subsequent page.
@@ -806,20 +884,22 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { + public Builder setPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** + * + * *
      * A page token, received from a previous `ListPhraseSet` call.
      * Provide this to retrieve the subsequent page.
@@ -828,15 +908,18 @@ public Builder setPageToken(
      * 
* * string page_token = 3; + * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** + * + * *
      * A page token, received from a previous `ListPhraseSet` call.
      * Provide this to retrieve the subsequent page.
@@ -845,23 +928,23 @@ public Builder clearPageToken() {
      * 
* * string page_token = 3; + * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -871,12 +954,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(); } @@ -885,16 +968,16 @@ public static com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListPhraseSetRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListPhraseSetRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListPhraseSetRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListPhraseSetRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -909,6 +992,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetRequestOrBuilder.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetRequestOrBuilder.java similarity index 69% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetRequestOrBuilder.java rename to proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetRequestOrBuilder.java index 1f93fa365..51f535258 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetRequestOrBuilder.java +++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetRequestOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech_adaptation.proto package com.google.cloud.speech.v1p1beta1; -public interface ListPhraseSetRequestOrBuilder extends +public interface ListPhraseSetRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1p1beta1.ListPhraseSetRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The parent, which owns this collection of phrase set. Format:
    * `projects/{project}/locations/{location}`
@@ -18,11 +36,16 @@ public interface ListPhraseSetRequestOrBuilder extends
    * with matching `us` or `eu` location value.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. The parent, which owns this collection of phrase set. Format:
    * `projects/{project}/locations/{location}`
@@ -33,13 +56,17 @@ public interface ListPhraseSetRequestOrBuilder extends
    * with matching `us` or `eu` location value.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * The maximum number of phrase sets to return. The service may return
    * fewer than this value. If unspecified, at most 50 phrase sets will be
@@ -48,11 +75,14 @@ public interface ListPhraseSetRequestOrBuilder extends
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * A page token, received from a previous `ListPhraseSet` call.
    * Provide this to retrieve the subsequent page.
@@ -61,10 +91,13 @@ public interface ListPhraseSetRequestOrBuilder extends
    * 
* * string page_token = 3; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * A page token, received from a previous `ListPhraseSet` call.
    * Provide this to retrieve the subsequent page.
@@ -73,8 +106,8 @@ public interface ListPhraseSetRequestOrBuilder extends
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); } diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetResponse.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetResponse.java similarity index 73% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetResponse.java rename to proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetResponse.java index 83716c395..be6be5a26 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetResponse.java +++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetResponse.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech_adaptation.proto package com.google.cloud.speech.v1p1beta1; /** + * + * *
  * Message returned to the client by the `ListPhraseSet` method.
  * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.ListPhraseSetResponse} */ -public final class ListPhraseSetResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListPhraseSetResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v1p1beta1.ListPhraseSetResponse) ListPhraseSetResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListPhraseSetResponse.newBuilder() to construct. private ListPhraseSetResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListPhraseSetResponse() { phraseSets_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -26,16 +44,15 @@ private ListPhraseSetResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListPhraseSetResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListPhraseSetResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,35 +72,38 @@ private ListPhraseSetResponse( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - phraseSets_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + phraseSets_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + phraseSets_.add( + input.readMessage( + com.google.cloud.speech.v1p1beta1.PhraseSet.parser(), extensionRegistry)); + break; } - phraseSets_.add( - input.readMessage(com.google.cloud.speech.v1p1beta1.PhraseSet.parser(), extensionRegistry)); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + nextPageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { phraseSets_ = java.util.Collections.unmodifiableList(phraseSets_); @@ -92,22 +112,27 @@ private ListPhraseSetResponse( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_ListPhraseSetResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1p1beta1_ListPhraseSetResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_ListPhraseSetResponse_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1p1beta1_ListPhraseSetResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse.class, com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse.Builder.class); + com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse.class, + com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse.Builder.class); } public static final int PHRASE_SETS_FIELD_NUMBER = 1; private java.util.List phraseSets_; /** + * + * *
    * The phrase set.
    * 
@@ -119,6 +144,8 @@ public java.util.List getPhraseSets return phraseSets_; } /** + * + * *
    * The phrase set.
    * 
@@ -126,11 +153,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.
    * 
@@ -142,6 +171,8 @@ public int getPhraseSetsCount() { return phraseSets_.size(); } /** + * + * *
    * The phrase set.
    * 
@@ -153,6 +184,8 @@ public com.google.cloud.speech.v1p1beta1.PhraseSet getPhraseSets(int index) { return phraseSets_.get(index); } /** + * + * *
    * The phrase set.
    * 
@@ -160,20 +193,22 @@ public com.google.cloud.speech.v1p1beta1.PhraseSet getPhraseSets(int index) { * repeated .google.cloud.speech.v1p1beta1.PhraseSet phrase_sets = 1; */ @java.lang.Override - public com.google.cloud.speech.v1p1beta1.PhraseSetOrBuilder getPhraseSetsOrBuilder( - int index) { + public com.google.cloud.speech.v1p1beta1.PhraseSetOrBuilder getPhraseSetsOrBuilder(int index) { return phraseSets_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** + * + * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -182,30 +217,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 { @@ -214,6 +249,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -225,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 { for (int i = 0; i < phraseSets_.size(); i++) { output.writeMessage(1, phraseSets_.get(i)); } @@ -243,8 +278,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_); @@ -257,17 +291,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse)) { return super.equals(obj); } - com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse other = (com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse) obj; + com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse other = + (com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse) obj; - if (!getPhraseSetsList() - .equals(other.getPhraseSetsList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; + if (!getPhraseSetsList().equals(other.getPhraseSetsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -291,117 +324,127 @@ public int hashCode() { } public static com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Message returned to the client by the `ListPhraseSet` method.
    * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.ListPhraseSetResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1p1beta1.ListPhraseSetResponse) com.google.cloud.speech.v1p1beta1.ListPhraseSetResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_ListPhraseSetResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1p1beta1_ListPhraseSetResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_ListPhraseSetResponse_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1p1beta1_ListPhraseSetResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse.class, com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse.Builder.class); + com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse.class, + com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse.Builder.class); } // Construct using com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse.newBuilder() @@ -409,17 +452,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getPhraseSetsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -435,9 +478,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 @@ -456,7 +499,8 @@ public com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse build() { @java.lang.Override public com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse buildPartial() { - com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse result = new com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse(this); + com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse result = + new com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse(this); int from_bitField0_ = bitField0_; if (phraseSetsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -476,38 +520,39 @@ public com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse) { - return mergeFrom((com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse)other); + return mergeFrom((com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse) other); } else { super.mergeFrom(other); return this; @@ -515,7 +560,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()) { @@ -534,9 +580,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_); } @@ -565,7 +612,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -574,21 +622,29 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.util.List phraseSets_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensurePhraseSetsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - phraseSets_ = new java.util.ArrayList(phraseSets_); + phraseSets_ = + new java.util.ArrayList(phraseSets_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.PhraseSet, com.google.cloud.speech.v1p1beta1.PhraseSet.Builder, com.google.cloud.speech.v1p1beta1.PhraseSetOrBuilder> phraseSetsBuilder_; + com.google.cloud.speech.v1p1beta1.PhraseSet, + com.google.cloud.speech.v1p1beta1.PhraseSet.Builder, + com.google.cloud.speech.v1p1beta1.PhraseSetOrBuilder> + phraseSetsBuilder_; /** + * + * *
      * The phrase set.
      * 
@@ -603,6 +659,8 @@ public java.util.List getPhraseSets } } /** + * + * *
      * The phrase set.
      * 
@@ -617,6 +675,8 @@ public int getPhraseSetsCount() { } } /** + * + * *
      * The phrase set.
      * 
@@ -631,14 +691,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(); @@ -652,6 +713,8 @@ public Builder setPhraseSets( return this; } /** + * + * *
      * The phrase set.
      * 
@@ -670,6 +733,8 @@ public Builder setPhraseSets( return this; } /** + * + * *
      * The phrase set.
      * 
@@ -690,14 +755,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(); @@ -711,6 +777,8 @@ public Builder addPhraseSets( return this; } /** + * + * *
      * The phrase set.
      * 
@@ -729,6 +797,8 @@ public Builder addPhraseSets( return this; } /** + * + * *
      * The phrase set.
      * 
@@ -747,6 +817,8 @@ public Builder addPhraseSets( return this; } /** + * + * *
      * The phrase set.
      * 
@@ -757,8 +829,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); @@ -766,6 +837,8 @@ public Builder addAllPhraseSets( return this; } /** + * + * *
      * The phrase set.
      * 
@@ -783,6 +856,8 @@ public Builder clearPhraseSets() { return this; } /** + * + * *
      * The phrase set.
      * 
@@ -800,39 +875,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 { @@ -840,6 +920,8 @@ public com.google.cloud.speech.v1p1beta1.PhraseSetOrBuilder getPhraseSetsOrBuild } } /** + * + * *
      * The phrase set.
      * 
@@ -847,42 +929,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_; @@ -890,19 +978,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; @@ -911,21 +1001,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 { @@ -933,64 +1024,71 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { + public Builder setNextPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** + * + * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** + * + * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1000,12 +1098,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(); } @@ -1014,16 +1112,16 @@ public static com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListPhraseSetResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListPhraseSetResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListPhraseSetResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListPhraseSetResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1038,6 +1136,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetResponseOrBuilder.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetResponseOrBuilder.java similarity index 67% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetResponseOrBuilder.java rename to proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetResponseOrBuilder.java index 7a24d1b77..319d29f4f 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetResponseOrBuilder.java +++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetResponseOrBuilder.java @@ -1,22 +1,41 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech_adaptation.proto package com.google.cloud.speech.v1p1beta1; -public interface ListPhraseSetResponseOrBuilder extends +public interface ListPhraseSetResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1p1beta1.ListPhraseSetResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The phrase set.
    * 
* * repeated .google.cloud.speech.v1p1beta1.PhraseSet phrase_sets = 1; */ - java.util.List - getPhraseSetsList(); + java.util.List getPhraseSetsList(); /** + * + * *
    * The phrase set.
    * 
@@ -25,6 +44,8 @@ public interface ListPhraseSetResponseOrBuilder extends */ com.google.cloud.speech.v1p1beta1.PhraseSet getPhraseSets(int index); /** + * + * *
    * The phrase set.
    * 
@@ -33,43 +54,51 @@ public interface ListPhraseSetResponseOrBuilder extends */ int getPhraseSetsCount(); /** + * + * *
    * The phrase set.
    * 
* * repeated .google.cloud.speech.v1p1beta1.PhraseSet phrase_sets = 1; */ - java.util.List + java.util.List getPhraseSetsOrBuilderList(); /** + * + * *
    * The phrase set.
    * 
* * repeated .google.cloud.speech.v1p1beta1.PhraseSet phrase_sets = 1; */ - com.google.cloud.speech.v1p1beta1.PhraseSetOrBuilder getPhraseSetsOrBuilder( - int index); + com.google.cloud.speech.v1p1beta1.PhraseSetOrBuilder getPhraseSetsOrBuilder(int index); /** + * + * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); } diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LocationName.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LocationName.java similarity index 100% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LocationName.java rename to proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LocationName.java diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeMetadata.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeMetadata.java similarity index 68% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeMetadata.java rename to proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeMetadata.java index 77f6b5c37..e3e8d3fdf 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeMetadata.java +++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeMetadata.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech.proto package com.google.cloud.speech.v1p1beta1; /** + * + * *
  * Describes the progress of a long-running `LongRunningRecognize` call. It is
  * included in the `metadata` field of the `Operation` returned by the
@@ -12,31 +29,31 @@
  *
  * Protobuf type {@code google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata}
  */
-public final class LongRunningRecognizeMetadata extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class LongRunningRecognizeMetadata extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata)
     LongRunningRecognizeMetadataOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use LongRunningRecognizeMetadata.newBuilder() to construct.
   private LongRunningRecognizeMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private LongRunningRecognizeMetadata() {
     uri_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new LongRunningRecognizeMetadata();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private LongRunningRecognizeMetadata(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -55,97 +72,111 @@ private LongRunningRecognizeMetadata(
           case 0:
             done = true;
             break;
-          case 8: {
-
-            progressPercent_ = input.readInt32();
-            break;
-          }
-          case 18: {
-            com.google.protobuf.Timestamp.Builder subBuilder = null;
-            if (startTime_ != null) {
-              subBuilder = startTime_.toBuilder();
+          case 8:
+            {
+              progressPercent_ = input.readInt32();
+              break;
             }
-            startTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(startTime_);
-              startTime_ = subBuilder.buildPartial();
-            }
-
-            break;
-          }
-          case 26: {
-            com.google.protobuf.Timestamp.Builder subBuilder = null;
-            if (lastUpdateTime_ != null) {
-              subBuilder = lastUpdateTime_.toBuilder();
+          case 18:
+            {
+              com.google.protobuf.Timestamp.Builder subBuilder = null;
+              if (startTime_ != null) {
+                subBuilder = startTime_.toBuilder();
+              }
+              startTime_ =
+                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(startTime_);
+                startTime_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
-            lastUpdateTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(lastUpdateTime_);
-              lastUpdateTime_ = subBuilder.buildPartial();
+          case 26:
+            {
+              com.google.protobuf.Timestamp.Builder subBuilder = null;
+              if (lastUpdateTime_ != null) {
+                subBuilder = lastUpdateTime_.toBuilder();
+              }
+              lastUpdateTime_ =
+                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(lastUpdateTime_);
+                lastUpdateTime_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
+          case 34:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            break;
-          }
-          case 34: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            uri_ = s;
-            break;
-          }
-          case 42: {
-            com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.Builder subBuilder = null;
-            if (outputConfig_ != null) {
-              subBuilder = outputConfig_.toBuilder();
+              uri_ = s;
+              break;
             }
-            outputConfig_ = input.readMessage(com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(outputConfig_);
-              outputConfig_ = subBuilder.buildPartial();
+          case 42:
+            {
+              com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.Builder subBuilder = null;
+              if (outputConfig_ != null) {
+                subBuilder = outputConfig_.toBuilder();
+              }
+              outputConfig_ =
+                  input.readMessage(
+                      com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(outputConfig_);
+                outputConfig_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
-
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeMetadata_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.speech.v1p1beta1.SpeechProto
+        .internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeMetadata_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeMetadata_fieldAccessorTable
+    return com.google.cloud.speech.v1p1beta1.SpeechProto
+        .internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeMetadata_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata.class, com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata.Builder.class);
+            com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata.class,
+            com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata.Builder.class);
   }
 
   public static final int PROGRESS_PERCENT_FIELD_NUMBER = 1;
   private int progressPercent_;
   /**
+   *
+   *
    * 
    * Approximate percentage of audio processed thus far. Guaranteed to be 100
    * when the audio is fully processed and the results are available.
    * 
* * int32 progress_percent = 1; + * * @return The progressPercent. */ @java.lang.Override @@ -156,11 +187,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 @@ -168,11 +202,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 @@ -180,6 +217,8 @@ public com.google.protobuf.Timestamp getStartTime() { return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } /** + * + * *
    * Time when the request was received.
    * 
@@ -194,11 +233,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 @@ -206,18 +248,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.
    * 
@@ -232,12 +281,15 @@ public com.google.protobuf.TimestampOrBuilder getLastUpdateTimeOrBuilder() { public static final int URI_FIELD_NUMBER = 4; private volatile java.lang.Object uri_; /** + * + * *
    * Output only. The URI of the audio file being transcribed. Empty if the audio was sent
    * as byte content.
    * 
* * string uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The uri. */ @java.lang.Override @@ -246,30 +298,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 { @@ -280,11 +332,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 @@ -292,30 +349,43 @@ public boolean hasOutputConfig() { return outputConfig_ != null; } /** + * + * *
    * Output only. A copy of the TranscriptOutputConfig if it was set in the request.
    * 
* - * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The outputConfig. */ @java.lang.Override public com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig getOutputConfig() { - return outputConfig_ == null ? com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.getDefaultInstance() : outputConfig_; + return outputConfig_ == null + ? com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.getDefaultInstance() + : outputConfig_; } /** + * + * *
    * Output only. A copy of the TranscriptOutputConfig if it was set in the request.
    * 
* - * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public com.google.cloud.speech.v1p1beta1.TranscriptOutputConfigOrBuilder getOutputConfigOrBuilder() { + public com.google.cloud.speech.v1p1beta1.TranscriptOutputConfigOrBuilder + getOutputConfigOrBuilder() { return getOutputConfig(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -327,8 +397,7 @@ public final boolean isInitialized() { } @java.lang.Override - public 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_); } @@ -354,23 +423,19 @@ public int getSerializedSize() { size = 0; if (progressPercent_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, progressPercent_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, progressPercent_); } if (startTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getStartTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getStartTime()); } if (lastUpdateTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getLastUpdateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getLastUpdateTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, uri_); } if (outputConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getOutputConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getOutputConfig()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -380,31 +445,27 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata)) { return super.equals(obj); } - com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata other = (com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata) obj; + com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata other = + (com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata) obj; - if (getProgressPercent() - != other.getProgressPercent()) return false; + if (getProgressPercent() != other.getProgressPercent()) return false; if (hasStartTime() != other.hasStartTime()) return false; if (hasStartTime()) { - if (!getStartTime() - .equals(other.getStartTime())) return false; + if (!getStartTime().equals(other.getStartTime())) return false; } if (hasLastUpdateTime() != other.hasLastUpdateTime()) return false; if (hasLastUpdateTime()) { - if (!getLastUpdateTime() - .equals(other.getLastUpdateTime())) return false; + if (!getLastUpdateTime().equals(other.getLastUpdateTime())) return false; } - if (!getUri() - .equals(other.getUri())) return false; + if (!getUri().equals(other.getUri())) return false; if (hasOutputConfig() != other.hasOutputConfig()) return false; if (hasOutputConfig()) { - if (!getOutputConfig() - .equals(other.getOutputConfig())) return false; + if (!getOutputConfig().equals(other.getOutputConfig())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -439,96 +500,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
@@ -537,21 +606,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata)
       com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadataOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeMetadata_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.speech.v1p1beta1.SpeechProto
+          .internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeMetadata_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeMetadata_fieldAccessorTable
+      return com.google.cloud.speech.v1p1beta1.SpeechProto
+          .internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeMetadata_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata.class, com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata.Builder.class);
+              com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata.class,
+              com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata.newBuilder()
@@ -559,16 +630,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -598,13 +668,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();
     }
 
@@ -619,7 +690,8 @@ public com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata buildPartial() {
-      com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata result = new com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata(this);
+      com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata result =
+          new com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata(this);
       result.progressPercent_ = progressPercent_;
       if (startTimeBuilder_ == null) {
         result.startTime_ = startTime_;
@@ -645,38 +717,39 @@ public com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata buildParti
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata) {
-        return mergeFrom((com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata)other);
+        return mergeFrom((com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -684,7 +757,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());
       }
@@ -720,7 +795,9 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata)
+                e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -730,14 +807,17 @@ public Builder mergeFrom(
       return this;
     }
 
-    private int progressPercent_ ;
+    private int progressPercent_;
     /**
+     *
+     *
      * 
      * Approximate percentage of audio processed thus far. Guaranteed to be 100
      * when the audio is fully processed and the results are available.
      * 
* * int32 progress_percent = 1; + * * @return The progressPercent. */ @java.lang.Override @@ -745,32 +825,38 @@ public int getProgressPercent() { return progressPercent_; } /** + * + * *
      * Approximate percentage of audio processed thus far. Guaranteed to be 100
      * when the audio is fully processed and the results are available.
      * 
* * int32 progress_percent = 1; + * * @param value The progressPercent to set. * @return This builder for chaining. */ public Builder setProgressPercent(int value) { - + progressPercent_ = value; onChanged(); return this; } /** + * + * *
      * Approximate percentage of audio processed thus far. Guaranteed to be 100
      * when the audio is fully processed and the results are available.
      * 
* * int32 progress_percent = 1; + * * @return This builder for chaining. */ public Builder clearProgressPercent() { - + progressPercent_ = 0; onChanged(); return this; @@ -778,24 +864,33 @@ public Builder clearProgressPercent() { private com.google.protobuf.Timestamp startTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> startTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + startTimeBuilder_; /** + * + * *
      * Time when the request was received.
      * 
* * .google.protobuf.Timestamp start_time = 2; + * * @return Whether the startTime field is set. */ public boolean hasStartTime() { return startTimeBuilder_ != null || startTime_ != null; } /** + * + * *
      * Time when the request was received.
      * 
* * .google.protobuf.Timestamp start_time = 2; + * * @return The startTime. */ public com.google.protobuf.Timestamp getStartTime() { @@ -806,6 +901,8 @@ public com.google.protobuf.Timestamp getStartTime() { } } /** + * + * *
      * Time when the request was received.
      * 
@@ -826,14 +923,15 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Time when the request was received.
      * 
* * .google.protobuf.Timestamp start_time = 2; */ - public Builder setStartTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (startTimeBuilder_ == null) { startTime_ = builderForValue.build(); onChanged(); @@ -844,6 +942,8 @@ public Builder setStartTime( return this; } /** + * + * *
      * Time when the request was received.
      * 
@@ -854,7 +954,7 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { if (startTimeBuilder_ == null) { if (startTime_ != null) { startTime_ = - com.google.protobuf.Timestamp.newBuilder(startTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(startTime_).mergeFrom(value).buildPartial(); } else { startTime_ = value; } @@ -866,6 +966,8 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Time when the request was received.
      * 
@@ -884,6 +986,8 @@ public Builder clearStartTime() { return this; } /** + * + * *
      * Time when the request was received.
      * 
@@ -891,11 +995,13 @@ public Builder clearStartTime() { * .google.protobuf.Timestamp start_time = 2; */ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { - + onChanged(); return getStartTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Time when the request was received.
      * 
@@ -906,11 +1012,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.
      * 
@@ -918,14 +1025,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_; @@ -933,34 +1043,47 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { private com.google.protobuf.Timestamp lastUpdateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> lastUpdateTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + lastUpdateTimeBuilder_; /** + * + * *
      * Time of the most recent processing update.
      * 
* * .google.protobuf.Timestamp last_update_time = 3; + * * @return Whether the lastUpdateTime field is set. */ public boolean hasLastUpdateTime() { return lastUpdateTimeBuilder_ != null || lastUpdateTime_ != null; } /** + * + * *
      * Time of the most recent processing update.
      * 
* * .google.protobuf.Timestamp last_update_time = 3; + * * @return The lastUpdateTime. */ public com.google.protobuf.Timestamp getLastUpdateTime() { if (lastUpdateTimeBuilder_ == null) { - return lastUpdateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastUpdateTime_; + return lastUpdateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : lastUpdateTime_; } else { return lastUpdateTimeBuilder_.getMessage(); } } /** + * + * *
      * Time of the most recent processing update.
      * 
@@ -981,14 +1104,15 @@ public Builder setLastUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Time of the most recent processing update.
      * 
* * .google.protobuf.Timestamp last_update_time = 3; */ - public Builder setLastUpdateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setLastUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (lastUpdateTimeBuilder_ == null) { lastUpdateTime_ = builderForValue.build(); onChanged(); @@ -999,6 +1123,8 @@ public Builder setLastUpdateTime( return this; } /** + * + * *
      * Time of the most recent processing update.
      * 
@@ -1009,7 +1135,9 @@ public Builder mergeLastUpdateTime(com.google.protobuf.Timestamp value) { if (lastUpdateTimeBuilder_ == null) { if (lastUpdateTime_ != null) { lastUpdateTime_ = - com.google.protobuf.Timestamp.newBuilder(lastUpdateTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(lastUpdateTime_) + .mergeFrom(value) + .buildPartial(); } else { lastUpdateTime_ = value; } @@ -1021,6 +1149,8 @@ public Builder mergeLastUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Time of the most recent processing update.
      * 
@@ -1039,6 +1169,8 @@ public Builder clearLastUpdateTime() { return this; } /** + * + * *
      * Time of the most recent processing update.
      * 
@@ -1046,11 +1178,13 @@ public Builder clearLastUpdateTime() { * .google.protobuf.Timestamp last_update_time = 3; */ public com.google.protobuf.Timestamp.Builder getLastUpdateTimeBuilder() { - + onChanged(); return getLastUpdateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Time of the most recent processing update.
      * 
@@ -1061,11 +1195,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.
      * 
@@ -1073,14 +1210,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_; @@ -1088,19 +1228,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; @@ -1109,21 +1251,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 { @@ -1131,57 +1274,64 @@ public java.lang.String getUri() { } } /** + * + * *
      * Output only. The URI of the audio file being transcribed. Empty if the audio was sent
      * as byte content.
      * 
* * string uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The uri to set. * @return This builder for chaining. */ - public Builder setUri( - java.lang.String value) { + public Builder setUri(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + uri_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The URI of the audio file being transcribed. Empty if the audio was sent
      * as byte content.
      * 
* * string uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearUri() { - + uri_ = getDefaultInstance().getUri(); onChanged(); return this; } /** + * + * *
      * Output only. The URI of the audio file being transcribed. Empty if the audio was sent
      * as byte content.
      * 
* * string uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for uri to set. * @return This builder for chaining. */ - public Builder setUriBytes( - com.google.protobuf.ByteString value) { + public Builder setUriBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + uri_ = value; onChanged(); return this; @@ -1189,39 +1339,58 @@ public Builder setUriBytes( private com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig outputConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig, com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.Builder, com.google.cloud.speech.v1p1beta1.TranscriptOutputConfigOrBuilder> outputConfigBuilder_; + com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig, + com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.Builder, + com.google.cloud.speech.v1p1beta1.TranscriptOutputConfigOrBuilder> + outputConfigBuilder_; /** + * + * *
      * Output only. A copy of the TranscriptOutputConfig if it was set in the request.
      * 
* - * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the outputConfig field is set. */ public boolean hasOutputConfig() { return outputConfigBuilder_ != null || outputConfig_ != null; } /** + * + * *
      * Output only. A copy of the TranscriptOutputConfig if it was set in the request.
      * 
* - * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The outputConfig. */ public com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig getOutputConfig() { if (outputConfigBuilder_ == null) { - return outputConfig_ == null ? com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.getDefaultInstance() : outputConfig_; + return outputConfig_ == null + ? com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.getDefaultInstance() + : outputConfig_; } else { return outputConfigBuilder_.getMessage(); } } /** + * + * *
      * Output only. A copy of the TranscriptOutputConfig if it was set in the request.
      * 
* - * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setOutputConfig(com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig value) { if (outputConfigBuilder_ == null) { @@ -1237,11 +1406,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) { @@ -1255,17 +1428,24 @@ public Builder setOutputConfig( return this; } /** + * + * *
      * Output only. A copy of the TranscriptOutputConfig if it was set in the request.
      * 
* - * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder mergeOutputConfig(com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig value) { + public Builder mergeOutputConfig( + com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig value) { if (outputConfigBuilder_ == null) { if (outputConfig_ != null) { outputConfig_ = - com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.newBuilder(outputConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.newBuilder(outputConfig_) + .mergeFrom(value) + .buildPartial(); } else { outputConfig_ = value; } @@ -1277,11 +1457,15 @@ public Builder mergeOutputConfig(com.google.cloud.speech.v1p1beta1.TranscriptOut return this; } /** + * + * *
      * Output only. A copy of the TranscriptOutputConfig if it was set in the request.
      * 
* - * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearOutputConfig() { if (outputConfigBuilder_ == null) { @@ -1295,55 +1479,73 @@ public Builder clearOutputConfig() { return this; } /** + * + * *
      * Output only. A copy of the TranscriptOutputConfig if it was set in the request.
      * 
* - * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.Builder getOutputConfigBuilder() { - + public com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.Builder + getOutputConfigBuilder() { + onChanged(); return getOutputConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. A copy of the TranscriptOutputConfig if it was set in the request.
      * 
* - * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.speech.v1p1beta1.TranscriptOutputConfigOrBuilder getOutputConfigOrBuilder() { + public com.google.cloud.speech.v1p1beta1.TranscriptOutputConfigOrBuilder + getOutputConfigOrBuilder() { if (outputConfigBuilder_ != null) { return outputConfigBuilder_.getMessageOrBuilder(); } else { - return outputConfig_ == null ? - com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.getDefaultInstance() : outputConfig_; + return outputConfig_ == null + ? com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.getDefaultInstance() + : outputConfig_; } } /** + * + * *
      * Output only. A copy of the TranscriptOutputConfig if it was set in the request.
      * 
* - * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig, com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.Builder, com.google.cloud.speech.v1p1beta1.TranscriptOutputConfigOrBuilder> + com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig, + com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.Builder, + com.google.cloud.speech.v1p1beta1.TranscriptOutputConfigOrBuilder> getOutputConfigFieldBuilder() { if (outputConfigBuilder_ == null) { - outputConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig, com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.Builder, com.google.cloud.speech.v1p1beta1.TranscriptOutputConfigOrBuilder>( - getOutputConfig(), - getParentForChildren(), - isClean()); + outputConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig, + com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.Builder, + com.google.cloud.speech.v1p1beta1.TranscriptOutputConfigOrBuilder>( + getOutputConfig(), getParentForChildren(), isClean()); outputConfig_ = null; } return outputConfigBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1353,30 +1555,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata) - private static final com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata DEFAULT_INSTANCE; + private static final com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata(); } - public static com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata getDefaultInstance() { + public static com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LongRunningRecognizeMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new LongRunningRecognizeMetadata(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LongRunningRecognizeMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LongRunningRecognizeMetadata(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1388,9 +1592,8 @@ public com.google.protobuf.Parser getParserForType } @java.lang.Override - public com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata getDefaultInstanceForType() { + public com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeMetadataOrBuilder.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeMetadataOrBuilder.java similarity index 70% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeMetadataOrBuilder.java rename to proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeMetadataOrBuilder.java index 2e4b54cbc..0016ab958 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeMetadataOrBuilder.java +++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeMetadataOrBuilder.java @@ -1,42 +1,69 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech.proto package com.google.cloud.speech.v1p1beta1; -public interface LongRunningRecognizeMetadataOrBuilder extends +public interface LongRunningRecognizeMetadataOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Approximate percentage of audio processed thus far. Guaranteed to be 100
    * when the audio is fully processed and the results are available.
    * 
* * int32 progress_percent = 1; + * * @return The progressPercent. */ int getProgressPercent(); /** + * + * *
    * Time when the request was received.
    * 
* * .google.protobuf.Timestamp start_time = 2; + * * @return Whether the startTime field is set. */ boolean hasStartTime(); /** + * + * *
    * Time when the request was received.
    * 
* * .google.protobuf.Timestamp start_time = 2; + * * @return The startTime. */ com.google.protobuf.Timestamp getStartTime(); /** + * + * *
    * Time when the request was received.
    * 
@@ -46,24 +73,32 @@ public interface LongRunningRecognizeMetadataOrBuilder extends com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder(); /** + * + * *
    * Time of the most recent processing update.
    * 
* * .google.protobuf.Timestamp last_update_time = 3; + * * @return Whether the lastUpdateTime field is set. */ boolean hasLastUpdateTime(); /** + * + * *
    * Time of the most recent processing update.
    * 
* * .google.protobuf.Timestamp last_update_time = 3; + * * @return The lastUpdateTime. */ com.google.protobuf.Timestamp getLastUpdateTime(); /** + * + * *
    * Time of the most recent processing update.
    * 
@@ -73,51 +108,70 @@ public interface LongRunningRecognizeMetadataOrBuilder extends com.google.protobuf.TimestampOrBuilder getLastUpdateTimeOrBuilder(); /** + * + * *
    * Output only. The URI of the audio file being transcribed. Empty if the audio was sent
    * as byte content.
    * 
* * string uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The uri. */ java.lang.String getUri(); /** + * + * *
    * Output only. The URI of the audio file being transcribed. Empty if the audio was sent
    * as byte content.
    * 
* * string uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for uri. */ - com.google.protobuf.ByteString - getUriBytes(); + com.google.protobuf.ByteString getUriBytes(); /** + * + * *
    * Output only. A copy of the TranscriptOutputConfig if it was set in the request.
    * 
* - * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the outputConfig field is set. */ boolean hasOutputConfig(); /** + * + * *
    * Output only. A copy of the TranscriptOutputConfig if it was set in the request.
    * 
* - * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The outputConfig. */ com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig getOutputConfig(); /** + * + * *
    * Output only. A copy of the TranscriptOutputConfig if it was set in the request.
    * 
* - * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.cloud.speech.v1p1beta1.TranscriptOutputConfigOrBuilder getOutputConfigOrBuilder(); } diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeRequest.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeRequest.java similarity index 59% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeRequest.java rename to proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeRequest.java index 183355d0c..d05dbda8a 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeRequest.java +++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeRequest.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech.proto package com.google.cloud.speech.v1p1beta1; /** + * + * *
  * The top-level message sent by the client for the `LongRunningRecognize`
  * method.
@@ -11,30 +28,29 @@
  *
  * Protobuf type {@code google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest}
  */
-public final class LongRunningRecognizeRequest extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class LongRunningRecognizeRequest extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest)
     LongRunningRecognizeRequestOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use LongRunningRecognizeRequest.newBuilder() to construct.
   private LongRunningRecognizeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-  private LongRunningRecognizeRequest() {
-  }
+
+  private LongRunningRecognizeRequest() {}
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new LongRunningRecognizeRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private LongRunningRecognizeRequest(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -53,86 +69,105 @@ private LongRunningRecognizeRequest(
           case 0:
             done = true;
             break;
-          case 10: {
-            com.google.cloud.speech.v1p1beta1.RecognitionConfig.Builder subBuilder = null;
-            if (config_ != null) {
-              subBuilder = config_.toBuilder();
-            }
-            config_ = input.readMessage(com.google.cloud.speech.v1p1beta1.RecognitionConfig.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(config_);
-              config_ = subBuilder.buildPartial();
-            }
+          case 10:
+            {
+              com.google.cloud.speech.v1p1beta1.RecognitionConfig.Builder subBuilder = null;
+              if (config_ != null) {
+                subBuilder = config_.toBuilder();
+              }
+              config_ =
+                  input.readMessage(
+                      com.google.cloud.speech.v1p1beta1.RecognitionConfig.parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(config_);
+                config_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          case 18: {
-            com.google.cloud.speech.v1p1beta1.RecognitionAudio.Builder subBuilder = null;
-            if (audio_ != null) {
-              subBuilder = audio_.toBuilder();
-            }
-            audio_ = input.readMessage(com.google.cloud.speech.v1p1beta1.RecognitionAudio.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(audio_);
-              audio_ = subBuilder.buildPartial();
+              break;
             }
+          case 18:
+            {
+              com.google.cloud.speech.v1p1beta1.RecognitionAudio.Builder subBuilder = null;
+              if (audio_ != null) {
+                subBuilder = audio_.toBuilder();
+              }
+              audio_ =
+                  input.readMessage(
+                      com.google.cloud.speech.v1p1beta1.RecognitionAudio.parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(audio_);
+                audio_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          case 34: {
-            com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.Builder subBuilder = null;
-            if (outputConfig_ != null) {
-              subBuilder = outputConfig_.toBuilder();
-            }
-            outputConfig_ = input.readMessage(com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(outputConfig_);
-              outputConfig_ = subBuilder.buildPartial();
+              break;
             }
+          case 34:
+            {
+              com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.Builder subBuilder = null;
+              if (outputConfig_ != null) {
+                subBuilder = outputConfig_.toBuilder();
+              }
+              outputConfig_ =
+                  input.readMessage(
+                      com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(outputConfig_);
+                outputConfig_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeRequest_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.speech.v1p1beta1.SpeechProto
+        .internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeRequest_fieldAccessorTable
+    return com.google.cloud.speech.v1p1beta1.SpeechProto
+        .internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest.class, com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest.Builder.class);
+            com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest.class,
+            com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest.Builder.class);
   }
 
   public static final int CONFIG_FIELD_NUMBER = 1;
   private com.google.cloud.speech.v1p1beta1.RecognitionConfig config_;
   /**
+   *
+   *
    * 
    * Required. Provides information to the recognizer that specifies how to
    * process the request.
    * 
* - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the config field is set. */ @java.lang.Override @@ -140,25 +175,36 @@ public boolean hasConfig() { return config_ != null; } /** + * + * *
    * Required. Provides information to the recognizer that specifies how to
    * process the request.
    * 
* - * .google.cloud.speech.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() { @@ -168,11 +214,16 @@ public com.google.cloud.speech.v1p1beta1.RecognitionConfigOrBuilder getConfigOrB public static final int AUDIO_FIELD_NUMBER = 2; private com.google.cloud.speech.v1p1beta1.RecognitionAudio audio_; /** + * + * *
    * Required. The audio data to be recognized.
    * 
* - * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the audio field is set. */ @java.lang.Override @@ -180,23 +231,34 @@ public boolean hasAudio() { return audio_ != null; } /** + * + * *
    * Required. The audio data to be recognized.
    * 
* - * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The audio. */ @java.lang.Override public com.google.cloud.speech.v1p1beta1.RecognitionAudio getAudio() { - return audio_ == null ? com.google.cloud.speech.v1p1beta1.RecognitionAudio.getDefaultInstance() : audio_; + return audio_ == null + ? com.google.cloud.speech.v1p1beta1.RecognitionAudio.getDefaultInstance() + : audio_; } /** + * + * *
    * Required. The audio data to be recognized.
    * 
* - * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.speech.v1p1beta1.RecognitionAudioOrBuilder getAudioOrBuilder() { @@ -206,11 +268,16 @@ public com.google.cloud.speech.v1p1beta1.RecognitionAudioOrBuilder getAudioOrBui public static final int OUTPUT_CONFIG_FIELD_NUMBER = 4; private com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig outputConfig_; /** + * + * *
    * Optional. Specifies an optional destination for the recognition results.
    * 
* - * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the outputConfig field is set. */ @java.lang.Override @@ -218,30 +285,43 @@ public boolean hasOutputConfig() { return outputConfig_ != null; } /** + * + * *
    * Optional. Specifies an optional destination for the recognition results.
    * 
* - * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The outputConfig. */ @java.lang.Override public com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig getOutputConfig() { - return outputConfig_ == null ? com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.getDefaultInstance() : outputConfig_; + return outputConfig_ == null + ? com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.getDefaultInstance() + : outputConfig_; } /** + * + * *
    * Optional. Specifies an optional destination for the recognition results.
    * 
* - * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.cloud.speech.v1p1beta1.TranscriptOutputConfigOrBuilder getOutputConfigOrBuilder() { + public com.google.cloud.speech.v1p1beta1.TranscriptOutputConfigOrBuilder + getOutputConfigOrBuilder() { return getOutputConfig(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -253,8 +333,7 @@ public final boolean isInitialized() { } @java.lang.Override - public 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()); } @@ -274,16 +353,13 @@ public int getSerializedSize() { size = 0; if (config_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getConfig()); } if (audio_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getAudio()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getAudio()); } if (outputConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getOutputConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getOutputConfig()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -293,27 +369,25 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest)) { return super.equals(obj); } - com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest other = (com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest) obj; + com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest other = + (com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest) obj; if (hasConfig() != other.hasConfig()) return false; if (hasConfig()) { - if (!getConfig() - .equals(other.getConfig())) return false; + if (!getConfig().equals(other.getConfig())) return false; } if (hasAudio() != other.hasAudio()) return false; if (hasAudio()) { - if (!getAudio() - .equals(other.getAudio())) return false; + if (!getAudio().equals(other.getAudio())) return false; } if (hasOutputConfig() != other.hasOutputConfig()) return false; if (hasOutputConfig()) { - if (!getOutputConfig() - .equals(other.getOutputConfig())) return false; + if (!getOutputConfig().equals(other.getOutputConfig())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -344,96 +418,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.
@@ -441,21 +523,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest)
       com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.speech.v1p1beta1.SpeechProto
+          .internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeRequest_fieldAccessorTable
+      return com.google.cloud.speech.v1p1beta1.SpeechProto
+          .internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest.class, com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest.Builder.class);
+              com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest.class,
+              com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest.newBuilder()
@@ -463,16 +547,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -498,13 +581,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();
     }
 
@@ -519,7 +603,8 @@ public com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest buildPartial() {
-      com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest result = new com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest(this);
+      com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest result =
+          new com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest(this);
       if (configBuilder_ == null) {
         result.config_ = config_;
       } else {
@@ -543,38 +628,39 @@ public com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest buildPartia
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest) {
-        return mergeFrom((com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest)other);
+        return mergeFrom((com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -582,7 +668,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());
       }
@@ -611,7 +699,9 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest)
+                e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -623,42 +713,61 @@ public Builder mergeFrom(
 
     private com.google.cloud.speech.v1p1beta1.RecognitionConfig config_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.speech.v1p1beta1.RecognitionConfig, com.google.cloud.speech.v1p1beta1.RecognitionConfig.Builder, com.google.cloud.speech.v1p1beta1.RecognitionConfigOrBuilder> configBuilder_;
+            com.google.cloud.speech.v1p1beta1.RecognitionConfig,
+            com.google.cloud.speech.v1p1beta1.RecognitionConfig.Builder,
+            com.google.cloud.speech.v1p1beta1.RecognitionConfigOrBuilder>
+        configBuilder_;
     /**
+     *
+     *
      * 
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the config field is set. */ public boolean hasConfig() { return configBuilder_ != null || config_ != null; } /** + * + * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The config. */ public com.google.cloud.speech.v1p1beta1.RecognitionConfig getConfig() { if (configBuilder_ == null) { - return config_ == null ? com.google.cloud.speech.v1p1beta1.RecognitionConfig.getDefaultInstance() : config_; + return config_ == null + ? com.google.cloud.speech.v1p1beta1.RecognitionConfig.getDefaultInstance() + : config_; } else { return configBuilder_.getMessage(); } } /** + * + * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setConfig(com.google.cloud.speech.v1p1beta1.RecognitionConfig value) { if (configBuilder_ == null) { @@ -674,12 +783,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) { @@ -693,18 +806,24 @@ public Builder setConfig( return this; } /** + * + * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeConfig(com.google.cloud.speech.v1p1beta1.RecognitionConfig value) { if (configBuilder_ == null) { if (config_ != null) { config_ = - com.google.cloud.speech.v1p1beta1.RecognitionConfig.newBuilder(config_).mergeFrom(value).buildPartial(); + com.google.cloud.speech.v1p1beta1.RecognitionConfig.newBuilder(config_) + .mergeFrom(value) + .buildPartial(); } else { config_ = value; } @@ -716,12 +835,16 @@ public Builder mergeConfig(com.google.cloud.speech.v1p1beta1.RecognitionConfig v return this; } /** + * + * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearConfig() { if (configBuilder_ == null) { @@ -735,51 +858,67 @@ public Builder clearConfig() { return this; } /** + * + * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.speech.v1p1beta1.RecognitionConfig.Builder getConfigBuilder() { - + onChanged(); return getConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.speech.v1p1beta1.RecognitionConfigOrBuilder getConfigOrBuilder() { if (configBuilder_ != null) { return configBuilder_.getMessageOrBuilder(); } else { - return config_ == null ? - com.google.cloud.speech.v1p1beta1.RecognitionConfig.getDefaultInstance() : config_; + return config_ == null + ? com.google.cloud.speech.v1p1beta1.RecognitionConfig.getDefaultInstance() + : config_; } } /** + * + * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.RecognitionConfig, com.google.cloud.speech.v1p1beta1.RecognitionConfig.Builder, com.google.cloud.speech.v1p1beta1.RecognitionConfigOrBuilder> + com.google.cloud.speech.v1p1beta1.RecognitionConfig, + com.google.cloud.speech.v1p1beta1.RecognitionConfig.Builder, + com.google.cloud.speech.v1p1beta1.RecognitionConfigOrBuilder> getConfigFieldBuilder() { if (configBuilder_ == null) { - configBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.RecognitionConfig, com.google.cloud.speech.v1p1beta1.RecognitionConfig.Builder, com.google.cloud.speech.v1p1beta1.RecognitionConfigOrBuilder>( - getConfig(), - getParentForChildren(), - isClean()); + configBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v1p1beta1.RecognitionConfig, + com.google.cloud.speech.v1p1beta1.RecognitionConfig.Builder, + com.google.cloud.speech.v1p1beta1.RecognitionConfigOrBuilder>( + getConfig(), getParentForChildren(), isClean()); config_ = null; } return configBuilder_; @@ -787,39 +926,58 @@ public com.google.cloud.speech.v1p1beta1.RecognitionConfigOrBuilder getConfigOrB private com.google.cloud.speech.v1p1beta1.RecognitionAudio audio_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.RecognitionAudio, com.google.cloud.speech.v1p1beta1.RecognitionAudio.Builder, com.google.cloud.speech.v1p1beta1.RecognitionAudioOrBuilder> audioBuilder_; + com.google.cloud.speech.v1p1beta1.RecognitionAudio, + com.google.cloud.speech.v1p1beta1.RecognitionAudio.Builder, + com.google.cloud.speech.v1p1beta1.RecognitionAudioOrBuilder> + audioBuilder_; /** + * + * *
      * Required. The audio data to be recognized.
      * 
* - * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the audio field is set. */ public boolean hasAudio() { return audioBuilder_ != null || audio_ != null; } /** + * + * *
      * Required. The audio data to be recognized.
      * 
* - * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The audio. */ public com.google.cloud.speech.v1p1beta1.RecognitionAudio getAudio() { if (audioBuilder_ == null) { - return audio_ == null ? com.google.cloud.speech.v1p1beta1.RecognitionAudio.getDefaultInstance() : audio_; + return audio_ == null + ? com.google.cloud.speech.v1p1beta1.RecognitionAudio.getDefaultInstance() + : audio_; } else { return audioBuilder_.getMessage(); } } /** + * + * *
      * Required. The audio data to be recognized.
      * 
* - * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setAudio(com.google.cloud.speech.v1p1beta1.RecognitionAudio value) { if (audioBuilder_ == null) { @@ -835,11 +993,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) { @@ -853,17 +1015,23 @@ public Builder setAudio( return this; } /** + * + * *
      * Required. The audio data to be recognized.
      * 
* - * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeAudio(com.google.cloud.speech.v1p1beta1.RecognitionAudio value) { if (audioBuilder_ == null) { if (audio_ != null) { audio_ = - com.google.cloud.speech.v1p1beta1.RecognitionAudio.newBuilder(audio_).mergeFrom(value).buildPartial(); + com.google.cloud.speech.v1p1beta1.RecognitionAudio.newBuilder(audio_) + .mergeFrom(value) + .buildPartial(); } else { audio_ = value; } @@ -875,11 +1043,15 @@ public Builder mergeAudio(com.google.cloud.speech.v1p1beta1.RecognitionAudio val return this; } /** + * + * *
      * Required. The audio data to be recognized.
      * 
* - * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearAudio() { if (audioBuilder_ == null) { @@ -893,48 +1065,64 @@ public Builder clearAudio() { return this; } /** + * + * *
      * Required. The audio data to be recognized.
      * 
* - * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.speech.v1p1beta1.RecognitionAudio.Builder getAudioBuilder() { - + onChanged(); return getAudioFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The audio data to be recognized.
      * 
* - * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.speech.v1p1beta1.RecognitionAudioOrBuilder getAudioOrBuilder() { if (audioBuilder_ != null) { return audioBuilder_.getMessageOrBuilder(); } else { - return audio_ == null ? - com.google.cloud.speech.v1p1beta1.RecognitionAudio.getDefaultInstance() : audio_; + return audio_ == null + ? com.google.cloud.speech.v1p1beta1.RecognitionAudio.getDefaultInstance() + : audio_; } } /** + * + * *
      * Required. The audio data to be recognized.
      * 
* - * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.RecognitionAudio, com.google.cloud.speech.v1p1beta1.RecognitionAudio.Builder, com.google.cloud.speech.v1p1beta1.RecognitionAudioOrBuilder> + com.google.cloud.speech.v1p1beta1.RecognitionAudio, + com.google.cloud.speech.v1p1beta1.RecognitionAudio.Builder, + com.google.cloud.speech.v1p1beta1.RecognitionAudioOrBuilder> getAudioFieldBuilder() { if (audioBuilder_ == null) { - audioBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.RecognitionAudio, com.google.cloud.speech.v1p1beta1.RecognitionAudio.Builder, com.google.cloud.speech.v1p1beta1.RecognitionAudioOrBuilder>( - getAudio(), - getParentForChildren(), - isClean()); + audioBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v1p1beta1.RecognitionAudio, + com.google.cloud.speech.v1p1beta1.RecognitionAudio.Builder, + com.google.cloud.speech.v1p1beta1.RecognitionAudioOrBuilder>( + getAudio(), getParentForChildren(), isClean()); audio_ = null; } return audioBuilder_; @@ -942,39 +1130,58 @@ public com.google.cloud.speech.v1p1beta1.RecognitionAudioOrBuilder getAudioOrBui private com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig outputConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig, com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.Builder, com.google.cloud.speech.v1p1beta1.TranscriptOutputConfigOrBuilder> outputConfigBuilder_; + com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig, + com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.Builder, + com.google.cloud.speech.v1p1beta1.TranscriptOutputConfigOrBuilder> + outputConfigBuilder_; /** + * + * *
      * Optional. Specifies an optional destination for the recognition results.
      * 
* - * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the outputConfig field is set. */ public boolean hasOutputConfig() { return outputConfigBuilder_ != null || outputConfig_ != null; } /** + * + * *
      * Optional. Specifies an optional destination for the recognition results.
      * 
* - * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The outputConfig. */ public com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig getOutputConfig() { if (outputConfigBuilder_ == null) { - return outputConfig_ == null ? com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.getDefaultInstance() : outputConfig_; + return outputConfig_ == null + ? com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.getDefaultInstance() + : outputConfig_; } else { return outputConfigBuilder_.getMessage(); } } /** + * + * *
      * Optional. Specifies an optional destination for the recognition results.
      * 
* - * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setOutputConfig(com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig value) { if (outputConfigBuilder_ == null) { @@ -990,11 +1197,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) { @@ -1008,17 +1219,24 @@ public Builder setOutputConfig( return this; } /** + * + * *
      * Optional. Specifies an optional destination for the recognition results.
      * 
* - * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder mergeOutputConfig(com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig value) { + public Builder mergeOutputConfig( + com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig value) { if (outputConfigBuilder_ == null) { if (outputConfig_ != null) { outputConfig_ = - com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.newBuilder(outputConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.newBuilder(outputConfig_) + .mergeFrom(value) + .buildPartial(); } else { outputConfig_ = value; } @@ -1030,11 +1248,15 @@ public Builder mergeOutputConfig(com.google.cloud.speech.v1p1beta1.TranscriptOut return this; } /** + * + * *
      * Optional. Specifies an optional destination for the recognition results.
      * 
* - * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearOutputConfig() { if (outputConfigBuilder_ == null) { @@ -1048,55 +1270,73 @@ public Builder clearOutputConfig() { return this; } /** + * + * *
      * Optional. Specifies an optional destination for the recognition results.
      * 
* - * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.Builder getOutputConfigBuilder() { - + public com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.Builder + getOutputConfigBuilder() { + onChanged(); return getOutputConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. Specifies an optional destination for the recognition results.
      * 
* - * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.speech.v1p1beta1.TranscriptOutputConfigOrBuilder getOutputConfigOrBuilder() { + public com.google.cloud.speech.v1p1beta1.TranscriptOutputConfigOrBuilder + getOutputConfigOrBuilder() { if (outputConfigBuilder_ != null) { return outputConfigBuilder_.getMessageOrBuilder(); } else { - return outputConfig_ == null ? - com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.getDefaultInstance() : outputConfig_; + return outputConfig_ == null + ? com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.getDefaultInstance() + : outputConfig_; } } /** + * + * *
      * Optional. Specifies an optional destination for the recognition results.
      * 
* - * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig, com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.Builder, com.google.cloud.speech.v1p1beta1.TranscriptOutputConfigOrBuilder> + com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig, + com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.Builder, + com.google.cloud.speech.v1p1beta1.TranscriptOutputConfigOrBuilder> getOutputConfigFieldBuilder() { if (outputConfigBuilder_ == null) { - outputConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig, com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.Builder, com.google.cloud.speech.v1p1beta1.TranscriptOutputConfigOrBuilder>( - getOutputConfig(), - getParentForChildren(), - isClean()); + outputConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig, + com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.Builder, + com.google.cloud.speech.v1p1beta1.TranscriptOutputConfigOrBuilder>( + getOutputConfig(), getParentForChildren(), isClean()); outputConfig_ = null; } return outputConfigBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1106,12 +1346,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(); } @@ -1120,16 +1361,16 @@ public static com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LongRunningRecognizeRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new LongRunningRecognizeRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LongRunningRecognizeRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LongRunningRecognizeRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1144,6 +1385,4 @@ public com.google.protobuf.Parser getParserForType( public com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeRequestOrBuilder.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeRequestOrBuilder.java similarity index 51% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeRequestOrBuilder.java rename to proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeRequestOrBuilder.java index 5a5a7bb3a..02d21f70f 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeRequestOrBuilder.java +++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeRequestOrBuilder.java @@ -1,93 +1,151 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech.proto package com.google.cloud.speech.v1p1beta1; -public interface LongRunningRecognizeRequestOrBuilder extends +public interface LongRunningRecognizeRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Provides information to the recognizer that specifies how to
    * process the request.
    * 
* - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the config field is set. */ boolean hasConfig(); /** + * + * *
    * Required. Provides information to the recognizer that specifies how to
    * process the request.
    * 
* - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The config. */ com.google.cloud.speech.v1p1beta1.RecognitionConfig getConfig(); /** + * + * *
    * Required. Provides information to the recognizer that specifies how to
    * process the request.
    * 
* - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.speech.v1p1beta1.RecognitionConfigOrBuilder getConfigOrBuilder(); /** + * + * *
    * Required. The audio data to be recognized.
    * 
* - * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the audio field is set. */ boolean hasAudio(); /** + * + * *
    * Required. The audio data to be recognized.
    * 
* - * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The audio. */ com.google.cloud.speech.v1p1beta1.RecognitionAudio getAudio(); /** + * + * *
    * Required. The audio data to be recognized.
    * 
* - * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.speech.v1p1beta1.RecognitionAudioOrBuilder getAudioOrBuilder(); /** + * + * *
    * Optional. Specifies an optional destination for the recognition results.
    * 
* - * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the outputConfig field is set. */ boolean hasOutputConfig(); /** + * + * *
    * Optional. Specifies an optional destination for the recognition results.
    * 
* - * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The outputConfig. */ com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig getOutputConfig(); /** + * + * *
    * Optional. Specifies an optional destination for the recognition results.
    * 
* - * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.speech.v1p1beta1.TranscriptOutputConfigOrBuilder getOutputConfigOrBuilder(); } diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeResponse.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeResponse.java similarity index 73% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeResponse.java rename to proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeResponse.java index 772da0d3f..3d09e7157 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeResponse.java +++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeResponse.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech.proto package com.google.cloud.speech.v1p1beta1; /** + * + * *
  * The only message returned to the client by the `LongRunningRecognize` method.
  * It contains the result as zero or more sequential `SpeechRecognitionResult`
@@ -14,31 +31,31 @@
  *
  * Protobuf type {@code google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse}
  */
-public final class LongRunningRecognizeResponse extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class LongRunningRecognizeResponse extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse)
     LongRunningRecognizeResponseOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use LongRunningRecognizeResponse.newBuilder() to construct.
   private LongRunningRecognizeResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private LongRunningRecognizeResponse() {
     results_ = java.util.Collections.emptyList();
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new LongRunningRecognizeResponse();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private LongRunningRecognizeResponse(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -58,68 +75,79 @@ private LongRunningRecognizeResponse(
           case 0:
             done = true;
             break;
-          case 18: {
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              results_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000001;
-            }
-            results_.add(
-                input.readMessage(com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult.parser(), extensionRegistry));
-            break;
-          }
-          case 26: {
-            com.google.protobuf.Duration.Builder subBuilder = null;
-            if (totalBilledTime_ != null) {
-              subBuilder = totalBilledTime_.toBuilder();
-            }
-            totalBilledTime_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(totalBilledTime_);
-              totalBilledTime_ = subBuilder.buildPartial();
+          case 18:
+            {
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                results_ =
+                    new java.util.ArrayList<
+                        com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult>();
+                mutable_bitField0_ |= 0x00000001;
+              }
+              results_.add(
+                  input.readMessage(
+                      com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult.parser(),
+                      extensionRegistry));
+              break;
             }
+          case 26:
+            {
+              com.google.protobuf.Duration.Builder subBuilder = null;
+              if (totalBilledTime_ != null) {
+                subBuilder = totalBilledTime_.toBuilder();
+              }
+              totalBilledTime_ =
+                  input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(totalBilledTime_);
+                totalBilledTime_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          case 50: {
-            com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.Builder subBuilder = null;
-            if (outputConfig_ != null) {
-              subBuilder = outputConfig_.toBuilder();
-            }
-            outputConfig_ = input.readMessage(com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(outputConfig_);
-              outputConfig_ = subBuilder.buildPartial();
+              break;
             }
+          case 50:
+            {
+              com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.Builder subBuilder = null;
+              if (outputConfig_ != null) {
+                subBuilder = outputConfig_.toBuilder();
+              }
+              outputConfig_ =
+                  input.readMessage(
+                      com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(outputConfig_);
+                outputConfig_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          case 58: {
-            com.google.rpc.Status.Builder subBuilder = null;
-            if (outputError_ != null) {
-              subBuilder = outputError_.toBuilder();
-            }
-            outputError_ = input.readMessage(com.google.rpc.Status.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(outputError_);
-              outputError_ = subBuilder.buildPartial();
+              break;
             }
+          case 58:
+            {
+              com.google.rpc.Status.Builder subBuilder = null;
+              if (outputError_ != null) {
+                subBuilder = outputError_.toBuilder();
+              }
+              outputError_ = input.readMessage(com.google.rpc.Status.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(outputError_);
+                outputError_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         results_ = java.util.Collections.unmodifiableList(results_);
@@ -128,22 +156,27 @@ private LongRunningRecognizeResponse(
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeResponse_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.speech.v1p1beta1.SpeechProto
+        .internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeResponse_fieldAccessorTable
+    return com.google.cloud.speech.v1p1beta1.SpeechProto
+        .internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse.class, com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse.Builder.class);
+            com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse.class,
+            com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse.Builder.class);
   }
 
   public static final int RESULTS_FIELD_NUMBER = 2;
   private java.util.List results_;
   /**
+   *
+   *
    * 
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -152,10 +185,13 @@ private LongRunningRecognizeResponse(
    * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionResult results = 2;
    */
   @java.lang.Override
-  public java.util.List getResultsList() {
+  public java.util.List
+      getResultsList() {
     return results_;
   }
   /**
+   *
+   *
    * 
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -164,11 +200,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.
@@ -181,6 +220,8 @@ public int getResultsCount() {
     return results_.size();
   }
   /**
+   *
+   *
    * 
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -193,6 +234,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.
@@ -209,11 +252,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 @@ -221,18 +267,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.
    * 
@@ -247,11 +300,14 @@ public com.google.protobuf.DurationOrBuilder getTotalBilledTimeOrBuilder() { public static final int OUTPUT_CONFIG_FIELD_NUMBER = 6; private com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig outputConfig_; /** + * + * *
    * Original output config if present in the request.
    * 
* * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 6; + * * @return Whether the outputConfig field is set. */ @java.lang.Override @@ -259,18 +315,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.
    * 
@@ -278,18 +341,22 @@ public com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig getOutputConfig( * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 6; */ @java.lang.Override - public com.google.cloud.speech.v1p1beta1.TranscriptOutputConfigOrBuilder getOutputConfigOrBuilder() { + public com.google.cloud.speech.v1p1beta1.TranscriptOutputConfigOrBuilder + getOutputConfigOrBuilder() { return getOutputConfig(); } public static final int OUTPUT_ERROR_FIELD_NUMBER = 7; private com.google.rpc.Status outputError_; /** + * + * *
    * If the transcript output fails this field contains the relevant error.
    * 
* * .google.rpc.Status output_error = 7; + * * @return Whether the outputError field is set. */ @java.lang.Override @@ -297,11 +364,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 @@ -309,6 +379,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.
    * 
@@ -321,6 +393,7 @@ public com.google.rpc.StatusOrBuilder getOutputErrorOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -332,8 +405,7 @@ public final boolean isInitialized() { } @java.lang.Override - 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)); } @@ -356,20 +428,16 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < results_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, results_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, results_.get(i)); } if (totalBilledTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getTotalBilledTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getTotalBilledTime()); } if (outputConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getOutputConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getOutputConfig()); } if (outputError_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, getOutputError()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getOutputError()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -379,29 +447,26 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse)) { return super.equals(obj); } - com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse other = (com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse) obj; + com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse other = + (com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse) obj; - if (!getResultsList() - .equals(other.getResultsList())) return false; + if (!getResultsList().equals(other.getResultsList())) return false; if (hasTotalBilledTime() != other.hasTotalBilledTime()) return false; if (hasTotalBilledTime()) { - if (!getTotalBilledTime() - .equals(other.getTotalBilledTime())) return false; + if (!getTotalBilledTime().equals(other.getTotalBilledTime())) return false; } if (hasOutputConfig() != other.hasOutputConfig()) return false; if (hasOutputConfig()) { - if (!getOutputConfig() - .equals(other.getOutputConfig())) return false; + if (!getOutputConfig().equals(other.getOutputConfig())) return false; } if (hasOutputError() != other.hasOutputError()) return false; if (hasOutputError()) { - if (!getOutputError() - .equals(other.getOutputError())) return false; + if (!getOutputError().equals(other.getOutputError())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -436,96 +501,104 @@ public int hashCode() { } public static com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The only message returned to the client by the `LongRunningRecognize` method.
    * It contains the result as zero or more sequential `SpeechRecognitionResult`
@@ -536,21 +609,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse)
       com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.speech.v1p1beta1.SpeechProto
+          .internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeResponse_fieldAccessorTable
+      return com.google.cloud.speech.v1p1beta1.SpeechProto
+          .internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse.class, com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse.Builder.class);
+              com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse.class,
+              com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse.newBuilder()
@@ -558,17 +633,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
         getResultsFieldBuilder();
       }
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -600,13 +675,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();
     }
 
@@ -621,7 +697,8 @@ public com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse buildPartial() {
-      com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse result = new com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse(this);
+      com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse result =
+          new com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse(this);
       int from_bitField0_ = bitField0_;
       if (resultsBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
@@ -655,38 +732,39 @@ public com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse buildParti
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse) {
-        return mergeFrom((com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse)other);
+        return mergeFrom((com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -694,7 +772,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()) {
@@ -713,9 +793,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_);
           }
@@ -749,7 +830,9 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse)
+                e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -758,21 +841,30 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
     private java.util.List results_ =
-      java.util.Collections.emptyList();
+        java.util.Collections.emptyList();
+
     private void ensureResultsIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
-        results_ = new java.util.ArrayList(results_);
+        results_ =
+            new java.util.ArrayList(
+                results_);
         bitField0_ |= 0x00000001;
-       }
+      }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult, com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult.Builder, com.google.cloud.speech.v1p1beta1.SpeechRecognitionResultOrBuilder> resultsBuilder_;
+            com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult,
+            com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult.Builder,
+            com.google.cloud.speech.v1p1beta1.SpeechRecognitionResultOrBuilder>
+        resultsBuilder_;
 
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -780,7 +872,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 {
@@ -788,6 +881,8 @@ public java.util.List
       }
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -803,6 +898,8 @@ public int getResultsCount() {
       }
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -818,6 +915,8 @@ public com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult getResults(int
       }
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -840,6 +939,8 @@ public Builder setResults(
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -848,7 +949,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());
@@ -859,6 +961,8 @@ public Builder setResults(
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -880,6 +984,8 @@ public Builder addResults(com.google.cloud.speech.v1p1beta1.SpeechRecognitionRes
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -902,6 +1008,8 @@ public Builder addResults(
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -921,6 +1029,8 @@ public Builder addResults(
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -929,7 +1039,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());
@@ -940,6 +1051,8 @@ public Builder addResults(
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -948,11 +1061,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);
@@ -960,6 +1073,8 @@ public Builder addAllResults(
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -978,6 +1093,8 @@ public Builder clearResults() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -996,6 +1113,8 @@ public Builder removeResults(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -1008,6 +1127,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.
@@ -1018,11 +1139,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.
@@ -1030,8 +1154,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 {
@@ -1039,6 +1164,8 @@ public com.google.cloud.speech.v1p1beta1.SpeechRecognitionResultOrBuilder getRes
       }
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -1047,10 +1174,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.
@@ -1060,10 +1190,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.
@@ -1071,20 +1205,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_;
@@ -1092,34 +1229,47 @@ public com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult.Builder addResu
 
     private com.google.protobuf.Duration totalBilledTime_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> totalBilledTimeBuilder_;
+            com.google.protobuf.Duration,
+            com.google.protobuf.Duration.Builder,
+            com.google.protobuf.DurationOrBuilder>
+        totalBilledTimeBuilder_;
     /**
+     *
+     *
      * 
      * When available, billed audio seconds for the corresponding request.
      * 
* * .google.protobuf.Duration total_billed_time = 3; + * * @return Whether the totalBilledTime field is set. */ public boolean hasTotalBilledTime() { return totalBilledTimeBuilder_ != null || totalBilledTime_ != null; } /** + * + * *
      * When available, billed audio seconds for the corresponding request.
      * 
* * .google.protobuf.Duration total_billed_time = 3; + * * @return The totalBilledTime. */ public com.google.protobuf.Duration getTotalBilledTime() { if (totalBilledTimeBuilder_ == null) { - return totalBilledTime_ == null ? com.google.protobuf.Duration.getDefaultInstance() : totalBilledTime_; + return totalBilledTime_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : totalBilledTime_; } else { return totalBilledTimeBuilder_.getMessage(); } } /** + * + * *
      * When available, billed audio seconds for the corresponding request.
      * 
@@ -1140,14 +1290,15 @@ public Builder setTotalBilledTime(com.google.protobuf.Duration value) { return this; } /** + * + * *
      * When available, billed audio seconds for the corresponding request.
      * 
* * .google.protobuf.Duration total_billed_time = 3; */ - public Builder setTotalBilledTime( - com.google.protobuf.Duration.Builder builderForValue) { + public Builder setTotalBilledTime(com.google.protobuf.Duration.Builder builderForValue) { if (totalBilledTimeBuilder_ == null) { totalBilledTime_ = builderForValue.build(); onChanged(); @@ -1158,6 +1309,8 @@ public Builder setTotalBilledTime( return this; } /** + * + * *
      * When available, billed audio seconds for the corresponding request.
      * 
@@ -1168,7 +1321,9 @@ public Builder mergeTotalBilledTime(com.google.protobuf.Duration value) { if (totalBilledTimeBuilder_ == null) { if (totalBilledTime_ != null) { totalBilledTime_ = - com.google.protobuf.Duration.newBuilder(totalBilledTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Duration.newBuilder(totalBilledTime_) + .mergeFrom(value) + .buildPartial(); } else { totalBilledTime_ = value; } @@ -1180,6 +1335,8 @@ public Builder mergeTotalBilledTime(com.google.protobuf.Duration value) { return this; } /** + * + * *
      * When available, billed audio seconds for the corresponding request.
      * 
@@ -1198,6 +1355,8 @@ public Builder clearTotalBilledTime() { return this; } /** + * + * *
      * When available, billed audio seconds for the corresponding request.
      * 
@@ -1205,11 +1364,13 @@ public Builder clearTotalBilledTime() { * .google.protobuf.Duration total_billed_time = 3; */ public com.google.protobuf.Duration.Builder getTotalBilledTimeBuilder() { - + onChanged(); return getTotalBilledTimeFieldBuilder().getBuilder(); } /** + * + * *
      * When available, billed audio seconds for the corresponding request.
      * 
@@ -1220,11 +1381,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.
      * 
@@ -1232,14 +1396,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_; @@ -1247,34 +1414,47 @@ public com.google.protobuf.DurationOrBuilder getTotalBilledTimeOrBuilder() { private com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig outputConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig, com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.Builder, com.google.cloud.speech.v1p1beta1.TranscriptOutputConfigOrBuilder> outputConfigBuilder_; + com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig, + com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.Builder, + com.google.cloud.speech.v1p1beta1.TranscriptOutputConfigOrBuilder> + outputConfigBuilder_; /** + * + * *
      * Original output config if present in the request.
      * 
* * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 6; + * * @return Whether the outputConfig field is set. */ public boolean hasOutputConfig() { return outputConfigBuilder_ != null || outputConfig_ != null; } /** + * + * *
      * Original output config if present in the request.
      * 
* * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 6; + * * @return The outputConfig. */ public com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig getOutputConfig() { if (outputConfigBuilder_ == null) { - return outputConfig_ == null ? com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.getDefaultInstance() : outputConfig_; + return outputConfig_ == null + ? com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.getDefaultInstance() + : outputConfig_; } else { return outputConfigBuilder_.getMessage(); } } /** + * + * *
      * Original output config if present in the request.
      * 
@@ -1295,6 +1475,8 @@ public Builder setOutputConfig(com.google.cloud.speech.v1p1beta1.TranscriptOutpu return this; } /** + * + * *
      * Original output config if present in the request.
      * 
@@ -1313,17 +1495,22 @@ public Builder setOutputConfig( return this; } /** + * + * *
      * Original output config if present in the request.
      * 
* * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 6; */ - public Builder mergeOutputConfig(com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig value) { + public Builder mergeOutputConfig( + com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig value) { if (outputConfigBuilder_ == null) { if (outputConfig_ != null) { outputConfig_ = - com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.newBuilder(outputConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.newBuilder(outputConfig_) + .mergeFrom(value) + .buildPartial(); } else { outputConfig_ = value; } @@ -1335,6 +1522,8 @@ public Builder mergeOutputConfig(com.google.cloud.speech.v1p1beta1.TranscriptOut return this; } /** + * + * *
      * Original output config if present in the request.
      * 
@@ -1353,33 +1542,42 @@ public Builder clearOutputConfig() { return this; } /** + * + * *
      * Original output config if present in the request.
      * 
* * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 6; */ - public com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.Builder getOutputConfigBuilder() { - + public com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.Builder + getOutputConfigBuilder() { + onChanged(); return getOutputConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Original output config if present in the request.
      * 
* * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 6; */ - public com.google.cloud.speech.v1p1beta1.TranscriptOutputConfigOrBuilder getOutputConfigOrBuilder() { + public com.google.cloud.speech.v1p1beta1.TranscriptOutputConfigOrBuilder + getOutputConfigOrBuilder() { if (outputConfigBuilder_ != null) { return outputConfigBuilder_.getMessageOrBuilder(); } else { - return outputConfig_ == null ? - com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.getDefaultInstance() : outputConfig_; + return outputConfig_ == null + ? com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.getDefaultInstance() + : outputConfig_; } } /** + * + * *
      * Original output config if present in the request.
      * 
@@ -1387,14 +1585,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_; @@ -1402,24 +1603,31 @@ public com.google.cloud.speech.v1p1beta1.TranscriptOutputConfigOrBuilder getOutp private com.google.rpc.Status outputError_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> outputErrorBuilder_; + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + outputErrorBuilder_; /** + * + * *
      * If the transcript output fails this field contains the relevant error.
      * 
* * .google.rpc.Status output_error = 7; + * * @return Whether the outputError field is set. */ public boolean hasOutputError() { return outputErrorBuilder_ != null || outputError_ != null; } /** + * + * *
      * If the transcript output fails this field contains the relevant error.
      * 
* * .google.rpc.Status output_error = 7; + * * @return The outputError. */ public com.google.rpc.Status getOutputError() { @@ -1430,6 +1638,8 @@ public com.google.rpc.Status getOutputError() { } } /** + * + * *
      * If the transcript output fails this field contains the relevant error.
      * 
@@ -1450,14 +1660,15 @@ public Builder setOutputError(com.google.rpc.Status value) { return this; } /** + * + * *
      * If the transcript output fails this field contains the relevant error.
      * 
* * .google.rpc.Status output_error = 7; */ - public Builder setOutputError( - com.google.rpc.Status.Builder builderForValue) { + public Builder setOutputError(com.google.rpc.Status.Builder builderForValue) { if (outputErrorBuilder_ == null) { outputError_ = builderForValue.build(); onChanged(); @@ -1468,6 +1679,8 @@ public Builder setOutputError( return this; } /** + * + * *
      * If the transcript output fails this field contains the relevant error.
      * 
@@ -1478,7 +1691,7 @@ public Builder mergeOutputError(com.google.rpc.Status value) { if (outputErrorBuilder_ == null) { if (outputError_ != null) { outputError_ = - com.google.rpc.Status.newBuilder(outputError_).mergeFrom(value).buildPartial(); + com.google.rpc.Status.newBuilder(outputError_).mergeFrom(value).buildPartial(); } else { outputError_ = value; } @@ -1490,6 +1703,8 @@ public Builder mergeOutputError(com.google.rpc.Status value) { return this; } /** + * + * *
      * If the transcript output fails this field contains the relevant error.
      * 
@@ -1508,6 +1723,8 @@ public Builder clearOutputError() { return this; } /** + * + * *
      * If the transcript output fails this field contains the relevant error.
      * 
@@ -1515,11 +1732,13 @@ public Builder clearOutputError() { * .google.rpc.Status output_error = 7; */ public com.google.rpc.Status.Builder getOutputErrorBuilder() { - + onChanged(); return getOutputErrorFieldBuilder().getBuilder(); } /** + * + * *
      * If the transcript output fails this field contains the relevant error.
      * 
@@ -1530,11 +1749,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.
      * 
@@ -1542,21 +1762,22 @@ public com.google.rpc.StatusOrBuilder getOutputErrorOrBuilder() { * .google.rpc.Status output_error = 7; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> getOutputErrorFieldBuilder() { if (outputErrorBuilder_ == null) { - outputErrorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>( - getOutputError(), - getParentForChildren(), - isClean()); + outputErrorBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, + com.google.rpc.Status.Builder, + com.google.rpc.StatusOrBuilder>( + getOutputError(), getParentForChildren(), isClean()); outputError_ = null; } return outputErrorBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1566,30 +1787,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse) - private static final com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse DEFAULT_INSTANCE; + private static final com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse(); } - public static com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse getDefaultInstance() { + public static com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LongRunningRecognizeResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new LongRunningRecognizeResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LongRunningRecognizeResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LongRunningRecognizeResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1601,9 +1824,8 @@ public com.google.protobuf.Parser getParserForType } @java.lang.Override - public com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse getDefaultInstanceForType() { + public com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeResponseOrBuilder.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeResponseOrBuilder.java similarity index 81% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeResponseOrBuilder.java rename to proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeResponseOrBuilder.java index f6b5867ce..e5af48096 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeResponseOrBuilder.java +++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeResponseOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech.proto package com.google.cloud.speech.v1p1beta1; -public interface LongRunningRecognizeResponseOrBuilder extends +public interface LongRunningRecognizeResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -15,9 +33,10 @@ public interface LongRunningRecognizeResponseOrBuilder extends
    *
    * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionResult results = 2;
    */
-  java.util.List 
-      getResultsList();
+  java.util.List getResultsList();
   /**
+   *
+   *
    * 
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -27,6 +46,8 @@ public interface LongRunningRecognizeResponseOrBuilder extends
    */
   com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult getResults(int index);
   /**
+   *
+   *
    * 
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -36,6 +57,8 @@ public interface LongRunningRecognizeResponseOrBuilder extends
    */
   int getResultsCount();
   /**
+   *
+   *
    * 
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -43,9 +66,11 @@ public interface LongRunningRecognizeResponseOrBuilder extends
    *
    * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionResult results = 2;
    */
-  java.util.List 
+  java.util.List
       getResultsOrBuilderList();
   /**
+   *
+   *
    * 
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -53,28 +78,35 @@ public interface LongRunningRecognizeResponseOrBuilder extends
    *
    * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionResult results = 2;
    */
-  com.google.cloud.speech.v1p1beta1.SpeechRecognitionResultOrBuilder getResultsOrBuilder(
-      int index);
+  com.google.cloud.speech.v1p1beta1.SpeechRecognitionResultOrBuilder getResultsOrBuilder(int index);
 
   /**
+   *
+   *
    * 
    * When available, billed audio seconds for the corresponding request.
    * 
* * .google.protobuf.Duration total_billed_time = 3; + * * @return Whether the totalBilledTime field is set. */ boolean hasTotalBilledTime(); /** + * + * *
    * When available, billed audio seconds for the corresponding request.
    * 
* * .google.protobuf.Duration total_billed_time = 3; + * * @return The totalBilledTime. */ com.google.protobuf.Duration getTotalBilledTime(); /** + * + * *
    * When available, billed audio seconds for the corresponding request.
    * 
@@ -84,24 +116,32 @@ com.google.cloud.speech.v1p1beta1.SpeechRecognitionResultOrBuilder getResultsOrB com.google.protobuf.DurationOrBuilder getTotalBilledTimeOrBuilder(); /** + * + * *
    * Original output config if present in the request.
    * 
* * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 6; + * * @return Whether the outputConfig field is set. */ boolean hasOutputConfig(); /** + * + * *
    * Original output config if present in the request.
    * 
* * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 6; + * * @return The outputConfig. */ com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig getOutputConfig(); /** + * + * *
    * Original output config if present in the request.
    * 
@@ -111,24 +151,32 @@ com.google.cloud.speech.v1p1beta1.SpeechRecognitionResultOrBuilder getResultsOrB com.google.cloud.speech.v1p1beta1.TranscriptOutputConfigOrBuilder getOutputConfigOrBuilder(); /** + * + * *
    * If the transcript output fails this field contains the relevant error.
    * 
* * .google.rpc.Status output_error = 7; + * * @return Whether the outputError field is set. */ boolean hasOutputError(); /** + * + * *
    * If the transcript output fails this field contains the relevant error.
    * 
* * .google.rpc.Status output_error = 7; + * * @return The outputError. */ com.google.rpc.Status getOutputError(); /** + * + * *
    * If the transcript output fails this field contains the relevant error.
    * 
diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/PhraseSet.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/PhraseSet.java similarity index 77% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/PhraseSet.java rename to proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/PhraseSet.java index fc9054d6e..663595375 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/PhraseSet.java +++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/PhraseSet.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/resource.proto package com.google.cloud.speech.v1p1beta1; /** + * + * *
  * Provides "hints" to the speech recognizer to favor specific words and phrases
  * in the results.
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.cloud.speech.v1p1beta1.PhraseSet}
  */
-public final class PhraseSet extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class PhraseSet extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.speech.v1p1beta1.PhraseSet)
     PhraseSetOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use PhraseSet.newBuilder() to construct.
   private PhraseSet(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private PhraseSet() {
     name_ = "";
     phrases_ = java.util.Collections.emptyList();
@@ -27,16 +45,15 @@ private PhraseSet() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new PhraseSet();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private PhraseSet(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -56,40 +73,44 @@ private PhraseSet(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            name_ = s;
-            break;
-          }
-          case 18: {
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              phrases_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000001;
+              name_ = s;
+              break;
             }
-            phrases_.add(
-                input.readMessage(com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase.parser(), extensionRegistry));
-            break;
-          }
-          case 37: {
-
-            boost_ = input.readFloat();
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          case 18:
+            {
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                phrases_ =
+                    new java.util.ArrayList();
+                mutable_bitField0_ |= 0x00000001;
+              }
+              phrases_.add(
+                  input.readMessage(
+                      com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase.parser(),
+                      extensionRegistry));
+              break;
+            }
+          case 37:
+            {
+              boost_ = input.readFloat();
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         phrases_ = java.util.Collections.unmodifiableList(phrases_);
@@ -98,44 +119,55 @@ private PhraseSet(
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.speech.v1p1beta1.SpeechResourceProto.internal_static_google_cloud_speech_v1p1beta1_PhraseSet_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.speech.v1p1beta1.SpeechResourceProto
+        .internal_static_google_cloud_speech_v1p1beta1_PhraseSet_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v1p1beta1.SpeechResourceProto.internal_static_google_cloud_speech_v1p1beta1_PhraseSet_fieldAccessorTable
+    return com.google.cloud.speech.v1p1beta1.SpeechResourceProto
+        .internal_static_google_cloud_speech_v1p1beta1_PhraseSet_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v1p1beta1.PhraseSet.class, com.google.cloud.speech.v1p1beta1.PhraseSet.Builder.class);
+            com.google.cloud.speech.v1p1beta1.PhraseSet.class,
+            com.google.cloud.speech.v1p1beta1.PhraseSet.Builder.class);
   }
 
-  public interface PhraseOrBuilder extends
+  public interface PhraseOrBuilder
+      extends
       // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1p1beta1.PhraseSet.Phrase)
       com.google.protobuf.MessageOrBuilder {
 
     /**
+     *
+     *
      * 
      * The phrase itself.
      * 
* * string value = 1; + * * @return The value. */ java.lang.String getValue(); /** + * + * *
      * The phrase itself.
      * 
* * string value = 1; + * * @return The bytes for value. */ - com.google.protobuf.ByteString - getValueBytes(); + com.google.protobuf.ByteString getValueBytes(); /** + * + * *
      * Hint Boost. Overrides the boost set at the phrase set level.
      * Positive value will increase the probability that a specific phrase will
@@ -149,11 +181,14 @@ public interface PhraseOrBuilder extends
      * 
* * float boost = 2; + * * @return The boost. */ float getBoost(); } /** + * + * *
    * A phrases containing words and phrase "hints" so that
    * the speech recognition is more likely to recognize them. This can be used
@@ -182,31 +217,31 @@ public interface PhraseOrBuilder extends
    *
    * Protobuf type {@code google.cloud.speech.v1p1beta1.PhraseSet.Phrase}
    */
-  public static final class Phrase extends
-      com.google.protobuf.GeneratedMessageV3 implements
+  public static final class Phrase extends com.google.protobuf.GeneratedMessageV3
+      implements
       // @@protoc_insertion_point(message_implements:google.cloud.speech.v1p1beta1.PhraseSet.Phrase)
       PhraseOrBuilder {
-  private static final long serialVersionUID = 0L;
+    private static final long serialVersionUID = 0L;
     // Use Phrase.newBuilder() to construct.
     private Phrase(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
+
     private Phrase() {
       value_ = "";
     }
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(
-        UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
       return new Phrase();
     }
 
     @java.lang.Override
-    public final com.google.protobuf.UnknownFieldSet
-    getUnknownFields() {
+    public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
       return this.unknownFields;
     }
+
     private Phrase(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -225,57 +260,63 @@ private Phrase(
             case 0:
               done = true;
               break;
-            case 10: {
-              java.lang.String s = input.readStringRequireUtf8();
+            case 10:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
 
-              value_ = s;
-              break;
-            }
-            case 21: {
-
-              boost_ = input.readFloat();
-              break;
-            }
-            default: {
-              if (!parseUnknownField(
-                  input, unknownFields, extensionRegistry, tag)) {
-                done = true;
+                value_ = s;
+                break;
+              }
+            case 21:
+              {
+                boost_ = input.readFloat();
+                break;
+              }
+            default:
+              {
+                if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                  done = true;
+                }
+                break;
               }
-              break;
-            }
           }
         }
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
         throw e.setUnfinishedMessage(this);
       } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(
-            e).setUnfinishedMessage(this);
+        throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
       } finally {
         this.unknownFields = unknownFields.build();
         makeExtensionsImmutable();
       }
     }
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.speech.v1p1beta1.SpeechResourceProto.internal_static_google_cloud_speech_v1p1beta1_PhraseSet_Phrase_descriptor;
+
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.speech.v1p1beta1.SpeechResourceProto
+          .internal_static_google_cloud_speech_v1p1beta1_PhraseSet_Phrase_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v1p1beta1.SpeechResourceProto.internal_static_google_cloud_speech_v1p1beta1_PhraseSet_Phrase_fieldAccessorTable
+      return com.google.cloud.speech.v1p1beta1.SpeechResourceProto
+          .internal_static_google_cloud_speech_v1p1beta1_PhraseSet_Phrase_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase.class, com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase.Builder.class);
+              com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase.class,
+              com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase.Builder.class);
     }
 
     public static final int VALUE_FIELD_NUMBER = 1;
     private volatile java.lang.Object value_;
     /**
+     *
+     *
      * 
      * The phrase itself.
      * 
* * string value = 1; + * * @return The value. */ @java.lang.Override @@ -284,29 +325,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 { @@ -317,6 +358,8 @@ public java.lang.String getValue() { public static final int BOOST_FIELD_NUMBER = 2; private float boost_; /** + * + * *
      * Hint Boost. Overrides the boost set at the phrase set level.
      * Positive value will increase the probability that a specific phrase will
@@ -330,6 +373,7 @@ public java.lang.String getValue() {
      * 
* * float boost = 2; + * * @return The boost. */ @java.lang.Override @@ -338,6 +382,7 @@ public float getBoost() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -349,8 +394,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(value_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, value_); } @@ -370,8 +414,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, value_); } if (boost_ != 0F) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(2, boost_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, boost_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -381,18 +424,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase)) { return super.equals(obj); } - com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase other = (com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase) obj; + com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase other = + (com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase) obj; - if (!getValue() - .equals(other.getValue())) return false; + if (!getValue().equals(other.getValue())) return false; if (java.lang.Float.floatToIntBits(getBoost()) - != java.lang.Float.floatToIntBits( - other.getBoost())) return false; + != java.lang.Float.floatToIntBits(other.getBoost())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -407,95 +449,100 @@ public int hashCode() { hash = (37 * hash) + VALUE_FIELD_NUMBER; hash = (53 * hash) + getValue().hashCode(); hash = (37 * hash) + BOOST_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getBoost()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getBoost()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -505,6 +552,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
@@ -533,21 +582,24 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.cloud.speech.v1p1beta1.PhraseSet.Phrase}
      */
-    public static final class Builder extends
-        com.google.protobuf.GeneratedMessageV3.Builder implements
+    public static final class Builder
+        extends com.google.protobuf.GeneratedMessageV3.Builder
+        implements
         // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1p1beta1.PhraseSet.Phrase)
         com.google.cloud.speech.v1p1beta1.PhraseSet.PhraseOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor
-          getDescriptor() {
-        return com.google.cloud.speech.v1p1beta1.SpeechResourceProto.internal_static_google_cloud_speech_v1p1beta1_PhraseSet_Phrase_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+        return com.google.cloud.speech.v1p1beta1.SpeechResourceProto
+            .internal_static_google_cloud_speech_v1p1beta1_PhraseSet_Phrase_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.cloud.speech.v1p1beta1.SpeechResourceProto.internal_static_google_cloud_speech_v1p1beta1_PhraseSet_Phrase_fieldAccessorTable
+        return com.google.cloud.speech.v1p1beta1.SpeechResourceProto
+            .internal_static_google_cloud_speech_v1p1beta1_PhraseSet_Phrase_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase.class, com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase.Builder.class);
+                com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase.class,
+                com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase.Builder.class);
       }
 
       // Construct using com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase.newBuilder()
@@ -555,16 +607,15 @@ private Builder() {
         maybeForceBuilderInitialization();
       }
 
-      private Builder(
-          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         super(parent);
         maybeForceBuilderInitialization();
       }
+
       private void maybeForceBuilderInitialization() {
-        if (com.google.protobuf.GeneratedMessageV3
-                .alwaysUseFieldBuilders) {
-        }
+        if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
       }
+
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -576,9 +627,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
@@ -597,7 +648,8 @@ public com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase build() {
 
       @java.lang.Override
       public com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase buildPartial() {
-        com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase result = new com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase(this);
+        com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase result =
+            new com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase(this);
         result.value_ = value_;
         result.boost_ = boost_;
         onBuilt();
@@ -608,38 +660,41 @@ public com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase buildPartial() {
       public Builder clone() {
         return super.clone();
       }
+
       @java.lang.Override
       public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field,
-          java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
         return super.setField(field, value);
       }
+
       @java.lang.Override
-      public Builder clearField(
-          com.google.protobuf.Descriptors.FieldDescriptor field) {
+      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
         return super.clearField(field);
       }
+
       @java.lang.Override
-      public Builder clearOneof(
-          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+      public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
         return super.clearOneof(oneof);
       }
+
       @java.lang.Override
       public Builder setRepeatedField(
           com.google.protobuf.Descriptors.FieldDescriptor field,
-          int index, java.lang.Object value) {
+          int index,
+          java.lang.Object value) {
         return super.setRepeatedField(field, index, value);
       }
+
       @java.lang.Override
       public Builder addRepeatedField(
-          com.google.protobuf.Descriptors.FieldDescriptor field,
-          java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
         return super.addRepeatedField(field, value);
       }
+
       @java.lang.Override
       public Builder mergeFrom(com.google.protobuf.Message other) {
         if (other instanceof com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase) {
-          return mergeFrom((com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase)other);
+          return mergeFrom((com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase) other);
         } else {
           super.mergeFrom(other);
           return this;
@@ -647,7 +702,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
       }
 
       public Builder mergeFrom(com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase other) {
-        if (other == com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase.getDefaultInstance()) return this;
+        if (other == com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase.getDefaultInstance())
+          return this;
         if (!other.getValue().isEmpty()) {
           value_ = other.value_;
           onChanged();
@@ -674,7 +730,8 @@ public Builder mergeFrom(
         try {
           parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-          parsedMessage = (com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase) e.getUnfinishedMessage();
+          parsedMessage =
+              (com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase) e.getUnfinishedMessage();
           throw e.unwrapIOException();
         } finally {
           if (parsedMessage != null) {
@@ -686,18 +743,20 @@ public Builder mergeFrom(
 
       private java.lang.Object value_ = "";
       /**
+       *
+       *
        * 
        * The phrase itself.
        * 
* * string value = 1; + * * @return The value. */ public java.lang.String getValue() { java.lang.Object ref = value_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); value_ = s; return s; @@ -706,20 +765,21 @@ public java.lang.String getValue() { } } /** + * + * *
        * The phrase itself.
        * 
* * string value = 1; + * * @return The bytes for value. */ - public com.google.protobuf.ByteString - getValueBytes() { + public com.google.protobuf.ByteString getValueBytes() { java.lang.Object ref = value_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); value_ = b; return b; } else { @@ -727,61 +787,70 @@ public java.lang.String getValue() { } } /** + * + * *
        * The phrase itself.
        * 
* * string value = 1; + * * @param value The value to set. * @return This builder for chaining. */ - public Builder setValue( - java.lang.String value) { + public Builder setValue(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + value_ = value; onChanged(); return this; } /** + * + * *
        * The phrase itself.
        * 
* * string value = 1; + * * @return This builder for chaining. */ public Builder clearValue() { - + value_ = getDefaultInstance().getValue(); onChanged(); return this; } /** + * + * *
        * The phrase itself.
        * 
* * string value = 1; + * * @param value The bytes for value to set. * @return This builder for chaining. */ - public Builder setValueBytes( - com.google.protobuf.ByteString value) { + public Builder setValueBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + value_ = value; onChanged(); return this; } - private float boost_ ; + private float boost_; /** + * + * *
        * Hint Boost. Overrides the boost set at the phrase set level.
        * Positive value will increase the probability that a specific phrase will
@@ -795,6 +864,7 @@ public Builder setValueBytes(
        * 
* * float boost = 2; + * * @return The boost. */ @java.lang.Override @@ -802,6 +872,8 @@ public float getBoost() { return boost_; } /** + * + * *
        * Hint Boost. Overrides the boost set at the phrase set level.
        * Positive value will increase the probability that a specific phrase will
@@ -815,16 +887,19 @@ public float getBoost() {
        * 
* * float boost = 2; + * * @param value The boost to set. * @return This builder for chaining. */ public Builder setBoost(float value) { - + boost_ = value; onChanged(); return this; } /** + * + * *
        * Hint Boost. Overrides the boost set at the phrase set level.
        * Positive value will increase the probability that a specific phrase will
@@ -838,14 +913,16 @@ public Builder setBoost(float value) {
        * 
* * float boost = 2; + * * @return This builder for chaining. */ public Builder clearBoost() { - + boost_ = 0F; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -858,12 +935,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(); } @@ -872,16 +949,16 @@ public static com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Phrase parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Phrase(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Phrase parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Phrase(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -896,17 +973,19 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * The resource name of the phrase set.
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -915,29 +994,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * The resource name of the phrase set.
    * 
* * string name = 1; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -948,6 +1027,8 @@ public java.lang.String getName() { public static final int PHRASES_FIELD_NUMBER = 2; private java.util.List phrases_; /** + * + * *
    * A list of word and phrases.
    * 
@@ -959,6 +1040,8 @@ public java.util.List getPhr return phrases_; } /** + * + * *
    * A list of word and phrases.
    * 
@@ -966,11 +1049,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.
    * 
@@ -982,6 +1067,8 @@ public int getPhrasesCount() { return phrases_.size(); } /** + * + * *
    * A list of word and phrases.
    * 
@@ -993,6 +1080,8 @@ public com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase getPhrases(int index) return phrases_.get(index); } /** + * + * *
    * A list of word and phrases.
    * 
@@ -1008,6 +1097,8 @@ public com.google.cloud.speech.v1p1beta1.PhraseSet.PhraseOrBuilder getPhrasesOrB public static final int BOOST_FIELD_NUMBER = 4; private float boost_; /** + * + * *
    * Hint Boost. Positive value will increase the probability that a specific
    * phrase will be recognized over other similar sounding phrases. The higher
@@ -1021,6 +1112,7 @@ public com.google.cloud.speech.v1p1beta1.PhraseSet.PhraseOrBuilder getPhrasesOrB
    * 
* * float boost = 4; + * * @return The boost. */ @java.lang.Override @@ -1029,6 +1121,7 @@ public float getBoost() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1040,8 +1133,7 @@ public final boolean isInitialized() { } @java.lang.Override - public 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_); } @@ -1064,12 +1156,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 (boost_ != 0F) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(4, boost_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(4, boost_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1079,20 +1169,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1p1beta1.PhraseSet)) { return super.equals(obj); } - com.google.cloud.speech.v1p1beta1.PhraseSet other = (com.google.cloud.speech.v1p1beta1.PhraseSet) obj; + com.google.cloud.speech.v1p1beta1.PhraseSet other = + (com.google.cloud.speech.v1p1beta1.PhraseSet) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getPhrasesList() - .equals(other.getPhrasesList())) return false; + if (!getName().equals(other.getName())) return false; + if (!getPhrasesList().equals(other.getPhrasesList())) return false; if (java.lang.Float.floatToIntBits(getBoost()) - != java.lang.Float.floatToIntBits( - other.getBoost())) return false; + != java.lang.Float.floatToIntBits(other.getBoost())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1111,104 +1199,110 @@ public int hashCode() { hash = (53 * hash) + getPhrasesList().hashCode(); } hash = (37 * hash) + BOOST_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getBoost()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getBoost()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.speech.v1p1beta1.PhraseSet parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.speech.v1p1beta1.PhraseSet parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.PhraseSet parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.PhraseSet parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.PhraseSet parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.PhraseSet parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.PhraseSet parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.PhraseSet parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.PhraseSet parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.PhraseSet parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1p1beta1.PhraseSet parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.PhraseSet parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.PhraseSet parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.PhraseSet parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.speech.v1p1beta1.PhraseSet prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Provides "hints" to the speech recognizer to favor specific words and phrases
    * in the results.
@@ -1216,21 +1310,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.speech.v1p1beta1.PhraseSet}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1p1beta1.PhraseSet)
       com.google.cloud.speech.v1p1beta1.PhraseSetOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.speech.v1p1beta1.SpeechResourceProto.internal_static_google_cloud_speech_v1p1beta1_PhraseSet_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.speech.v1p1beta1.SpeechResourceProto
+          .internal_static_google_cloud_speech_v1p1beta1_PhraseSet_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v1p1beta1.SpeechResourceProto.internal_static_google_cloud_speech_v1p1beta1_PhraseSet_fieldAccessorTable
+      return com.google.cloud.speech.v1p1beta1.SpeechResourceProto
+          .internal_static_google_cloud_speech_v1p1beta1_PhraseSet_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v1p1beta1.PhraseSet.class, com.google.cloud.speech.v1p1beta1.PhraseSet.Builder.class);
+              com.google.cloud.speech.v1p1beta1.PhraseSet.class,
+              com.google.cloud.speech.v1p1beta1.PhraseSet.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v1p1beta1.PhraseSet.newBuilder()
@@ -1238,17 +1334,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
         getPhrasesFieldBuilder();
       }
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1266,9 +1362,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
@@ -1287,7 +1383,8 @@ public com.google.cloud.speech.v1p1beta1.PhraseSet build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v1p1beta1.PhraseSet buildPartial() {
-      com.google.cloud.speech.v1p1beta1.PhraseSet result = new com.google.cloud.speech.v1p1beta1.PhraseSet(this);
+      com.google.cloud.speech.v1p1beta1.PhraseSet result =
+          new com.google.cloud.speech.v1p1beta1.PhraseSet(this);
       int from_bitField0_ = bitField0_;
       result.name_ = name_;
       if (phrasesBuilder_ == null) {
@@ -1308,38 +1405,39 @@ public com.google.cloud.speech.v1p1beta1.PhraseSet buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.speech.v1p1beta1.PhraseSet) {
-        return mergeFrom((com.google.cloud.speech.v1p1beta1.PhraseSet)other);
+        return mergeFrom((com.google.cloud.speech.v1p1beta1.PhraseSet) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1370,9 +1468,10 @@ public Builder mergeFrom(com.google.cloud.speech.v1p1beta1.PhraseSet other) {
             phrasesBuilder_ = null;
             phrases_ = other.phrases_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            phrasesBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getPhrasesFieldBuilder() : null;
+            phrasesBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getPhrasesFieldBuilder()
+                    : null;
           } else {
             phrasesBuilder_.addAllMessages(other.phrases_);
           }
@@ -1409,22 +1508,25 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * The resource name of the phrase set.
      * 
* * string name = 1; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1433,20 +1535,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 { @@ -1454,72 +1557,86 @@ public java.lang.String getName() { } } /** + * + * *
      * The resource name of the phrase set.
      * 
* * string name = 1; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * The resource name of the phrase set.
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * The resource name of the phrase set.
      * 
* * string name = 1; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } private java.util.List phrases_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensurePhrasesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - phrases_ = new java.util.ArrayList(phrases_); + phrases_ = + new java.util.ArrayList(phrases_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase, com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase.Builder, com.google.cloud.speech.v1p1beta1.PhraseSet.PhraseOrBuilder> phrasesBuilder_; + com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase, + com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase.Builder, + com.google.cloud.speech.v1p1beta1.PhraseSet.PhraseOrBuilder> + phrasesBuilder_; /** + * + * *
      * A list of word and phrases.
      * 
@@ -1534,6 +1651,8 @@ public java.util.List getPhr } } /** + * + * *
      * A list of word and phrases.
      * 
@@ -1548,6 +1667,8 @@ public int getPhrasesCount() { } } /** + * + * *
      * A list of word and phrases.
      * 
@@ -1562,14 +1683,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(); @@ -1583,6 +1705,8 @@ public Builder setPhrases( return this; } /** + * + * *
      * A list of word and phrases.
      * 
@@ -1601,6 +1725,8 @@ public Builder setPhrases( return this; } /** + * + * *
      * A list of word and phrases.
      * 
@@ -1621,14 +1747,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(); @@ -1642,6 +1769,8 @@ public Builder addPhrases( return this; } /** + * + * *
      * A list of word and phrases.
      * 
@@ -1660,6 +1789,8 @@ public Builder addPhrases( return this; } /** + * + * *
      * A list of word and phrases.
      * 
@@ -1678,6 +1809,8 @@ public Builder addPhrases( return this; } /** + * + * *
      * A list of word and phrases.
      * 
@@ -1688,8 +1821,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); @@ -1697,6 +1829,8 @@ public Builder addAllPhrases( return this; } /** + * + * *
      * A list of word and phrases.
      * 
@@ -1714,6 +1848,8 @@ public Builder clearPhrases() { return this; } /** + * + * *
      * A list of word and phrases.
      * 
@@ -1731,17 +1867,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.
      * 
@@ -1751,19 +1890,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 { @@ -1771,6 +1913,8 @@ public com.google.cloud.speech.v1p1beta1.PhraseSet.PhraseOrBuilder getPhrasesOrB } } /** + * + * *
      * A list of word and phrases.
      * 
@@ -1778,49 +1922,58 @@ public com.google.cloud.speech.v1p1beta1.PhraseSet.PhraseOrBuilder getPhrasesOrB * repeated .google.cloud.speech.v1p1beta1.PhraseSet.Phrase phrases = 2; */ public com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase.Builder addPhrasesBuilder() { - return getPhrasesFieldBuilder().addBuilder( - com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase.getDefaultInstance()); + return getPhrasesFieldBuilder() + .addBuilder(com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase.getDefaultInstance()); } /** + * + * *
      * A list of word and phrases.
      * 
* * repeated .google.cloud.speech.v1p1beta1.PhraseSet.Phrase phrases = 2; */ - public com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase.Builder addPhrasesBuilder( - int index) { - return getPhrasesFieldBuilder().addBuilder( - index, com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase.getDefaultInstance()); + public com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase.Builder addPhrasesBuilder(int index) { + return getPhrasesFieldBuilder() + .addBuilder( + index, com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase.getDefaultInstance()); } /** + * + * *
      * A list of word and phrases.
      * 
* * repeated .google.cloud.speech.v1p1beta1.PhraseSet.Phrase phrases = 2; */ - public java.util.List - getPhrasesBuilderList() { + public java.util.List + getPhrasesBuilderList() { return getPhrasesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase, com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase.Builder, com.google.cloud.speech.v1p1beta1.PhraseSet.PhraseOrBuilder> + com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase, + com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase.Builder, + com.google.cloud.speech.v1p1beta1.PhraseSet.PhraseOrBuilder> getPhrasesFieldBuilder() { if (phrasesBuilder_ == null) { - phrasesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase, com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase.Builder, com.google.cloud.speech.v1p1beta1.PhraseSet.PhraseOrBuilder>( - phrases_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + phrasesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase, + com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase.Builder, + com.google.cloud.speech.v1p1beta1.PhraseSet.PhraseOrBuilder>( + phrases_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); phrases_ = null; } return phrasesBuilder_; } - private float boost_ ; + private float boost_; /** + * + * *
      * Hint Boost. Positive value will increase the probability that a specific
      * phrase will be recognized over other similar sounding phrases. The higher
@@ -1834,6 +1987,7 @@ public com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase.Builder addPhrasesBuil
      * 
* * float boost = 4; + * * @return The boost. */ @java.lang.Override @@ -1841,6 +1995,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
@@ -1854,16 +2010,19 @@ public float getBoost() {
      * 
* * float boost = 4; + * * @param value The boost to set. * @return This builder for chaining. */ public Builder setBoost(float value) { - + boost_ = value; onChanged(); return this; } /** + * + * *
      * Hint Boost. Positive value will increase the probability that a specific
      * phrase will be recognized over other similar sounding phrases. The higher
@@ -1877,17 +2036,18 @@ public Builder setBoost(float value) {
      * 
* * float boost = 4; + * * @return This builder for chaining. */ public Builder clearBoost() { - + boost_ = 0F; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1897,12 +2057,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(); } @@ -1911,16 +2071,16 @@ public static com.google.cloud.speech.v1p1beta1.PhraseSet getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PhraseSet parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PhraseSet(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PhraseSet parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PhraseSet(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1935,6 +2095,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.PhraseSet getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/PhraseSetName.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/PhraseSetName.java similarity index 100% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/PhraseSetName.java rename to proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/PhraseSetName.java diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/PhraseSetOrBuilder.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/PhraseSetOrBuilder.java similarity index 74% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/PhraseSetOrBuilder.java rename to proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/PhraseSetOrBuilder.java index 1ed61ed52..55f1127b4 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/PhraseSetOrBuilder.java +++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/PhraseSetOrBuilder.java @@ -1,42 +1,66 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/resource.proto package com.google.cloud.speech.v1p1beta1; -public interface PhraseSetOrBuilder extends +public interface PhraseSetOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1p1beta1.PhraseSet) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The resource name of the phrase set.
    * 
* * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * The resource name of the phrase set.
    * 
* * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * A list of word and phrases.
    * 
* * repeated .google.cloud.speech.v1p1beta1.PhraseSet.Phrase phrases = 2; */ - java.util.List - getPhrasesList(); + java.util.List getPhrasesList(); /** + * + * *
    * A list of word and phrases.
    * 
@@ -45,6 +69,8 @@ public interface PhraseSetOrBuilder extends */ com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase getPhrases(int index); /** + * + * *
    * A list of word and phrases.
    * 
@@ -53,25 +79,30 @@ public interface PhraseSetOrBuilder extends */ int getPhrasesCount(); /** + * + * *
    * A list of word and phrases.
    * 
* * repeated .google.cloud.speech.v1p1beta1.PhraseSet.Phrase phrases = 2; */ - java.util.List + java.util.List getPhrasesOrBuilderList(); /** + * + * *
    * A list of word and phrases.
    * 
* * repeated .google.cloud.speech.v1p1beta1.PhraseSet.Phrase phrases = 2; */ - com.google.cloud.speech.v1p1beta1.PhraseSet.PhraseOrBuilder getPhrasesOrBuilder( - int index); + com.google.cloud.speech.v1p1beta1.PhraseSet.PhraseOrBuilder getPhrasesOrBuilder(int index); /** + * + * *
    * Hint Boost. Positive value will increase the probability that a specific
    * phrase will be recognized over other similar sounding phrases. The higher
@@ -85,6 +116,7 @@ com.google.cloud.speech.v1p1beta1.PhraseSet.PhraseOrBuilder getPhrasesOrBuilder(
    * 
* * float boost = 4; + * * @return The boost. */ float getBoost(); diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionAudio.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionAudio.java similarity index 75% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionAudio.java rename to proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionAudio.java index 9fca1214b..1a4741551 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionAudio.java +++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionAudio.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech.proto package com.google.cloud.speech.v1p1beta1; /** + * + * *
  * Contains audio data in the encoding specified in the `RecognitionConfig`.
  * Either `content` or `uri` must be supplied. Supplying both or neither
@@ -13,30 +30,29 @@
  *
  * Protobuf type {@code google.cloud.speech.v1p1beta1.RecognitionAudio}
  */
-public final class RecognitionAudio extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class RecognitionAudio extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.speech.v1p1beta1.RecognitionAudio)
     RecognitionAudioOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use RecognitionAudio.newBuilder() to construct.
   private RecognitionAudio(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-  private RecognitionAudio() {
-  }
+
+  private RecognitionAudio() {}
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new RecognitionAudio();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private RecognitionAudio(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -55,58 +71,65 @@ private RecognitionAudio(
           case 0:
             done = true;
             break;
-          case 10: {
-            audioSourceCase_ = 1;
-            audioSource_ = input.readBytes();
-            break;
-          }
-          case 18: {
-            java.lang.String s = input.readStringRequireUtf8();
-            audioSourceCase_ = 2;
-            audioSource_ = s;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          case 10:
+            {
+              audioSourceCase_ = 1;
+              audioSource_ = input.readBytes();
+              break;
+            }
+          case 18:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
+              audioSourceCase_ = 2;
+              audioSource_ = s;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_RecognitionAudio_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.speech.v1p1beta1.SpeechProto
+        .internal_static_google_cloud_speech_v1p1beta1_RecognitionAudio_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_RecognitionAudio_fieldAccessorTable
+    return com.google.cloud.speech.v1p1beta1.SpeechProto
+        .internal_static_google_cloud_speech_v1p1beta1_RecognitionAudio_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v1p1beta1.RecognitionAudio.class, com.google.cloud.speech.v1p1beta1.RecognitionAudio.Builder.class);
+            com.google.cloud.speech.v1p1beta1.RecognitionAudio.class,
+            com.google.cloud.speech.v1p1beta1.RecognitionAudio.Builder.class);
   }
 
   private int audioSourceCase_ = 0;
   private java.lang.Object audioSource_;
+
   public enum AudioSourceCase
-      implements com.google.protobuf.Internal.EnumLite,
+      implements
+          com.google.protobuf.Internal.EnumLite,
           com.google.protobuf.AbstractMessage.InternalOneOfEnum {
     CONTENT(1),
     URI(2),
     AUDIOSOURCE_NOT_SET(0);
     private final int value;
+
     private AudioSourceCase(int value) {
       this.value = value;
     }
@@ -122,25 +145,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
@@ -148,6 +176,7 @@ public int getNumber() {
    * 
* * bytes content = 1; + * * @return Whether the content field is set. */ @java.lang.Override @@ -155,6 +184,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
@@ -162,6 +193,7 @@ public boolean hasContent() {
    * 
* * bytes content = 1; + * * @return The content. */ @java.lang.Override @@ -174,6 +206,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).
@@ -185,12 +219,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).
@@ -202,6 +239,7 @@ public boolean hasUri() {
    * 
* * string uri = 2; + * * @return The uri. */ public java.lang.String getUri() { @@ -212,8 +250,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; @@ -222,6 +259,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).
@@ -233,18 +272,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; } @@ -255,6 +293,7 @@ public java.lang.String getUri() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -266,11 +305,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_); @@ -285,9 +322,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_); @@ -300,22 +337,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: @@ -349,96 +385,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
@@ -448,21 +491,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.speech.v1p1beta1.RecognitionAudio}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1p1beta1.RecognitionAudio)
       com.google.cloud.speech.v1p1beta1.RecognitionAudioOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_RecognitionAudio_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.speech.v1p1beta1.SpeechProto
+          .internal_static_google_cloud_speech_v1p1beta1_RecognitionAudio_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_RecognitionAudio_fieldAccessorTable
+      return com.google.cloud.speech.v1p1beta1.SpeechProto
+          .internal_static_google_cloud_speech_v1p1beta1_RecognitionAudio_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v1p1beta1.RecognitionAudio.class, com.google.cloud.speech.v1p1beta1.RecognitionAudio.Builder.class);
+              com.google.cloud.speech.v1p1beta1.RecognitionAudio.class,
+              com.google.cloud.speech.v1p1beta1.RecognitionAudio.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v1p1beta1.RecognitionAudio.newBuilder()
@@ -470,16 +515,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -489,9 +533,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
@@ -510,7 +554,8 @@ public com.google.cloud.speech.v1p1beta1.RecognitionAudio build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v1p1beta1.RecognitionAudio buildPartial() {
-      com.google.cloud.speech.v1p1beta1.RecognitionAudio result = new com.google.cloud.speech.v1p1beta1.RecognitionAudio(this);
+      com.google.cloud.speech.v1p1beta1.RecognitionAudio result =
+          new com.google.cloud.speech.v1p1beta1.RecognitionAudio(this);
       if (audioSourceCase_ == 1) {
         result.audioSource_ = audioSource_;
       }
@@ -526,38 +571,39 @@ public com.google.cloud.speech.v1p1beta1.RecognitionAudio buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.speech.v1p1beta1.RecognitionAudio) {
-        return mergeFrom((com.google.cloud.speech.v1p1beta1.RecognitionAudio)other);
+        return mergeFrom((com.google.cloud.speech.v1p1beta1.RecognitionAudio) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -565,21 +611,25 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.speech.v1p1beta1.RecognitionAudio other) {
-      if (other == com.google.cloud.speech.v1p1beta1.RecognitionAudio.getDefaultInstance()) return this;
+      if (other == com.google.cloud.speech.v1p1beta1.RecognitionAudio.getDefaultInstance())
+        return this;
       switch (other.getAudioSourceCase()) {
-        case CONTENT: {
-          setContent(other.getContent());
-          break;
-        }
-        case URI: {
-          audioSourceCase_ = 2;
-          audioSource_ = other.audioSource_;
-          onChanged();
-          break;
-        }
-        case AUDIOSOURCE_NOT_SET: {
-          break;
-        }
+        case CONTENT:
+          {
+            setContent(other.getContent());
+            break;
+          }
+        case URI:
+          {
+            audioSourceCase_ = 2;
+            audioSource_ = other.audioSource_;
+            onChanged();
+            break;
+          }
+        case AUDIOSOURCE_NOT_SET:
+          {
+            break;
+          }
       }
       this.mergeUnknownFields(other.unknownFields);
       onChanged();
@@ -600,7 +650,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.speech.v1p1beta1.RecognitionAudio) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.speech.v1p1beta1.RecognitionAudio) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -609,12 +660,12 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int audioSourceCase_ = 0;
     private java.lang.Object audioSource_;
-    public AudioSourceCase
-        getAudioSourceCase() {
-      return AudioSourceCase.forNumber(
-          audioSourceCase_);
+
+    public AudioSourceCase getAudioSourceCase() {
+      return AudioSourceCase.forNumber(audioSourceCase_);
     }
 
     public Builder clearAudioSource() {
@@ -624,8 +675,9 @@ public Builder clearAudioSource() {
       return this;
     }
 
-
     /**
+     *
+     *
      * 
      * The audio data bytes encoded as specified in
      * `RecognitionConfig`. Note: as with all bytes fields, proto buffers use a
@@ -633,12 +685,15 @@ public Builder clearAudioSource() {
      * 
* * bytes content = 1; + * * @return Whether the content field is set. */ public boolean hasContent() { return audioSourceCase_ == 1; } /** + * + * *
      * The audio data bytes encoded as specified in
      * `RecognitionConfig`. Note: as with all bytes fields, proto buffers use a
@@ -646,6 +701,7 @@ public boolean hasContent() {
      * 
* * bytes content = 1; + * * @return The content. */ public com.google.protobuf.ByteString getContent() { @@ -655,6 +711,8 @@ public com.google.protobuf.ByteString getContent() { return com.google.protobuf.ByteString.EMPTY; } /** + * + * *
      * The audio data bytes encoded as specified in
      * `RecognitionConfig`. Note: as with all bytes fields, proto buffers use a
@@ -662,19 +720,22 @@ public com.google.protobuf.ByteString getContent() {
      * 
* * bytes content = 1; + * * @param value The content to set. * @return This builder for chaining. */ public Builder setContent(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - audioSourceCase_ = 1; + throw new NullPointerException(); + } + audioSourceCase_ = 1; audioSource_ = value; onChanged(); return this; } /** + * + * *
      * The audio data bytes encoded as specified in
      * `RecognitionConfig`. Note: as with all bytes fields, proto buffers use a
@@ -682,6 +743,7 @@ public Builder setContent(com.google.protobuf.ByteString value) {
      * 
* * bytes content = 1; + * * @return This builder for chaining. */ public Builder clearContent() { @@ -694,6 +756,8 @@ public Builder clearContent() { } /** + * + * *
      * URI that points to a file that contains audio data bytes as specified in
      * `RecognitionConfig`. The file must not be compressed (for example, gzip).
@@ -705,6 +769,7 @@ public Builder clearContent() {
      * 
* * string uri = 2; + * * @return Whether the uri field is set. */ @java.lang.Override @@ -712,6 +777,8 @@ public boolean hasUri() { return audioSourceCase_ == 2; } /** + * + * *
      * URI that points to a file that contains audio data bytes as specified in
      * `RecognitionConfig`. The file must not be compressed (for example, gzip).
@@ -723,6 +790,7 @@ public boolean hasUri() {
      * 
* * string uri = 2; + * * @return The uri. */ @java.lang.Override @@ -732,8 +800,7 @@ public java.lang.String getUri() { ref = audioSource_; } if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (audioSourceCase_ == 2) { audioSource_ = s; @@ -744,6 +811,8 @@ public java.lang.String getUri() { } } /** + * + * *
      * URI that points to a file that contains audio data bytes as specified in
      * `RecognitionConfig`. The file must not be compressed (for example, gzip).
@@ -755,19 +824,18 @@ public java.lang.String getUri() {
      * 
* * string uri = 2; + * * @return The bytes for uri. */ @java.lang.Override - public com.google.protobuf.ByteString - getUriBytes() { + public com.google.protobuf.ByteString getUriBytes() { java.lang.Object ref = ""; if (audioSourceCase_ == 2) { ref = audioSource_; } if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); if (audioSourceCase_ == 2) { audioSource_ = b; } @@ -777,6 +845,8 @@ public java.lang.String getUri() { } } /** + * + * *
      * URI that points to a file that contains audio data bytes as specified in
      * `RecognitionConfig`. The file must not be compressed (for example, gzip).
@@ -788,20 +858,22 @@ public java.lang.String getUri() {
      * 
* * string uri = 2; + * * @param value The uri to set. * @return This builder for chaining. */ - public Builder setUri( - java.lang.String value) { + public Builder setUri(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - audioSourceCase_ = 2; + throw new NullPointerException(); + } + audioSourceCase_ = 2; audioSource_ = value; onChanged(); return this; } /** + * + * *
      * URI that points to a file that contains audio data bytes as specified in
      * `RecognitionConfig`. The file must not be compressed (for example, gzip).
@@ -813,6 +885,7 @@ public Builder setUri(
      * 
* * string uri = 2; + * * @return This builder for chaining. */ public Builder clearUri() { @@ -824,6 +897,8 @@ public Builder clearUri() { return this; } /** + * + * *
      * URI that points to a file that contains audio data bytes as specified in
      * `RecognitionConfig`. The file must not be compressed (for example, gzip).
@@ -835,23 +910,23 @@ public Builder clearUri() {
      * 
* * string uri = 2; + * * @param value The bytes for uri to set. * @return This builder for chaining. */ - public Builder setUriBytes( - com.google.protobuf.ByteString value) { + public Builder setUriBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); audioSourceCase_ = 2; audioSource_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -861,12 +936,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(); } @@ -875,16 +950,16 @@ public static com.google.cloud.speech.v1p1beta1.RecognitionAudio getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RecognitionAudio parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new RecognitionAudio(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RecognitionAudio parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RecognitionAudio(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -899,6 +974,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.RecognitionAudio getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionAudioOrBuilder.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionAudioOrBuilder.java similarity index 79% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionAudioOrBuilder.java rename to proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionAudioOrBuilder.java index 6127a94e2..37850c3d9 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionAudioOrBuilder.java +++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionAudioOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech.proto package com.google.cloud.speech.v1p1beta1; -public interface RecognitionAudioOrBuilder extends +public interface RecognitionAudioOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1p1beta1.RecognitionAudio) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The audio data bytes encoded as specified in
    * `RecognitionConfig`. Note: as with all bytes fields, proto buffers use a
@@ -15,10 +33,13 @@ public interface RecognitionAudioOrBuilder extends
    * 
* * bytes content = 1; + * * @return Whether the content field is set. */ boolean hasContent(); /** + * + * *
    * The audio data bytes encoded as specified in
    * `RecognitionConfig`. Note: as with all bytes fields, proto buffers use a
@@ -26,11 +47,14 @@ public interface RecognitionAudioOrBuilder extends
    * 
* * bytes content = 1; + * * @return The content. */ com.google.protobuf.ByteString getContent(); /** + * + * *
    * URI that points to a file that contains audio data bytes as specified in
    * `RecognitionConfig`. The file must not be compressed (for example, gzip).
@@ -42,10 +66,13 @@ public interface RecognitionAudioOrBuilder extends
    * 
* * string uri = 2; + * * @return Whether the uri field is set. */ boolean hasUri(); /** + * + * *
    * URI that points to a file that contains audio data bytes as specified in
    * `RecognitionConfig`. The file must not be compressed (for example, gzip).
@@ -57,10 +84,13 @@ public interface RecognitionAudioOrBuilder extends
    * 
* * string uri = 2; + * * @return The uri. */ java.lang.String getUri(); /** + * + * *
    * URI that points to a file that contains audio data bytes as specified in
    * `RecognitionConfig`. The file must not be compressed (for example, gzip).
@@ -72,10 +102,10 @@ public interface RecognitionAudioOrBuilder extends
    * 
* * string uri = 2; + * * @return The bytes for uri. */ - com.google.protobuf.ByteString - getUriBytes(); + com.google.protobuf.ByteString getUriBytes(); public com.google.cloud.speech.v1p1beta1.RecognitionAudio.AudioSourceCase getAudioSourceCase(); } diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionConfig.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionConfig.java similarity index 82% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionConfig.java rename to proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionConfig.java index c9aa11013..720bfd14c 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionConfig.java +++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionConfig.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech.proto package com.google.cloud.speech.v1p1beta1; /** + * + * *
  * Provides information to the recognizer that specifies how to process the
  * request.
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.cloud.speech.v1p1beta1.RecognitionConfig}
  */
-public final class RecognitionConfig extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class RecognitionConfig extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.speech.v1p1beta1.RecognitionConfig)
     RecognitionConfigOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use RecognitionConfig.newBuilder() to construct.
   private RecognitionConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private RecognitionConfig() {
     encoding_ = 0;
     languageCode_ = "";
@@ -30,16 +48,15 @@ private RecognitionConfig() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new RecognitionConfig();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private RecognitionConfig(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -59,189 +76,215 @@ private RecognitionConfig(
           case 0:
             done = true;
             break;
-          case 8: {
-            int rawValue = input.readEnum();
+          case 8:
+            {
+              int rawValue = input.readEnum();
 
-            encoding_ = rawValue;
-            break;
-          }
-          case 16: {
-
-            sampleRateHertz_ = input.readInt32();
-            break;
-          }
-          case 26: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            languageCode_ = s;
-            break;
-          }
-          case 32: {
-
-            maxAlternatives_ = input.readInt32();
-            break;
-          }
-          case 40: {
-
-            profanityFilter_ = input.readBool();
-            break;
-          }
-          case 50: {
-            if (!((mutable_bitField0_ & 0x00000002) != 0)) {
-              speechContexts_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000002;
+              encoding_ = rawValue;
+              break;
             }
-            speechContexts_.add(
-                input.readMessage(com.google.cloud.speech.v1p1beta1.SpeechContext.parser(), extensionRegistry));
-            break;
-          }
-          case 56: {
-
-            audioChannelCount_ = input.readInt32();
-            break;
-          }
-          case 64: {
+          case 16:
+            {
+              sampleRateHertz_ = input.readInt32();
+              break;
+            }
+          case 26:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            enableWordTimeOffsets_ = input.readBool();
-            break;
-          }
-          case 74: {
-            com.google.cloud.speech.v1p1beta1.RecognitionMetadata.Builder subBuilder = null;
-            if (metadata_ != null) {
-              subBuilder = metadata_.toBuilder();
+              languageCode_ = s;
+              break;
             }
-            metadata_ = input.readMessage(com.google.cloud.speech.v1p1beta1.RecognitionMetadata.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(metadata_);
-              metadata_ = subBuilder.buildPartial();
+          case 32:
+            {
+              maxAlternatives_ = input.readInt32();
+              break;
             }
-
-            break;
-          }
-          case 88: {
-
-            enableAutomaticPunctuation_ = input.readBool();
-            break;
-          }
-          case 96: {
-
-            enableSeparateRecognitionPerChannel_ = input.readBool();
-            break;
-          }
-          case 106: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            model_ = s;
-            break;
-          }
-          case 112: {
-
-            useEnhanced_ = input.readBool();
-            break;
-          }
-          case 120: {
-
-            enableWordConfidence_ = input.readBool();
-            break;
-          }
-          case 128: {
-
-            enableSpeakerDiarization_ = input.readBool();
-            break;
-          }
-          case 136: {
-
-            diarizationSpeakerCount_ = input.readInt32();
-            break;
-          }
-          case 146: {
-            java.lang.String s = input.readStringRequireUtf8();
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              alternativeLanguageCodes_ = new com.google.protobuf.LazyStringArrayList();
-              mutable_bitField0_ |= 0x00000001;
+          case 40:
+            {
+              profanityFilter_ = input.readBool();
+              break;
             }
-            alternativeLanguageCodes_.add(s);
-            break;
-          }
-          case 154: {
-            com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig.Builder subBuilder = null;
-            if (diarizationConfig_ != null) {
-              subBuilder = diarizationConfig_.toBuilder();
+          case 50:
+            {
+              if (!((mutable_bitField0_ & 0x00000002) != 0)) {
+                speechContexts_ =
+                    new java.util.ArrayList();
+                mutable_bitField0_ |= 0x00000002;
+              }
+              speechContexts_.add(
+                  input.readMessage(
+                      com.google.cloud.speech.v1p1beta1.SpeechContext.parser(), extensionRegistry));
+              break;
             }
-            diarizationConfig_ = input.readMessage(com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(diarizationConfig_);
-              diarizationConfig_ = subBuilder.buildPartial();
+          case 56:
+            {
+              audioChannelCount_ = input.readInt32();
+              break;
             }
-
-            break;
-          }
-          case 162: {
-            com.google.cloud.speech.v1p1beta1.SpeechAdaptation.Builder subBuilder = null;
-            if (adaptation_ != null) {
-              subBuilder = adaptation_.toBuilder();
+          case 64:
+            {
+              enableWordTimeOffsets_ = input.readBool();
+              break;
             }
-            adaptation_ = input.readMessage(com.google.cloud.speech.v1p1beta1.SpeechAdaptation.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(adaptation_);
-              adaptation_ = subBuilder.buildPartial();
+          case 74:
+            {
+              com.google.cloud.speech.v1p1beta1.RecognitionMetadata.Builder subBuilder = null;
+              if (metadata_ != null) {
+                subBuilder = metadata_.toBuilder();
+              }
+              metadata_ =
+                  input.readMessage(
+                      com.google.cloud.speech.v1p1beta1.RecognitionMetadata.parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(metadata_);
+                metadata_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
-
-            break;
-          }
-          case 178: {
-            com.google.protobuf.BoolValue.Builder subBuilder = null;
-            if (enableSpokenPunctuation_ != null) {
-              subBuilder = enableSpokenPunctuation_.toBuilder();
+          case 88:
+            {
+              enableAutomaticPunctuation_ = input.readBool();
+              break;
             }
-            enableSpokenPunctuation_ = input.readMessage(com.google.protobuf.BoolValue.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(enableSpokenPunctuation_);
-              enableSpokenPunctuation_ = subBuilder.buildPartial();
+          case 96:
+            {
+              enableSeparateRecognitionPerChannel_ = input.readBool();
+              break;
             }
+          case 106:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            break;
-          }
-          case 186: {
-            com.google.protobuf.BoolValue.Builder subBuilder = null;
-            if (enableSpokenEmojis_ != null) {
-              subBuilder = enableSpokenEmojis_.toBuilder();
+              model_ = s;
+              break;
             }
-            enableSpokenEmojis_ = input.readMessage(com.google.protobuf.BoolValue.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(enableSpokenEmojis_);
-              enableSpokenEmojis_ = subBuilder.buildPartial();
+          case 112:
+            {
+              useEnhanced_ = input.readBool();
+              break;
             }
-
-            break;
-          }
-          case 194: {
-            com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Builder subBuilder = null;
-            if (transcriptNormalization_ != null) {
-              subBuilder = transcriptNormalization_.toBuilder();
+          case 120:
+            {
+              enableWordConfidence_ = input.readBool();
+              break;
             }
-            transcriptNormalization_ = input.readMessage(com.google.cloud.speech.v1p1beta1.TranscriptNormalization.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(transcriptNormalization_);
-              transcriptNormalization_ = subBuilder.buildPartial();
+          case 128:
+            {
+              enableSpeakerDiarization_ = input.readBool();
+              break;
             }
-
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          case 136:
+            {
+              diarizationSpeakerCount_ = input.readInt32();
+              break;
+            }
+          case 146:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                alternativeLanguageCodes_ = new com.google.protobuf.LazyStringArrayList();
+                mutable_bitField0_ |= 0x00000001;
+              }
+              alternativeLanguageCodes_.add(s);
+              break;
+            }
+          case 154:
+            {
+              com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig.Builder subBuilder = null;
+              if (diarizationConfig_ != null) {
+                subBuilder = diarizationConfig_.toBuilder();
+              }
+              diarizationConfig_ =
+                  input.readMessage(
+                      com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig.parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(diarizationConfig_);
+                diarizationConfig_ = subBuilder.buildPartial();
+              }
+
+              break;
+            }
+          case 162:
+            {
+              com.google.cloud.speech.v1p1beta1.SpeechAdaptation.Builder subBuilder = null;
+              if (adaptation_ != null) {
+                subBuilder = adaptation_.toBuilder();
+              }
+              adaptation_ =
+                  input.readMessage(
+                      com.google.cloud.speech.v1p1beta1.SpeechAdaptation.parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(adaptation_);
+                adaptation_ = subBuilder.buildPartial();
+              }
+
+              break;
+            }
+          case 178:
+            {
+              com.google.protobuf.BoolValue.Builder subBuilder = null;
+              if (enableSpokenPunctuation_ != null) {
+                subBuilder = enableSpokenPunctuation_.toBuilder();
+              }
+              enableSpokenPunctuation_ =
+                  input.readMessage(com.google.protobuf.BoolValue.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(enableSpokenPunctuation_);
+                enableSpokenPunctuation_ = subBuilder.buildPartial();
+              }
+
+              break;
+            }
+          case 186:
+            {
+              com.google.protobuf.BoolValue.Builder subBuilder = null;
+              if (enableSpokenEmojis_ != null) {
+                subBuilder = enableSpokenEmojis_.toBuilder();
+              }
+              enableSpokenEmojis_ =
+                  input.readMessage(com.google.protobuf.BoolValue.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(enableSpokenEmojis_);
+                enableSpokenEmojis_ = subBuilder.buildPartial();
+              }
+
+              break;
+            }
+          case 194:
+            {
+              com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Builder subBuilder = null;
+              if (transcriptNormalization_ != null) {
+                subBuilder = transcriptNormalization_.toBuilder();
+              }
+              transcriptNormalization_ =
+                  input.readMessage(
+                      com.google.cloud.speech.v1p1beta1.TranscriptNormalization.parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(transcriptNormalization_);
+                transcriptNormalization_ = subBuilder.buildPartial();
+              }
+
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000002) != 0)) {
         speechContexts_ = java.util.Collections.unmodifiableList(speechContexts_);
@@ -253,20 +296,25 @@ private RecognitionConfig(
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_RecognitionConfig_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.speech.v1p1beta1.SpeechProto
+        .internal_static_google_cloud_speech_v1p1beta1_RecognitionConfig_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_RecognitionConfig_fieldAccessorTable
+    return com.google.cloud.speech.v1p1beta1.SpeechProto
+        .internal_static_google_cloud_speech_v1p1beta1_RecognitionConfig_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v1p1beta1.RecognitionConfig.class, com.google.cloud.speech.v1p1beta1.RecognitionConfig.Builder.class);
+            com.google.cloud.speech.v1p1beta1.RecognitionConfig.class,
+            com.google.cloud.speech.v1p1beta1.RecognitionConfig.Builder.class);
   }
 
   /**
+   *
+   *
    * 
    * The encoding of the audio data sent in the request.
    * All encodings support only 1 channel (mono) audio, unless the
@@ -292,9 +340,10 @@ private RecognitionConfig(
    *
    * Protobuf enum {@code google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding}
    */
-  public enum AudioEncoding
-      implements com.google.protobuf.ProtocolMessageEnum {
+  public enum AudioEncoding implements com.google.protobuf.ProtocolMessageEnum {
     /**
+     *
+     *
      * 
      * Not specified.
      * 
@@ -303,6 +352,8 @@ public enum AudioEncoding */ ENCODING_UNSPECIFIED(0), /** + * + * *
      * Uncompressed 16-bit signed little-endian samples (Linear PCM).
      * 
@@ -311,6 +362,8 @@ public enum AudioEncoding */ LINEAR16(1), /** + * + * *
      * `FLAC` (Free Lossless Audio
      * Codec) is the recommended encoding because it is
@@ -324,6 +377,8 @@ public enum AudioEncoding
      */
     FLAC(2),
     /**
+     *
+     *
      * 
      * 8-bit samples that compand 14-bit audio samples using G.711 PCMU/mu-law.
      * 
@@ -332,6 +387,8 @@ public enum AudioEncoding */ MULAW(3), /** + * + * *
      * Adaptive Multi-Rate Narrowband codec. `sample_rate_hertz` must be 8000.
      * 
@@ -340,6 +397,8 @@ public enum AudioEncoding */ AMR(4), /** + * + * *
      * Adaptive Multi-Rate Wideband codec. `sample_rate_hertz` must be 16000.
      * 
@@ -348,6 +407,8 @@ public enum AudioEncoding */ AMR_WB(5), /** + * + * *
      * Opus encoded audio frames in Ogg container
      * ([OggOpus](https://wiki.xiph.org/OggOpus)).
@@ -358,6 +419,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
@@ -378,6 +441,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
@@ -389,6 +454,8 @@ public enum AudioEncoding
      */
     MP3(8),
     /**
+     *
+     *
      * 
      * Opus encoded audio frames in WebM container
      * ([OggOpus](https://wiki.xiph.org/OggOpus)). `sample_rate_hertz` must be
@@ -402,6 +469,8 @@ public enum AudioEncoding
     ;
 
     /**
+     *
+     *
      * 
      * Not specified.
      * 
@@ -410,6 +479,8 @@ public enum AudioEncoding */ public static final int ENCODING_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Uncompressed 16-bit signed little-endian samples (Linear PCM).
      * 
@@ -418,6 +489,8 @@ public enum AudioEncoding */ public static final int LINEAR16_VALUE = 1; /** + * + * *
      * `FLAC` (Free Lossless Audio
      * Codec) is the recommended encoding because it is
@@ -431,6 +504,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.
      * 
@@ -439,6 +514,8 @@ public enum AudioEncoding */ public static final int MULAW_VALUE = 3; /** + * + * *
      * Adaptive Multi-Rate Narrowband codec. `sample_rate_hertz` must be 8000.
      * 
@@ -447,6 +524,8 @@ public enum AudioEncoding */ public static final int AMR_VALUE = 4; /** + * + * *
      * Adaptive Multi-Rate Wideband codec. `sample_rate_hertz` must be 16000.
      * 
@@ -455,6 +534,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)).
@@ -465,6 +546,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
@@ -485,6 +568,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
@@ -496,6 +581,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
@@ -506,7 +593,6 @@ public enum AudioEncoding
      */
     public static final int WEBM_OPUS_VALUE = 9;
 
-
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -531,56 +617,65 @@ public static AudioEncoding valueOf(int value) {
      */
     public static AudioEncoding forNumber(int value) {
       switch (value) {
-        case 0: return ENCODING_UNSPECIFIED;
-        case 1: return LINEAR16;
-        case 2: return FLAC;
-        case 3: return MULAW;
-        case 4: return AMR;
-        case 5: return AMR_WB;
-        case 6: return OGG_OPUS;
-        case 7: return SPEEX_WITH_HEADER_BYTE;
-        case 8: return MP3;
-        case 9: return WEBM_OPUS;
-        default: return null;
+        case 0:
+          return ENCODING_UNSPECIFIED;
+        case 1:
+          return LINEAR16;
+        case 2:
+          return FLAC;
+        case 3:
+          return MULAW;
+        case 4:
+          return AMR;
+        case 5:
+          return AMR_WB;
+        case 6:
+          return OGG_OPUS;
+        case 7:
+          return SPEEX_WITH_HEADER_BYTE;
+        case 8:
+          return MP3;
+        case 9:
+          return WEBM_OPUS;
+        default:
+          return null;
       }
     }
 
-    public static com.google.protobuf.Internal.EnumLiteMap
-        internalGetValueMap() {
+    public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
       return internalValueMap;
     }
-    private static final com.google.protobuf.Internal.EnumLiteMap<
-        AudioEncoding> internalValueMap =
-          new com.google.protobuf.Internal.EnumLiteMap() {
-            public AudioEncoding findValueByNumber(int number) {
-              return AudioEncoding.forNumber(number);
-            }
-          };
 
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor
-        getValueDescriptor() {
+    private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
+        new com.google.protobuf.Internal.EnumLiteMap() {
+          public AudioEncoding findValueByNumber(int number) {
+            return AudioEncoding.forNumber(number);
+          }
+        };
+
+    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalStateException(
             "Can't get the descriptor of an unrecognized enum value.");
       }
       return getDescriptor().getValues().get(ordinal());
     }
-    public final com.google.protobuf.Descriptors.EnumDescriptor
-        getDescriptorForType() {
+
+    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
       return getDescriptor();
     }
-    public static final com.google.protobuf.Descriptors.EnumDescriptor
-        getDescriptor() {
-      return com.google.cloud.speech.v1p1beta1.RecognitionConfig.getDescriptor().getEnumTypes().get(0);
+
+    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
+      return com.google.cloud.speech.v1p1beta1.RecognitionConfig.getDescriptor()
+          .getEnumTypes()
+          .get(0);
     }
 
     private static final AudioEncoding[] VALUES = values();
 
-    public static AudioEncoding valueOf(
-        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+    public static AudioEncoding valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
       if (desc.getType() != getDescriptor()) {
-        throw new java.lang.IllegalArgumentException(
-          "EnumValueDescriptor is not for this type.");
+        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
       }
       if (desc.getIndex() == -1) {
         return UNRECOGNIZED;
@@ -600,6 +695,8 @@ private AudioEncoding(int value) {
   public static final int ENCODING_FIELD_NUMBER = 1;
   private int encoding_;
   /**
+   *
+   *
    * 
    * Encoding of audio data sent in all `RecognitionAudio` messages.
    * This field is optional for `FLAC` and `WAV` audio files and required
@@ -607,12 +704,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
@@ -620,17 +721,24 @@ private AudioEncoding(int value) {
    * 
* * .google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding encoding = 1; + * * @return The encoding. */ - @java.lang.Override public com.google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding getEncoding() { + @java.lang.Override + public com.google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding getEncoding() { @SuppressWarnings("deprecation") - com.google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding result = com.google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding.valueOf(encoding_); - return result == null ? com.google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding.UNRECOGNIZED : result; + com.google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding result = + com.google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding.valueOf(encoding_); + return result == null + ? com.google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding.UNRECOGNIZED + : result; } public static final int SAMPLE_RATE_HERTZ_FIELD_NUMBER = 2; private int sampleRateHertz_; /** + * + * *
    * Sample rate in Hertz of the audio data sent in all
    * `RecognitionAudio` messages. Valid values are: 8000-48000.
@@ -642,6 +750,7 @@ private AudioEncoding(int value) {
    * 
* * int32 sample_rate_hertz = 2; + * * @return The sampleRateHertz. */ @java.lang.Override @@ -652,6 +761,8 @@ public int getSampleRateHertz() { public static final int AUDIO_CHANNEL_COUNT_FIELD_NUMBER = 7; private int audioChannelCount_; /** + * + * *
    * The number of channels in the input audio data.
    * ONLY set this for MULTI-CHANNEL recognition.
@@ -665,6 +776,7 @@ public int getSampleRateHertz() {
    * 
* * int32 audio_channel_count = 7; + * * @return The audioChannelCount. */ @java.lang.Override @@ -675,6 +787,8 @@ public int getAudioChannelCount() { public static final int ENABLE_SEPARATE_RECOGNITION_PER_CHANNEL_FIELD_NUMBER = 12; private boolean enableSeparateRecognitionPerChannel_; /** + * + * *
    * This needs to be set to `true` explicitly and `audio_channel_count` > 1
    * to get each channel recognized separately. The recognition result will
@@ -685,6 +799,7 @@ public int getAudioChannelCount() {
    * 
* * bool enable_separate_recognition_per_channel = 12; + * * @return The enableSeparateRecognitionPerChannel. */ @java.lang.Override @@ -695,6 +810,8 @@ public boolean getEnableSeparateRecognitionPerChannel() { public static final int LANGUAGE_CODE_FIELD_NUMBER = 3; private volatile java.lang.Object languageCode_; /** + * + * *
    * Required. The language of the supplied audio as a
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.
@@ -705,6 +822,7 @@ public boolean getEnableSeparateRecognitionPerChannel() {
    * 
* * string language_code = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The languageCode. */ @java.lang.Override @@ -713,14 +831,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.
@@ -731,16 +850,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 { @@ -751,6 +869,8 @@ public java.lang.String getLanguageCode() { public static final int ALTERNATIVE_LANGUAGE_CODES_FIELD_NUMBER = 18; private com.google.protobuf.LazyStringList alternativeLanguageCodes_; /** + * + * *
    * A list of up to 3 additional
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags,
@@ -767,13 +887,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,
@@ -790,12 +912,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,
@@ -812,6 +937,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. */ @@ -819,6 +945,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,
@@ -835,17 +963,19 @@ public java.lang.String getAlternativeLanguageCodes(int index) {
    * 
* * repeated string alternative_language_codes = 18; + * * @param index The index of the value to return. * @return The bytes of the alternativeLanguageCodes at the given index. */ - public com.google.protobuf.ByteString - getAlternativeLanguageCodesBytes(int index) { + public com.google.protobuf.ByteString getAlternativeLanguageCodesBytes(int index) { return alternativeLanguageCodes_.getByteString(index); } public static final int MAX_ALTERNATIVES_FIELD_NUMBER = 4; private int maxAlternatives_; /** + * + * *
    * Maximum number of recognition hypotheses to be returned.
    * Specifically, the maximum number of `SpeechRecognitionAlternative` messages
@@ -856,6 +986,7 @@ public java.lang.String getAlternativeLanguageCodes(int index) {
    * 
* * int32 max_alternatives = 4; + * * @return The maxAlternatives. */ @java.lang.Override @@ -866,6 +997,8 @@ public int getMaxAlternatives() { public static final int PROFANITY_FILTER_FIELD_NUMBER = 5; private boolean profanityFilter_; /** + * + * *
    * If set to `true`, the server will attempt to filter out
    * profanities, replacing all but the initial character in each filtered word
@@ -874,6 +1007,7 @@ public int getMaxAlternatives() {
    * 
* * bool profanity_filter = 5; + * * @return The profanityFilter. */ @java.lang.Override @@ -884,6 +1018,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
@@ -893,6 +1029,7 @@ public boolean getProfanityFilter() {
    * 
* * .google.cloud.speech.v1p1beta1.SpeechAdaptation adaptation = 20; + * * @return Whether the adaptation field is set. */ @java.lang.Override @@ -900,6 +1037,8 @@ public boolean hasAdaptation() { return adaptation_ != null; } /** + * + * *
    * Speech adaptation configuration improves the accuracy of speech
    * recognition. For more information, see the [speech
@@ -909,13 +1048,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
@@ -934,6 +1078,8 @@ public com.google.cloud.speech.v1p1beta1.SpeechAdaptationOrBuilder getAdaptation
   public static final int TRANSCRIPT_NORMALIZATION_FIELD_NUMBER = 24;
   private com.google.cloud.speech.v1p1beta1.TranscriptNormalization transcriptNormalization_;
   /**
+   *
+   *
    * 
    * Use transcription normalization to automatically replace parts of the
    * transcript with phrases of your choosing. For StreamingRecognize, this
@@ -941,7 +1087,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 @@ -949,6 +1097,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
@@ -956,14 +1106,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
@@ -971,16 +1127,20 @@ public com.google.cloud.speech.v1p1beta1.TranscriptNormalization getTranscriptNo
    * and final transcripts.
    * 
* - * .google.cloud.speech.v1p1beta1.TranscriptNormalization transcript_normalization = 24; + * .google.cloud.speech.v1p1beta1.TranscriptNormalization transcript_normalization = 24; + * */ @java.lang.Override - public com.google.cloud.speech.v1p1beta1.TranscriptNormalizationOrBuilder getTranscriptNormalizationOrBuilder() { + public com.google.cloud.speech.v1p1beta1.TranscriptNormalizationOrBuilder + getTranscriptNormalizationOrBuilder() { return getTranscriptNormalization(); } public static final int SPEECH_CONTEXTS_FIELD_NUMBER = 6; private java.util.List speechContexts_; /** + * + * *
    * Array of [SpeechContext][google.cloud.speech.v1p1beta1.SpeechContext].
    * A means to provide context to assist the speech recognition. For more
@@ -996,6 +1156,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
@@ -1007,11 +1169,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
@@ -1027,6 +1191,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
@@ -1042,6 +1208,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
@@ -1061,6 +1229,8 @@ public com.google.cloud.speech.v1p1beta1.SpeechContextOrBuilder getSpeechContext
   public static final int ENABLE_WORD_TIME_OFFSETS_FIELD_NUMBER = 8;
   private boolean enableWordTimeOffsets_;
   /**
+   *
+   *
    * 
    * If `true`, the top result includes a list of words and
    * the start and end time offsets (timestamps) for those words. If
@@ -1069,6 +1239,7 @@ public com.google.cloud.speech.v1p1beta1.SpeechContextOrBuilder getSpeechContext
    * 
* * bool enable_word_time_offsets = 8; + * * @return The enableWordTimeOffsets. */ @java.lang.Override @@ -1079,6 +1250,8 @@ public boolean getEnableWordTimeOffsets() { public static final int ENABLE_WORD_CONFIDENCE_FIELD_NUMBER = 15; private boolean enableWordConfidence_; /** + * + * *
    * If `true`, the top result includes a list of words and the
    * confidence for those words. If `false`, no word-level confidence
@@ -1086,6 +1259,7 @@ public boolean getEnableWordTimeOffsets() {
    * 
* * bool enable_word_confidence = 15; + * * @return The enableWordConfidence. */ @java.lang.Override @@ -1096,6 +1270,8 @@ public boolean getEnableWordConfidence() { public static final int ENABLE_AUTOMATIC_PUNCTUATION_FIELD_NUMBER = 11; private boolean enableAutomaticPunctuation_; /** + * + * *
    * If 'true', adds punctuation to recognition result hypotheses.
    * This feature is only available in select languages. Setting this for
@@ -1104,6 +1280,7 @@ public boolean getEnableWordConfidence() {
    * 
* * bool enable_automatic_punctuation = 11; + * * @return The enableAutomaticPunctuation. */ @java.lang.Override @@ -1114,6 +1291,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
@@ -1125,6 +1304,7 @@ public boolean getEnableAutomaticPunctuation() {
    * 
* * .google.protobuf.BoolValue enable_spoken_punctuation = 22; + * * @return Whether the enableSpokenPunctuation field is set. */ @java.lang.Override @@ -1132,6 +1312,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
@@ -1143,13 +1325,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
@@ -1170,6 +1357,8 @@ public com.google.protobuf.BoolValueOrBuilder getEnableSpokenPunctuationOrBuilde
   public static final int ENABLE_SPOKEN_EMOJIS_FIELD_NUMBER = 23;
   private com.google.protobuf.BoolValue enableSpokenEmojis_;
   /**
+   *
+   *
    * 
    * The spoken emoji behavior for the call
    * If not set, uses default behavior based on model of choice
@@ -1179,6 +1368,7 @@ public com.google.protobuf.BoolValueOrBuilder getEnableSpokenPunctuationOrBuilde
    * 
* * .google.protobuf.BoolValue enable_spoken_emojis = 23; + * * @return Whether the enableSpokenEmojis field is set. */ @java.lang.Override @@ -1186,6 +1376,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
@@ -1195,13 +1387,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
@@ -1220,6 +1417,8 @@ public com.google.protobuf.BoolValueOrBuilder getEnableSpokenEmojisOrBuilder() {
   public static final int ENABLE_SPEAKER_DIARIZATION_FIELD_NUMBER = 16;
   private boolean enableSpeakerDiarization_;
   /**
+   *
+   *
    * 
    * If 'true', enables speaker detection for each recognized word in
    * the top alternative of the recognition result using a speaker_tag provided
@@ -1228,16 +1427,20 @@ public com.google.protobuf.BoolValueOrBuilder getEnableSpokenEmojisOrBuilder() {
    * 
* * bool enable_speaker_diarization = 16 [deprecated = true]; + * * @return The enableSpeakerDiarization. */ @java.lang.Override - @java.lang.Deprecated public boolean getEnableSpeakerDiarization() { + @java.lang.Deprecated + public boolean getEnableSpeakerDiarization() { return enableSpeakerDiarization_; } public static final int DIARIZATION_SPEAKER_COUNT_FIELD_NUMBER = 17; private int diarizationSpeakerCount_; /** + * + * *
    * If set, specifies the estimated number of speakers in the conversation.
    * Defaults to '2'. Ignored unless enable_speaker_diarization is set to true.
@@ -1245,16 +1448,20 @@ public com.google.protobuf.BoolValueOrBuilder getEnableSpokenEmojisOrBuilder() {
    * 
* * int32 diarization_speaker_count = 17 [deprecated = true]; + * * @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.
@@ -1267,6 +1474,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 @@ -1274,6 +1482,8 @@ public boolean hasDiarizationConfig() { return diarizationConfig_ != null; } /** + * + * *
    * Config to enable speaker diarization and set additional
    * parameters to make diarization better suited for your application.
@@ -1286,13 +1496,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.
@@ -1307,18 +1522,22 @@ public com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig getDiarization
    * .google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig diarization_config = 19;
    */
   @java.lang.Override
-  public com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfigOrBuilder getDiarizationConfigOrBuilder() {
+  public com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfigOrBuilder
+      getDiarizationConfigOrBuilder() {
     return getDiarizationConfig();
   }
 
   public static final int METADATA_FIELD_NUMBER = 9;
   private com.google.cloud.speech.v1p1beta1.RecognitionMetadata metadata_;
   /**
+   *
+   *
    * 
    * Metadata regarding this request.
    * 
* * .google.cloud.speech.v1p1beta1.RecognitionMetadata metadata = 9; + * * @return Whether the metadata field is set. */ @java.lang.Override @@ -1326,18 +1545,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.
    * 
@@ -1352,6 +1578,8 @@ public com.google.cloud.speech.v1p1beta1.RecognitionMetadataOrBuilder getMetadat public static final int MODEL_FIELD_NUMBER = 13; private volatile java.lang.Object model_; /** + * + * *
    * Which model to select for the given request. Select the model
    * best suited to your domain to get best results. If a model is not
@@ -1388,6 +1616,7 @@ public com.google.cloud.speech.v1p1beta1.RecognitionMetadataOrBuilder getMetadat
    * 
* * string model = 13; + * * @return The model. */ @java.lang.Override @@ -1396,14 +1625,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
@@ -1440,16 +1670,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 { @@ -1460,6 +1689,8 @@ public java.lang.String getModel() { public static final int USE_ENHANCED_FIELD_NUMBER = 14; private boolean useEnhanced_; /** + * + * *
    * Set to true to use an enhanced model for speech recognition.
    * If `use_enhanced` is set to true and the `model` field is not set, then
@@ -1471,6 +1702,7 @@ public java.lang.String getModel() {
    * 
* * bool use_enhanced = 14; + * * @return The useEnhanced. */ @java.lang.Override @@ -1479,6 +1711,7 @@ public boolean getUseEnhanced() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1490,9 +1723,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) { @@ -1541,7 +1775,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()); @@ -1567,67 +1802,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; @@ -1638,24 +1864,23 @@ public int getSerializedSize() { size += 2 * getAlternativeLanguageCodesList().size(); } if (diarizationConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(19, getDiarizationConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(19, getDiarizationConfig()); } if (adaptation_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(20, getAdaptation()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(20, getAdaptation()); } if (enableSpokenPunctuation_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(22, getEnableSpokenPunctuation()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 22, getEnableSpokenPunctuation()); } if (enableSpokenEmojis_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(23, getEnableSpokenEmojis()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(23, getEnableSpokenEmojis()); } if (transcriptNormalization_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(24, getTranscriptNormalization()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 24, getTranscriptNormalization()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1665,74 +1890,56 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1p1beta1.RecognitionConfig)) { return super.equals(obj); } - com.google.cloud.speech.v1p1beta1.RecognitionConfig other = (com.google.cloud.speech.v1p1beta1.RecognitionConfig) obj; + com.google.cloud.speech.v1p1beta1.RecognitionConfig other = + (com.google.cloud.speech.v1p1beta1.RecognitionConfig) obj; if (encoding_ != other.encoding_) return false; - if (getSampleRateHertz() - != other.getSampleRateHertz()) return false; - if (getAudioChannelCount() - != other.getAudioChannelCount()) return false; - if (getEnableSeparateRecognitionPerChannel() - != other.getEnableSeparateRecognitionPerChannel()) return false; - if (!getLanguageCode() - .equals(other.getLanguageCode())) return false; - if (!getAlternativeLanguageCodesList() - .equals(other.getAlternativeLanguageCodesList())) return false; - if (getMaxAlternatives() - != other.getMaxAlternatives()) return false; - if (getProfanityFilter() - != other.getProfanityFilter()) return false; + if (getSampleRateHertz() != other.getSampleRateHertz()) return false; + if (getAudioChannelCount() != other.getAudioChannelCount()) return false; + if (getEnableSeparateRecognitionPerChannel() != other.getEnableSeparateRecognitionPerChannel()) + return false; + if (!getLanguageCode().equals(other.getLanguageCode())) return false; + if (!getAlternativeLanguageCodesList().equals(other.getAlternativeLanguageCodesList())) + return false; + if (getMaxAlternatives() != other.getMaxAlternatives()) return false; + if (getProfanityFilter() != other.getProfanityFilter()) return false; if (hasAdaptation() != other.hasAdaptation()) return false; if (hasAdaptation()) { - if (!getAdaptation() - .equals(other.getAdaptation())) return false; + if (!getAdaptation().equals(other.getAdaptation())) return false; } if (hasTranscriptNormalization() != other.hasTranscriptNormalization()) return false; if (hasTranscriptNormalization()) { - if (!getTranscriptNormalization() - .equals(other.getTranscriptNormalization())) return false; - } - if (!getSpeechContextsList() - .equals(other.getSpeechContextsList())) return false; - if (getEnableWordTimeOffsets() - != other.getEnableWordTimeOffsets()) return false; - if (getEnableWordConfidence() - != other.getEnableWordConfidence()) return false; - if (getEnableAutomaticPunctuation() - != other.getEnableAutomaticPunctuation()) return false; + if (!getTranscriptNormalization().equals(other.getTranscriptNormalization())) return false; + } + if (!getSpeechContextsList().equals(other.getSpeechContextsList())) return false; + if (getEnableWordTimeOffsets() != other.getEnableWordTimeOffsets()) return false; + if (getEnableWordConfidence() != other.getEnableWordConfidence()) return false; + if (getEnableAutomaticPunctuation() != other.getEnableAutomaticPunctuation()) return false; if (hasEnableSpokenPunctuation() != other.hasEnableSpokenPunctuation()) return false; if (hasEnableSpokenPunctuation()) { - if (!getEnableSpokenPunctuation() - .equals(other.getEnableSpokenPunctuation())) return false; + if (!getEnableSpokenPunctuation().equals(other.getEnableSpokenPunctuation())) return false; } if (hasEnableSpokenEmojis() != other.hasEnableSpokenEmojis()) return false; if (hasEnableSpokenEmojis()) { - if (!getEnableSpokenEmojis() - .equals(other.getEnableSpokenEmojis())) return false; + if (!getEnableSpokenEmojis().equals(other.getEnableSpokenEmojis())) return false; } - if (getEnableSpeakerDiarization() - != other.getEnableSpeakerDiarization()) return false; - if (getDiarizationSpeakerCount() - != other.getDiarizationSpeakerCount()) return false; + if (getEnableSpeakerDiarization() != other.getEnableSpeakerDiarization()) return false; + if (getDiarizationSpeakerCount() != other.getDiarizationSpeakerCount()) return false; if (hasDiarizationConfig() != other.hasDiarizationConfig()) return false; if (hasDiarizationConfig()) { - if (!getDiarizationConfig() - .equals(other.getDiarizationConfig())) return false; + if (!getDiarizationConfig().equals(other.getDiarizationConfig())) return false; } if (hasMetadata() != other.hasMetadata()) return false; if (hasMetadata()) { - if (!getMetadata() - .equals(other.getMetadata())) return false; + if (!getMetadata().equals(other.getMetadata())) return false; } - if (!getModel() - .equals(other.getModel())) return false; - if (getUseEnhanced() - != other.getUseEnhanced()) return false; + if (!getModel().equals(other.getModel())) return false; + if (getUseEnhanced() != other.getUseEnhanced()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1751,8 +1958,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) { @@ -1762,8 +1970,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(); @@ -1777,14 +1984,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(); @@ -1794,8 +1998,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()) { @@ -1809,104 +2012,110 @@ public int hashCode() { hash = (37 * hash) + MODEL_FIELD_NUMBER; hash = (53 * hash) + getModel().hashCode(); hash = (37 * hash) + USE_ENHANCED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getUseEnhanced()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getUseEnhanced()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.speech.v1p1beta1.RecognitionConfig parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.RecognitionConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.RecognitionConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.RecognitionConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.RecognitionConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.RecognitionConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.RecognitionConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1p1beta1.RecognitionConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.RecognitionConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.RecognitionConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1p1beta1.RecognitionConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.RecognitionConfig parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.RecognitionConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.RecognitionConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.speech.v1p1beta1.RecognitionConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Provides information to the recognizer that specifies how to process the
    * request.
@@ -1914,21 +2123,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.speech.v1p1beta1.RecognitionConfig}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1p1beta1.RecognitionConfig)
       com.google.cloud.speech.v1p1beta1.RecognitionConfigOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_RecognitionConfig_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.speech.v1p1beta1.SpeechProto
+          .internal_static_google_cloud_speech_v1p1beta1_RecognitionConfig_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_RecognitionConfig_fieldAccessorTable
+      return com.google.cloud.speech.v1p1beta1.SpeechProto
+          .internal_static_google_cloud_speech_v1p1beta1_RecognitionConfig_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v1p1beta1.RecognitionConfig.class, com.google.cloud.speech.v1p1beta1.RecognitionConfig.Builder.class);
+              com.google.cloud.speech.v1p1beta1.RecognitionConfig.class,
+              com.google.cloud.speech.v1p1beta1.RecognitionConfig.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v1p1beta1.RecognitionConfig.newBuilder()
@@ -1936,17 +2147,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
         getSpeechContextsFieldBuilder();
       }
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -2026,9 +2237,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
@@ -2047,7 +2258,8 @@ public com.google.cloud.speech.v1p1beta1.RecognitionConfig build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v1p1beta1.RecognitionConfig buildPartial() {
-      com.google.cloud.speech.v1p1beta1.RecognitionConfig result = new com.google.cloud.speech.v1p1beta1.RecognitionConfig(this);
+      com.google.cloud.speech.v1p1beta1.RecognitionConfig result =
+          new com.google.cloud.speech.v1p1beta1.RecognitionConfig(this);
       int from_bitField0_ = bitField0_;
       result.encoding_ = encoding_;
       result.sampleRateHertz_ = sampleRateHertz_;
@@ -2115,38 +2327,39 @@ public com.google.cloud.speech.v1p1beta1.RecognitionConfig buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.speech.v1p1beta1.RecognitionConfig) {
-        return mergeFrom((com.google.cloud.speech.v1p1beta1.RecognitionConfig)other);
+        return mergeFrom((com.google.cloud.speech.v1p1beta1.RecognitionConfig) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -2154,7 +2367,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());
       }
@@ -2211,9 +2425,10 @@ public Builder mergeFrom(com.google.cloud.speech.v1p1beta1.RecognitionConfig oth
             speechContextsBuilder_ = null;
             speechContexts_ = other.speechContexts_;
             bitField0_ = (bitField0_ & ~0x00000002);
-            speechContextsBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getSpeechContextsFieldBuilder() : null;
+            speechContextsBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getSpeechContextsFieldBuilder()
+                    : null;
           } else {
             speechContextsBuilder_.addAllMessages(other.speechContexts_);
           }
@@ -2272,7 +2487,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.speech.v1p1beta1.RecognitionConfig) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.speech.v1p1beta1.RecognitionConfig) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -2281,10 +2497,13 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
     private int encoding_ = 0;
     /**
+     *
+     *
      * 
      * Encoding of audio data sent in all `RecognitionAudio` messages.
      * This field is optional for `FLAC` and `WAV` audio files and required
@@ -2292,12 +2511,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
@@ -2305,16 +2528,19 @@ public Builder mergeFrom(
      * 
* * .google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding encoding = 1; + * * @param value The enum numeric value on the wire for encoding to set. * @return This builder for chaining. */ public Builder setEncodingValue(int value) { - + encoding_ = value; onChanged(); return this; } /** + * + * *
      * Encoding of audio data sent in all `RecognitionAudio` messages.
      * This field is optional for `FLAC` and `WAV` audio files and required
@@ -2322,15 +2548,21 @@ public Builder setEncodingValue(int value) {
      * 
* * .google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding encoding = 1; + * * @return The encoding. */ @java.lang.Override public com.google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding getEncoding() { @SuppressWarnings("deprecation") - com.google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding result = com.google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding.valueOf(encoding_); - return result == null ? com.google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding.UNRECOGNIZED : result; + com.google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding result = + com.google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding.valueOf(encoding_); + return result == null + ? com.google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding.UNRECOGNIZED + : result; } /** + * + * *
      * Encoding of audio data sent in all `RecognitionAudio` messages.
      * This field is optional for `FLAC` and `WAV` audio files and required
@@ -2338,19 +2570,23 @@ public com.google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding getEnco
      * 
* * .google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding encoding = 1; + * * @param value The encoding to set. * @return This builder for chaining. */ - public Builder setEncoding(com.google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding value) { + public Builder setEncoding( + com.google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding value) { if (value == null) { throw new NullPointerException(); } - + encoding_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Encoding of audio data sent in all `RecognitionAudio` messages.
      * This field is optional for `FLAC` and `WAV` audio files and required
@@ -2358,17 +2594,20 @@ public Builder setEncoding(com.google.cloud.speech.v1p1beta1.RecognitionConfig.A
      * 
* * .google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding encoding = 1; + * * @return This builder for chaining. */ public Builder clearEncoding() { - + encoding_ = 0; onChanged(); return this; } - private int sampleRateHertz_ ; + private int sampleRateHertz_; /** + * + * *
      * Sample rate in Hertz of the audio data sent in all
      * `RecognitionAudio` messages. Valid values are: 8000-48000.
@@ -2380,6 +2619,7 @@ public Builder clearEncoding() {
      * 
* * int32 sample_rate_hertz = 2; + * * @return The sampleRateHertz. */ @java.lang.Override @@ -2387,6 +2627,8 @@ public int getSampleRateHertz() { return sampleRateHertz_; } /** + * + * *
      * Sample rate in Hertz of the audio data sent in all
      * `RecognitionAudio` messages. Valid values are: 8000-48000.
@@ -2398,16 +2640,19 @@ public int getSampleRateHertz() {
      * 
* * int32 sample_rate_hertz = 2; + * * @param value The sampleRateHertz to set. * @return This builder for chaining. */ public Builder setSampleRateHertz(int value) { - + sampleRateHertz_ = value; onChanged(); return this; } /** + * + * *
      * Sample rate in Hertz of the audio data sent in all
      * `RecognitionAudio` messages. Valid values are: 8000-48000.
@@ -2419,17 +2664,20 @@ public Builder setSampleRateHertz(int value) {
      * 
* * int32 sample_rate_hertz = 2; + * * @return This builder for chaining. */ public Builder clearSampleRateHertz() { - + sampleRateHertz_ = 0; onChanged(); return this; } - private int audioChannelCount_ ; + private int audioChannelCount_; /** + * + * *
      * The number of channels in the input audio data.
      * ONLY set this for MULTI-CHANNEL recognition.
@@ -2443,6 +2691,7 @@ public Builder clearSampleRateHertz() {
      * 
* * int32 audio_channel_count = 7; + * * @return The audioChannelCount. */ @java.lang.Override @@ -2450,6 +2699,8 @@ public int getAudioChannelCount() { return audioChannelCount_; } /** + * + * *
      * The number of channels in the input audio data.
      * ONLY set this for MULTI-CHANNEL recognition.
@@ -2463,16 +2714,19 @@ public int getAudioChannelCount() {
      * 
* * int32 audio_channel_count = 7; + * * @param value The audioChannelCount to set. * @return This builder for chaining. */ public Builder setAudioChannelCount(int value) { - + audioChannelCount_ = value; onChanged(); return this; } /** + * + * *
      * The number of channels in the input audio data.
      * ONLY set this for MULTI-CHANNEL recognition.
@@ -2486,17 +2740,20 @@ public Builder setAudioChannelCount(int value) {
      * 
* * int32 audio_channel_count = 7; + * * @return This builder for chaining. */ public Builder clearAudioChannelCount() { - + audioChannelCount_ = 0; onChanged(); return this; } - private boolean enableSeparateRecognitionPerChannel_ ; + private boolean enableSeparateRecognitionPerChannel_; /** + * + * *
      * This needs to be set to `true` explicitly and `audio_channel_count` > 1
      * to get each channel recognized separately. The recognition result will
@@ -2507,6 +2764,7 @@ public Builder clearAudioChannelCount() {
      * 
* * bool enable_separate_recognition_per_channel = 12; + * * @return The enableSeparateRecognitionPerChannel. */ @java.lang.Override @@ -2514,6 +2772,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
@@ -2524,16 +2784,19 @@ public boolean getEnableSeparateRecognitionPerChannel() {
      * 
* * bool enable_separate_recognition_per_channel = 12; + * * @param value The enableSeparateRecognitionPerChannel to set. * @return This builder for chaining. */ public Builder setEnableSeparateRecognitionPerChannel(boolean value) { - + enableSeparateRecognitionPerChannel_ = value; onChanged(); return this; } /** + * + * *
      * This needs to be set to `true` explicitly and `audio_channel_count` > 1
      * to get each channel recognized separately. The recognition result will
@@ -2544,10 +2807,11 @@ public Builder setEnableSeparateRecognitionPerChannel(boolean value) {
      * 
* * bool enable_separate_recognition_per_channel = 12; + * * @return This builder for chaining. */ public Builder clearEnableSeparateRecognitionPerChannel() { - + enableSeparateRecognitionPerChannel_ = false; onChanged(); return this; @@ -2555,6 +2819,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.
@@ -2565,13 +2831,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; @@ -2580,6 +2846,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.
@@ -2590,15 +2858,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 { @@ -2606,6 +2873,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.
@@ -2616,20 +2885,22 @@ public java.lang.String getLanguageCode() {
      * 
* * string language_code = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCode( - java.lang.String value) { + public Builder setLanguageCode(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + languageCode_ = value; onChanged(); return this; } /** + * + * *
      * Required. The language of the supplied audio as a
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.
@@ -2640,15 +2911,18 @@ public Builder setLanguageCode(
      * 
* * string language_code = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearLanguageCode() { - + languageCode_ = getDefaultInstance().getLanguageCode(); onChanged(); return this; } /** + * + * *
      * Required. The language of the supplied audio as a
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.
@@ -2659,29 +2933,34 @@ public Builder clearLanguageCode() {
      * 
* * string language_code = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCodeBytes( - com.google.protobuf.ByteString value) { + public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + languageCode_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList alternativeLanguageCodes_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList alternativeLanguageCodes_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureAlternativeLanguageCodesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - alternativeLanguageCodes_ = new com.google.protobuf.LazyStringArrayList(alternativeLanguageCodes_); + alternativeLanguageCodes_ = + new com.google.protobuf.LazyStringArrayList(alternativeLanguageCodes_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
      * A list of up to 3 additional
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags,
@@ -2698,13 +2977,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,
@@ -2721,12 +3002,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,
@@ -2743,6 +3027,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. */ @@ -2750,6 +3035,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,
@@ -2766,14 +3053,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,
@@ -2790,21 +3079,23 @@ public java.lang.String getAlternativeLanguageCodes(int index) {
      * 
* * repeated string alternative_language_codes = 18; + * * @param index The index to set the value at. * @param value The alternativeLanguageCodes to set. * @return This builder for chaining. */ - public Builder setAlternativeLanguageCodes( - int index, java.lang.String value) { + public Builder setAlternativeLanguageCodes(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAlternativeLanguageCodesIsMutable(); + throw new NullPointerException(); + } + ensureAlternativeLanguageCodesIsMutable(); alternativeLanguageCodes_.set(index, value); onChanged(); return this; } /** + * + * *
      * A list of up to 3 additional
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags,
@@ -2821,20 +3112,22 @@ public Builder setAlternativeLanguageCodes(
      * 
* * repeated string alternative_language_codes = 18; + * * @param value The alternativeLanguageCodes to add. * @return This builder for chaining. */ - public Builder addAlternativeLanguageCodes( - java.lang.String value) { + public Builder addAlternativeLanguageCodes(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAlternativeLanguageCodesIsMutable(); + throw new NullPointerException(); + } + ensureAlternativeLanguageCodesIsMutable(); alternativeLanguageCodes_.add(value); onChanged(); return this; } /** + * + * *
      * A list of up to 3 additional
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags,
@@ -2851,18 +3144,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,
@@ -2879,6 +3173,7 @@ public Builder addAllAlternativeLanguageCodes(
      * 
* * repeated string alternative_language_codes = 18; + * * @return This builder for chaining. */ public Builder clearAlternativeLanguageCodes() { @@ -2888,6 +3183,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,
@@ -2904,23 +3201,25 @@ public Builder clearAlternativeLanguageCodes() {
      * 
* * repeated string alternative_language_codes = 18; + * * @param value The bytes of the alternativeLanguageCodes to add. * @return This builder for chaining. */ - public Builder addAlternativeLanguageCodesBytes( - com.google.protobuf.ByteString value) { + public Builder addAlternativeLanguageCodesBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureAlternativeLanguageCodesIsMutable(); alternativeLanguageCodes_.add(value); onChanged(); return this; } - private int maxAlternatives_ ; + private int maxAlternatives_; /** + * + * *
      * Maximum number of recognition hypotheses to be returned.
      * Specifically, the maximum number of `SpeechRecognitionAlternative` messages
@@ -2931,6 +3230,7 @@ public Builder addAlternativeLanguageCodesBytes(
      * 
* * int32 max_alternatives = 4; + * * @return The maxAlternatives. */ @java.lang.Override @@ -2938,6 +3238,8 @@ public int getMaxAlternatives() { return maxAlternatives_; } /** + * + * *
      * Maximum number of recognition hypotheses to be returned.
      * Specifically, the maximum number of `SpeechRecognitionAlternative` messages
@@ -2948,16 +3250,19 @@ public int getMaxAlternatives() {
      * 
* * int32 max_alternatives = 4; + * * @param value The maxAlternatives to set. * @return This builder for chaining. */ public Builder setMaxAlternatives(int value) { - + maxAlternatives_ = value; onChanged(); return this; } /** + * + * *
      * Maximum number of recognition hypotheses to be returned.
      * Specifically, the maximum number of `SpeechRecognitionAlternative` messages
@@ -2968,17 +3273,20 @@ public Builder setMaxAlternatives(int value) {
      * 
* * int32 max_alternatives = 4; + * * @return This builder for chaining. */ public Builder clearMaxAlternatives() { - + maxAlternatives_ = 0; onChanged(); return this; } - private boolean profanityFilter_ ; + private boolean profanityFilter_; /** + * + * *
      * If set to `true`, the server will attempt to filter out
      * profanities, replacing all but the initial character in each filtered word
@@ -2987,6 +3295,7 @@ public Builder clearMaxAlternatives() {
      * 
* * bool profanity_filter = 5; + * * @return The profanityFilter. */ @java.lang.Override @@ -2994,6 +3303,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
@@ -3002,16 +3313,19 @@ public boolean getProfanityFilter() {
      * 
* * bool profanity_filter = 5; + * * @param value The profanityFilter to set. * @return This builder for chaining. */ public Builder setProfanityFilter(boolean value) { - + profanityFilter_ = value; onChanged(); return this; } /** + * + * *
      * If set to `true`, the server will attempt to filter out
      * profanities, replacing all but the initial character in each filtered word
@@ -3020,10 +3334,11 @@ public Builder setProfanityFilter(boolean value) {
      * 
* * bool profanity_filter = 5; + * * @return This builder for chaining. */ public Builder clearProfanityFilter() { - + profanityFilter_ = false; onChanged(); return this; @@ -3031,8 +3346,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
@@ -3042,12 +3362,15 @@ public Builder clearProfanityFilter() {
      * 
* * .google.cloud.speech.v1p1beta1.SpeechAdaptation adaptation = 20; + * * @return Whether the adaptation field is set. */ public boolean hasAdaptation() { return adaptationBuilder_ != null || adaptation_ != null; } /** + * + * *
      * Speech adaptation configuration improves the accuracy of speech
      * recognition. For more information, see the [speech
@@ -3057,16 +3380,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
@@ -3091,6 +3419,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
@@ -3113,6 +3443,8 @@ public Builder setAdaptation(
       return this;
     }
     /**
+     *
+     *
      * 
      * Speech adaptation configuration improves the accuracy of speech
      * recognition. For more information, see the [speech
@@ -3127,7 +3459,9 @@ public Builder mergeAdaptation(com.google.cloud.speech.v1p1beta1.SpeechAdaptatio
       if (adaptationBuilder_ == null) {
         if (adaptation_ != null) {
           adaptation_ =
-            com.google.cloud.speech.v1p1beta1.SpeechAdaptation.newBuilder(adaptation_).mergeFrom(value).buildPartial();
+              com.google.cloud.speech.v1p1beta1.SpeechAdaptation.newBuilder(adaptation_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           adaptation_ = value;
         }
@@ -3139,6 +3473,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
@@ -3161,6 +3497,8 @@ public Builder clearAdaptation() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Speech adaptation configuration improves the accuracy of speech
      * recognition. For more information, see the [speech
@@ -3172,11 +3510,13 @@ public Builder clearAdaptation() {
      * .google.cloud.speech.v1p1beta1.SpeechAdaptation adaptation = 20;
      */
     public com.google.cloud.speech.v1p1beta1.SpeechAdaptation.Builder getAdaptationBuilder() {
-      
+
       onChanged();
       return getAdaptationFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Speech adaptation configuration improves the accuracy of speech
      * recognition. For more information, see the [speech
@@ -3191,11 +3531,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
@@ -3207,14 +3550,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_;
@@ -3222,8 +3568,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
@@ -3231,13 +3582,17 @@ public com.google.cloud.speech.v1p1beta1.SpeechAdaptationOrBuilder getAdaptation
      * and final transcripts.
      * 
* - * .google.cloud.speech.v1p1beta1.TranscriptNormalization transcript_normalization = 24; + * .google.cloud.speech.v1p1beta1.TranscriptNormalization transcript_normalization = 24; + * + * * @return Whether the transcriptNormalization field is set. */ public boolean hasTranscriptNormalization() { return transcriptNormalizationBuilder_ != null || transcriptNormalization_ != null; } /** + * + * *
      * Use transcription normalization to automatically replace parts of the
      * transcript with phrases of your choosing. For StreamingRecognize, this
@@ -3245,17 +3600,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
@@ -3263,9 +3624,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(); @@ -3279,6 +3642,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
@@ -3286,7 +3651,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) { @@ -3300,6 +3666,8 @@ public Builder setTranscriptNormalization( return this; } /** + * + * *
      * Use transcription normalization to automatically replace parts of the
      * transcript with phrases of your choosing. For StreamingRecognize, this
@@ -3307,13 +3675,18 @@ public Builder setTranscriptNormalization(
      * and final transcripts.
      * 
* - * .google.cloud.speech.v1p1beta1.TranscriptNormalization transcript_normalization = 24; + * .google.cloud.speech.v1p1beta1.TranscriptNormalization transcript_normalization = 24; + * */ - public Builder mergeTranscriptNormalization(com.google.cloud.speech.v1p1beta1.TranscriptNormalization value) { + public Builder mergeTranscriptNormalization( + com.google.cloud.speech.v1p1beta1.TranscriptNormalization value) { if (transcriptNormalizationBuilder_ == null) { if (transcriptNormalization_ != null) { transcriptNormalization_ = - com.google.cloud.speech.v1p1beta1.TranscriptNormalization.newBuilder(transcriptNormalization_).mergeFrom(value).buildPartial(); + com.google.cloud.speech.v1p1beta1.TranscriptNormalization.newBuilder( + transcriptNormalization_) + .mergeFrom(value) + .buildPartial(); } else { transcriptNormalization_ = value; } @@ -3325,6 +3698,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
@@ -3332,7 +3707,8 @@ public Builder mergeTranscriptNormalization(com.google.cloud.speech.v1p1beta1.Tr
      * and final transcripts.
      * 
* - * .google.cloud.speech.v1p1beta1.TranscriptNormalization transcript_normalization = 24; + * .google.cloud.speech.v1p1beta1.TranscriptNormalization transcript_normalization = 24; + * */ public Builder clearTranscriptNormalization() { if (transcriptNormalizationBuilder_ == null) { @@ -3346,6 +3722,8 @@ public Builder clearTranscriptNormalization() { return this; } /** + * + * *
      * Use transcription normalization to automatically replace parts of the
      * transcript with phrases of your choosing. For StreamingRecognize, this
@@ -3353,14 +3731,18 @@ public Builder clearTranscriptNormalization() {
      * and final transcripts.
      * 
* - * .google.cloud.speech.v1p1beta1.TranscriptNormalization transcript_normalization = 24; + * .google.cloud.speech.v1p1beta1.TranscriptNormalization transcript_normalization = 24; + * */ - public com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Builder getTranscriptNormalizationBuilder() { - + public com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Builder + getTranscriptNormalizationBuilder() { + onChanged(); return getTranscriptNormalizationFieldBuilder().getBuilder(); } /** + * + * *
      * Use transcription normalization to automatically replace parts of the
      * transcript with phrases of your choosing. For StreamingRecognize, this
@@ -3368,17 +3750,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
@@ -3386,35 +3773,47 @@ public com.google.cloud.speech.v1p1beta1.TranscriptNormalizationOrBuilder getTra
      * and final transcripts.
      * 
* - * .google.cloud.speech.v1p1beta1.TranscriptNormalization transcript_normalization = 24; + * .google.cloud.speech.v1p1beta1.TranscriptNormalization transcript_normalization = 24; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.TranscriptNormalization, com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Builder, com.google.cloud.speech.v1p1beta1.TranscriptNormalizationOrBuilder> + com.google.cloud.speech.v1p1beta1.TranscriptNormalization, + com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Builder, + com.google.cloud.speech.v1p1beta1.TranscriptNormalizationOrBuilder> getTranscriptNormalizationFieldBuilder() { if (transcriptNormalizationBuilder_ == null) { - transcriptNormalizationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.TranscriptNormalization, com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Builder, com.google.cloud.speech.v1p1beta1.TranscriptNormalizationOrBuilder>( - getTranscriptNormalization(), - getParentForChildren(), - isClean()); + transcriptNormalizationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v1p1beta1.TranscriptNormalization, + com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Builder, + com.google.cloud.speech.v1p1beta1.TranscriptNormalizationOrBuilder>( + getTranscriptNormalization(), getParentForChildren(), isClean()); transcriptNormalization_ = null; } return transcriptNormalizationBuilder_; } private java.util.List speechContexts_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureSpeechContextsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - speechContexts_ = new java.util.ArrayList(speechContexts_); + speechContexts_ = + new java.util.ArrayList( + speechContexts_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.SpeechContext, com.google.cloud.speech.v1p1beta1.SpeechContext.Builder, com.google.cloud.speech.v1p1beta1.SpeechContextOrBuilder> speechContextsBuilder_; + com.google.cloud.speech.v1p1beta1.SpeechContext, + com.google.cloud.speech.v1p1beta1.SpeechContext.Builder, + com.google.cloud.speech.v1p1beta1.SpeechContextOrBuilder> + speechContextsBuilder_; /** + * + * *
      * Array of [SpeechContext][google.cloud.speech.v1p1beta1.SpeechContext].
      * A means to provide context to assist the speech recognition. For more
@@ -3433,6 +3832,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
@@ -3451,6 +3852,8 @@ public int getSpeechContextsCount() {
       }
     }
     /**
+     *
+     *
      * 
      * Array of [SpeechContext][google.cloud.speech.v1p1beta1.SpeechContext].
      * A means to provide context to assist the speech recognition. For more
@@ -3469,6 +3872,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
@@ -3494,6 +3899,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
@@ -3516,6 +3923,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
@@ -3540,6 +3949,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
@@ -3565,6 +3976,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
@@ -3587,6 +4000,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
@@ -3609,6 +4024,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
@@ -3623,8 +4040,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);
@@ -3632,6 +4048,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
@@ -3653,6 +4071,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
@@ -3674,6 +4094,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
@@ -3689,6 +4111,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
@@ -3702,11 +4126,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
@@ -3717,8 +4144,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 {
@@ -3726,6 +4153,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
@@ -3737,10 +4166,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
@@ -3753,10 +4184,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
@@ -3767,16 +4200,22 @@ public com.google.cloud.speech.v1p1beta1.SpeechContext.Builder addSpeechContexts
      *
      * repeated .google.cloud.speech.v1p1beta1.SpeechContext speech_contexts = 6;
      */
-    public java.util.List 
-         getSpeechContextsBuilderList() {
+    public java.util.List
+        getSpeechContextsBuilderList() {
       return getSpeechContextsFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.speech.v1p1beta1.SpeechContext, com.google.cloud.speech.v1p1beta1.SpeechContext.Builder, com.google.cloud.speech.v1p1beta1.SpeechContextOrBuilder> 
+            com.google.cloud.speech.v1p1beta1.SpeechContext,
+            com.google.cloud.speech.v1p1beta1.SpeechContext.Builder,
+            com.google.cloud.speech.v1p1beta1.SpeechContextOrBuilder>
         getSpeechContextsFieldBuilder() {
       if (speechContextsBuilder_ == null) {
-        speechContextsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.speech.v1p1beta1.SpeechContext, com.google.cloud.speech.v1p1beta1.SpeechContext.Builder, com.google.cloud.speech.v1p1beta1.SpeechContextOrBuilder>(
+        speechContextsBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.cloud.speech.v1p1beta1.SpeechContext,
+                com.google.cloud.speech.v1p1beta1.SpeechContext.Builder,
+                com.google.cloud.speech.v1p1beta1.SpeechContextOrBuilder>(
                 speechContexts_,
                 ((bitField0_ & 0x00000002) != 0),
                 getParentForChildren(),
@@ -3786,8 +4225,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
@@ -3796,6 +4237,7 @@ public com.google.cloud.speech.v1p1beta1.SpeechContext.Builder addSpeechContexts
      * 
* * bool enable_word_time_offsets = 8; + * * @return The enableWordTimeOffsets. */ @java.lang.Override @@ -3803,6 +4245,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
@@ -3811,16 +4255,19 @@ public boolean getEnableWordTimeOffsets() {
      * 
* * bool enable_word_time_offsets = 8; + * * @param value The enableWordTimeOffsets to set. * @return This builder for chaining. */ public Builder setEnableWordTimeOffsets(boolean value) { - + enableWordTimeOffsets_ = value; onChanged(); return this; } /** + * + * *
      * If `true`, the top result includes a list of words and
      * the start and end time offsets (timestamps) for those words. If
@@ -3829,17 +4276,20 @@ public Builder setEnableWordTimeOffsets(boolean value) {
      * 
* * bool enable_word_time_offsets = 8; + * * @return This builder for chaining. */ public Builder clearEnableWordTimeOffsets() { - + enableWordTimeOffsets_ = false; onChanged(); return this; } - private boolean enableWordConfidence_ ; + private boolean enableWordConfidence_; /** + * + * *
      * If `true`, the top result includes a list of words and the
      * confidence for those words. If `false`, no word-level confidence
@@ -3847,6 +4297,7 @@ public Builder clearEnableWordTimeOffsets() {
      * 
* * bool enable_word_confidence = 15; + * * @return The enableWordConfidence. */ @java.lang.Override @@ -3854,6 +4305,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
@@ -3861,16 +4314,19 @@ public boolean getEnableWordConfidence() {
      * 
* * bool enable_word_confidence = 15; + * * @param value The enableWordConfidence to set. * @return This builder for chaining. */ public Builder setEnableWordConfidence(boolean value) { - + enableWordConfidence_ = value; onChanged(); return this; } /** + * + * *
      * If `true`, the top result includes a list of words and the
      * confidence for those words. If `false`, no word-level confidence
@@ -3878,17 +4334,20 @@ public Builder setEnableWordConfidence(boolean value) {
      * 
* * bool enable_word_confidence = 15; + * * @return This builder for chaining. */ public Builder clearEnableWordConfidence() { - + enableWordConfidence_ = false; onChanged(); return this; } - private boolean enableAutomaticPunctuation_ ; + private boolean enableAutomaticPunctuation_; /** + * + * *
      * If 'true', adds punctuation to recognition result hypotheses.
      * This feature is only available in select languages. Setting this for
@@ -3897,6 +4356,7 @@ public Builder clearEnableWordConfidence() {
      * 
* * bool enable_automatic_punctuation = 11; + * * @return The enableAutomaticPunctuation. */ @java.lang.Override @@ -3904,6 +4364,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
@@ -3912,16 +4374,19 @@ public boolean getEnableAutomaticPunctuation() {
      * 
* * bool enable_automatic_punctuation = 11; + * * @param value The enableAutomaticPunctuation to set. * @return This builder for chaining. */ public Builder setEnableAutomaticPunctuation(boolean value) { - + enableAutomaticPunctuation_ = value; onChanged(); return this; } /** + * + * *
      * If 'true', adds punctuation to recognition result hypotheses.
      * This feature is only available in select languages. Setting this for
@@ -3930,10 +4395,11 @@ public Builder setEnableAutomaticPunctuation(boolean value) {
      * 
* * bool enable_automatic_punctuation = 11; + * * @return This builder for chaining. */ public Builder clearEnableAutomaticPunctuation() { - + enableAutomaticPunctuation_ = false; onChanged(); return this; @@ -3941,8 +4407,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
@@ -3954,12 +4425,15 @@ public Builder clearEnableAutomaticPunctuation() {
      * 
* * .google.protobuf.BoolValue enable_spoken_punctuation = 22; + * * @return Whether the enableSpokenPunctuation field is set. */ public boolean hasEnableSpokenPunctuation() { return enableSpokenPunctuationBuilder_ != null || enableSpokenPunctuation_ != null; } /** + * + * *
      * The spoken punctuation behavior for the call
      * If not set, uses default behavior based on model of choice
@@ -3971,16 +4445,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
@@ -4007,6 +4486,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
@@ -4031,6 +4512,8 @@ public Builder setEnableSpokenPunctuation(
       return this;
     }
     /**
+     *
+     *
      * 
      * The spoken punctuation behavior for the call
      * If not set, uses default behavior based on model of choice
@@ -4047,7 +4530,9 @@ public Builder mergeEnableSpokenPunctuation(com.google.protobuf.BoolValue value)
       if (enableSpokenPunctuationBuilder_ == null) {
         if (enableSpokenPunctuation_ != null) {
           enableSpokenPunctuation_ =
-            com.google.protobuf.BoolValue.newBuilder(enableSpokenPunctuation_).mergeFrom(value).buildPartial();
+              com.google.protobuf.BoolValue.newBuilder(enableSpokenPunctuation_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           enableSpokenPunctuation_ = value;
         }
@@ -4059,6 +4544,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
@@ -4083,6 +4570,8 @@ public Builder clearEnableSpokenPunctuation() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The spoken punctuation behavior for the call
      * If not set, uses default behavior based on model of choice
@@ -4096,11 +4585,13 @@ public Builder clearEnableSpokenPunctuation() {
      * .google.protobuf.BoolValue enable_spoken_punctuation = 22;
      */
     public com.google.protobuf.BoolValue.Builder getEnableSpokenPunctuationBuilder() {
-      
+
       onChanged();
       return getEnableSpokenPunctuationFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The spoken punctuation behavior for the call
      * If not set, uses default behavior based on model of choice
@@ -4117,11 +4608,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
@@ -4135,14 +4629,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_;
@@ -4150,8 +4647,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
@@ -4161,12 +4663,15 @@ public com.google.protobuf.BoolValueOrBuilder getEnableSpokenPunctuationOrBuilde
      * 
* * .google.protobuf.BoolValue enable_spoken_emojis = 23; + * * @return Whether the enableSpokenEmojis field is set. */ public boolean hasEnableSpokenEmojis() { return enableSpokenEmojisBuilder_ != null || enableSpokenEmojis_ != null; } /** + * + * *
      * The spoken emoji behavior for the call
      * If not set, uses default behavior based on model of choice
@@ -4176,16 +4681,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
@@ -4210,6 +4720,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
@@ -4220,8 +4732,7 @@ public Builder setEnableSpokenEmojis(com.google.protobuf.BoolValue value) {
      *
      * .google.protobuf.BoolValue enable_spoken_emojis = 23;
      */
-    public Builder setEnableSpokenEmojis(
-        com.google.protobuf.BoolValue.Builder builderForValue) {
+    public Builder setEnableSpokenEmojis(com.google.protobuf.BoolValue.Builder builderForValue) {
       if (enableSpokenEmojisBuilder_ == null) {
         enableSpokenEmojis_ = builderForValue.build();
         onChanged();
@@ -4232,6 +4743,8 @@ public Builder setEnableSpokenEmojis(
       return this;
     }
     /**
+     *
+     *
      * 
      * The spoken emoji behavior for the call
      * If not set, uses default behavior based on model of choice
@@ -4246,7 +4759,9 @@ public Builder mergeEnableSpokenEmojis(com.google.protobuf.BoolValue value) {
       if (enableSpokenEmojisBuilder_ == null) {
         if (enableSpokenEmojis_ != null) {
           enableSpokenEmojis_ =
-            com.google.protobuf.BoolValue.newBuilder(enableSpokenEmojis_).mergeFrom(value).buildPartial();
+              com.google.protobuf.BoolValue.newBuilder(enableSpokenEmojis_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           enableSpokenEmojis_ = value;
         }
@@ -4258,6 +4773,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
@@ -4280,6 +4797,8 @@ public Builder clearEnableSpokenEmojis() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The spoken emoji behavior for the call
      * If not set, uses default behavior based on model of choice
@@ -4291,11 +4810,13 @@ public Builder clearEnableSpokenEmojis() {
      * .google.protobuf.BoolValue enable_spoken_emojis = 23;
      */
     public com.google.protobuf.BoolValue.Builder getEnableSpokenEmojisBuilder() {
-      
+
       onChanged();
       return getEnableSpokenEmojisFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The spoken emoji behavior for the call
      * If not set, uses default behavior based on model of choice
@@ -4310,11 +4831,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
@@ -4326,21 +4850,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
@@ -4349,13 +4878,17 @@ public com.google.protobuf.BoolValueOrBuilder getEnableSpokenEmojisOrBuilder() {
      * 
* * bool enable_speaker_diarization = 16 [deprecated = true]; + * * @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
@@ -4364,16 +4897,20 @@ public com.google.protobuf.BoolValueOrBuilder getEnableSpokenEmojisOrBuilder() {
      * 
* * bool enable_speaker_diarization = 16 [deprecated = true]; + * * @param value The enableSpeakerDiarization to set. * @return This builder for chaining. */ - @java.lang.Deprecated public Builder setEnableSpeakerDiarization(boolean value) { - + @java.lang.Deprecated + public Builder setEnableSpeakerDiarization(boolean value) { + enableSpeakerDiarization_ = value; onChanged(); return this; } /** + * + * *
      * If 'true', enables speaker detection for each recognized word in
      * the top alternative of the recognition result using a speaker_tag provided
@@ -4382,17 +4919,21 @@ public com.google.protobuf.BoolValueOrBuilder getEnableSpokenEmojisOrBuilder() {
      * 
* * bool enable_speaker_diarization = 16 [deprecated = true]; + * * @return This builder for chaining. */ - @java.lang.Deprecated public Builder clearEnableSpeakerDiarization() { - + @java.lang.Deprecated + public Builder clearEnableSpeakerDiarization() { + enableSpeakerDiarization_ = false; onChanged(); return this; } - private int diarizationSpeakerCount_ ; + private int diarizationSpeakerCount_; /** + * + * *
      * If set, specifies the estimated number of speakers in the conversation.
      * Defaults to '2'. Ignored unless enable_speaker_diarization is set to true.
@@ -4400,13 +4941,17 @@ public com.google.protobuf.BoolValueOrBuilder getEnableSpokenEmojisOrBuilder() {
      * 
* * int32 diarization_speaker_count = 17 [deprecated = true]; + * * @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.
@@ -4414,16 +4959,20 @@ public com.google.protobuf.BoolValueOrBuilder getEnableSpokenEmojisOrBuilder() {
      * 
* * int32 diarization_speaker_count = 17 [deprecated = true]; + * * @param value The diarizationSpeakerCount to set. * @return This builder for chaining. */ - @java.lang.Deprecated public Builder setDiarizationSpeakerCount(int value) { - + @java.lang.Deprecated + public Builder setDiarizationSpeakerCount(int value) { + diarizationSpeakerCount_ = value; onChanged(); return this; } /** + * + * *
      * If set, specifies the estimated number of speakers in the conversation.
      * Defaults to '2'. Ignored unless enable_speaker_diarization is set to true.
@@ -4431,10 +4980,12 @@ public com.google.protobuf.BoolValueOrBuilder getEnableSpokenEmojisOrBuilder() {
      * 
* * int32 diarization_speaker_count = 17 [deprecated = true]; + * * @return This builder for chaining. */ - @java.lang.Deprecated public Builder clearDiarizationSpeakerCount() { - + @java.lang.Deprecated + public Builder clearDiarizationSpeakerCount() { + diarizationSpeakerCount_ = 0; onChanged(); return this; @@ -4442,8 +4993,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.
@@ -4456,12 +5012,15 @@ public com.google.protobuf.BoolValueOrBuilder getEnableSpokenEmojisOrBuilder() {
      * 
* * .google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig diarization_config = 19; + * * @return Whether the diarizationConfig field is set. */ public boolean hasDiarizationConfig() { return diarizationConfigBuilder_ != null || diarizationConfig_ != null; } /** + * + * *
      * Config to enable speaker diarization and set additional
      * parameters to make diarization better suited for your application.
@@ -4474,16 +5033,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.
@@ -4497,7 +5061,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();
@@ -4511,6 +5076,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.
@@ -4536,6 +5103,8 @@ public Builder setDiarizationConfig(
       return this;
     }
     /**
+     *
+     *
      * 
      * Config to enable speaker diarization and set additional
      * parameters to make diarization better suited for your application.
@@ -4549,11 +5118,15 @@ public Builder setDiarizationConfig(
      *
      * .google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig diarization_config = 19;
      */
-    public Builder mergeDiarizationConfig(com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig value) {
+    public Builder mergeDiarizationConfig(
+        com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig value) {
       if (diarizationConfigBuilder_ == null) {
         if (diarizationConfig_ != null) {
           diarizationConfig_ =
-            com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig.newBuilder(diarizationConfig_).mergeFrom(value).buildPartial();
+              com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig.newBuilder(
+                      diarizationConfig_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           diarizationConfig_ = value;
         }
@@ -4565,6 +5138,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.
@@ -4590,6 +5165,8 @@ public Builder clearDiarizationConfig() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Config to enable speaker diarization and set additional
      * parameters to make diarization better suited for your application.
@@ -4603,12 +5180,15 @@ public Builder clearDiarizationConfig() {
      *
      * .google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig diarization_config = 19;
      */
-    public com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig.Builder getDiarizationConfigBuilder() {
-      
+    public com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig.Builder
+        getDiarizationConfigBuilder() {
+
       onChanged();
       return getDiarizationConfigFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Config to enable speaker diarization and set additional
      * parameters to make diarization better suited for your application.
@@ -4622,15 +5202,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.
@@ -4645,14 +5229,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_;
@@ -4660,34 +5247,47 @@ public com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfigOrBuilder getDi
 
     private com.google.cloud.speech.v1p1beta1.RecognitionMetadata metadata_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.speech.v1p1beta1.RecognitionMetadata, com.google.cloud.speech.v1p1beta1.RecognitionMetadata.Builder, com.google.cloud.speech.v1p1beta1.RecognitionMetadataOrBuilder> metadataBuilder_;
+            com.google.cloud.speech.v1p1beta1.RecognitionMetadata,
+            com.google.cloud.speech.v1p1beta1.RecognitionMetadata.Builder,
+            com.google.cloud.speech.v1p1beta1.RecognitionMetadataOrBuilder>
+        metadataBuilder_;
     /**
+     *
+     *
      * 
      * Metadata regarding this request.
      * 
* * .google.cloud.speech.v1p1beta1.RecognitionMetadata metadata = 9; + * * @return Whether the metadata field is set. */ public boolean hasMetadata() { return metadataBuilder_ != null || metadata_ != null; } /** + * + * *
      * Metadata regarding this request.
      * 
* * .google.cloud.speech.v1p1beta1.RecognitionMetadata metadata = 9; + * * @return The metadata. */ public com.google.cloud.speech.v1p1beta1.RecognitionMetadata getMetadata() { if (metadataBuilder_ == null) { - return metadata_ == null ? com.google.cloud.speech.v1p1beta1.RecognitionMetadata.getDefaultInstance() : metadata_; + return metadata_ == null + ? com.google.cloud.speech.v1p1beta1.RecognitionMetadata.getDefaultInstance() + : metadata_; } else { return metadataBuilder_.getMessage(); } } /** + * + * *
      * Metadata regarding this request.
      * 
@@ -4708,6 +5308,8 @@ public Builder setMetadata(com.google.cloud.speech.v1p1beta1.RecognitionMetadata return this; } /** + * + * *
      * Metadata regarding this request.
      * 
@@ -4726,6 +5328,8 @@ public Builder setMetadata( return this; } /** + * + * *
      * Metadata regarding this request.
      * 
@@ -4736,7 +5340,9 @@ public Builder mergeMetadata(com.google.cloud.speech.v1p1beta1.RecognitionMetada if (metadataBuilder_ == null) { if (metadata_ != null) { metadata_ = - com.google.cloud.speech.v1p1beta1.RecognitionMetadata.newBuilder(metadata_).mergeFrom(value).buildPartial(); + com.google.cloud.speech.v1p1beta1.RecognitionMetadata.newBuilder(metadata_) + .mergeFrom(value) + .buildPartial(); } else { metadata_ = value; } @@ -4748,6 +5354,8 @@ public Builder mergeMetadata(com.google.cloud.speech.v1p1beta1.RecognitionMetada return this; } /** + * + * *
      * Metadata regarding this request.
      * 
@@ -4766,6 +5374,8 @@ public Builder clearMetadata() { return this; } /** + * + * *
      * Metadata regarding this request.
      * 
@@ -4773,11 +5383,13 @@ public Builder clearMetadata() { * .google.cloud.speech.v1p1beta1.RecognitionMetadata metadata = 9; */ public com.google.cloud.speech.v1p1beta1.RecognitionMetadata.Builder getMetadataBuilder() { - + onChanged(); return getMetadataFieldBuilder().getBuilder(); } /** + * + * *
      * Metadata regarding this request.
      * 
@@ -4788,11 +5400,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.
      * 
@@ -4800,14 +5415,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_; @@ -4815,6 +5433,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
@@ -4851,13 +5471,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; @@ -4866,6 +5486,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
@@ -4902,15 +5524,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 { @@ -4918,6 +5539,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
@@ -4954,20 +5577,22 @@ public java.lang.String getModel() {
      * 
* * string model = 13; + * * @param value The model to set. * @return This builder for chaining. */ - public Builder setModel( - java.lang.String value) { + public Builder setModel(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + model_ = value; onChanged(); return this; } /** + * + * *
      * Which model to select for the given request. Select the model
      * best suited to your domain to get best results. If a model is not
@@ -5004,15 +5629,18 @@ public Builder setModel(
      * 
* * string model = 13; + * * @return This builder for chaining. */ public Builder clearModel() { - + model_ = getDefaultInstance().getModel(); onChanged(); return this; } /** + * + * *
      * Which model to select for the given request. Select the model
      * best suited to your domain to get best results. If a model is not
@@ -5049,23 +5677,25 @@ public Builder clearModel() {
      * 
* * string model = 13; + * * @param value The bytes for model to set. * @return This builder for chaining. */ - public Builder setModelBytes( - com.google.protobuf.ByteString value) { + public Builder setModelBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + model_ = value; onChanged(); return this; } - private boolean useEnhanced_ ; + private boolean useEnhanced_; /** + * + * *
      * Set to true to use an enhanced model for speech recognition.
      * If `use_enhanced` is set to true and the `model` field is not set, then
@@ -5077,6 +5707,7 @@ public Builder setModelBytes(
      * 
* * bool use_enhanced = 14; + * * @return The useEnhanced. */ @java.lang.Override @@ -5084,6 +5715,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
@@ -5095,16 +5728,19 @@ public boolean getUseEnhanced() {
      * 
* * bool use_enhanced = 14; + * * @param value The useEnhanced to set. * @return This builder for chaining. */ public Builder setUseEnhanced(boolean value) { - + useEnhanced_ = value; onChanged(); return this; } /** + * + * *
      * Set to true to use an enhanced model for speech recognition.
      * If `use_enhanced` is set to true and the `model` field is not set, then
@@ -5116,17 +5752,18 @@ public Builder setUseEnhanced(boolean value) {
      * 
* * bool use_enhanced = 14; + * * @return This builder for chaining. */ public Builder clearUseEnhanced() { - + useEnhanced_ = false; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -5136,12 +5773,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(); } @@ -5150,16 +5787,16 @@ public static com.google.cloud.speech.v1p1beta1.RecognitionConfig getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RecognitionConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new RecognitionConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RecognitionConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RecognitionConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -5174,6 +5811,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.RecognitionConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionConfigOrBuilder.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionConfigOrBuilder.java similarity index 93% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionConfigOrBuilder.java rename to proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionConfigOrBuilder.java index 0e1c409d2..2f29f3761 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionConfigOrBuilder.java +++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionConfigOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech.proto package com.google.cloud.speech.v1p1beta1; -public interface RecognitionConfigOrBuilder extends +public interface RecognitionConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1p1beta1.RecognitionConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Encoding of audio data sent in all `RecognitionAudio` messages.
    * This field is optional for `FLAC` and `WAV` audio files and required
@@ -15,10 +33,13 @@ public interface RecognitionConfigOrBuilder extends
    * 
* * .google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding encoding = 1; + * * @return The enum numeric value on the wire for encoding. */ int getEncodingValue(); /** + * + * *
    * Encoding of audio data sent in all `RecognitionAudio` messages.
    * This field is optional for `FLAC` and `WAV` audio files and required
@@ -26,11 +47,14 @@ public interface RecognitionConfigOrBuilder extends
    * 
* * .google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding encoding = 1; + * * @return The encoding. */ com.google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding getEncoding(); /** + * + * *
    * Sample rate in Hertz of the audio data sent in all
    * `RecognitionAudio` messages. Valid values are: 8000-48000.
@@ -42,11 +66,14 @@ public interface RecognitionConfigOrBuilder extends
    * 
* * int32 sample_rate_hertz = 2; + * * @return The sampleRateHertz. */ int getSampleRateHertz(); /** + * + * *
    * The number of channels in the input audio data.
    * ONLY set this for MULTI-CHANNEL recognition.
@@ -60,11 +87,14 @@ public interface RecognitionConfigOrBuilder extends
    * 
* * int32 audio_channel_count = 7; + * * @return The audioChannelCount. */ int getAudioChannelCount(); /** + * + * *
    * This needs to be set to `true` explicitly and `audio_channel_count` > 1
    * to get each channel recognized separately. The recognition result will
@@ -75,11 +105,14 @@ public interface RecognitionConfigOrBuilder extends
    * 
* * bool enable_separate_recognition_per_channel = 12; + * * @return The enableSeparateRecognitionPerChannel. */ boolean getEnableSeparateRecognitionPerChannel(); /** + * + * *
    * Required. The language of the supplied audio as a
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.
@@ -90,10 +123,13 @@ public interface RecognitionConfigOrBuilder extends
    * 
* * string language_code = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The languageCode. */ java.lang.String getLanguageCode(); /** + * + * *
    * Required. The language of the supplied audio as a
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.
@@ -104,12 +140,14 @@ public interface RecognitionConfigOrBuilder extends
    * 
* * string language_code = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for languageCode. */ - com.google.protobuf.ByteString - getLanguageCodeBytes(); + com.google.protobuf.ByteString getLanguageCodeBytes(); /** + * + * *
    * A list of up to 3 additional
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags,
@@ -126,11 +164,13 @@ public interface RecognitionConfigOrBuilder extends
    * 
* * repeated string alternative_language_codes = 18; + * * @return A list containing the alternativeLanguageCodes. */ - java.util.List - getAlternativeLanguageCodesList(); + java.util.List getAlternativeLanguageCodesList(); /** + * + * *
    * A list of up to 3 additional
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags,
@@ -147,10 +187,13 @@ public interface RecognitionConfigOrBuilder extends
    * 
* * repeated string alternative_language_codes = 18; + * * @return The count of alternativeLanguageCodes. */ int getAlternativeLanguageCodesCount(); /** + * + * *
    * A list of up to 3 additional
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags,
@@ -167,11 +210,14 @@ public interface RecognitionConfigOrBuilder extends
    * 
* * repeated string alternative_language_codes = 18; + * * @param index The index of the element to return. * @return The alternativeLanguageCodes at the given index. */ java.lang.String getAlternativeLanguageCodes(int index); /** + * + * *
    * A list of up to 3 additional
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags,
@@ -188,13 +234,15 @@ public interface RecognitionConfigOrBuilder extends
    * 
* * repeated string alternative_language_codes = 18; + * * @param index The index of the value to return. * @return The bytes of the alternativeLanguageCodes at the given index. */ - com.google.protobuf.ByteString - getAlternativeLanguageCodesBytes(int index); + com.google.protobuf.ByteString getAlternativeLanguageCodesBytes(int index); /** + * + * *
    * Maximum number of recognition hypotheses to be returned.
    * Specifically, the maximum number of `SpeechRecognitionAlternative` messages
@@ -205,11 +253,14 @@ public interface RecognitionConfigOrBuilder extends
    * 
* * int32 max_alternatives = 4; + * * @return The maxAlternatives. */ int getMaxAlternatives(); /** + * + * *
    * If set to `true`, the server will attempt to filter out
    * profanities, replacing all but the initial character in each filtered word
@@ -218,11 +269,14 @@ public interface RecognitionConfigOrBuilder extends
    * 
* * bool profanity_filter = 5; + * * @return The profanityFilter. */ boolean getProfanityFilter(); /** + * + * *
    * Speech adaptation configuration improves the accuracy of speech
    * recognition. For more information, see the [speech
@@ -232,10 +286,13 @@ public interface RecognitionConfigOrBuilder extends
    * 
* * .google.cloud.speech.v1p1beta1.SpeechAdaptation adaptation = 20; + * * @return Whether the adaptation field is set. */ boolean hasAdaptation(); /** + * + * *
    * Speech adaptation configuration improves the accuracy of speech
    * recognition. For more information, see the [speech
@@ -245,10 +302,13 @@ public interface RecognitionConfigOrBuilder extends
    * 
* * .google.cloud.speech.v1p1beta1.SpeechAdaptation adaptation = 20; + * * @return The adaptation. */ com.google.cloud.speech.v1p1beta1.SpeechAdaptation getAdaptation(); /** + * + * *
    * Speech adaptation configuration improves the accuracy of speech
    * recognition. For more information, see the [speech
@@ -262,6 +322,8 @@ public interface RecognitionConfigOrBuilder extends
   com.google.cloud.speech.v1p1beta1.SpeechAdaptationOrBuilder getAdaptationOrBuilder();
 
   /**
+   *
+   *
    * 
    * Use transcription normalization to automatically replace parts of the
    * transcript with phrases of your choosing. For StreamingRecognize, this
@@ -269,11 +331,15 @@ public interface RecognitionConfigOrBuilder extends
    * and final transcripts.
    * 
* - * .google.cloud.speech.v1p1beta1.TranscriptNormalization transcript_normalization = 24; + * .google.cloud.speech.v1p1beta1.TranscriptNormalization transcript_normalization = 24; + * + * * @return Whether the transcriptNormalization field is set. */ boolean hasTranscriptNormalization(); /** + * + * *
    * Use transcription normalization to automatically replace parts of the
    * transcript with phrases of your choosing. For StreamingRecognize, this
@@ -281,11 +347,15 @@ public interface RecognitionConfigOrBuilder extends
    * and final transcripts.
    * 
* - * .google.cloud.speech.v1p1beta1.TranscriptNormalization transcript_normalization = 24; + * .google.cloud.speech.v1p1beta1.TranscriptNormalization transcript_normalization = 24; + * + * * @return The transcriptNormalization. */ com.google.cloud.speech.v1p1beta1.TranscriptNormalization getTranscriptNormalization(); /** + * + * *
    * Use transcription normalization to automatically replace parts of the
    * transcript with phrases of your choosing. For StreamingRecognize, this
@@ -293,11 +363,15 @@ public interface RecognitionConfigOrBuilder extends
    * and final transcripts.
    * 
* - * .google.cloud.speech.v1p1beta1.TranscriptNormalization transcript_normalization = 24; + * .google.cloud.speech.v1p1beta1.TranscriptNormalization transcript_normalization = 24; + * */ - com.google.cloud.speech.v1p1beta1.TranscriptNormalizationOrBuilder getTranscriptNormalizationOrBuilder(); + com.google.cloud.speech.v1p1beta1.TranscriptNormalizationOrBuilder + getTranscriptNormalizationOrBuilder(); /** + * + * *
    * Array of [SpeechContext][google.cloud.speech.v1p1beta1.SpeechContext].
    * A means to provide context to assist the speech recognition. For more
@@ -308,9 +382,10 @@ public interface RecognitionConfigOrBuilder extends
    *
    * repeated .google.cloud.speech.v1p1beta1.SpeechContext speech_contexts = 6;
    */
-  java.util.List 
-      getSpeechContextsList();
+  java.util.List getSpeechContextsList();
   /**
+   *
+   *
    * 
    * Array of [SpeechContext][google.cloud.speech.v1p1beta1.SpeechContext].
    * A means to provide context to assist the speech recognition. For more
@@ -323,6 +398,8 @@ public interface RecognitionConfigOrBuilder extends
    */
   com.google.cloud.speech.v1p1beta1.SpeechContext getSpeechContexts(int index);
   /**
+   *
+   *
    * 
    * Array of [SpeechContext][google.cloud.speech.v1p1beta1.SpeechContext].
    * A means to provide context to assist the speech recognition. For more
@@ -335,6 +412,8 @@ public interface RecognitionConfigOrBuilder extends
    */
   int getSpeechContextsCount();
   /**
+   *
+   *
    * 
    * Array of [SpeechContext][google.cloud.speech.v1p1beta1.SpeechContext].
    * A means to provide context to assist the speech recognition. For more
@@ -345,9 +424,11 @@ public interface RecognitionConfigOrBuilder extends
    *
    * repeated .google.cloud.speech.v1p1beta1.SpeechContext speech_contexts = 6;
    */
-  java.util.List 
+  java.util.List
       getSpeechContextsOrBuilderList();
   /**
+   *
+   *
    * 
    * Array of [SpeechContext][google.cloud.speech.v1p1beta1.SpeechContext].
    * A means to provide context to assist the speech recognition. For more
@@ -358,10 +439,11 @@ public interface RecognitionConfigOrBuilder extends
    *
    * repeated .google.cloud.speech.v1p1beta1.SpeechContext speech_contexts = 6;
    */
-  com.google.cloud.speech.v1p1beta1.SpeechContextOrBuilder getSpeechContextsOrBuilder(
-      int index);
+  com.google.cloud.speech.v1p1beta1.SpeechContextOrBuilder getSpeechContextsOrBuilder(int index);
 
   /**
+   *
+   *
    * 
    * If `true`, the top result includes a list of words and
    * the start and end time offsets (timestamps) for those words. If
@@ -370,11 +452,14 @@ com.google.cloud.speech.v1p1beta1.SpeechContextOrBuilder getSpeechContextsOrBuil
    * 
* * bool enable_word_time_offsets = 8; + * * @return The enableWordTimeOffsets. */ boolean getEnableWordTimeOffsets(); /** + * + * *
    * If `true`, the top result includes a list of words and the
    * confidence for those words. If `false`, no word-level confidence
@@ -382,11 +467,14 @@ com.google.cloud.speech.v1p1beta1.SpeechContextOrBuilder getSpeechContextsOrBuil
    * 
* * bool enable_word_confidence = 15; + * * @return The enableWordConfidence. */ boolean getEnableWordConfidence(); /** + * + * *
    * If 'true', adds punctuation to recognition result hypotheses.
    * This feature is only available in select languages. Setting this for
@@ -395,11 +483,14 @@ com.google.cloud.speech.v1p1beta1.SpeechContextOrBuilder getSpeechContextsOrBuil
    * 
* * bool enable_automatic_punctuation = 11; + * * @return The enableAutomaticPunctuation. */ boolean getEnableAutomaticPunctuation(); /** + * + * *
    * The spoken punctuation behavior for the call
    * If not set, uses default behavior based on model of choice
@@ -411,10 +502,13 @@ com.google.cloud.speech.v1p1beta1.SpeechContextOrBuilder getSpeechContextsOrBuil
    * 
* * .google.protobuf.BoolValue enable_spoken_punctuation = 22; + * * @return Whether the enableSpokenPunctuation field is set. */ boolean hasEnableSpokenPunctuation(); /** + * + * *
    * The spoken punctuation behavior for the call
    * If not set, uses default behavior based on model of choice
@@ -426,10 +520,13 @@ com.google.cloud.speech.v1p1beta1.SpeechContextOrBuilder getSpeechContextsOrBuil
    * 
* * .google.protobuf.BoolValue enable_spoken_punctuation = 22; + * * @return The enableSpokenPunctuation. */ com.google.protobuf.BoolValue getEnableSpokenPunctuation(); /** + * + * *
    * The spoken punctuation behavior for the call
    * If not set, uses default behavior based on model of choice
@@ -445,6 +542,8 @@ com.google.cloud.speech.v1p1beta1.SpeechContextOrBuilder getSpeechContextsOrBuil
   com.google.protobuf.BoolValueOrBuilder getEnableSpokenPunctuationOrBuilder();
 
   /**
+   *
+   *
    * 
    * The spoken emoji behavior for the call
    * If not set, uses default behavior based on model of choice
@@ -454,10 +553,13 @@ com.google.cloud.speech.v1p1beta1.SpeechContextOrBuilder getSpeechContextsOrBuil
    * 
* * .google.protobuf.BoolValue enable_spoken_emojis = 23; + * * @return Whether the enableSpokenEmojis field is set. */ boolean hasEnableSpokenEmojis(); /** + * + * *
    * The spoken emoji behavior for the call
    * If not set, uses default behavior based on model of choice
@@ -467,10 +569,13 @@ com.google.cloud.speech.v1p1beta1.SpeechContextOrBuilder getSpeechContextsOrBuil
    * 
* * .google.protobuf.BoolValue enable_spoken_emojis = 23; + * * @return The enableSpokenEmojis. */ com.google.protobuf.BoolValue getEnableSpokenEmojis(); /** + * + * *
    * The spoken emoji behavior for the call
    * If not set, uses default behavior based on model of choice
@@ -484,6 +589,8 @@ com.google.cloud.speech.v1p1beta1.SpeechContextOrBuilder getSpeechContextsOrBuil
   com.google.protobuf.BoolValueOrBuilder getEnableSpokenEmojisOrBuilder();
 
   /**
+   *
+   *
    * 
    * If 'true', enables speaker detection for each recognized word in
    * the top alternative of the recognition result using a speaker_tag provided
@@ -492,11 +599,15 @@ com.google.cloud.speech.v1p1beta1.SpeechContextOrBuilder getSpeechContextsOrBuil
    * 
* * bool enable_speaker_diarization = 16 [deprecated = true]; + * * @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.
@@ -504,11 +615,15 @@ com.google.cloud.speech.v1p1beta1.SpeechContextOrBuilder getSpeechContextsOrBuil
    * 
* * int32 diarization_speaker_count = 17 [deprecated = true]; + * * @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.
@@ -521,10 +636,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.
@@ -537,10 +655,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.
@@ -554,27 +675,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.
    * 
@@ -584,6 +714,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
@@ -620,10 +752,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
@@ -660,12 +795,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
@@ -677,6 +814,7 @@ com.google.cloud.speech.v1p1beta1.SpeechContextOrBuilder getSpeechContextsOrBuil
    * 
* * bool use_enhanced = 14; + * * @return The useEnhanced. */ boolean getUseEnhanced(); diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionMetadata.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionMetadata.java similarity index 69% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionMetadata.java rename to proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionMetadata.java index efbe1ec55..d2d18080d 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionMetadata.java +++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionMetadata.java @@ -1,24 +1,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; /** + * + * *
  * Description of audio data to be recognized.
  * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.RecognitionMetadata} */ -public final class RecognitionMetadata extends - com.google.protobuf.GeneratedMessageV3 implements +public final class RecognitionMetadata extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v1p1beta1.RecognitionMetadata) RecognitionMetadataOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use RecognitionMetadata.newBuilder() to construct. private RecognitionMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private RecognitionMetadata() { interactionType_ = 0; microphoneDistance_ = 0; @@ -31,16 +49,15 @@ private RecognitionMetadata() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new RecognitionMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private RecognitionMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -59,91 +76,102 @@ private RecognitionMetadata( case 0: done = true; break; - case 8: { - int rawValue = input.readEnum(); - - interactionType_ = rawValue; - break; - } - case 24: { + case 8: + { + int rawValue = input.readEnum(); - industryNaicsCodeOfAudio_ = input.readUInt32(); - break; - } - case 32: { - int rawValue = input.readEnum(); - - microphoneDistance_ = rawValue; - break; - } - case 40: { - int rawValue = input.readEnum(); + interactionType_ = rawValue; + break; + } + case 24: + { + industryNaicsCodeOfAudio_ = input.readUInt32(); + break; + } + case 32: + { + int rawValue = input.readEnum(); - originalMediaType_ = rawValue; - break; - } - case 48: { - int rawValue = input.readEnum(); + microphoneDistance_ = rawValue; + break; + } + case 40: + { + int rawValue = input.readEnum(); - recordingDeviceType_ = rawValue; - break; - } - case 58: { - java.lang.String s = input.readStringRequireUtf8(); + originalMediaType_ = rawValue; + break; + } + case 48: + { + int rawValue = input.readEnum(); - recordingDeviceName_ = s; - break; - } - case 66: { - java.lang.String s = input.readStringRequireUtf8(); + recordingDeviceType_ = rawValue; + break; + } + case 58: + { + java.lang.String s = input.readStringRequireUtf8(); - originalMimeType_ = s; - break; - } - case 72: { + recordingDeviceName_ = s; + break; + } + case 66: + { + java.lang.String s = input.readStringRequireUtf8(); - obfuscatedId_ = input.readInt64(); - break; - } - case 82: { - java.lang.String s = input.readStringRequireUtf8(); + originalMimeType_ = s; + break; + } + case 72: + { + obfuscatedId_ = input.readInt64(); + break; + } + case 82: + { + java.lang.String s = input.readStringRequireUtf8(); - audioTopic_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + audioTopic_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_RecognitionMetadata_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechProto + .internal_static_google_cloud_speech_v1p1beta1_RecognitionMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_RecognitionMetadata_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechProto + .internal_static_google_cloud_speech_v1p1beta1_RecognitionMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.RecognitionMetadata.class, com.google.cloud.speech.v1p1beta1.RecognitionMetadata.Builder.class); + com.google.cloud.speech.v1p1beta1.RecognitionMetadata.class, + com.google.cloud.speech.v1p1beta1.RecognitionMetadata.Builder.class); } /** + * + * *
    * Use case categories that the audio recognition request can be described
    * by.
@@ -151,9 +179,10 @@ private RecognitionMetadata(
    *
    * Protobuf enum {@code google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType}
    */
-  public enum InteractionType
-      implements com.google.protobuf.ProtocolMessageEnum {
+  public enum InteractionType implements com.google.protobuf.ProtocolMessageEnum {
     /**
+     *
+     *
      * 
      * Use case is either unknown or is something other than one of the other
      * values below.
@@ -163,6 +192,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
@@ -174,6 +205,8 @@ public enum InteractionType
      */
     DISCUSSION(1),
     /**
+     *
+     *
      * 
      * One or more persons lecturing or presenting to others, mostly
      * uninterrupted.
@@ -183,6 +216,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.
@@ -192,6 +227,8 @@ public enum InteractionType
      */
     PHONE_CALL(3),
     /**
+     *
+     *
      * 
      * A recorded message intended for another person to listen to.
      * 
@@ -200,6 +237,8 @@ public enum InteractionType */ VOICEMAIL(4), /** + * + * *
      * Professionally produced audio (eg. TV Show, Podcast).
      * 
@@ -208,6 +247,8 @@ public enum InteractionType */ PROFESSIONALLY_PRODUCED(5), /** + * + * *
      * Transcribe spoken questions and queries into text.
      * 
@@ -216,6 +257,8 @@ public enum InteractionType */ VOICE_SEARCH(6), /** + * + * *
      * Transcribe voice commands, such as for controlling a device.
      * 
@@ -224,6 +267,8 @@ public enum InteractionType */ VOICE_COMMAND(7), /** + * + * *
      * Transcribe speech to text to create a written document, such as a
      * text-message, email or report.
@@ -236,6 +281,8 @@ public enum InteractionType
     ;
 
     /**
+     *
+     *
      * 
      * Use case is either unknown or is something other than one of the other
      * values below.
@@ -245,6 +292,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
@@ -256,6 +305,8 @@ public enum InteractionType
      */
     public static final int DISCUSSION_VALUE = 1;
     /**
+     *
+     *
      * 
      * One or more persons lecturing or presenting to others, mostly
      * uninterrupted.
@@ -265,6 +316,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.
@@ -274,6 +327,8 @@ public enum InteractionType
      */
     public static final int PHONE_CALL_VALUE = 3;
     /**
+     *
+     *
      * 
      * A recorded message intended for another person to listen to.
      * 
@@ -282,6 +337,8 @@ public enum InteractionType */ public static final int VOICEMAIL_VALUE = 4; /** + * + * *
      * Professionally produced audio (eg. TV Show, Podcast).
      * 
@@ -290,6 +347,8 @@ public enum InteractionType */ public static final int PROFESSIONALLY_PRODUCED_VALUE = 5; /** + * + * *
      * Transcribe spoken questions and queries into text.
      * 
@@ -298,6 +357,8 @@ public enum InteractionType */ public static final int VOICE_SEARCH_VALUE = 6; /** + * + * *
      * Transcribe voice commands, such as for controlling a device.
      * 
@@ -306,6 +367,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.
@@ -315,7 +378,6 @@ public enum InteractionType
      */
     public static final int DICTATION_VALUE = 8;
 
-
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -340,46 +402,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();
@@ -387,8 +460,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;
@@ -406,15 +478,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.
      * 
@@ -423,6 +498,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
@@ -433,6 +510,8 @@ public enum MicrophoneDistance
      */
     NEARFIELD(1),
     /**
+     *
+     *
      * 
      * The speaker if within 3 meters of the microphone.
      * 
@@ -441,6 +520,8 @@ public enum MicrophoneDistance */ MIDFIELD(2), /** + * + * *
      * The speaker is more than 3 meters away from the microphone.
      * 
@@ -452,6 +533,8 @@ public enum MicrophoneDistance ; /** + * + * *
      * Audio type is not known.
      * 
@@ -460,6 +543,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
@@ -470,6 +555,8 @@ public enum MicrophoneDistance
      */
     public static final int NEARFIELD_VALUE = 1;
     /**
+     *
+     *
      * 
      * The speaker if within 3 meters of the microphone.
      * 
@@ -478,6 +565,8 @@ public enum MicrophoneDistance */ public static final int MIDFIELD_VALUE = 2; /** + * + * *
      * The speaker is more than 3 meters away from the microphone.
      * 
@@ -486,7 +575,6 @@ public enum MicrophoneDistance */ public static final int FARFIELD_VALUE = 3; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -511,11 +599,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; } } @@ -523,29 +616,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(); @@ -553,8 +648,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; @@ -572,15 +666,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.
      * 
@@ -589,6 +686,8 @@ public enum OriginalMediaType */ ORIGINAL_MEDIA_TYPE_UNSPECIFIED(0), /** + * + * *
      * The speech data is an audio recording.
      * 
@@ -597,6 +696,8 @@ public enum OriginalMediaType */ AUDIO(1), /** + * + * *
      * The speech data originally recorded on a video.
      * 
@@ -608,6 +709,8 @@ public enum OriginalMediaType ; /** + * + * *
      * Unknown original media type.
      * 
@@ -616,6 +719,8 @@ public enum OriginalMediaType */ public static final int ORIGINAL_MEDIA_TYPE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * The speech data is an audio recording.
      * 
@@ -624,6 +729,8 @@ public enum OriginalMediaType */ public static final int AUDIO_VALUE = 1; /** + * + * *
      * The speech data originally recorded on a video.
      * 
@@ -632,7 +739,6 @@ public enum OriginalMediaType */ public static final int VIDEO_VALUE = 2; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -657,10 +763,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; } } @@ -668,29 +778,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(); @@ -698,8 +810,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; @@ -717,15 +828,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.
      * 
@@ -734,6 +848,8 @@ public enum RecordingDeviceType */ RECORDING_DEVICE_TYPE_UNSPECIFIED(0), /** + * + * *
      * Speech was recorded on a smartphone.
      * 
@@ -742,6 +858,8 @@ public enum RecordingDeviceType */ SMARTPHONE(1), /** + * + * *
      * Speech was recorded using a personal computer or tablet.
      * 
@@ -750,6 +868,8 @@ public enum RecordingDeviceType */ PC(2), /** + * + * *
      * Speech was recorded over a phone line.
      * 
@@ -758,6 +878,8 @@ public enum RecordingDeviceType */ PHONE_LINE(3), /** + * + * *
      * Speech was recorded in a vehicle.
      * 
@@ -766,6 +888,8 @@ public enum RecordingDeviceType */ VEHICLE(4), /** + * + * *
      * Speech was recorded outdoors.
      * 
@@ -774,6 +898,8 @@ public enum RecordingDeviceType */ OTHER_OUTDOOR_DEVICE(5), /** + * + * *
      * Speech was recorded indoors.
      * 
@@ -785,6 +911,8 @@ public enum RecordingDeviceType ; /** + * + * *
      * The recording device is unknown.
      * 
@@ -793,6 +921,8 @@ public enum RecordingDeviceType */ public static final int RECORDING_DEVICE_TYPE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Speech was recorded on a smartphone.
      * 
@@ -801,6 +931,8 @@ public enum RecordingDeviceType */ public static final int SMARTPHONE_VALUE = 1; /** + * + * *
      * Speech was recorded using a personal computer or tablet.
      * 
@@ -809,6 +941,8 @@ public enum RecordingDeviceType */ public static final int PC_VALUE = 2; /** + * + * *
      * Speech was recorded over a phone line.
      * 
@@ -817,6 +951,8 @@ public enum RecordingDeviceType */ public static final int PHONE_LINE_VALUE = 3; /** + * + * *
      * Speech was recorded in a vehicle.
      * 
@@ -825,6 +961,8 @@ public enum RecordingDeviceType */ public static final int VEHICLE_VALUE = 4; /** + * + * *
      * Speech was recorded outdoors.
      * 
@@ -833,6 +971,8 @@ public enum RecordingDeviceType */ public static final int OTHER_OUTDOOR_DEVICE_VALUE = 5; /** + * + * *
      * Speech was recorded indoors.
      * 
@@ -841,7 +981,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( @@ -866,14 +1005,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; } } @@ -881,29 +1028,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(); @@ -911,8 +1060,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; @@ -932,33 +1080,50 @@ private RecordingDeviceType(int value) { public static final int INTERACTION_TYPE_FIELD_NUMBER = 1; private int interactionType_; /** + * + * *
    * The use case most closely describing the audio content to be recognized.
    * 
* - * .google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType interaction_type = 1; + * .google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType interaction_type = 1; + * + * * @return The enum numeric value on the wire for interactionType. */ - @java.lang.Override public int getInteractionTypeValue() { + @java.lang.Override + public int getInteractionTypeValue() { return interactionType_; } /** + * + * *
    * The use case most closely describing the audio content to be recognized.
    * 
* - * .google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType interaction_type = 1; + * .google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType interaction_type = 1; + * + * * @return The interactionType. */ - @java.lang.Override public com.google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType getInteractionType() { + @java.lang.Override + public com.google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType + getInteractionType() { @SuppressWarnings("deprecation") - com.google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType result = com.google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType.valueOf(interactionType_); - return result == null ? com.google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType.UNRECOGNIZED : result; + com.google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType result = + com.google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType.valueOf( + interactionType_); + return result == null + ? com.google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType.UNRECOGNIZED + : result; } public static final int INDUSTRY_NAICS_CODE_OF_AUDIO_FIELD_NUMBER = 3; private int industryNaicsCodeOfAudio_; /** + * + * *
    * The industry vertical to which this speech recognition request most
    * closely applies. This is most indicative of the topics contained
@@ -967,6 +1132,7 @@ private RecordingDeviceType(int value) {
    * 
* * uint32 industry_naics_code_of_audio = 3; + * * @return The industryNaicsCodeOfAudio. */ @java.lang.Override @@ -977,87 +1143,140 @@ public int getIndustryNaicsCodeOfAudio() { public static final int MICROPHONE_DISTANCE_FIELD_NUMBER = 4; private int microphoneDistance_; /** + * + * *
    * The audio type that most closely describes the audio being recognized.
    * 
* - * .google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance microphone_distance = 4; + * + * .google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance microphone_distance = 4; + * + * * @return The enum numeric value on the wire for microphoneDistance. */ - @java.lang.Override public int getMicrophoneDistanceValue() { + @java.lang.Override + public int getMicrophoneDistanceValue() { return microphoneDistance_; } /** + * + * *
    * The audio type that most closely describes the audio being recognized.
    * 
* - * .google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance microphone_distance = 4; + * + * .google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance microphone_distance = 4; + * + * * @return The microphoneDistance. */ - @java.lang.Override public com.google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance getMicrophoneDistance() { + @java.lang.Override + public com.google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance + getMicrophoneDistance() { @SuppressWarnings("deprecation") - com.google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance result = com.google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance.valueOf(microphoneDistance_); - return result == null ? com.google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance.UNRECOGNIZED : result; + com.google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance result = + com.google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance.valueOf( + microphoneDistance_); + return result == null + ? com.google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance.UNRECOGNIZED + : result; } public static final int ORIGINAL_MEDIA_TYPE_FIELD_NUMBER = 5; private int originalMediaType_; /** + * + * *
    * The original media the speech was recorded on.
    * 
* - * .google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType original_media_type = 5; + * + * .google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType original_media_type = 5; + * + * * @return The enum numeric value on the wire for originalMediaType. */ - @java.lang.Override public int getOriginalMediaTypeValue() { + @java.lang.Override + public int getOriginalMediaTypeValue() { return originalMediaType_; } /** + * + * *
    * The original media the speech was recorded on.
    * 
* - * .google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType original_media_type = 5; + * + * .google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType original_media_type = 5; + * + * * @return The originalMediaType. */ - @java.lang.Override public com.google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType getOriginalMediaType() { + @java.lang.Override + public com.google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType + getOriginalMediaType() { @SuppressWarnings("deprecation") - com.google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType result = com.google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType.valueOf(originalMediaType_); - return result == null ? com.google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType.UNRECOGNIZED : result; + com.google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType result = + com.google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType.valueOf( + originalMediaType_); + return result == null + ? com.google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType.UNRECOGNIZED + : result; } public static final int RECORDING_DEVICE_TYPE_FIELD_NUMBER = 6; private int recordingDeviceType_; /** + * + * *
    * The type of device the speech was recorded with.
    * 
* - * .google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType recording_device_type = 6; + * + * .google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType recording_device_type = 6; + * + * * @return The enum numeric value on the wire for recordingDeviceType. */ - @java.lang.Override public int getRecordingDeviceTypeValue() { + @java.lang.Override + public int getRecordingDeviceTypeValue() { return recordingDeviceType_; } /** + * + * *
    * The type of device the speech was recorded with.
    * 
* - * .google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType recording_device_type = 6; + * + * .google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType recording_device_type = 6; + * + * * @return The recordingDeviceType. */ - @java.lang.Override public com.google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType getRecordingDeviceType() { + @java.lang.Override + public com.google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType + getRecordingDeviceType() { @SuppressWarnings("deprecation") - com.google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType result = com.google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType.valueOf(recordingDeviceType_); - return result == null ? com.google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType.UNRECOGNIZED : result; + com.google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType result = + com.google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType.valueOf( + recordingDeviceType_); + return result == null + ? com.google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType.UNRECOGNIZED + : result; } public static final int RECORDING_DEVICE_NAME_FIELD_NUMBER = 7; private volatile java.lang.Object recordingDeviceName_; /** + * + * *
    * The device used to make the recording.  Examples 'Nexus 5X' or
    * 'Polycom SoundStation IP 6000' or 'POTS' or 'VoIP' or
@@ -1065,6 +1284,7 @@ public int getIndustryNaicsCodeOfAudio() {
    * 
* * string recording_device_name = 7; + * * @return The recordingDeviceName. */ @java.lang.Override @@ -1073,14 +1293,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
@@ -1088,16 +1309,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 { @@ -1108,6 +1328,8 @@ public java.lang.String getRecordingDeviceName() { public static final int ORIGINAL_MIME_TYPE_FIELD_NUMBER = 8; private volatile java.lang.Object originalMimeType_; /** + * + * *
    * Mime type of the original audio file.  For example `audio/m4a`,
    * `audio/x-alaw-basic`, `audio/mp3`, `audio/3gpp`.
@@ -1116,6 +1338,7 @@ public java.lang.String getRecordingDeviceName() {
    * 
* * string original_mime_type = 8; + * * @return The originalMimeType. */ @java.lang.Override @@ -1124,14 +1347,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`.
@@ -1140,16 +1364,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 { @@ -1160,28 +1383,35 @@ public java.lang.String getOriginalMimeType() { public static final int OBFUSCATED_ID_FIELD_NUMBER = 9; private long obfuscatedId_; /** + * + * *
    * Obfuscated (privacy-protected) ID of the user, to identify number of
    * unique users using the service.
    * 
* * int64 obfuscated_id = 9 [deprecated = true]; + * * @return The obfuscatedId. */ @java.lang.Override - @java.lang.Deprecated public long getObfuscatedId() { + @java.lang.Deprecated + public long getObfuscatedId() { return obfuscatedId_; } public static final int AUDIO_TOPIC_FIELD_NUMBER = 10; private volatile java.lang.Object audioTopic_; /** + * + * *
    * Description of the content. Eg. "Recordings of federal supreme court
    * hearings from 2012".
    * 
* * string audio_topic = 10; + * * @return The audioTopic. */ @java.lang.Override @@ -1190,30 +1420,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 { @@ -1222,6 +1452,7 @@ public java.lang.String getAudioTopic() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1233,21 +1464,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_)) { @@ -1271,25 +1513,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_); @@ -1298,8 +1547,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_); @@ -1312,27 +1560,23 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1p1beta1.RecognitionMetadata)) { return super.equals(obj); } - com.google.cloud.speech.v1p1beta1.RecognitionMetadata other = (com.google.cloud.speech.v1p1beta1.RecognitionMetadata) obj; + com.google.cloud.speech.v1p1beta1.RecognitionMetadata other = + (com.google.cloud.speech.v1p1beta1.RecognitionMetadata) obj; if (interactionType_ != other.interactionType_) return false; - if (getIndustryNaicsCodeOfAudio() - != other.getIndustryNaicsCodeOfAudio()) return false; + if (getIndustryNaicsCodeOfAudio() != other.getIndustryNaicsCodeOfAudio()) return false; if (microphoneDistance_ != other.microphoneDistance_) return false; if (originalMediaType_ != other.originalMediaType_) return false; if (recordingDeviceType_ != other.recordingDeviceType_) return false; - if (!getRecordingDeviceName() - .equals(other.getRecordingDeviceName())) return false; - if (!getOriginalMimeType() - .equals(other.getOriginalMimeType())) return false; - if (getObfuscatedId() - != other.getObfuscatedId()) return false; - if (!getAudioTopic() - .equals(other.getAudioTopic())) return false; + if (!getRecordingDeviceName().equals(other.getRecordingDeviceName())) return false; + if (!getOriginalMimeType().equals(other.getOriginalMimeType())) return false; + if (getObfuscatedId() != other.getObfuscatedId()) return false; + if (!getAudioTopic().equals(other.getAudioTopic())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1359,8 +1603,7 @@ public int hashCode() { hash = (37 * hash) + ORIGINAL_MIME_TYPE_FIELD_NUMBER; hash = (53 * hash) + getOriginalMimeType().hashCode(); hash = (37 * hash) + OBFUSCATED_ID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getObfuscatedId()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getObfuscatedId()); hash = (37 * hash) + AUDIO_TOPIC_FIELD_NUMBER; hash = (53 * hash) + getAudioTopic().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); @@ -1369,117 +1612,127 @@ public int hashCode() { } public static com.google.cloud.speech.v1p1beta1.RecognitionMetadata parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.RecognitionMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.RecognitionMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.RecognitionMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.RecognitionMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.RecognitionMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.RecognitionMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1p1beta1.RecognitionMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.RecognitionMetadata parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.RecognitionMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1p1beta1.RecognitionMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.RecognitionMetadata parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.RecognitionMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.RecognitionMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.speech.v1p1beta1.RecognitionMetadata prototype) { + + public static Builder newBuilder( + com.google.cloud.speech.v1p1beta1.RecognitionMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Description of audio data to be recognized.
    * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.RecognitionMetadata} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1p1beta1.RecognitionMetadata) com.google.cloud.speech.v1p1beta1.RecognitionMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_RecognitionMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechProto + .internal_static_google_cloud_speech_v1p1beta1_RecognitionMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_RecognitionMetadata_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechProto + .internal_static_google_cloud_speech_v1p1beta1_RecognitionMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.RecognitionMetadata.class, com.google.cloud.speech.v1p1beta1.RecognitionMetadata.Builder.class); + com.google.cloud.speech.v1p1beta1.RecognitionMetadata.class, + com.google.cloud.speech.v1p1beta1.RecognitionMetadata.Builder.class); } // Construct using com.google.cloud.speech.v1p1beta1.RecognitionMetadata.newBuilder() @@ -1487,16 +1740,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -1522,9 +1774,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 @@ -1543,7 +1795,8 @@ public com.google.cloud.speech.v1p1beta1.RecognitionMetadata build() { @java.lang.Override public com.google.cloud.speech.v1p1beta1.RecognitionMetadata buildPartial() { - com.google.cloud.speech.v1p1beta1.RecognitionMetadata result = new com.google.cloud.speech.v1p1beta1.RecognitionMetadata(this); + com.google.cloud.speech.v1p1beta1.RecognitionMetadata result = + new com.google.cloud.speech.v1p1beta1.RecognitionMetadata(this); result.interactionType_ = interactionType_; result.industryNaicsCodeOfAudio_ = industryNaicsCodeOfAudio_; result.microphoneDistance_ = microphoneDistance_; @@ -1561,38 +1814,39 @@ public com.google.cloud.speech.v1p1beta1.RecognitionMetadata buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.speech.v1p1beta1.RecognitionMetadata) { - return mergeFrom((com.google.cloud.speech.v1p1beta1.RecognitionMetadata)other); + return mergeFrom((com.google.cloud.speech.v1p1beta1.RecognitionMetadata) other); } else { super.mergeFrom(other); return this; @@ -1600,7 +1854,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()); } @@ -1650,7 +1905,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.speech.v1p1beta1.RecognitionMetadata) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.speech.v1p1beta1.RecognitionMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1662,80 +1918,114 @@ public Builder mergeFrom( private int interactionType_ = 0; /** + * + * *
      * The use case most closely describing the audio content to be recognized.
      * 
* - * .google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType interaction_type = 1; + * + * .google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType interaction_type = 1; + * + * * @return The enum numeric value on the wire for interactionType. */ - @java.lang.Override public int getInteractionTypeValue() { + @java.lang.Override + public int getInteractionTypeValue() { return interactionType_; } /** + * + * *
      * The use case most closely describing the audio content to be recognized.
      * 
* - * .google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType interaction_type = 1; + * + * .google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType interaction_type = 1; + * + * * @param value The enum numeric value on the wire for interactionType to set. * @return This builder for chaining. */ public Builder setInteractionTypeValue(int value) { - + interactionType_ = value; onChanged(); return this; } /** + * + * *
      * The use case most closely describing the audio content to be recognized.
      * 
* - * .google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType interaction_type = 1; + * + * .google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType interaction_type = 1; + * + * * @return The interactionType. */ @java.lang.Override - public com.google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType getInteractionType() { + public com.google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType + getInteractionType() { @SuppressWarnings("deprecation") - com.google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType result = com.google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType.valueOf(interactionType_); - return result == null ? com.google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType.UNRECOGNIZED : result; + com.google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType result = + com.google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType.valueOf( + interactionType_); + return result == null + ? com.google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType.UNRECOGNIZED + : result; } /** + * + * *
      * The use case most closely describing the audio content to be recognized.
      * 
* - * .google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType interaction_type = 1; + * + * .google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType interaction_type = 1; + * + * * @param value The interactionType to set. * @return This builder for chaining. */ - public Builder setInteractionType(com.google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType value) { + public Builder setInteractionType( + com.google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType value) { if (value == null) { throw new NullPointerException(); } - + interactionType_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * The use case most closely describing the audio content to be recognized.
      * 
* - * .google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType interaction_type = 1; + * + * .google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType interaction_type = 1; + * + * * @return This builder for chaining. */ public Builder clearInteractionType() { - + interactionType_ = 0; onChanged(); return this; } - private int industryNaicsCodeOfAudio_ ; + private int industryNaicsCodeOfAudio_; /** + * + * *
      * The industry vertical to which this speech recognition request most
      * closely applies. This is most indicative of the topics contained
@@ -1744,6 +2034,7 @@ public Builder clearInteractionType() {
      * 
* * uint32 industry_naics_code_of_audio = 3; + * * @return The industryNaicsCodeOfAudio. */ @java.lang.Override @@ -1751,6 +2042,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
@@ -1759,16 +2052,19 @@ public int getIndustryNaicsCodeOfAudio() {
      * 
* * uint32 industry_naics_code_of_audio = 3; + * * @param value The industryNaicsCodeOfAudio to set. * @return This builder for chaining. */ public Builder setIndustryNaicsCodeOfAudio(int value) { - + industryNaicsCodeOfAudio_ = value; onChanged(); return this; } /** + * + * *
      * The industry vertical to which this speech recognition request most
      * closely applies. This is most indicative of the topics contained
@@ -1777,10 +2073,11 @@ public Builder setIndustryNaicsCodeOfAudio(int value) {
      * 
* * uint32 industry_naics_code_of_audio = 3; + * * @return This builder for chaining. */ public Builder clearIndustryNaicsCodeOfAudio() { - + industryNaicsCodeOfAudio_ = 0; onChanged(); return this; @@ -1788,73 +2085,105 @@ public Builder clearIndustryNaicsCodeOfAudio() { private int microphoneDistance_ = 0; /** + * + * *
      * The audio type that most closely describes the audio being recognized.
      * 
* - * .google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance microphone_distance = 4; + * + * .google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance microphone_distance = 4; + * + * * @return The enum numeric value on the wire for microphoneDistance. */ - @java.lang.Override public int getMicrophoneDistanceValue() { + @java.lang.Override + public int getMicrophoneDistanceValue() { return microphoneDistance_; } /** + * + * *
      * The audio type that most closely describes the audio being recognized.
      * 
* - * .google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance microphone_distance = 4; + * + * .google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance microphone_distance = 4; + * + * * @param value The enum numeric value on the wire for microphoneDistance to set. * @return This builder for chaining. */ public Builder setMicrophoneDistanceValue(int value) { - + microphoneDistance_ = value; onChanged(); return this; } /** + * + * *
      * The audio type that most closely describes the audio being recognized.
      * 
* - * .google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance microphone_distance = 4; + * + * .google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance microphone_distance = 4; + * + * * @return The microphoneDistance. */ @java.lang.Override - public com.google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance getMicrophoneDistance() { + public com.google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance + getMicrophoneDistance() { @SuppressWarnings("deprecation") - com.google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance result = com.google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance.valueOf(microphoneDistance_); - return result == null ? com.google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance.UNRECOGNIZED : result; + com.google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance result = + com.google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance.valueOf( + microphoneDistance_); + return result == null + ? com.google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance.UNRECOGNIZED + : result; } /** + * + * *
      * The audio type that most closely describes the audio being recognized.
      * 
* - * .google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance microphone_distance = 4; + * + * .google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance microphone_distance = 4; + * + * * @param value The microphoneDistance to set. * @return This builder for chaining. */ - public Builder setMicrophoneDistance(com.google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance value) { + public Builder setMicrophoneDistance( + com.google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance value) { if (value == null) { throw new NullPointerException(); } - + microphoneDistance_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * The audio type that most closely describes the audio being recognized.
      * 
* - * .google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance microphone_distance = 4; + * + * .google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance microphone_distance = 4; + * + * * @return This builder for chaining. */ public Builder clearMicrophoneDistance() { - + microphoneDistance_ = 0; onChanged(); return this; @@ -1862,73 +2191,105 @@ public Builder clearMicrophoneDistance() { private int originalMediaType_ = 0; /** + * + * *
      * The original media the speech was recorded on.
      * 
* - * .google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType original_media_type = 5; + * + * .google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType original_media_type = 5; + * + * * @return The enum numeric value on the wire for originalMediaType. */ - @java.lang.Override public int getOriginalMediaTypeValue() { + @java.lang.Override + public int getOriginalMediaTypeValue() { return originalMediaType_; } /** + * + * *
      * The original media the speech was recorded on.
      * 
* - * .google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType original_media_type = 5; + * + * .google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType original_media_type = 5; + * + * * @param value The enum numeric value on the wire for originalMediaType to set. * @return This builder for chaining. */ public Builder setOriginalMediaTypeValue(int value) { - + originalMediaType_ = value; onChanged(); return this; } /** + * + * *
      * The original media the speech was recorded on.
      * 
* - * .google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType original_media_type = 5; + * + * .google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType original_media_type = 5; + * + * * @return The originalMediaType. */ @java.lang.Override - public com.google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType getOriginalMediaType() { + public com.google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType + getOriginalMediaType() { @SuppressWarnings("deprecation") - com.google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType result = com.google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType.valueOf(originalMediaType_); - return result == null ? com.google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType.UNRECOGNIZED : result; + com.google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType result = + com.google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType.valueOf( + originalMediaType_); + return result == null + ? com.google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType.UNRECOGNIZED + : result; } /** + * + * *
      * The original media the speech was recorded on.
      * 
* - * .google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType original_media_type = 5; + * + * .google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType original_media_type = 5; + * + * * @param value The originalMediaType to set. * @return This builder for chaining. */ - public Builder setOriginalMediaType(com.google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType value) { + public Builder setOriginalMediaType( + com.google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType value) { if (value == null) { throw new NullPointerException(); } - + originalMediaType_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * The original media the speech was recorded on.
      * 
* - * .google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType original_media_type = 5; + * + * .google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType original_media_type = 5; + * + * * @return This builder for chaining. */ public Builder clearOriginalMediaType() { - + originalMediaType_ = 0; onChanged(); return this; @@ -1936,73 +2297,105 @@ public Builder clearOriginalMediaType() { private int recordingDeviceType_ = 0; /** + * + * *
      * The type of device the speech was recorded with.
      * 
* - * .google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType recording_device_type = 6; + * + * .google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType recording_device_type = 6; + * + * * @return The enum numeric value on the wire for recordingDeviceType. */ - @java.lang.Override public int getRecordingDeviceTypeValue() { + @java.lang.Override + public int getRecordingDeviceTypeValue() { return recordingDeviceType_; } /** + * + * *
      * The type of device the speech was recorded with.
      * 
* - * .google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType recording_device_type = 6; + * + * .google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType recording_device_type = 6; + * + * * @param value The enum numeric value on the wire for recordingDeviceType to set. * @return This builder for chaining. */ public Builder setRecordingDeviceTypeValue(int value) { - + recordingDeviceType_ = value; onChanged(); return this; } /** + * + * *
      * The type of device the speech was recorded with.
      * 
* - * .google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType recording_device_type = 6; + * + * .google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType recording_device_type = 6; + * + * * @return The recordingDeviceType. */ @java.lang.Override - public com.google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType getRecordingDeviceType() { + public com.google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType + getRecordingDeviceType() { @SuppressWarnings("deprecation") - com.google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType result = com.google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType.valueOf(recordingDeviceType_); - return result == null ? com.google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType.UNRECOGNIZED : result; + com.google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType result = + com.google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType.valueOf( + recordingDeviceType_); + return result == null + ? com.google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType.UNRECOGNIZED + : result; } /** + * + * *
      * The type of device the speech was recorded with.
      * 
* - * .google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType recording_device_type = 6; + * + * .google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType recording_device_type = 6; + * + * * @param value The recordingDeviceType to set. * @return This builder for chaining. */ - public Builder setRecordingDeviceType(com.google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType value) { + public Builder setRecordingDeviceType( + com.google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType value) { if (value == null) { throw new NullPointerException(); } - + recordingDeviceType_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * The type of device the speech was recorded with.
      * 
* - * .google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType recording_device_type = 6; + * + * .google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType recording_device_type = 6; + * + * * @return This builder for chaining. */ public Builder clearRecordingDeviceType() { - + recordingDeviceType_ = 0; onChanged(); return this; @@ -2010,6 +2403,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
@@ -2017,13 +2412,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; @@ -2032,6 +2427,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
@@ -2039,15 +2436,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 { @@ -2055,6 +2451,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
@@ -2062,20 +2460,22 @@ public java.lang.String getRecordingDeviceName() {
      * 
* * string recording_device_name = 7; + * * @param value The recordingDeviceName to set. * @return This builder for chaining. */ - public Builder setRecordingDeviceName( - java.lang.String value) { + public Builder setRecordingDeviceName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + recordingDeviceName_ = value; onChanged(); return this; } /** + * + * *
      * The device used to make the recording.  Examples 'Nexus 5X' or
      * 'Polycom SoundStation IP 6000' or 'POTS' or 'VoIP' or
@@ -2083,15 +2483,18 @@ public Builder setRecordingDeviceName(
      * 
* * string recording_device_name = 7; + * * @return This builder for chaining. */ public Builder clearRecordingDeviceName() { - + recordingDeviceName_ = getDefaultInstance().getRecordingDeviceName(); onChanged(); return this; } /** + * + * *
      * The device used to make the recording.  Examples 'Nexus 5X' or
      * 'Polycom SoundStation IP 6000' or 'POTS' or 'VoIP' or
@@ -2099,16 +2502,16 @@ public Builder clearRecordingDeviceName() {
      * 
* * string recording_device_name = 7; + * * @param value The bytes for recordingDeviceName to set. * @return This builder for chaining. */ - public Builder setRecordingDeviceNameBytes( - com.google.protobuf.ByteString value) { + public Builder setRecordingDeviceNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + recordingDeviceName_ = value; onChanged(); return this; @@ -2116,6 +2519,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`.
@@ -2124,13 +2529,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; @@ -2139,6 +2544,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`.
@@ -2147,15 +2554,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 { @@ -2163,6 +2569,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`.
@@ -2171,20 +2579,22 @@ public java.lang.String getOriginalMimeType() {
      * 
* * string original_mime_type = 8; + * * @param value The originalMimeType to set. * @return This builder for chaining. */ - public Builder setOriginalMimeType( - java.lang.String value) { + public Builder setOriginalMimeType(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + originalMimeType_ = value; onChanged(); return this; } /** + * + * *
      * Mime type of the original audio file.  For example `audio/m4a`,
      * `audio/x-alaw-basic`, `audio/mp3`, `audio/3gpp`.
@@ -2193,15 +2603,18 @@ public Builder setOriginalMimeType(
      * 
* * string original_mime_type = 8; + * * @return This builder for chaining. */ public Builder clearOriginalMimeType() { - + originalMimeType_ = getDefaultInstance().getOriginalMimeType(); onChanged(); return this; } /** + * + * *
      * Mime type of the original audio file.  For example `audio/m4a`,
      * `audio/x-alaw-basic`, `audio/mp3`, `audio/3gpp`.
@@ -2210,62 +2623,74 @@ public Builder clearOriginalMimeType() {
      * 
* * string original_mime_type = 8; + * * @param value The bytes for originalMimeType to set. * @return This builder for chaining. */ - public Builder setOriginalMimeTypeBytes( - com.google.protobuf.ByteString value) { + public Builder setOriginalMimeTypeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + originalMimeType_ = value; onChanged(); return this; } - private long obfuscatedId_ ; + private long obfuscatedId_; /** + * + * *
      * Obfuscated (privacy-protected) ID of the user, to identify number of
      * unique users using the service.
      * 
* * int64 obfuscated_id = 9 [deprecated = true]; + * * @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]; + * * @param value The obfuscatedId to set. * @return This builder for chaining. */ - @java.lang.Deprecated public Builder setObfuscatedId(long value) { - + @java.lang.Deprecated + public Builder setObfuscatedId(long value) { + obfuscatedId_ = value; onChanged(); return this; } /** + * + * *
      * Obfuscated (privacy-protected) ID of the user, to identify number of
      * unique users using the service.
      * 
* * int64 obfuscated_id = 9 [deprecated = true]; + * * @return This builder for chaining. */ - @java.lang.Deprecated public Builder clearObfuscatedId() { - + @java.lang.Deprecated + public Builder clearObfuscatedId() { + obfuscatedId_ = 0L; onChanged(); return this; @@ -2273,19 +2698,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; @@ -2294,21 +2721,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 { @@ -2316,64 +2744,71 @@ public java.lang.String getAudioTopic() { } } /** + * + * *
      * Description of the content. Eg. "Recordings of federal supreme court
      * hearings from 2012".
      * 
* * string audio_topic = 10; + * * @param value The audioTopic to set. * @return This builder for chaining. */ - public Builder setAudioTopic( - java.lang.String value) { + public Builder setAudioTopic(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + audioTopic_ = value; onChanged(); return this; } /** + * + * *
      * Description of the content. Eg. "Recordings of federal supreme court
      * hearings from 2012".
      * 
* * string audio_topic = 10; + * * @return This builder for chaining. */ public Builder clearAudioTopic() { - + audioTopic_ = getDefaultInstance().getAudioTopic(); onChanged(); return this; } /** + * + * *
      * Description of the content. Eg. "Recordings of federal supreme court
      * hearings from 2012".
      * 
* * string audio_topic = 10; + * * @param value The bytes for audioTopic to set. * @return This builder for chaining. */ - public Builder setAudioTopicBytes( - com.google.protobuf.ByteString value) { + public Builder setAudioTopicBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + audioTopic_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2383,12 +2818,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(); } @@ -2397,16 +2832,16 @@ public static com.google.cloud.speech.v1p1beta1.RecognitionMetadata getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RecognitionMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new RecognitionMetadata(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RecognitionMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RecognitionMetadata(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2421,6 +2856,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.RecognitionMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionMetadataOrBuilder.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionMetadataOrBuilder.java similarity index 70% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionMetadataOrBuilder.java rename to proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionMetadataOrBuilder.java index f108bbf44..463ce17b9 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionMetadataOrBuilder.java +++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionMetadataOrBuilder.java @@ -1,32 +1,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/v1p1beta1/cloud_speech.proto package com.google.cloud.speech.v1p1beta1; -public interface RecognitionMetadataOrBuilder extends +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 +61,102 @@ public interface RecognitionMetadataOrBuilder extends
    * 
* * 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 +164,13 @@ public interface RecognitionMetadataOrBuilder extends
    * 
* * 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 +178,14 @@ public interface RecognitionMetadataOrBuilder extends
    * 
* * 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 +194,13 @@ public interface RecognitionMetadataOrBuilder extends
    * 
* * 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,41 +209,50 @@ public interface RecognitionMetadataOrBuilder extends
    * 
* * 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]; + * * @return The obfuscatedId. */ - @java.lang.Deprecated long getObfuscatedId(); + @java.lang.Deprecated + long getObfuscatedId(); /** + * + * *
    * Description of the content. Eg. "Recordings of federal supreme court
    * hearings from 2012".
    * 
* * string audio_topic = 10; + * * @return The audioTopic. */ java.lang.String getAudioTopic(); /** + * + * *
    * Description of the content. Eg. "Recordings of federal supreme court
    * hearings from 2012".
    * 
* * string audio_topic = 10; + * * @return The bytes for audioTopic. */ - com.google.protobuf.ByteString - getAudioTopicBytes(); + com.google.protobuf.ByteString getAudioTopicBytes(); } diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeRequest.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeRequest.java similarity index 61% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeRequest.java rename to proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeRequest.java index d72b823cf..24dc5f5a2 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeRequest.java +++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeRequest.java @@ -1,39 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech.proto package com.google.cloud.speech.v1p1beta1; /** + * + * *
  * The top-level message sent by the client for the `Recognize` method.
  * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.RecognizeRequest} */ -public final class RecognizeRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class RecognizeRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v1p1beta1.RecognizeRequest) RecognizeRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use RecognizeRequest.newBuilder() to construct. private RecognizeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private RecognizeRequest() { - } + + private RecognizeRequest() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new RecognizeRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private RecognizeRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,73 +68,88 @@ private RecognizeRequest( case 0: done = true; break; - case 10: { - com.google.cloud.speech.v1p1beta1.RecognitionConfig.Builder subBuilder = null; - if (config_ != null) { - subBuilder = config_.toBuilder(); - } - config_ = input.readMessage(com.google.cloud.speech.v1p1beta1.RecognitionConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(config_); - config_ = subBuilder.buildPartial(); - } + case 10: + { + com.google.cloud.speech.v1p1beta1.RecognitionConfig.Builder subBuilder = null; + if (config_ != null) { + subBuilder = config_.toBuilder(); + } + config_ = + input.readMessage( + com.google.cloud.speech.v1p1beta1.RecognitionConfig.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(config_); + config_ = subBuilder.buildPartial(); + } - break; - } - case 18: { - com.google.cloud.speech.v1p1beta1.RecognitionAudio.Builder subBuilder = null; - if (audio_ != null) { - subBuilder = audio_.toBuilder(); - } - audio_ = input.readMessage(com.google.cloud.speech.v1p1beta1.RecognitionAudio.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(audio_); - audio_ = subBuilder.buildPartial(); + break; } + case 18: + { + com.google.cloud.speech.v1p1beta1.RecognitionAudio.Builder subBuilder = null; + if (audio_ != null) { + subBuilder = audio_.toBuilder(); + } + audio_ = + input.readMessage( + com.google.cloud.speech.v1p1beta1.RecognitionAudio.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(audio_); + audio_ = subBuilder.buildPartial(); + } - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_RecognizeRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechProto + .internal_static_google_cloud_speech_v1p1beta1_RecognizeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_RecognizeRequest_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechProto + .internal_static_google_cloud_speech_v1p1beta1_RecognizeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.RecognizeRequest.class, com.google.cloud.speech.v1p1beta1.RecognizeRequest.Builder.class); + com.google.cloud.speech.v1p1beta1.RecognizeRequest.class, + com.google.cloud.speech.v1p1beta1.RecognizeRequest.Builder.class); } public static final int CONFIG_FIELD_NUMBER = 1; private com.google.cloud.speech.v1p1beta1.RecognitionConfig config_; /** + * + * *
    * Required. Provides information to the recognizer that specifies how to
    * process the request.
    * 
* - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the config field is set. */ @java.lang.Override @@ -126,25 +157,36 @@ public boolean hasConfig() { return config_ != null; } /** + * + * *
    * Required. Provides information to the recognizer that specifies how to
    * process the request.
    * 
* - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The config. */ @java.lang.Override public com.google.cloud.speech.v1p1beta1.RecognitionConfig getConfig() { - return config_ == null ? com.google.cloud.speech.v1p1beta1.RecognitionConfig.getDefaultInstance() : config_; + return config_ == null + ? com.google.cloud.speech.v1p1beta1.RecognitionConfig.getDefaultInstance() + : config_; } /** + * + * *
    * Required. Provides information to the recognizer that specifies how to
    * process the request.
    * 
* - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.speech.v1p1beta1.RecognitionConfigOrBuilder getConfigOrBuilder() { @@ -154,11 +196,16 @@ public com.google.cloud.speech.v1p1beta1.RecognitionConfigOrBuilder getConfigOrB public static final int AUDIO_FIELD_NUMBER = 2; private com.google.cloud.speech.v1p1beta1.RecognitionAudio audio_; /** + * + * *
    * Required. The audio data to be recognized.
    * 
* - * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the audio field is set. */ @java.lang.Override @@ -166,23 +213,34 @@ public boolean hasAudio() { return audio_ != null; } /** + * + * *
    * Required. The audio data to be recognized.
    * 
* - * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The audio. */ @java.lang.Override public com.google.cloud.speech.v1p1beta1.RecognitionAudio getAudio() { - return audio_ == null ? com.google.cloud.speech.v1p1beta1.RecognitionAudio.getDefaultInstance() : audio_; + return audio_ == null + ? com.google.cloud.speech.v1p1beta1.RecognitionAudio.getDefaultInstance() + : audio_; } /** + * + * *
    * Required. The audio data to be recognized.
    * 
* - * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.speech.v1p1beta1.RecognitionAudioOrBuilder getAudioOrBuilder() { @@ -190,6 +248,7 @@ public com.google.cloud.speech.v1p1beta1.RecognitionAudioOrBuilder getAudioOrBui } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -201,8 +260,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (config_ != null) { output.writeMessage(1, getConfig()); } @@ -219,12 +277,10 @@ public int getSerializedSize() { size = 0; if (config_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getConfig()); } if (audio_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getAudio()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getAudio()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -234,22 +290,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1p1beta1.RecognizeRequest)) { return super.equals(obj); } - com.google.cloud.speech.v1p1beta1.RecognizeRequest other = (com.google.cloud.speech.v1p1beta1.RecognizeRequest) obj; + com.google.cloud.speech.v1p1beta1.RecognizeRequest other = + (com.google.cloud.speech.v1p1beta1.RecognizeRequest) obj; if (hasConfig() != other.hasConfig()) return false; if (hasConfig()) { - if (!getConfig() - .equals(other.getConfig())) return false; + if (!getConfig().equals(other.getConfig())) return false; } if (hasAudio() != other.hasAudio()) return false; if (hasAudio()) { - if (!getAudio() - .equals(other.getAudio())) return false; + if (!getAudio().equals(other.getAudio())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -276,117 +331,126 @@ public int hashCode() { } public static com.google.cloud.speech.v1p1beta1.RecognizeRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.RecognizeRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.RecognizeRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.RecognizeRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.RecognizeRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.RecognizeRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.RecognizeRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1p1beta1.RecognizeRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.RecognizeRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.RecognizeRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1p1beta1.RecognizeRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.RecognizeRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.RecognizeRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.RecognizeRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.speech.v1p1beta1.RecognizeRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The top-level message sent by the client for the `Recognize` method.
    * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.RecognizeRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1p1beta1.RecognizeRequest) com.google.cloud.speech.v1p1beta1.RecognizeRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_RecognizeRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechProto + .internal_static_google_cloud_speech_v1p1beta1_RecognizeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_RecognizeRequest_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechProto + .internal_static_google_cloud_speech_v1p1beta1_RecognizeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.RecognizeRequest.class, com.google.cloud.speech.v1p1beta1.RecognizeRequest.Builder.class); + com.google.cloud.speech.v1p1beta1.RecognizeRequest.class, + com.google.cloud.speech.v1p1beta1.RecognizeRequest.Builder.class); } // Construct using com.google.cloud.speech.v1p1beta1.RecognizeRequest.newBuilder() @@ -394,16 +458,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -423,9 +486,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 @@ -444,7 +507,8 @@ public com.google.cloud.speech.v1p1beta1.RecognizeRequest build() { @java.lang.Override public com.google.cloud.speech.v1p1beta1.RecognizeRequest buildPartial() { - com.google.cloud.speech.v1p1beta1.RecognizeRequest result = new com.google.cloud.speech.v1p1beta1.RecognizeRequest(this); + com.google.cloud.speech.v1p1beta1.RecognizeRequest result = + new com.google.cloud.speech.v1p1beta1.RecognizeRequest(this); if (configBuilder_ == null) { result.config_ = config_; } else { @@ -463,38 +527,39 @@ public com.google.cloud.speech.v1p1beta1.RecognizeRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.speech.v1p1beta1.RecognizeRequest) { - return mergeFrom((com.google.cloud.speech.v1p1beta1.RecognizeRequest)other); + return mergeFrom((com.google.cloud.speech.v1p1beta1.RecognizeRequest) other); } else { super.mergeFrom(other); return this; @@ -502,7 +567,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()); } @@ -528,7 +594,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.speech.v1p1beta1.RecognizeRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.speech.v1p1beta1.RecognizeRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -540,42 +607,61 @@ public Builder mergeFrom( private com.google.cloud.speech.v1p1beta1.RecognitionConfig config_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.RecognitionConfig, com.google.cloud.speech.v1p1beta1.RecognitionConfig.Builder, com.google.cloud.speech.v1p1beta1.RecognitionConfigOrBuilder> configBuilder_; + com.google.cloud.speech.v1p1beta1.RecognitionConfig, + com.google.cloud.speech.v1p1beta1.RecognitionConfig.Builder, + com.google.cloud.speech.v1p1beta1.RecognitionConfigOrBuilder> + configBuilder_; /** + * + * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the config field is set. */ public boolean hasConfig() { return configBuilder_ != null || config_ != null; } /** + * + * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The config. */ public com.google.cloud.speech.v1p1beta1.RecognitionConfig getConfig() { if (configBuilder_ == null) { - return config_ == null ? com.google.cloud.speech.v1p1beta1.RecognitionConfig.getDefaultInstance() : config_; + return config_ == null + ? com.google.cloud.speech.v1p1beta1.RecognitionConfig.getDefaultInstance() + : config_; } else { return configBuilder_.getMessage(); } } /** + * + * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setConfig(com.google.cloud.speech.v1p1beta1.RecognitionConfig value) { if (configBuilder_ == null) { @@ -591,12 +677,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) { @@ -610,18 +700,24 @@ public Builder setConfig( return this; } /** + * + * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeConfig(com.google.cloud.speech.v1p1beta1.RecognitionConfig value) { if (configBuilder_ == null) { if (config_ != null) { config_ = - com.google.cloud.speech.v1p1beta1.RecognitionConfig.newBuilder(config_).mergeFrom(value).buildPartial(); + com.google.cloud.speech.v1p1beta1.RecognitionConfig.newBuilder(config_) + .mergeFrom(value) + .buildPartial(); } else { config_ = value; } @@ -633,12 +729,16 @@ public Builder mergeConfig(com.google.cloud.speech.v1p1beta1.RecognitionConfig v return this; } /** + * + * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearConfig() { if (configBuilder_ == null) { @@ -652,51 +752,67 @@ public Builder clearConfig() { return this; } /** + * + * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.speech.v1p1beta1.RecognitionConfig.Builder getConfigBuilder() { - + onChanged(); return getConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.speech.v1p1beta1.RecognitionConfigOrBuilder getConfigOrBuilder() { if (configBuilder_ != null) { return configBuilder_.getMessageOrBuilder(); } else { - return config_ == null ? - com.google.cloud.speech.v1p1beta1.RecognitionConfig.getDefaultInstance() : config_; + return config_ == null + ? com.google.cloud.speech.v1p1beta1.RecognitionConfig.getDefaultInstance() + : config_; } } /** + * + * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.RecognitionConfig, com.google.cloud.speech.v1p1beta1.RecognitionConfig.Builder, com.google.cloud.speech.v1p1beta1.RecognitionConfigOrBuilder> + com.google.cloud.speech.v1p1beta1.RecognitionConfig, + com.google.cloud.speech.v1p1beta1.RecognitionConfig.Builder, + com.google.cloud.speech.v1p1beta1.RecognitionConfigOrBuilder> getConfigFieldBuilder() { if (configBuilder_ == null) { - configBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.RecognitionConfig, com.google.cloud.speech.v1p1beta1.RecognitionConfig.Builder, com.google.cloud.speech.v1p1beta1.RecognitionConfigOrBuilder>( - getConfig(), - getParentForChildren(), - isClean()); + configBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v1p1beta1.RecognitionConfig, + com.google.cloud.speech.v1p1beta1.RecognitionConfig.Builder, + com.google.cloud.speech.v1p1beta1.RecognitionConfigOrBuilder>( + getConfig(), getParentForChildren(), isClean()); config_ = null; } return configBuilder_; @@ -704,39 +820,58 @@ public com.google.cloud.speech.v1p1beta1.RecognitionConfigOrBuilder getConfigOrB private com.google.cloud.speech.v1p1beta1.RecognitionAudio audio_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.RecognitionAudio, com.google.cloud.speech.v1p1beta1.RecognitionAudio.Builder, com.google.cloud.speech.v1p1beta1.RecognitionAudioOrBuilder> audioBuilder_; + com.google.cloud.speech.v1p1beta1.RecognitionAudio, + com.google.cloud.speech.v1p1beta1.RecognitionAudio.Builder, + com.google.cloud.speech.v1p1beta1.RecognitionAudioOrBuilder> + audioBuilder_; /** + * + * *
      * Required. The audio data to be recognized.
      * 
* - * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the audio field is set. */ public boolean hasAudio() { return audioBuilder_ != null || audio_ != null; } /** + * + * *
      * Required. The audio data to be recognized.
      * 
* - * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The audio. */ public com.google.cloud.speech.v1p1beta1.RecognitionAudio getAudio() { if (audioBuilder_ == null) { - return audio_ == null ? com.google.cloud.speech.v1p1beta1.RecognitionAudio.getDefaultInstance() : audio_; + return audio_ == null + ? com.google.cloud.speech.v1p1beta1.RecognitionAudio.getDefaultInstance() + : audio_; } else { return audioBuilder_.getMessage(); } } /** + * + * *
      * Required. The audio data to be recognized.
      * 
* - * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setAudio(com.google.cloud.speech.v1p1beta1.RecognitionAudio value) { if (audioBuilder_ == null) { @@ -752,11 +887,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) { @@ -770,17 +909,23 @@ public Builder setAudio( return this; } /** + * + * *
      * Required. The audio data to be recognized.
      * 
* - * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeAudio(com.google.cloud.speech.v1p1beta1.RecognitionAudio value) { if (audioBuilder_ == null) { if (audio_ != null) { audio_ = - com.google.cloud.speech.v1p1beta1.RecognitionAudio.newBuilder(audio_).mergeFrom(value).buildPartial(); + com.google.cloud.speech.v1p1beta1.RecognitionAudio.newBuilder(audio_) + .mergeFrom(value) + .buildPartial(); } else { audio_ = value; } @@ -792,11 +937,15 @@ public Builder mergeAudio(com.google.cloud.speech.v1p1beta1.RecognitionAudio val return this; } /** + * + * *
      * Required. The audio data to be recognized.
      * 
* - * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearAudio() { if (audioBuilder_ == null) { @@ -810,55 +959,71 @@ public Builder clearAudio() { return this; } /** + * + * *
      * Required. The audio data to be recognized.
      * 
* - * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.speech.v1p1beta1.RecognitionAudio.Builder getAudioBuilder() { - + onChanged(); return getAudioFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The audio data to be recognized.
      * 
* - * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.speech.v1p1beta1.RecognitionAudioOrBuilder getAudioOrBuilder() { if (audioBuilder_ != null) { return audioBuilder_.getMessageOrBuilder(); } else { - return audio_ == null ? - com.google.cloud.speech.v1p1beta1.RecognitionAudio.getDefaultInstance() : audio_; + return audio_ == null + ? com.google.cloud.speech.v1p1beta1.RecognitionAudio.getDefaultInstance() + : audio_; } } /** + * + * *
      * Required. The audio data to be recognized.
      * 
* - * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.RecognitionAudio, com.google.cloud.speech.v1p1beta1.RecognitionAudio.Builder, com.google.cloud.speech.v1p1beta1.RecognitionAudioOrBuilder> + com.google.cloud.speech.v1p1beta1.RecognitionAudio, + com.google.cloud.speech.v1p1beta1.RecognitionAudio.Builder, + com.google.cloud.speech.v1p1beta1.RecognitionAudioOrBuilder> getAudioFieldBuilder() { if (audioBuilder_ == null) { - audioBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.RecognitionAudio, com.google.cloud.speech.v1p1beta1.RecognitionAudio.Builder, com.google.cloud.speech.v1p1beta1.RecognitionAudioOrBuilder>( - getAudio(), - getParentForChildren(), - isClean()); + audioBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v1p1beta1.RecognitionAudio, + com.google.cloud.speech.v1p1beta1.RecognitionAudio.Builder, + com.google.cloud.speech.v1p1beta1.RecognitionAudioOrBuilder>( + getAudio(), getParentForChildren(), isClean()); audio_ = null; } return audioBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -868,12 +1033,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(); } @@ -882,16 +1047,16 @@ public static com.google.cloud.speech.v1p1beta1.RecognizeRequest getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RecognizeRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new RecognizeRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RecognizeRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RecognizeRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -906,6 +1071,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.RecognizeRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeRequestOrBuilder.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeRequestOrBuilder.java new file mode 100644 index 000000000..2f3e881fd --- /dev/null +++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeRequestOrBuilder.java @@ -0,0 +1,110 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/speech/v1p1beta1/cloud_speech.proto + +package com.google.cloud.speech.v1p1beta1; + +public interface RecognizeRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1p1beta1.RecognizeRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Provides information to the recognizer that specifies how to
+   * process the request.
+   * 
+ * + * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the config field is set. + */ + boolean hasConfig(); + /** + * + * + *
+   * Required. Provides information to the recognizer that specifies how to
+   * process the request.
+   * 
+ * + * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The config. + */ + com.google.cloud.speech.v1p1beta1.RecognitionConfig getConfig(); + /** + * + * + *
+   * Required. Provides information to the recognizer that specifies how to
+   * process the request.
+   * 
+ * + * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.speech.v1p1beta1.RecognitionConfigOrBuilder getConfigOrBuilder(); + + /** + * + * + *
+   * Required. The audio data to be recognized.
+   * 
+ * + * + * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the audio field is set. + */ + boolean hasAudio(); + /** + * + * + *
+   * Required. The audio data to be recognized.
+   * 
+ * + * + * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The audio. + */ + com.google.cloud.speech.v1p1beta1.RecognitionAudio getAudio(); + /** + * + * + *
+   * Required. The audio data to be recognized.
+   * 
+ * + * + * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.speech.v1p1beta1.RecognitionAudioOrBuilder getAudioOrBuilder(); +} diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeResponse.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeResponse.java similarity index 73% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeResponse.java rename to proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeResponse.java index 5f3c35418..6da45b951 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeResponse.java +++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeResponse.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech.proto package com.google.cloud.speech.v1p1beta1; /** + * + * *
  * The only message returned to the client by the `Recognize` method. It
  * contains the result as zero or more sequential `SpeechRecognitionResult`
@@ -12,31 +29,31 @@
  *
  * Protobuf type {@code google.cloud.speech.v1p1beta1.RecognizeResponse}
  */
-public final class RecognizeResponse extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class RecognizeResponse extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.speech.v1p1beta1.RecognizeResponse)
     RecognizeResponseOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use RecognizeResponse.newBuilder() to construct.
   private RecognizeResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private RecognizeResponse() {
     results_ = java.util.Collections.emptyList();
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new RecognizeResponse();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private RecognizeResponse(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -56,42 +73,48 @@ private RecognizeResponse(
           case 0:
             done = true;
             break;
-          case 18: {
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              results_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000001;
-            }
-            results_.add(
-                input.readMessage(com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult.parser(), extensionRegistry));
-            break;
-          }
-          case 26: {
-            com.google.protobuf.Duration.Builder subBuilder = null;
-            if (totalBilledTime_ != null) {
-              subBuilder = totalBilledTime_.toBuilder();
-            }
-            totalBilledTime_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(totalBilledTime_);
-              totalBilledTime_ = subBuilder.buildPartial();
+          case 18:
+            {
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                results_ =
+                    new java.util.ArrayList<
+                        com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult>();
+                mutable_bitField0_ |= 0x00000001;
+              }
+              results_.add(
+                  input.readMessage(
+                      com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult.parser(),
+                      extensionRegistry));
+              break;
             }
+          case 26:
+            {
+              com.google.protobuf.Duration.Builder subBuilder = null;
+              if (totalBilledTime_ != null) {
+                subBuilder = totalBilledTime_.toBuilder();
+              }
+              totalBilledTime_ =
+                  input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(totalBilledTime_);
+                totalBilledTime_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         results_ = java.util.Collections.unmodifiableList(results_);
@@ -100,22 +123,27 @@ private RecognizeResponse(
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_RecognizeResponse_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.speech.v1p1beta1.SpeechProto
+        .internal_static_google_cloud_speech_v1p1beta1_RecognizeResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_RecognizeResponse_fieldAccessorTable
+    return com.google.cloud.speech.v1p1beta1.SpeechProto
+        .internal_static_google_cloud_speech_v1p1beta1_RecognizeResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v1p1beta1.RecognizeResponse.class, com.google.cloud.speech.v1p1beta1.RecognizeResponse.Builder.class);
+            com.google.cloud.speech.v1p1beta1.RecognizeResponse.class,
+            com.google.cloud.speech.v1p1beta1.RecognizeResponse.Builder.class);
   }
 
   public static final int RESULTS_FIELD_NUMBER = 2;
   private java.util.List results_;
   /**
+   *
+   *
    * 
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -124,10 +152,13 @@ private RecognizeResponse(
    * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionResult results = 2;
    */
   @java.lang.Override
-  public java.util.List getResultsList() {
+  public java.util.List
+      getResultsList() {
     return results_;
   }
   /**
+   *
+   *
    * 
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -136,11 +167,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.
@@ -153,6 +187,8 @@ public int getResultsCount() {
     return results_.size();
   }
   /**
+   *
+   *
    * 
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -165,6 +201,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.
@@ -181,11 +219,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 @@ -193,18 +234,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.
    * 
@@ -217,6 +265,7 @@ public com.google.protobuf.DurationOrBuilder getTotalBilledTimeOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -228,8 +277,7 @@ public final boolean isInitialized() { } @java.lang.Override - 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)); } @@ -246,12 +294,10 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < results_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, results_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, results_.get(i)); } if (totalBilledTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getTotalBilledTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getTotalBilledTime()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -261,19 +307,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1p1beta1.RecognizeResponse)) { return super.equals(obj); } - com.google.cloud.speech.v1p1beta1.RecognizeResponse other = (com.google.cloud.speech.v1p1beta1.RecognizeResponse) obj; + com.google.cloud.speech.v1p1beta1.RecognizeResponse other = + (com.google.cloud.speech.v1p1beta1.RecognizeResponse) obj; - if (!getResultsList() - .equals(other.getResultsList())) return false; + if (!getResultsList().equals(other.getResultsList())) return false; if (hasTotalBilledTime() != other.hasTotalBilledTime()) return false; if (hasTotalBilledTime()) { - if (!getTotalBilledTime() - .equals(other.getTotalBilledTime())) return false; + if (!getTotalBilledTime().equals(other.getTotalBilledTime())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -300,96 +345,103 @@ public int hashCode() { } public static com.google.cloud.speech.v1p1beta1.RecognizeResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.RecognizeResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.RecognizeResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.RecognizeResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.RecognizeResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.RecognizeResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.RecognizeResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1p1beta1.RecognizeResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.RecognizeResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.RecognizeResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1p1beta1.RecognizeResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.RecognizeResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.RecognizeResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.RecognizeResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.speech.v1p1beta1.RecognizeResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The only message returned to the client by the `Recognize` method. It
    * contains the result as zero or more sequential `SpeechRecognitionResult`
@@ -398,21 +450,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.speech.v1p1beta1.RecognizeResponse}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1p1beta1.RecognizeResponse)
       com.google.cloud.speech.v1p1beta1.RecognizeResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_RecognizeResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.speech.v1p1beta1.SpeechProto
+          .internal_static_google_cloud_speech_v1p1beta1_RecognizeResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_RecognizeResponse_fieldAccessorTable
+      return com.google.cloud.speech.v1p1beta1.SpeechProto
+          .internal_static_google_cloud_speech_v1p1beta1_RecognizeResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v1p1beta1.RecognizeResponse.class, com.google.cloud.speech.v1p1beta1.RecognizeResponse.Builder.class);
+              com.google.cloud.speech.v1p1beta1.RecognizeResponse.class,
+              com.google.cloud.speech.v1p1beta1.RecognizeResponse.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v1p1beta1.RecognizeResponse.newBuilder()
@@ -420,17 +474,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
         getResultsFieldBuilder();
       }
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -450,9 +504,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
@@ -471,7 +525,8 @@ public com.google.cloud.speech.v1p1beta1.RecognizeResponse build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v1p1beta1.RecognizeResponse buildPartial() {
-      com.google.cloud.speech.v1p1beta1.RecognizeResponse result = new com.google.cloud.speech.v1p1beta1.RecognizeResponse(this);
+      com.google.cloud.speech.v1p1beta1.RecognizeResponse result =
+          new com.google.cloud.speech.v1p1beta1.RecognizeResponse(this);
       int from_bitField0_ = bitField0_;
       if (resultsBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
@@ -495,38 +550,39 @@ public com.google.cloud.speech.v1p1beta1.RecognizeResponse buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.speech.v1p1beta1.RecognizeResponse) {
-        return mergeFrom((com.google.cloud.speech.v1p1beta1.RecognizeResponse)other);
+        return mergeFrom((com.google.cloud.speech.v1p1beta1.RecognizeResponse) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -534,7 +590,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()) {
@@ -553,9 +610,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_);
           }
@@ -583,7 +641,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.speech.v1p1beta1.RecognizeResponse) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.speech.v1p1beta1.RecognizeResponse) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -592,21 +651,30 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
     private java.util.List results_ =
-      java.util.Collections.emptyList();
+        java.util.Collections.emptyList();
+
     private void ensureResultsIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
-        results_ = new java.util.ArrayList(results_);
+        results_ =
+            new java.util.ArrayList(
+                results_);
         bitField0_ |= 0x00000001;
-       }
+      }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult, com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult.Builder, com.google.cloud.speech.v1p1beta1.SpeechRecognitionResultOrBuilder> resultsBuilder_;
+            com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult,
+            com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult.Builder,
+            com.google.cloud.speech.v1p1beta1.SpeechRecognitionResultOrBuilder>
+        resultsBuilder_;
 
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -614,7 +682,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 {
@@ -622,6 +691,8 @@ public java.util.List
       }
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -637,6 +708,8 @@ public int getResultsCount() {
       }
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -652,6 +725,8 @@ public com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult getResults(int
       }
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -674,6 +749,8 @@ public Builder setResults(
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -682,7 +759,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());
@@ -693,6 +771,8 @@ public Builder setResults(
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -714,6 +794,8 @@ public Builder addResults(com.google.cloud.speech.v1p1beta1.SpeechRecognitionRes
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -736,6 +818,8 @@ public Builder addResults(
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -755,6 +839,8 @@ public Builder addResults(
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -763,7 +849,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());
@@ -774,6 +861,8 @@ public Builder addResults(
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -782,11 +871,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);
@@ -794,6 +883,8 @@ public Builder addAllResults(
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -812,6 +903,8 @@ public Builder clearResults() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -830,6 +923,8 @@ public Builder removeResults(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -842,6 +937,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.
@@ -852,11 +949,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.
@@ -864,8 +964,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 {
@@ -873,6 +974,8 @@ public com.google.cloud.speech.v1p1beta1.SpeechRecognitionResultOrBuilder getRes
       }
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -881,10 +984,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.
@@ -894,10 +1000,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.
@@ -905,20 +1015,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_;
@@ -926,34 +1039,47 @@ public com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult.Builder addResu
 
     private com.google.protobuf.Duration totalBilledTime_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> totalBilledTimeBuilder_;
+            com.google.protobuf.Duration,
+            com.google.protobuf.Duration.Builder,
+            com.google.protobuf.DurationOrBuilder>
+        totalBilledTimeBuilder_;
     /**
+     *
+     *
      * 
      * When available, billed audio seconds for the corresponding request.
      * 
* * .google.protobuf.Duration total_billed_time = 3; + * * @return Whether the totalBilledTime field is set. */ public boolean hasTotalBilledTime() { return totalBilledTimeBuilder_ != null || totalBilledTime_ != null; } /** + * + * *
      * When available, billed audio seconds for the corresponding request.
      * 
* * .google.protobuf.Duration total_billed_time = 3; + * * @return The totalBilledTime. */ public com.google.protobuf.Duration getTotalBilledTime() { if (totalBilledTimeBuilder_ == null) { - return totalBilledTime_ == null ? com.google.protobuf.Duration.getDefaultInstance() : totalBilledTime_; + return totalBilledTime_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : totalBilledTime_; } else { return totalBilledTimeBuilder_.getMessage(); } } /** + * + * *
      * When available, billed audio seconds for the corresponding request.
      * 
@@ -974,14 +1100,15 @@ public Builder setTotalBilledTime(com.google.protobuf.Duration value) { return this; } /** + * + * *
      * When available, billed audio seconds for the corresponding request.
      * 
* * .google.protobuf.Duration total_billed_time = 3; */ - public Builder setTotalBilledTime( - com.google.protobuf.Duration.Builder builderForValue) { + public Builder setTotalBilledTime(com.google.protobuf.Duration.Builder builderForValue) { if (totalBilledTimeBuilder_ == null) { totalBilledTime_ = builderForValue.build(); onChanged(); @@ -992,6 +1119,8 @@ public Builder setTotalBilledTime( return this; } /** + * + * *
      * When available, billed audio seconds for the corresponding request.
      * 
@@ -1002,7 +1131,9 @@ public Builder mergeTotalBilledTime(com.google.protobuf.Duration value) { if (totalBilledTimeBuilder_ == null) { if (totalBilledTime_ != null) { totalBilledTime_ = - com.google.protobuf.Duration.newBuilder(totalBilledTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Duration.newBuilder(totalBilledTime_) + .mergeFrom(value) + .buildPartial(); } else { totalBilledTime_ = value; } @@ -1014,6 +1145,8 @@ public Builder mergeTotalBilledTime(com.google.protobuf.Duration value) { return this; } /** + * + * *
      * When available, billed audio seconds for the corresponding request.
      * 
@@ -1032,6 +1165,8 @@ public Builder clearTotalBilledTime() { return this; } /** + * + * *
      * When available, billed audio seconds for the corresponding request.
      * 
@@ -1039,11 +1174,13 @@ public Builder clearTotalBilledTime() { * .google.protobuf.Duration total_billed_time = 3; */ public com.google.protobuf.Duration.Builder getTotalBilledTimeBuilder() { - + onChanged(); return getTotalBilledTimeFieldBuilder().getBuilder(); } /** + * + * *
      * When available, billed audio seconds for the corresponding request.
      * 
@@ -1054,11 +1191,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.
      * 
@@ -1066,21 +1206,24 @@ public com.google.protobuf.DurationOrBuilder getTotalBilledTimeOrBuilder() { * .google.protobuf.Duration total_billed_time = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> getTotalBilledTimeFieldBuilder() { if (totalBilledTimeBuilder_ == null) { - totalBilledTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( - getTotalBilledTime(), - getParentForChildren(), - isClean()); + totalBilledTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>( + getTotalBilledTime(), getParentForChildren(), isClean()); totalBilledTime_ = null; } return totalBilledTimeBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1090,12 +1233,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(); } @@ -1104,16 +1247,16 @@ public static com.google.cloud.speech.v1p1beta1.RecognizeResponse getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RecognizeResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new RecognizeResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RecognizeResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RecognizeResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1128,6 +1271,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.RecognizeResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeResponseOrBuilder.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeResponseOrBuilder.java similarity index 75% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeResponseOrBuilder.java rename to proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeResponseOrBuilder.java index d558c9d50..c03d3c9b7 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeResponseOrBuilder.java +++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeResponseOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech.proto package com.google.cloud.speech.v1p1beta1; -public interface RecognizeResponseOrBuilder extends +public interface RecognizeResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1p1beta1.RecognizeResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -15,9 +33,10 @@ public interface RecognizeResponseOrBuilder extends
    *
    * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionResult results = 2;
    */
-  java.util.List 
-      getResultsList();
+  java.util.List getResultsList();
   /**
+   *
+   *
    * 
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -27,6 +46,8 @@ public interface RecognizeResponseOrBuilder extends
    */
   com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult getResults(int index);
   /**
+   *
+   *
    * 
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -36,6 +57,8 @@ public interface RecognizeResponseOrBuilder extends
    */
   int getResultsCount();
   /**
+   *
+   *
    * 
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -43,9 +66,11 @@ public interface RecognizeResponseOrBuilder extends
    *
    * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionResult results = 2;
    */
-  java.util.List 
+  java.util.List
       getResultsOrBuilderList();
   /**
+   *
+   *
    * 
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -53,28 +78,35 @@ public interface RecognizeResponseOrBuilder extends
    *
    * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionResult results = 2;
    */
-  com.google.cloud.speech.v1p1beta1.SpeechRecognitionResultOrBuilder getResultsOrBuilder(
-      int index);
+  com.google.cloud.speech.v1p1beta1.SpeechRecognitionResultOrBuilder getResultsOrBuilder(int index);
 
   /**
+   *
+   *
    * 
    * When available, billed audio seconds for the corresponding request.
    * 
* * .google.protobuf.Duration total_billed_time = 3; + * * @return Whether the totalBilledTime field is set. */ boolean hasTotalBilledTime(); /** + * + * *
    * When available, billed audio seconds for the corresponding request.
    * 
* * .google.protobuf.Duration total_billed_time = 3; + * * @return The totalBilledTime. */ com.google.protobuf.Duration getTotalBilledTime(); /** + * + * *
    * When available, billed audio seconds for the corresponding request.
    * 
diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeakerDiarizationConfig.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeakerDiarizationConfig.java similarity index 71% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeakerDiarizationConfig.java rename to proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeakerDiarizationConfig.java index de799d2d2..ce7343779 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeakerDiarizationConfig.java +++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeakerDiarizationConfig.java @@ -1,39 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech.proto package com.google.cloud.speech.v1p1beta1; /** + * + * *
  * Config to enable speaker diarization.
  * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig} */ -public final class SpeakerDiarizationConfig extends - com.google.protobuf.GeneratedMessageV3 implements +public final class SpeakerDiarizationConfig extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig) SpeakerDiarizationConfigOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use SpeakerDiarizationConfig.newBuilder() to construct. private SpeakerDiarizationConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private SpeakerDiarizationConfig() { - } + + private SpeakerDiarizationConfig() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new SpeakerDiarizationConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private SpeakerDiarizationConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,61 +68,65 @@ private SpeakerDiarizationConfig( case 0: done = true; break; - case 8: { - - enableSpeakerDiarization_ = input.readBool(); - break; - } - case 16: { - - minSpeakerCount_ = input.readInt32(); - break; - } - case 24: { - - maxSpeakerCount_ = input.readInt32(); - break; - } - case 40: { - - speakerTag_ = input.readInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 8: + { + enableSpeakerDiarization_ = input.readBool(); + break; + } + case 16: + { + minSpeakerCount_ = input.readInt32(); + break; + } + case 24: + { + maxSpeakerCount_ = input.readInt32(); + break; + } + case 40: + { + speakerTag_ = input.readInt32(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_SpeakerDiarizationConfig_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechProto + .internal_static_google_cloud_speech_v1p1beta1_SpeakerDiarizationConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_SpeakerDiarizationConfig_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechProto + .internal_static_google_cloud_speech_v1p1beta1_SpeakerDiarizationConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig.class, com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig.Builder.class); + com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig.class, + com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig.Builder.class); } public static final int ENABLE_SPEAKER_DIARIZATION_FIELD_NUMBER = 1; private boolean enableSpeakerDiarization_; /** + * + * *
    * If 'true', enables speaker detection for each recognized word in
    * the top alternative of the recognition result using a speaker_tag provided
@@ -114,6 +134,7 @@ private SpeakerDiarizationConfig(
    * 
* * bool enable_speaker_diarization = 1; + * * @return The enableSpeakerDiarization. */ @java.lang.Override @@ -124,6 +145,8 @@ public boolean getEnableSpeakerDiarization() { public static final int MIN_SPEAKER_COUNT_FIELD_NUMBER = 2; private int minSpeakerCount_; /** + * + * *
    * Minimum number of speakers in the conversation. This range gives you more
    * flexibility by allowing the system to automatically determine the correct
@@ -131,6 +154,7 @@ public boolean getEnableSpeakerDiarization() {
    * 
* * int32 min_speaker_count = 2; + * * @return The minSpeakerCount. */ @java.lang.Override @@ -141,6 +165,8 @@ public int getMinSpeakerCount() { public static final int MAX_SPEAKER_COUNT_FIELD_NUMBER = 3; private int maxSpeakerCount_; /** + * + * *
    * Maximum number of speakers in the conversation. This range gives you more
    * flexibility by allowing the system to automatically determine the correct
@@ -148,6 +174,7 @@ public int getMinSpeakerCount() {
    * 
* * int32 max_speaker_count = 3; + * * @return The maxSpeakerCount. */ @java.lang.Override @@ -158,19 +185,25 @@ public int getMaxSpeakerCount() { public static final int SPEAKER_TAG_FIELD_NUMBER = 5; private int speakerTag_; /** + * + * *
    * Output only. Unused.
    * 
* - * int32 speaker_tag = 5 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * int32 speaker_tag = 5 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @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; @@ -182,8 +215,7 @@ public final boolean isInitialized() { } @java.lang.Override - public 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_); } @@ -206,20 +238,16 @@ public int getSerializedSize() { size = 0; if (enableSpeakerDiarization_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(1, enableSpeakerDiarization_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, enableSpeakerDiarization_); } if (minSpeakerCount_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, minSpeakerCount_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, minSpeakerCount_); } if (maxSpeakerCount_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(3, maxSpeakerCount_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, maxSpeakerCount_); } if (speakerTag_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(5, speakerTag_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, speakerTag_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -229,21 +257,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig)) { return super.equals(obj); } - com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig other = (com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig) obj; + com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig other = + (com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig) obj; - if (getEnableSpeakerDiarization() - != other.getEnableSpeakerDiarization()) return false; - if (getMinSpeakerCount() - != other.getMinSpeakerCount()) return false; - if (getMaxSpeakerCount() - != other.getMaxSpeakerCount()) return false; - if (getSpeakerTag() - != other.getSpeakerTag()) return false; + if (getEnableSpeakerDiarization() != other.getEnableSpeakerDiarization()) return false; + if (getMinSpeakerCount() != other.getMinSpeakerCount()) return false; + if (getMaxSpeakerCount() != other.getMaxSpeakerCount()) return false; + if (getSpeakerTag() != other.getSpeakerTag()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -256,8 +281,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; @@ -270,117 +294,127 @@ public int hashCode() { } public static com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig prototype) { + + public static Builder newBuilder( + com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Config to enable speaker diarization.
    * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig) com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_SpeakerDiarizationConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechProto + .internal_static_google_cloud_speech_v1p1beta1_SpeakerDiarizationConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_SpeakerDiarizationConfig_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechProto + .internal_static_google_cloud_speech_v1p1beta1_SpeakerDiarizationConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig.class, com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig.Builder.class); + com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig.class, + com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig.Builder.class); } // Construct using com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig.newBuilder() @@ -388,16 +422,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -413,9 +446,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 @@ -434,7 +467,8 @@ public com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig build() { @java.lang.Override public com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig buildPartial() { - com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig result = new com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig(this); + com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig result = + new com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig(this); result.enableSpeakerDiarization_ = enableSpeakerDiarization_; result.minSpeakerCount_ = minSpeakerCount_; result.maxSpeakerCount_ = maxSpeakerCount_; @@ -447,38 +481,39 @@ public com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig buildPartial() public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig) { - return mergeFrom((com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig)other); + return mergeFrom((com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig) other); } else { super.mergeFrom(other); return this; @@ -486,7 +521,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()); } @@ -518,7 +554,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -528,8 +565,10 @@ public Builder mergeFrom( return this; } - private boolean enableSpeakerDiarization_ ; + private boolean enableSpeakerDiarization_; /** + * + * *
      * If 'true', enables speaker detection for each recognized word in
      * the top alternative of the recognition result using a speaker_tag provided
@@ -537,6 +576,7 @@ public Builder mergeFrom(
      * 
* * bool enable_speaker_diarization = 1; + * * @return The enableSpeakerDiarization. */ @java.lang.Override @@ -544,6 +584,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
@@ -551,16 +593,19 @@ public boolean getEnableSpeakerDiarization() {
      * 
* * bool enable_speaker_diarization = 1; + * * @param value The enableSpeakerDiarization to set. * @return This builder for chaining. */ public Builder setEnableSpeakerDiarization(boolean value) { - + enableSpeakerDiarization_ = value; onChanged(); return this; } /** + * + * *
      * If 'true', enables speaker detection for each recognized word in
      * the top alternative of the recognition result using a speaker_tag provided
@@ -568,17 +613,20 @@ public Builder setEnableSpeakerDiarization(boolean value) {
      * 
* * bool enable_speaker_diarization = 1; + * * @return This builder for chaining. */ public Builder clearEnableSpeakerDiarization() { - + enableSpeakerDiarization_ = false; onChanged(); return this; } - private int minSpeakerCount_ ; + private int minSpeakerCount_; /** + * + * *
      * Minimum number of speakers in the conversation. This range gives you more
      * flexibility by allowing the system to automatically determine the correct
@@ -586,6 +634,7 @@ public Builder clearEnableSpeakerDiarization() {
      * 
* * int32 min_speaker_count = 2; + * * @return The minSpeakerCount. */ @java.lang.Override @@ -593,6 +642,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
@@ -600,16 +651,19 @@ public int getMinSpeakerCount() {
      * 
* * int32 min_speaker_count = 2; + * * @param value The minSpeakerCount to set. * @return This builder for chaining. */ public Builder setMinSpeakerCount(int value) { - + minSpeakerCount_ = value; onChanged(); return this; } /** + * + * *
      * Minimum number of speakers in the conversation. This range gives you more
      * flexibility by allowing the system to automatically determine the correct
@@ -617,17 +671,20 @@ public Builder setMinSpeakerCount(int value) {
      * 
* * int32 min_speaker_count = 2; + * * @return This builder for chaining. */ public Builder clearMinSpeakerCount() { - + minSpeakerCount_ = 0; onChanged(); return this; } - private int maxSpeakerCount_ ; + private int maxSpeakerCount_; /** + * + * *
      * Maximum number of speakers in the conversation. This range gives you more
      * flexibility by allowing the system to automatically determine the correct
@@ -635,6 +692,7 @@ public Builder clearMinSpeakerCount() {
      * 
* * int32 max_speaker_count = 3; + * * @return The maxSpeakerCount. */ @java.lang.Override @@ -642,6 +700,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
@@ -649,16 +709,19 @@ public int getMaxSpeakerCount() {
      * 
* * int32 max_speaker_count = 3; + * * @param value The maxSpeakerCount to set. * @return This builder for chaining. */ public Builder setMaxSpeakerCount(int value) { - + maxSpeakerCount_ = value; onChanged(); return this; } /** + * + * *
      * Maximum number of speakers in the conversation. This range gives you more
      * flexibility by allowing the system to automatically determine the correct
@@ -666,60 +729,76 @@ public Builder setMaxSpeakerCount(int value) {
      * 
* * int32 max_speaker_count = 3; + * * @return This builder for chaining. */ public Builder clearMaxSpeakerCount() { - + maxSpeakerCount_ = 0; onChanged(); return this; } - private int speakerTag_ ; + private int speakerTag_; /** + * + * *
      * Output only. Unused.
      * 
* - * int32 speaker_tag = 5 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * int32 speaker_tag = 5 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @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]; + * + * * @param value The speakerTag to set. * @return This builder for chaining. */ - @java.lang.Deprecated public Builder setSpeakerTag(int value) { - + @java.lang.Deprecated + public Builder setSpeakerTag(int value) { + speakerTag_ = value; onChanged(); return this; } /** + * + * *
      * Output only. Unused.
      * 
* - * int32 speaker_tag = 5 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * int32 speaker_tag = 5 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return This builder for chaining. */ - @java.lang.Deprecated public Builder clearSpeakerTag() { - + @java.lang.Deprecated + public Builder clearSpeakerTag() { + speakerTag_ = 0; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -729,12 +808,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(); } @@ -743,16 +822,16 @@ public static com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SpeakerDiarizationConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SpeakerDiarizationConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SpeakerDiarizationConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SpeakerDiarizationConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -767,6 +846,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeakerDiarizationConfigOrBuilder.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeakerDiarizationConfigOrBuilder.java similarity index 65% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeakerDiarizationConfigOrBuilder.java rename to proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeakerDiarizationConfigOrBuilder.java index 88d71a858..3a1bf9e62 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeakerDiarizationConfigOrBuilder.java +++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeakerDiarizationConfigOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech.proto package com.google.cloud.speech.v1p1beta1; -public interface SpeakerDiarizationConfigOrBuilder extends +public interface SpeakerDiarizationConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * If 'true', enables speaker detection for each recognized word in
    * the top alternative of the recognition result using a speaker_tag provided
@@ -15,11 +33,14 @@ public interface SpeakerDiarizationConfigOrBuilder extends
    * 
* * bool enable_speaker_diarization = 1; + * * @return The enableSpeakerDiarization. */ boolean getEnableSpeakerDiarization(); /** + * + * *
    * Minimum number of speakers in the conversation. This range gives you more
    * flexibility by allowing the system to automatically determine the correct
@@ -27,11 +48,14 @@ public interface SpeakerDiarizationConfigOrBuilder extends
    * 
* * int32 min_speaker_count = 2; + * * @return The minSpeakerCount. */ int getMinSpeakerCount(); /** + * + * *
    * Maximum number of speakers in the conversation. This range gives you more
    * flexibility by allowing the system to automatically determine the correct
@@ -39,17 +63,23 @@ 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]; + * + * * @return The speakerTag. */ - @java.lang.Deprecated int getSpeakerTag(); + @java.lang.Deprecated + int getSpeakerTag(); } diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptation.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptation.java similarity index 79% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptation.java rename to proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptation.java index 85462e92c..84e423e83 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptation.java +++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptation.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/resource.proto package com.google.cloud.speech.v1p1beta1; /** + * + * *
  * Speech adaptation configuration.
  * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.SpeechAdaptation} */ -public final class SpeechAdaptation extends - com.google.protobuf.GeneratedMessageV3 implements +public final class SpeechAdaptation extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v1p1beta1.SpeechAdaptation) SpeechAdaptationOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use SpeechAdaptation.newBuilder() to construct. private SpeechAdaptation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private SpeechAdaptation() { phraseSets_ = java.util.Collections.emptyList(); phraseSetReferences_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -27,16 +45,15 @@ private SpeechAdaptation() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new SpeechAdaptation(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private SpeechAdaptation( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -56,47 +73,53 @@ private SpeechAdaptation( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - phraseSets_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + phraseSets_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + phraseSets_.add( + input.readMessage( + com.google.cloud.speech.v1p1beta1.PhraseSet.parser(), extensionRegistry)); + break; } - phraseSets_.add( - input.readMessage(com.google.cloud.speech.v1p1beta1.PhraseSet.parser(), extensionRegistry)); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - phraseSetReferences_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + phraseSetReferences_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; + } + phraseSetReferences_.add(s); + break; } - phraseSetReferences_.add(s); - break; - } - case 26: { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - customClasses_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000004; + case 26: + { + if (!((mutable_bitField0_ & 0x00000004) != 0)) { + customClasses_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000004; + } + customClasses_.add( + input.readMessage( + com.google.cloud.speech.v1p1beta1.CustomClass.parser(), extensionRegistry)); + break; } - customClasses_.add( - input.readMessage(com.google.cloud.speech.v1p1beta1.CustomClass.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { phraseSets_ = java.util.Collections.unmodifiableList(phraseSets_); @@ -111,22 +134,27 @@ private SpeechAdaptation( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechResourceProto.internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptation_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechResourceProto + .internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechResourceProto.internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptation_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechResourceProto + .internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.SpeechAdaptation.class, com.google.cloud.speech.v1p1beta1.SpeechAdaptation.Builder.class); + com.google.cloud.speech.v1p1beta1.SpeechAdaptation.class, + com.google.cloud.speech.v1p1beta1.SpeechAdaptation.Builder.class); } public static final int PHRASE_SETS_FIELD_NUMBER = 1; private java.util.List phraseSets_; /** + * + * *
    * A collection of phrase sets. To specify the hints inline, leave the
    * phrase set's `name` blank and fill in the rest of its fields. Any
@@ -140,6 +168,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
@@ -149,11 +179,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
@@ -167,6 +199,8 @@ public int getPhraseSetsCount() {
     return phraseSets_.size();
   }
   /**
+   *
+   *
    * 
    * A collection of phrase sets. To specify the hints inline, leave the
    * phrase set's `name` blank and fill in the rest of its fields. Any
@@ -180,6 +214,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
@@ -189,42 +225,52 @@ public com.google.cloud.speech.v1p1beta1.PhraseSet getPhraseSets(int index) {
    * repeated .google.cloud.speech.v1p1beta1.PhraseSet phrase_sets = 1;
    */
   @java.lang.Override
-  public com.google.cloud.speech.v1p1beta1.PhraseSetOrBuilder getPhraseSetsOrBuilder(
-      int index) {
+  public com.google.cloud.speech.v1p1beta1.PhraseSetOrBuilder getPhraseSetsOrBuilder(int index) {
     return phraseSets_.get(index);
   }
 
   public static final int PHRASE_SET_REFERENCES_FIELD_NUMBER = 2;
   private com.google.protobuf.LazyStringList phraseSetReferences_;
   /**
+   *
+   *
    * 
    * A collection of phrase set resource names to use.
    * 
* - * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } + * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } + * + * * @return A list containing the phraseSetReferences. */ - public com.google.protobuf.ProtocolStringList - getPhraseSetReferencesList() { + public com.google.protobuf.ProtocolStringList getPhraseSetReferencesList() { return phraseSetReferences_; } /** + * + * *
    * A collection of phrase set resource names to use.
    * 
* - * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } + * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } + * + * * @return The count of phraseSetReferences. */ public int getPhraseSetReferencesCount() { return phraseSetReferences_.size(); } /** + * + * *
    * A collection of phrase set resource names to use.
    * 
* - * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } + * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } + * + * * @param index The index of the element to return. * @return The phraseSetReferences at the given index. */ @@ -232,22 +278,27 @@ public java.lang.String getPhraseSetReferences(int index) { return phraseSetReferences_.get(index); } /** + * + * *
    * A collection of phrase set resource names to use.
    * 
* - * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } + * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } + * + * * @param index The index of the value to return. * @return The bytes of the phraseSetReferences at the given index. */ - public com.google.protobuf.ByteString - getPhraseSetReferencesBytes(int index) { + public com.google.protobuf.ByteString getPhraseSetReferencesBytes(int index) { return phraseSetReferences_.getByteString(index); } public static final int CUSTOM_CLASSES_FIELD_NUMBER = 3; private java.util.List customClasses_; /** + * + * *
    * A collection of custom classes. To specify the classes inline, leave the
    * class' `name` blank and fill in the rest of its fields, giving it a unique
@@ -262,6 +313,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
@@ -272,11 +325,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
@@ -291,6 +346,8 @@ public int getCustomClassesCount() {
     return customClasses_.size();
   }
   /**
+   *
+   *
    * 
    * A collection of custom classes. To specify the classes inline, leave the
    * class' `name` blank and fill in the rest of its fields, giving it a unique
@@ -305,6 +362,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
@@ -321,6 +380,7 @@ public com.google.cloud.speech.v1p1beta1.CustomClassOrBuilder getCustomClassesOr
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -332,8 +392,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  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));
     }
@@ -353,8 +412,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;
@@ -365,8 +423,7 @@ public int getSerializedSize() {
       size += 1 * getPhraseSetReferencesList().size();
     }
     for (int i = 0; i < customClasses_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(3, customClasses_.get(i));
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, customClasses_.get(i));
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -376,19 +433,17 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.speech.v1p1beta1.SpeechAdaptation)) {
       return super.equals(obj);
     }
-    com.google.cloud.speech.v1p1beta1.SpeechAdaptation other = (com.google.cloud.speech.v1p1beta1.SpeechAdaptation) obj;
+    com.google.cloud.speech.v1p1beta1.SpeechAdaptation other =
+        (com.google.cloud.speech.v1p1beta1.SpeechAdaptation) obj;
 
-    if (!getPhraseSetsList()
-        .equals(other.getPhraseSetsList())) return false;
-    if (!getPhraseSetReferencesList()
-        .equals(other.getPhraseSetReferencesList())) return false;
-    if (!getCustomClassesList()
-        .equals(other.getCustomClassesList())) return false;
+    if (!getPhraseSetsList().equals(other.getPhraseSetsList())) return false;
+    if (!getPhraseSetReferencesList().equals(other.getPhraseSetReferencesList())) return false;
+    if (!getCustomClassesList().equals(other.getCustomClassesList())) return false;
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
   }
@@ -418,117 +473,126 @@ public int hashCode() {
   }
 
   public static com.google.cloud.speech.v1p1beta1.SpeechAdaptation parseFrom(
-      java.nio.ByteBuffer data)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.speech.v1p1beta1.SpeechAdaptation parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.speech.v1p1beta1.SpeechAdaptation parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.speech.v1p1beta1.SpeechAdaptation parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.speech.v1p1beta1.SpeechAdaptation parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.speech.v1p1beta1.SpeechAdaptation parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.speech.v1p1beta1.SpeechAdaptation parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.speech.v1p1beta1.SpeechAdaptation parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.speech.v1p1beta1.SpeechAdaptation parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
-  public static com.google.cloud.speech.v1p1beta1.SpeechAdaptation parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+
+  public static com.google.cloud.speech.v1p1beta1.SpeechAdaptation parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.speech.v1p1beta1.SpeechAdaptation parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.speech.v1p1beta1.SpeechAdaptation parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.speech.v1p1beta1.SpeechAdaptation parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
+
   public static Builder newBuilder(com.google.cloud.speech.v1p1beta1.SpeechAdaptation prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * Speech adaptation configuration.
    * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.SpeechAdaptation} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1p1beta1.SpeechAdaptation) com.google.cloud.speech.v1p1beta1.SpeechAdaptationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechResourceProto.internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechResourceProto + .internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechResourceProto.internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptation_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechResourceProto + .internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.SpeechAdaptation.class, com.google.cloud.speech.v1p1beta1.SpeechAdaptation.Builder.class); + com.google.cloud.speech.v1p1beta1.SpeechAdaptation.class, + com.google.cloud.speech.v1p1beta1.SpeechAdaptation.Builder.class); } // Construct using com.google.cloud.speech.v1p1beta1.SpeechAdaptation.newBuilder() @@ -536,18 +600,18 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getPhraseSetsFieldBuilder(); getCustomClassesFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -569,9 +633,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 @@ -590,7 +654,8 @@ public com.google.cloud.speech.v1p1beta1.SpeechAdaptation build() { @java.lang.Override public com.google.cloud.speech.v1p1beta1.SpeechAdaptation buildPartial() { - com.google.cloud.speech.v1p1beta1.SpeechAdaptation result = new com.google.cloud.speech.v1p1beta1.SpeechAdaptation(this); + com.google.cloud.speech.v1p1beta1.SpeechAdaptation result = + new com.google.cloud.speech.v1p1beta1.SpeechAdaptation(this); int from_bitField0_ = bitField0_; if (phraseSetsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -623,38 +688,39 @@ public com.google.cloud.speech.v1p1beta1.SpeechAdaptation buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.speech.v1p1beta1.SpeechAdaptation) { - return mergeFrom((com.google.cloud.speech.v1p1beta1.SpeechAdaptation)other); + return mergeFrom((com.google.cloud.speech.v1p1beta1.SpeechAdaptation) other); } else { super.mergeFrom(other); return this; @@ -662,7 +728,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()) { @@ -681,9 +748,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_); } @@ -717,9 +785,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_); } @@ -744,7 +813,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.speech.v1p1beta1.SpeechAdaptation) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.speech.v1p1beta1.SpeechAdaptation) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -753,21 +823,29 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.util.List phraseSets_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensurePhraseSetsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - phraseSets_ = new java.util.ArrayList(phraseSets_); + phraseSets_ = + new java.util.ArrayList(phraseSets_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.PhraseSet, com.google.cloud.speech.v1p1beta1.PhraseSet.Builder, com.google.cloud.speech.v1p1beta1.PhraseSetOrBuilder> phraseSetsBuilder_; + com.google.cloud.speech.v1p1beta1.PhraseSet, + com.google.cloud.speech.v1p1beta1.PhraseSet.Builder, + com.google.cloud.speech.v1p1beta1.PhraseSetOrBuilder> + phraseSetsBuilder_; /** + * + * *
      * A collection of phrase sets. To specify the hints inline, leave the
      * phrase set's `name` blank and fill in the rest of its fields. Any
@@ -784,6 +862,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
@@ -800,6 +880,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
@@ -816,6 +898,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
@@ -824,8 +908,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();
@@ -839,6 +922,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
@@ -859,6 +944,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
@@ -881,6 +968,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
@@ -889,8 +978,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();
@@ -904,6 +992,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
@@ -924,6 +1014,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
@@ -944,6 +1036,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
@@ -956,8 +1050,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);
@@ -965,6 +1058,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
@@ -984,6 +1079,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
@@ -1003,6 +1100,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
@@ -1011,11 +1110,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
@@ -1024,14 +1124,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
@@ -1040,8 +1142,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 {
@@ -1049,6 +1151,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
@@ -1058,10 +1162,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
@@ -1070,12 +1176,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
@@ -1084,61 +1191,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. */ @@ -1146,80 +1269,95 @@ public java.lang.String getPhraseSetReferences(int index) { return phraseSetReferences_.get(index); } /** + * + * *
      * A collection of phrase set resource names to use.
      * 
* - * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } + * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } + * + * * @param index The index of the value to return. * @return The bytes of the phraseSetReferences at the given index. */ - public com.google.protobuf.ByteString - getPhraseSetReferencesBytes(int index) { + public com.google.protobuf.ByteString getPhraseSetReferencesBytes(int index) { return phraseSetReferences_.getByteString(index); } /** + * + * *
      * A collection of phrase set resource names to use.
      * 
* - * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } + * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } + * + * * @param index The index to set the value at. * @param value The phraseSetReferences to set. * @return This builder for chaining. */ - public Builder setPhraseSetReferences( - int index, java.lang.String value) { + public Builder setPhraseSetReferences(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensurePhraseSetReferencesIsMutable(); + throw new NullPointerException(); + } + ensurePhraseSetReferencesIsMutable(); phraseSetReferences_.set(index, value); onChanged(); return this; } /** + * + * *
      * A collection of phrase set resource names to use.
      * 
* - * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } + * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } + * + * * @param value The phraseSetReferences to add. * @return This builder for chaining. */ - public Builder addPhraseSetReferences( - java.lang.String value) { + public Builder addPhraseSetReferences(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensurePhraseSetReferencesIsMutable(); + throw new NullPointerException(); + } + ensurePhraseSetReferencesIsMutable(); phraseSetReferences_.add(value); onChanged(); return this; } /** + * + * *
      * A collection of phrase set resource names to use.
      * 
* - * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } + * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } + * + * * @param values The phraseSetReferences to add. * @return This builder for chaining. */ - public Builder addAllPhraseSetReferences( - java.lang.Iterable values) { + public Builder addAllPhraseSetReferences(java.lang.Iterable values) { ensurePhraseSetReferencesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, phraseSetReferences_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, phraseSetReferences_); onChanged(); return this; } /** + * + * *
      * A collection of phrase set resource names to use.
      * 
* - * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } + * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearPhraseSetReferences() { @@ -1229,20 +1367,23 @@ public Builder clearPhraseSetReferences() { return this; } /** + * + * *
      * A collection of phrase set resource names to use.
      * 
* - * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } + * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } + * + * * @param value The bytes of the phraseSetReferences to add. * @return This builder for chaining. */ - public Builder addPhraseSetReferencesBytes( - com.google.protobuf.ByteString value) { + public Builder addPhraseSetReferencesBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensurePhraseSetReferencesIsMutable(); phraseSetReferences_.add(value); onChanged(); @@ -1250,18 +1391,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
@@ -1279,6 +1427,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
@@ -1296,6 +1446,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
@@ -1313,6 +1465,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
@@ -1337,6 +1491,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
@@ -1358,6 +1514,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
@@ -1381,6 +1539,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
@@ -1405,6 +1565,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
@@ -1426,6 +1588,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
@@ -1447,6 +1611,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
@@ -1460,8 +1626,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);
@@ -1469,6 +1634,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
@@ -1489,6 +1656,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
@@ -1509,6 +1678,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
@@ -1523,6 +1694,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
@@ -1535,11 +1708,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
@@ -1549,8 +1725,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 {
@@ -1558,6 +1734,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
@@ -1568,10 +1746,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
@@ -1583,10 +1763,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
@@ -1596,16 +1778,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(),
@@ -1614,9 +1802,9 @@ public com.google.cloud.speech.v1p1beta1.CustomClass.Builder addCustomClassesBui
       }
       return customClassesBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1626,12 +1814,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();
   }
@@ -1640,16 +1828,16 @@ public static com.google.cloud.speech.v1p1beta1.SpeechAdaptation getDefaultInsta
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public SpeechAdaptation parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return new SpeechAdaptation(input, extensionRegistry);
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public SpeechAdaptation parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          return new SpeechAdaptation(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1664,6 +1852,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.speech.v1p1beta1.SpeechAdaptation getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptationOrBuilder.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptationOrBuilder.java
similarity index 80%
rename from owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptationOrBuilder.java
rename to proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptationOrBuilder.java
index 64b0f0cb1..b808e4167 100644
--- a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptationOrBuilder.java
+++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptationOrBuilder.java
@@ -1,13 +1,31 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/speech/v1p1beta1/resource.proto
 
 package com.google.cloud.speech.v1p1beta1;
 
-public interface SpeechAdaptationOrBuilder extends
+public interface SpeechAdaptationOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1p1beta1.SpeechAdaptation)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * A collection of phrase sets. To specify the hints inline, leave the
    * phrase set's `name` blank and fill in the rest of its fields. Any
@@ -16,9 +34,10 @@ public interface SpeechAdaptationOrBuilder extends
    *
    * repeated .google.cloud.speech.v1p1beta1.PhraseSet phrase_sets = 1;
    */
-  java.util.List 
-      getPhraseSetsList();
+  java.util.List getPhraseSetsList();
   /**
+   *
+   *
    * 
    * A collection of phrase sets. To specify the hints inline, leave the
    * phrase set's `name` blank and fill in the rest of its fields. Any
@@ -29,6 +48,8 @@ public interface SpeechAdaptationOrBuilder extends
    */
   com.google.cloud.speech.v1p1beta1.PhraseSet getPhraseSets(int index);
   /**
+   *
+   *
    * 
    * A collection of phrase sets. To specify the hints inline, leave the
    * phrase set's `name` blank and fill in the rest of its fields. Any
@@ -39,6 +60,8 @@ public interface SpeechAdaptationOrBuilder extends
    */
   int getPhraseSetsCount();
   /**
+   *
+   *
    * 
    * A collection of phrase sets. To specify the hints inline, leave the
    * phrase set's `name` blank and fill in the rest of its fields. Any
@@ -47,9 +70,11 @@ public interface SpeechAdaptationOrBuilder extends
    *
    * repeated .google.cloud.speech.v1p1beta1.PhraseSet phrase_sets = 1;
    */
-  java.util.List 
+  java.util.List
       getPhraseSetsOrBuilderList();
   /**
+   *
+   *
    * 
    * A collection of phrase sets. To specify the hints inline, leave the
    * phrase set's `name` blank and fill in the rest of its fields. Any
@@ -58,51 +83,66 @@ public interface SpeechAdaptationOrBuilder extends
    *
    * repeated .google.cloud.speech.v1p1beta1.PhraseSet phrase_sets = 1;
    */
-  com.google.cloud.speech.v1p1beta1.PhraseSetOrBuilder getPhraseSetsOrBuilder(
-      int index);
+  com.google.cloud.speech.v1p1beta1.PhraseSetOrBuilder getPhraseSetsOrBuilder(int index);
 
   /**
+   *
+   *
    * 
    * A collection of phrase set resource names to use.
    * 
* - * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } + * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } + * + * * @return A list containing the phraseSetReferences. */ - java.util.List - getPhraseSetReferencesList(); + java.util.List getPhraseSetReferencesList(); /** + * + * *
    * A collection of phrase set resource names to use.
    * 
* - * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } + * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } + * + * * @return The count of phraseSetReferences. */ int getPhraseSetReferencesCount(); /** + * + * *
    * A collection of phrase set resource names to use.
    * 
* - * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } + * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } + * + * * @param index The index of the element to return. * @return The phraseSetReferences at the given index. */ java.lang.String getPhraseSetReferences(int index); /** + * + * *
    * A collection of phrase set resource names to use.
    * 
* - * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } + * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } + * + * * @param index The index of the value to return. * @return The bytes of the phraseSetReferences at the given index. */ - com.google.protobuf.ByteString - getPhraseSetReferencesBytes(int index); + com.google.protobuf.ByteString getPhraseSetReferencesBytes(int index); /** + * + * *
    * A collection of custom classes. To specify the classes inline, leave the
    * class' `name` blank and fill in the rest of its fields, giving it a unique
@@ -112,9 +152,10 @@ com.google.cloud.speech.v1p1beta1.PhraseSetOrBuilder getPhraseSetsOrBuilder(
    *
    * repeated .google.cloud.speech.v1p1beta1.CustomClass custom_classes = 3;
    */
-  java.util.List 
-      getCustomClassesList();
+  java.util.List getCustomClassesList();
   /**
+   *
+   *
    * 
    * A collection of custom classes. To specify the classes inline, leave the
    * class' `name` blank and fill in the rest of its fields, giving it a unique
@@ -126,6 +167,8 @@ com.google.cloud.speech.v1p1beta1.PhraseSetOrBuilder getPhraseSetsOrBuilder(
    */
   com.google.cloud.speech.v1p1beta1.CustomClass getCustomClasses(int index);
   /**
+   *
+   *
    * 
    * A collection of custom classes. To specify the classes inline, leave the
    * class' `name` blank and fill in the rest of its fields, giving it a unique
@@ -137,6 +180,8 @@ com.google.cloud.speech.v1p1beta1.PhraseSetOrBuilder getPhraseSetsOrBuilder(
    */
   int getCustomClassesCount();
   /**
+   *
+   *
    * 
    * A collection of custom classes. To specify the classes inline, leave the
    * class' `name` blank and fill in the rest of its fields, giving it a unique
@@ -146,9 +191,11 @@ com.google.cloud.speech.v1p1beta1.PhraseSetOrBuilder getPhraseSetsOrBuilder(
    *
    * repeated .google.cloud.speech.v1p1beta1.CustomClass custom_classes = 3;
    */
-  java.util.List 
+  java.util.List
       getCustomClassesOrBuilderList();
   /**
+   *
+   *
    * 
    * A collection of custom classes. To specify the classes inline, leave the
    * class' `name` blank and fill in the rest of its fields, giving it a unique
@@ -158,6 +205,5 @@ com.google.cloud.speech.v1p1beta1.PhraseSetOrBuilder getPhraseSetsOrBuilder(
    *
    * repeated .google.cloud.speech.v1p1beta1.CustomClass custom_classes = 3;
    */
-  com.google.cloud.speech.v1p1beta1.CustomClassOrBuilder getCustomClassesOrBuilder(
-      int index);
+  com.google.cloud.speech.v1p1beta1.CustomClassOrBuilder getCustomClassesOrBuilder(int index);
 }
diff --git a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptationProto.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptationProto.java
new file mode 100644
index 000000000..2d3104cbb
--- /dev/null
+++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptationProto.java
@@ -0,0 +1,318 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: google/cloud/speech/v1p1beta1/cloud_speech_adaptation.proto
+
+package com.google.cloud.speech.v1p1beta1;
+
+public final class SpeechAdaptationProto {
+  private SpeechAdaptationProto() {}
+
+  public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {}
+
+  public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) {
+    registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry);
+  }
+
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_speech_v1p1beta1_CreatePhraseSetRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_speech_v1p1beta1_CreatePhraseSetRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_speech_v1p1beta1_UpdatePhraseSetRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_speech_v1p1beta1_UpdatePhraseSetRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_speech_v1p1beta1_GetPhraseSetRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_speech_v1p1beta1_GetPhraseSetRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_speech_v1p1beta1_ListPhraseSetRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_speech_v1p1beta1_ListPhraseSetRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_speech_v1p1beta1_ListPhraseSetResponse_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_speech_v1p1beta1_ListPhraseSetResponse_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_speech_v1p1beta1_DeletePhraseSetRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_speech_v1p1beta1_DeletePhraseSetRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_speech_v1p1beta1_CreateCustomClassRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_speech_v1p1beta1_CreateCustomClassRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_speech_v1p1beta1_UpdateCustomClassRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_speech_v1p1beta1_UpdateCustomClassRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_speech_v1p1beta1_GetCustomClassRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_speech_v1p1beta1_GetCustomClassRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_speech_v1p1beta1_ListCustomClassesRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_speech_v1p1beta1_ListCustomClassesRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_speech_v1p1beta1_ListCustomClassesResponse_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_speech_v1p1beta1_ListCustomClassesResponse_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_speech_v1p1beta1_DeleteCustomClassRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_speech_v1p1beta1_DeleteCustomClassRequest_fieldAccessorTable;
+
+  public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+    return descriptor;
+  }
+
+  private static com.google.protobuf.Descriptors.FileDescriptor descriptor;
+
+  static {
+    java.lang.String[] descriptorData = {
+      "\n;google/cloud/speech/v1p1beta1/cloud_sp"
+          + "eech_adaptation.proto\022\035google.cloud.spee"
+          + "ch.v1p1beta1\032\034google/api/annotations.pro"
+          + "to\032\027google/api/client.proto\032\037google/api/"
+          + "field_behavior.proto\032\031google/api/resourc"
+          + "e.proto\032,google/cloud/speech/v1p1beta1/r"
+          + "esource.proto\032\033google/protobuf/empty.pro"
+          + "to\032 google/protobuf/field_mask.proto\"\260\001\n"
+          + "\026CreatePhraseSetRequest\0227\n\006parent\030\001 \001(\tB"
+          + "\'\340A\002\372A!\022\037speech.googleapis.com/PhraseSet"
+          + "\022\032\n\rphrase_set_id\030\002 \001(\tB\003\340A\002\022A\n\nphrase_s"
+          + "et\030\003 \001(\0132(.google.cloud.speech.v1p1beta1"
+          + ".PhraseSetB\003\340A\002\"\214\001\n\026UpdatePhraseSetReque"
+          + "st\022A\n\nphrase_set\030\001 \001(\0132(.google.cloud.sp"
+          + "eech.v1p1beta1.PhraseSetB\003\340A\002\022/\n\013update_"
+          + "mask\030\002 \001(\0132\032.google.protobuf.FieldMask\"L"
+          + "\n\023GetPhraseSetRequest\0225\n\004name\030\001 \001(\tB\'\340A\002"
+          + "\372A!\n\037speech.googleapis.com/PhraseSet\"v\n\024"
+          + "ListPhraseSetRequest\0227\n\006parent\030\001 \001(\tB\'\340A"
+          + "\002\372A!\022\037speech.googleapis.com/PhraseSet\022\021\n"
+          + "\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"o\n\025"
+          + "ListPhraseSetResponse\022=\n\013phrase_sets\030\001 \003"
+          + "(\0132(.google.cloud.speech.v1p1beta1.Phras"
+          + "eSet\022\027\n\017next_page_token\030\002 \001(\t\"O\n\026DeleteP"
+          + "hraseSetRequest\0225\n\004name\030\001 \001(\tB\'\340A\002\372A!\n\037s"
+          + "peech.googleapis.com/PhraseSet\"\272\001\n\030Creat"
+          + "eCustomClassRequest\0229\n\006parent\030\001 \001(\tB)\340A\002"
+          + "\372A#\022!speech.googleapis.com/CustomClass\022\034"
+          + "\n\017custom_class_id\030\002 \001(\tB\003\340A\002\022E\n\014custom_c"
+          + "lass\030\003 \001(\0132*.google.cloud.speech.v1p1bet"
+          + "a1.CustomClassB\003\340A\002\"\222\001\n\030UpdateCustomClas"
+          + "sRequest\022E\n\014custom_class\030\001 \001(\0132*.google."
+          + "cloud.speech.v1p1beta1.CustomClassB\003\340A\002\022"
+          + "/\n\013update_mask\030\002 \001(\0132\032.google.protobuf.F"
+          + "ieldMask\"P\n\025GetCustomClassRequest\0227\n\004nam"
+          + "e\030\001 \001(\tB)\340A\002\372A#\n!speech.googleapis.com/C"
+          + "ustomClass\"|\n\030ListCustomClassesRequest\0229"
+          + "\n\006parent\030\001 \001(\tB)\340A\002\372A#\022!speech.googleapi"
+          + "s.com/CustomClass\022\021\n\tpage_size\030\002 \001(\005\022\022\n\n"
+          + "page_token\030\003 \001(\t\"x\n\031ListCustomClassesRes"
+          + "ponse\022B\n\016custom_classes\030\001 \003(\0132*.google.c"
+          + "loud.speech.v1p1beta1.CustomClass\022\027\n\017nex"
+          + "t_page_token\030\002 \001(\t\"S\n\030DeleteCustomClassR"
+          + "equest\0227\n\004name\030\001 \001(\tB)\340A\002\372A#\n!speech.goo"
+          + "gleapis.com/CustomClass2\322\020\n\nAdaptation\022\326"
+          + "\001\n\017CreatePhraseSet\0225.google.cloud.speech"
+          + ".v1p1beta1.CreatePhraseSetRequest\032(.goog"
+          + "le.cloud.speech.v1p1beta1.PhraseSet\"b\202\323\344"
+          + "\223\002:\"5/v1p1beta1/{parent=projects/*/locat"
+          + "ions/*}/phraseSets:\001*\332A\037parent,phrase_se"
+          + "t,phrase_set_id\022\262\001\n\014GetPhraseSet\0222.googl"
+          + "e.cloud.speech.v1p1beta1.GetPhraseSetReq"
+          + "uest\032(.google.cloud.speech.v1p1beta1.Phr"
+          + "aseSet\"D\202\323\344\223\0027\0225/v1p1beta1/{name=project"
+          + "s/*/locations/*/phraseSets/*}\332A\004name\022\302\001\n"
+          + "\rListPhraseSet\0223.google.cloud.speech.v1p"
+          + "1beta1.ListPhraseSetRequest\0324.google.clo"
+          + "ud.speech.v1p1beta1.ListPhraseSetRespons"
+          + "e\"F\202\323\344\223\0027\0225/v1p1beta1/{parent=projects/*"
+          + "/locations/*}/phraseSets\332A\006parent\022\341\001\n\017Up"
+          + "datePhraseSet\0225.google.cloud.speech.v1p1"
+          + "beta1.UpdatePhraseSetRequest\032(.google.cl"
+          + "oud.speech.v1p1beta1.PhraseSet\"m\202\323\344\223\002N2@"
+          + "/v1p1beta1/{phrase_set.name=projects/*/l"
+          + "ocations/*/phraseSets/*}:\nphrase_set\332A\026p"
+          + "hrase_set,update_mask\022\246\001\n\017DeletePhraseSe"
+          + "t\0225.google.cloud.speech.v1p1beta1.Delete"
+          + "PhraseSetRequest\032\026.google.protobuf.Empty"
+          + "\"D\202\323\344\223\0027*5/v1p1beta1/{name=projects/*/lo"
+          + "cations/*/phraseSets/*}\332A\004name\022\343\001\n\021Creat"
+          + "eCustomClass\0227.google.cloud.speech.v1p1b"
+          + "eta1.CreateCustomClassRequest\032*.google.c"
+          + "loud.speech.v1p1beta1.CustomClass\"i\202\323\344\223\002"
+          + "=\"8/v1p1beta1/{parent=projects/*/locatio"
+          + "ns/*}/customClasses:\001*\332A#parent,custom_c"
+          + "lass,custom_class_id\022\273\001\n\016GetCustomClass\022"
+          + "4.google.cloud.speech.v1p1beta1.GetCusto"
+          + "mClassRequest\032*.google.cloud.speech.v1p1"
+          + "beta1.CustomClass\"G\202\323\344\223\002:\0228/v1p1beta1/{n"
+          + "ame=projects/*/locations/*/customClasses"
+          + "/*}\332A\004name\022\321\001\n\021ListCustomClasses\0227.googl"
+          + "e.cloud.speech.v1p1beta1.ListCustomClass"
+          + "esRequest\0328.google.cloud.speech.v1p1beta"
+          + "1.ListCustomClassesResponse\"I\202\323\344\223\002:\0228/v1"
+          + "p1beta1/{parent=projects/*/locations/*}/"
+          + "customClasses\332A\006parent\022\360\001\n\021UpdateCustomC"
+          + "lass\0227.google.cloud.speech.v1p1beta1.Upd"
+          + "ateCustomClassRequest\032*.google.cloud.spe"
+          + "ech.v1p1beta1.CustomClass\"v\202\323\344\223\002U2E/v1p1"
+          + "beta1/{custom_class.name=projects/*/loca"
+          + "tions/*/customClasses/*}:\014custom_class\332A"
+          + "\030custom_class,update_mask\022\255\001\n\021DeleteCust"
+          + "omClass\0227.google.cloud.speech.v1p1beta1."
+          + "DeleteCustomClassRequest\032\026.google.protob"
+          + "uf.Empty\"G\202\323\344\223\002:*8/v1p1beta1/{name=proje"
+          + "cts/*/locations/*/customClasses/*}\332A\004nam"
+          + "e\032I\312A\025speech.googleapis.com\322A.https://ww"
+          + "w.googleapis.com/auth/cloud-platformB\212\001\n"
+          + "!com.google.cloud.speech.v1p1beta1B\025Spee"
+          + "chAdaptationProtoP\001ZCgoogle.golang.org/g"
+          + "enproto/googleapis/cloud/speech/v1p1beta"
+          + "1;speech\370\001\001\242\002\003GCSb\006proto3"
+    };
+    descriptor =
+        com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
+            descriptorData,
+            new com.google.protobuf.Descriptors.FileDescriptor[] {
+              com.google.api.AnnotationsProto.getDescriptor(),
+              com.google.api.ClientProto.getDescriptor(),
+              com.google.api.FieldBehaviorProto.getDescriptor(),
+              com.google.api.ResourceProto.getDescriptor(),
+              com.google.cloud.speech.v1p1beta1.SpeechResourceProto.getDescriptor(),
+              com.google.protobuf.EmptyProto.getDescriptor(),
+              com.google.protobuf.FieldMaskProto.getDescriptor(),
+            });
+    internal_static_google_cloud_speech_v1p1beta1_CreatePhraseSetRequest_descriptor =
+        getDescriptor().getMessageTypes().get(0);
+    internal_static_google_cloud_speech_v1p1beta1_CreatePhraseSetRequest_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_speech_v1p1beta1_CreatePhraseSetRequest_descriptor,
+            new java.lang.String[] {
+              "Parent", "PhraseSetId", "PhraseSet",
+            });
+    internal_static_google_cloud_speech_v1p1beta1_UpdatePhraseSetRequest_descriptor =
+        getDescriptor().getMessageTypes().get(1);
+    internal_static_google_cloud_speech_v1p1beta1_UpdatePhraseSetRequest_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_speech_v1p1beta1_UpdatePhraseSetRequest_descriptor,
+            new java.lang.String[] {
+              "PhraseSet", "UpdateMask",
+            });
+    internal_static_google_cloud_speech_v1p1beta1_GetPhraseSetRequest_descriptor =
+        getDescriptor().getMessageTypes().get(2);
+    internal_static_google_cloud_speech_v1p1beta1_GetPhraseSetRequest_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_speech_v1p1beta1_GetPhraseSetRequest_descriptor,
+            new java.lang.String[] {
+              "Name",
+            });
+    internal_static_google_cloud_speech_v1p1beta1_ListPhraseSetRequest_descriptor =
+        getDescriptor().getMessageTypes().get(3);
+    internal_static_google_cloud_speech_v1p1beta1_ListPhraseSetRequest_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_speech_v1p1beta1_ListPhraseSetRequest_descriptor,
+            new java.lang.String[] {
+              "Parent", "PageSize", "PageToken",
+            });
+    internal_static_google_cloud_speech_v1p1beta1_ListPhraseSetResponse_descriptor =
+        getDescriptor().getMessageTypes().get(4);
+    internal_static_google_cloud_speech_v1p1beta1_ListPhraseSetResponse_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_speech_v1p1beta1_ListPhraseSetResponse_descriptor,
+            new java.lang.String[] {
+              "PhraseSets", "NextPageToken",
+            });
+    internal_static_google_cloud_speech_v1p1beta1_DeletePhraseSetRequest_descriptor =
+        getDescriptor().getMessageTypes().get(5);
+    internal_static_google_cloud_speech_v1p1beta1_DeletePhraseSetRequest_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_speech_v1p1beta1_DeletePhraseSetRequest_descriptor,
+            new java.lang.String[] {
+              "Name",
+            });
+    internal_static_google_cloud_speech_v1p1beta1_CreateCustomClassRequest_descriptor =
+        getDescriptor().getMessageTypes().get(6);
+    internal_static_google_cloud_speech_v1p1beta1_CreateCustomClassRequest_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_speech_v1p1beta1_CreateCustomClassRequest_descriptor,
+            new java.lang.String[] {
+              "Parent", "CustomClassId", "CustomClass",
+            });
+    internal_static_google_cloud_speech_v1p1beta1_UpdateCustomClassRequest_descriptor =
+        getDescriptor().getMessageTypes().get(7);
+    internal_static_google_cloud_speech_v1p1beta1_UpdateCustomClassRequest_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_speech_v1p1beta1_UpdateCustomClassRequest_descriptor,
+            new java.lang.String[] {
+              "CustomClass", "UpdateMask",
+            });
+    internal_static_google_cloud_speech_v1p1beta1_GetCustomClassRequest_descriptor =
+        getDescriptor().getMessageTypes().get(8);
+    internal_static_google_cloud_speech_v1p1beta1_GetCustomClassRequest_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_speech_v1p1beta1_GetCustomClassRequest_descriptor,
+            new java.lang.String[] {
+              "Name",
+            });
+    internal_static_google_cloud_speech_v1p1beta1_ListCustomClassesRequest_descriptor =
+        getDescriptor().getMessageTypes().get(9);
+    internal_static_google_cloud_speech_v1p1beta1_ListCustomClassesRequest_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_speech_v1p1beta1_ListCustomClassesRequest_descriptor,
+            new java.lang.String[] {
+              "Parent", "PageSize", "PageToken",
+            });
+    internal_static_google_cloud_speech_v1p1beta1_ListCustomClassesResponse_descriptor =
+        getDescriptor().getMessageTypes().get(10);
+    internal_static_google_cloud_speech_v1p1beta1_ListCustomClassesResponse_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_speech_v1p1beta1_ListCustomClassesResponse_descriptor,
+            new java.lang.String[] {
+              "CustomClasses", "NextPageToken",
+            });
+    internal_static_google_cloud_speech_v1p1beta1_DeleteCustomClassRequest_descriptor =
+        getDescriptor().getMessageTypes().get(11);
+    internal_static_google_cloud_speech_v1p1beta1_DeleteCustomClassRequest_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_speech_v1p1beta1_DeleteCustomClassRequest_descriptor,
+            new java.lang.String[] {
+              "Name",
+            });
+    com.google.protobuf.ExtensionRegistry registry =
+        com.google.protobuf.ExtensionRegistry.newInstance();
+    registry.add(com.google.api.ClientProto.defaultHost);
+    registry.add(com.google.api.FieldBehaviorProto.fieldBehavior);
+    registry.add(com.google.api.AnnotationsProto.http);
+    registry.add(com.google.api.ClientProto.methodSignature);
+    registry.add(com.google.api.ClientProto.oauthScopes);
+    registry.add(com.google.api.ResourceProto.resourceReference);
+    com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor(
+        descriptor, registry);
+    com.google.api.AnnotationsProto.getDescriptor();
+    com.google.api.ClientProto.getDescriptor();
+    com.google.api.FieldBehaviorProto.getDescriptor();
+    com.google.api.ResourceProto.getDescriptor();
+    com.google.cloud.speech.v1p1beta1.SpeechResourceProto.getDescriptor();
+    com.google.protobuf.EmptyProto.getDescriptor();
+    com.google.protobuf.FieldMaskProto.getDescriptor();
+  }
+
+  // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechContext.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechContext.java
similarity index 80%
rename from owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechContext.java
rename to proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechContext.java
index 1ffccd1f7..c420a3366 100644
--- a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechContext.java
+++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechContext.java
@@ -1,9 +1,26 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/speech/v1p1beta1/cloud_speech.proto
 
 package com.google.cloud.speech.v1p1beta1;
 
 /**
+ *
+ *
  * 
  * Provides "hints" to the speech recognizer to favor specific words and phrases
  * in the results.
@@ -11,31 +28,31 @@
  *
  * Protobuf type {@code google.cloud.speech.v1p1beta1.SpeechContext}
  */
-public final class SpeechContext extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class SpeechContext extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.speech.v1p1beta1.SpeechContext)
     SpeechContextOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use SpeechContext.newBuilder() to construct.
   private SpeechContext(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private SpeechContext() {
     phrases_ = com.google.protobuf.LazyStringArrayList.EMPTY;
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new SpeechContext();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private SpeechContext(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -55,34 +72,34 @@ private SpeechContext(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              phrases_ = new com.google.protobuf.LazyStringArrayList();
-              mutable_bitField0_ |= 0x00000001;
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                phrases_ = new com.google.protobuf.LazyStringArrayList();
+                mutable_bitField0_ |= 0x00000001;
+              }
+              phrases_.add(s);
+              break;
             }
-            phrases_.add(s);
-            break;
-          }
-          case 37: {
-
-            boost_ = input.readFloat();
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          case 37:
+            {
+              boost_ = input.readFloat();
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         phrases_ = phrases_.getUnmodifiableView();
@@ -91,22 +108,27 @@ private SpeechContext(
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_SpeechContext_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.speech.v1p1beta1.SpeechProto
+        .internal_static_google_cloud_speech_v1p1beta1_SpeechContext_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_SpeechContext_fieldAccessorTable
+    return com.google.cloud.speech.v1p1beta1.SpeechProto
+        .internal_static_google_cloud_speech_v1p1beta1_SpeechContext_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v1p1beta1.SpeechContext.class, com.google.cloud.speech.v1p1beta1.SpeechContext.Builder.class);
+            com.google.cloud.speech.v1p1beta1.SpeechContext.class,
+            com.google.cloud.speech.v1p1beta1.SpeechContext.Builder.class);
   }
 
   public static final int PHRASES_FIELD_NUMBER = 1;
   private com.google.protobuf.LazyStringList phrases_;
   /**
+   *
+   *
    * 
    * A list of strings containing words and phrases "hints" so that
    * the speech recognition is more likely to recognize them. This can be used
@@ -122,13 +144,15 @@ private SpeechContext(
    * 
* * repeated string phrases = 1; + * * @return A list containing the phrases. */ - public com.google.protobuf.ProtocolStringList - getPhrasesList() { + public com.google.protobuf.ProtocolStringList getPhrasesList() { return phrases_; } /** + * + * *
    * A list of strings containing words and phrases "hints" so that
    * the speech recognition is more likely to recognize them. This can be used
@@ -144,12 +168,15 @@ private SpeechContext(
    * 
* * repeated string phrases = 1; + * * @return The count of phrases. */ public int getPhrasesCount() { return phrases_.size(); } /** + * + * *
    * A list of strings containing words and phrases "hints" so that
    * the speech recognition is more likely to recognize them. This can be used
@@ -165,6 +192,7 @@ public int getPhrasesCount() {
    * 
* * repeated string phrases = 1; + * * @param index The index of the element to return. * @return The phrases at the given index. */ @@ -172,6 +200,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
@@ -187,17 +217,19 @@ public java.lang.String getPhrases(int index) {
    * 
* * repeated string phrases = 1; + * * @param index The index of the value to return. * @return The bytes of the phrases at the given index. */ - public com.google.protobuf.ByteString - getPhrasesBytes(int index) { + public com.google.protobuf.ByteString getPhrasesBytes(int index) { return phrases_.getByteString(index); } public static final int BOOST_FIELD_NUMBER = 4; private float boost_; /** + * + * *
    * Hint Boost. Positive value will increase the probability that a specific
    * phrase will be recognized over other similar sounding phrases. The higher
@@ -210,6 +242,7 @@ public java.lang.String getPhrases(int index) {
    * 
* * float boost = 4; + * * @return The boost. */ @java.lang.Override @@ -218,6 +251,7 @@ public float getBoost() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -229,8 +263,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < phrases_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, phrases_.getRaw(i)); } @@ -255,8 +288,7 @@ public int getSerializedSize() { size += 1 * getPhrasesList().size(); } if (boost_ != 0F) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(4, boost_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(4, boost_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -266,18 +298,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1p1beta1.SpeechContext)) { return super.equals(obj); } - com.google.cloud.speech.v1p1beta1.SpeechContext other = (com.google.cloud.speech.v1p1beta1.SpeechContext) obj; + com.google.cloud.speech.v1p1beta1.SpeechContext other = + (com.google.cloud.speech.v1p1beta1.SpeechContext) obj; - if (!getPhrasesList() - .equals(other.getPhrasesList())) return false; + if (!getPhrasesList().equals(other.getPhrasesList())) return false; if (java.lang.Float.floatToIntBits(getBoost()) - != java.lang.Float.floatToIntBits( - other.getBoost())) return false; + != java.lang.Float.floatToIntBits(other.getBoost())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -294,104 +325,110 @@ public int hashCode() { hash = (53 * hash) + getPhrasesList().hashCode(); } hash = (37 * hash) + BOOST_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getBoost()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getBoost()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.speech.v1p1beta1.SpeechContext parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.speech.v1p1beta1.SpeechContext parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.SpeechContext parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.SpeechContext parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.SpeechContext parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.SpeechContext parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.SpeechContext parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.SpeechContext parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.SpeechContext parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.SpeechContext parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1p1beta1.SpeechContext parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.SpeechContext parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.SpeechContext parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.SpeechContext parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.speech.v1p1beta1.SpeechContext prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Provides "hints" to the speech recognizer to favor specific words and phrases
    * in the results.
@@ -399,21 +436,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.speech.v1p1beta1.SpeechContext}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1p1beta1.SpeechContext)
       com.google.cloud.speech.v1p1beta1.SpeechContextOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_SpeechContext_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.speech.v1p1beta1.SpeechProto
+          .internal_static_google_cloud_speech_v1p1beta1_SpeechContext_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_SpeechContext_fieldAccessorTable
+      return com.google.cloud.speech.v1p1beta1.SpeechProto
+          .internal_static_google_cloud_speech_v1p1beta1_SpeechContext_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v1p1beta1.SpeechContext.class, com.google.cloud.speech.v1p1beta1.SpeechContext.Builder.class);
+              com.google.cloud.speech.v1p1beta1.SpeechContext.class,
+              com.google.cloud.speech.v1p1beta1.SpeechContext.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v1p1beta1.SpeechContext.newBuilder()
@@ -421,16 +460,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -442,9 +480,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
@@ -463,7 +501,8 @@ public com.google.cloud.speech.v1p1beta1.SpeechContext build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v1p1beta1.SpeechContext buildPartial() {
-      com.google.cloud.speech.v1p1beta1.SpeechContext result = new com.google.cloud.speech.v1p1beta1.SpeechContext(this);
+      com.google.cloud.speech.v1p1beta1.SpeechContext result =
+          new com.google.cloud.speech.v1p1beta1.SpeechContext(this);
       int from_bitField0_ = bitField0_;
       if (((bitField0_ & 0x00000001) != 0)) {
         phrases_ = phrases_.getUnmodifiableView();
@@ -479,38 +518,39 @@ public com.google.cloud.speech.v1p1beta1.SpeechContext buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.speech.v1p1beta1.SpeechContext) {
-        return mergeFrom((com.google.cloud.speech.v1p1beta1.SpeechContext)other);
+        return mergeFrom((com.google.cloud.speech.v1p1beta1.SpeechContext) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -518,7 +558,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_;
@@ -560,16 +601,21 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
-    private com.google.protobuf.LazyStringList phrases_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+    private com.google.protobuf.LazyStringList phrases_ =
+        com.google.protobuf.LazyStringArrayList.EMPTY;
+
     private void ensurePhrasesIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
         phrases_ = new com.google.protobuf.LazyStringArrayList(phrases_);
         bitField0_ |= 0x00000001;
-       }
+      }
     }
     /**
+     *
+     *
      * 
      * A list of strings containing words and phrases "hints" so that
      * the speech recognition is more likely to recognize them. This can be used
@@ -585,13 +631,15 @@ private void ensurePhrasesIsMutable() {
      * 
* * repeated string phrases = 1; + * * @return A list containing the phrases. */ - public com.google.protobuf.ProtocolStringList - getPhrasesList() { + public com.google.protobuf.ProtocolStringList getPhrasesList() { return phrases_.getUnmodifiableView(); } /** + * + * *
      * A list of strings containing words and phrases "hints" so that
      * the speech recognition is more likely to recognize them. This can be used
@@ -607,12 +655,15 @@ private void ensurePhrasesIsMutable() {
      * 
* * repeated string phrases = 1; + * * @return The count of phrases. */ public int getPhrasesCount() { return phrases_.size(); } /** + * + * *
      * A list of strings containing words and phrases "hints" so that
      * the speech recognition is more likely to recognize them. This can be used
@@ -628,6 +679,7 @@ public int getPhrasesCount() {
      * 
* * repeated string phrases = 1; + * * @param index The index of the element to return. * @return The phrases at the given index. */ @@ -635,6 +687,8 @@ public java.lang.String getPhrases(int index) { return phrases_.get(index); } /** + * + * *
      * A list of strings containing words and phrases "hints" so that
      * the speech recognition is more likely to recognize them. This can be used
@@ -650,14 +704,16 @@ public java.lang.String getPhrases(int index) {
      * 
* * repeated string phrases = 1; + * * @param index The index of the value to return. * @return The bytes of the phrases at the given index. */ - public com.google.protobuf.ByteString - getPhrasesBytes(int index) { + public com.google.protobuf.ByteString getPhrasesBytes(int index) { return phrases_.getByteString(index); } /** + * + * *
      * A list of strings containing words and phrases "hints" so that
      * the speech recognition is more likely to recognize them. This can be used
@@ -673,21 +729,23 @@ public java.lang.String getPhrases(int index) {
      * 
* * repeated string phrases = 1; + * * @param index The index to set the value at. * @param value The phrases to set. * @return This builder for chaining. */ - public Builder setPhrases( - int index, java.lang.String value) { + public Builder setPhrases(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensurePhrasesIsMutable(); + throw new NullPointerException(); + } + ensurePhrasesIsMutable(); phrases_.set(index, value); onChanged(); return this; } /** + * + * *
      * A list of strings containing words and phrases "hints" so that
      * the speech recognition is more likely to recognize them. This can be used
@@ -703,20 +761,22 @@ public Builder setPhrases(
      * 
* * repeated string phrases = 1; + * * @param value The phrases to add. * @return This builder for chaining. */ - public Builder addPhrases( - java.lang.String value) { + public Builder addPhrases(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensurePhrasesIsMutable(); + throw new NullPointerException(); + } + ensurePhrasesIsMutable(); phrases_.add(value); onChanged(); return this; } /** + * + * *
      * A list of strings containing words and phrases "hints" so that
      * the speech recognition is more likely to recognize them. This can be used
@@ -732,18 +792,19 @@ public Builder addPhrases(
      * 
* * repeated string phrases = 1; + * * @param values The phrases to add. * @return This builder for chaining. */ - public Builder addAllPhrases( - java.lang.Iterable values) { + public Builder addAllPhrases(java.lang.Iterable values) { ensurePhrasesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, phrases_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, phrases_); onChanged(); return this; } /** + * + * *
      * A list of strings containing words and phrases "hints" so that
      * the speech recognition is more likely to recognize them. This can be used
@@ -759,6 +820,7 @@ public Builder addAllPhrases(
      * 
* * repeated string phrases = 1; + * * @return This builder for chaining. */ public Builder clearPhrases() { @@ -768,6 +830,8 @@ public Builder clearPhrases() { return this; } /** + * + * *
      * A list of strings containing words and phrases "hints" so that
      * the speech recognition is more likely to recognize them. This can be used
@@ -783,23 +847,25 @@ public Builder clearPhrases() {
      * 
* * repeated string phrases = 1; + * * @param value The bytes of the phrases to add. * @return This builder for chaining. */ - public Builder addPhrasesBytes( - com.google.protobuf.ByteString value) { + public Builder addPhrasesBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensurePhrasesIsMutable(); phrases_.add(value); onChanged(); return this; } - private float boost_ ; + private float boost_; /** + * + * *
      * Hint Boost. Positive value will increase the probability that a specific
      * phrase will be recognized over other similar sounding phrases. The higher
@@ -812,6 +878,7 @@ public Builder addPhrasesBytes(
      * 
* * float boost = 4; + * * @return The boost. */ @java.lang.Override @@ -819,6 +886,8 @@ public float getBoost() { return boost_; } /** + * + * *
      * Hint Boost. Positive value will increase the probability that a specific
      * phrase will be recognized over other similar sounding phrases. The higher
@@ -831,16 +900,19 @@ public float getBoost() {
      * 
* * float boost = 4; + * * @param value The boost to set. * @return This builder for chaining. */ public Builder setBoost(float value) { - + boost_ = value; onChanged(); return this; } /** + * + * *
      * Hint Boost. Positive value will increase the probability that a specific
      * phrase will be recognized over other similar sounding phrases. The higher
@@ -853,17 +925,18 @@ public Builder setBoost(float value) {
      * 
* * float boost = 4; + * * @return This builder for chaining. */ public Builder clearBoost() { - + boost_ = 0F; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -873,12 +946,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(); } @@ -887,16 +960,16 @@ public static com.google.cloud.speech.v1p1beta1.SpeechContext getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SpeechContext parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SpeechContext(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SpeechContext parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SpeechContext(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -911,6 +984,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.SpeechContext getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechContextOrBuilder.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechContextOrBuilder.java similarity index 85% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechContextOrBuilder.java rename to proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechContextOrBuilder.java index 1daae97d3..9c1e1ba58 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechContextOrBuilder.java +++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechContextOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech.proto package com.google.cloud.speech.v1p1beta1; -public interface SpeechContextOrBuilder extends +public interface SpeechContextOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1p1beta1.SpeechContext) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * A list of strings containing words and phrases "hints" so that
    * the speech recognition is more likely to recognize them. This can be used
@@ -23,11 +41,13 @@ public interface SpeechContextOrBuilder extends
    * 
* * repeated string phrases = 1; + * * @return A list containing the phrases. */ - java.util.List - getPhrasesList(); + java.util.List getPhrasesList(); /** + * + * *
    * A list of strings containing words and phrases "hints" so that
    * the speech recognition is more likely to recognize them. This can be used
@@ -43,10 +63,13 @@ public interface SpeechContextOrBuilder extends
    * 
* * repeated string phrases = 1; + * * @return The count of phrases. */ int getPhrasesCount(); /** + * + * *
    * A list of strings containing words and phrases "hints" so that
    * the speech recognition is more likely to recognize them. This can be used
@@ -62,11 +85,14 @@ public interface SpeechContextOrBuilder extends
    * 
* * repeated string phrases = 1; + * * @param index The index of the element to return. * @return The phrases at the given index. */ java.lang.String getPhrases(int index); /** + * + * *
    * A list of strings containing words and phrases "hints" so that
    * the speech recognition is more likely to recognize them. This can be used
@@ -82,13 +108,15 @@ public interface SpeechContextOrBuilder extends
    * 
* * repeated string phrases = 1; + * * @param index The index of the value to return. * @return The bytes of the phrases at the given index. */ - com.google.protobuf.ByteString - getPhrasesBytes(int index); + com.google.protobuf.ByteString getPhrasesBytes(int index); /** + * + * *
    * Hint Boost. Positive value will increase the probability that a specific
    * phrase will be recognized over other similar sounding phrases. The higher
@@ -101,6 +129,7 @@ public interface SpeechContextOrBuilder extends
    * 
* * float boost = 4; + * * @return The boost. */ float getBoost(); diff --git a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechProto.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechProto.java new file mode 100644 index 000000000..e858c793b --- /dev/null +++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechProto.java @@ -0,0 +1,483 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/speech/v1p1beta1/cloud_speech.proto + +package com.google.cloud.speech.v1p1beta1; + +public final class SpeechProto { + private SpeechProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1p1beta1_RecognizeRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1p1beta1_RecognizeRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1p1beta1_TranscriptOutputConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1p1beta1_TranscriptOutputConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1p1beta1_StreamingRecognizeRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1p1beta1_StreamingRecognizeRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1p1beta1_StreamingRecognitionConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1p1beta1_StreamingRecognitionConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1p1beta1_RecognitionConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1p1beta1_RecognitionConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1p1beta1_SpeakerDiarizationConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1p1beta1_SpeakerDiarizationConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1p1beta1_RecognitionMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1p1beta1_RecognitionMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1p1beta1_SpeechContext_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1p1beta1_SpeechContext_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1p1beta1_RecognitionAudio_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1p1beta1_RecognitionAudio_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1p1beta1_RecognizeResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1p1beta1_RecognizeResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1p1beta1_StreamingRecognizeResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1p1beta1_StreamingRecognizeResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1p1beta1_StreamingRecognitionResult_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1p1beta1_StreamingRecognitionResult_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1p1beta1_SpeechRecognitionResult_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1p1beta1_SpeechRecognitionResult_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1p1beta1_SpeechRecognitionAlternative_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1p1beta1_SpeechRecognitionAlternative_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1p1beta1_WordInfo_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1p1beta1_WordInfo_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n0google/cloud/speech/v1p1beta1/cloud_sp" + + "eech.proto\022\035google.cloud.speech.v1p1beta" + + "1\032\034google/api/annotations.proto\032\027google/" + + "api/client.proto\032\037google/api/field_behav" + + "ior.proto\032,google/cloud/speech/v1p1beta1" + + "/resource.proto\032#google/longrunning/oper" + + "ations.proto\032\031google/protobuf/any.proto\032" + + "\036google/protobuf/duration.proto\032\037google/" + + "protobuf/timestamp.proto\032\036google/protobu" + + "f/wrappers.proto\032\027google/rpc/status.prot" + + "o\"\236\001\n\020RecognizeRequest\022E\n\006config\030\001 \001(\01320" + + ".google.cloud.speech.v1p1beta1.Recogniti" + + "onConfigB\003\340A\002\022C\n\005audio\030\002 \001(\0132/.google.cl" + + "oud.speech.v1p1beta1.RecognitionAudioB\003\340" + + "A\002\"\374\001\n\033LongRunningRecognizeRequest\022E\n\006co" + + "nfig\030\001 \001(\01320.google.cloud.speech.v1p1bet" + + "a1.RecognitionConfigB\003\340A\002\022C\n\005audio\030\002 \001(\013" + + "2/.google.cloud.speech.v1p1beta1.Recogni" + + "tionAudioB\003\340A\002\022Q\n\routput_config\030\004 \001(\01325." + + "google.cloud.speech.v1p1beta1.Transcript" + + "OutputConfigB\003\340A\001\":\n\026TranscriptOutputCon" + + "fig\022\021\n\007gcs_uri\030\001 \001(\tH\000B\r\n\013output_type\"\240\001" + + "\n\031StreamingRecognizeRequest\022U\n\020streaming" + + "_config\030\001 \001(\01329.google.cloud.speech.v1p1" + + "beta1.StreamingRecognitionConfigH\000\022\027\n\rau" + + "dio_content\030\002 \001(\014H\000B\023\n\021streaming_request" + + "\"\226\001\n\032StreamingRecognitionConfig\022E\n\006confi" + + "g\030\001 \001(\01320.google.cloud.speech.v1p1beta1." + + "RecognitionConfigB\003\340A\002\022\030\n\020single_utteran" + + "ce\030\002 \001(\010\022\027\n\017interim_results\030\003 \001(\010\"\276\t\n\021Re" + + "cognitionConfig\022P\n\010encoding\030\001 \001(\0162>.goog" + + "le.cloud.speech.v1p1beta1.RecognitionCon" + + "fig.AudioEncoding\022\031\n\021sample_rate_hertz\030\002" + + " \001(\005\022\033\n\023audio_channel_count\030\007 \001(\005\022/\n\'ena" + + "ble_separate_recognition_per_channel\030\014 \001" + + "(\010\022\032\n\rlanguage_code\030\003 \001(\tB\003\340A\002\022\"\n\032altern" + + "ative_language_codes\030\022 \003(\t\022\030\n\020max_altern" + + "atives\030\004 \001(\005\022\030\n\020profanity_filter\030\005 \001(\010\022C" + + "\n\nadaptation\030\024 \001(\0132/.google.cloud.speech" + + ".v1p1beta1.SpeechAdaptation\022X\n\030transcrip" + + "t_normalization\030\030 \001(\01326.google.cloud.spe" + + "ech.v1p1beta1.TranscriptNormalization\022E\n" + + "\017speech_contexts\030\006 \003(\0132,.google.cloud.sp" + + "eech.v1p1beta1.SpeechContext\022 \n\030enable_w" + + "ord_time_offsets\030\010 \001(\010\022\036\n\026enable_word_co" + + "nfidence\030\017 \001(\010\022$\n\034enable_automatic_punct" + + "uation\030\013 \001(\010\022=\n\031enable_spoken_punctuatio" + + "n\030\026 \001(\0132\032.google.protobuf.BoolValue\0228\n\024e" + + "nable_spoken_emojis\030\027 \001(\0132\032.google.proto" + + "buf.BoolValue\022&\n\032enable_speaker_diarizat" + + "ion\030\020 \001(\010B\002\030\001\022%\n\031diarization_speaker_cou" + + "nt\030\021 \001(\005B\002\030\001\022S\n\022diarization_config\030\023 \001(\013" + + "27.google.cloud.speech.v1p1beta1.Speaker" + + "DiarizationConfig\022D\n\010metadata\030\t \001(\01322.go" + + "ogle.cloud.speech.v1p1beta1.RecognitionM" + + "etadata\022\r\n\005model\030\r \001(\t\022\024\n\014use_enhanced\030\016" + + " \001(\010\"\243\001\n\rAudioEncoding\022\030\n\024ENCODING_UNSPE" + + "CIFIED\020\000\022\014\n\010LINEAR16\020\001\022\010\n\004FLAC\020\002\022\t\n\005MULA" + + "W\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\tW" + + "EBM_OPUS\020\t\"\220\001\n\030SpeakerDiarizationConfig\022" + + "\"\n\032enable_speaker_diarization\030\001 \001(\010\022\031\n\021m" + + "in_speaker_count\030\002 \001(\005\022\031\n\021max_speaker_co" + + "unt\030\003 \001(\005\022\032\n\013speaker_tag\030\005 \001(\005B\005\030\001\340A\003\"\327\010" + + "\n\023RecognitionMetadata\022\\\n\020interaction_typ" + + "e\030\001 \001(\0162B.google.cloud.speech.v1p1beta1." + + "RecognitionMetadata.InteractionType\022$\n\034i" + + "ndustry_naics_code_of_audio\030\003 \001(\r\022b\n\023mic" + + "rophone_distance\030\004 \001(\0162E.google.cloud.sp" + + "eech.v1p1beta1.RecognitionMetadata.Micro" + + "phoneDistance\022a\n\023original_media_type\030\005 \001" + + "(\0162D.google.cloud.speech.v1p1beta1.Recog" + + "nitionMetadata.OriginalMediaType\022e\n\025reco" + + "rding_device_type\030\006 \001(\0162F.google.cloud.s" + + "peech.v1p1beta1.RecognitionMetadata.Reco" + + "rdingDeviceType\022\035\n\025recording_device_name" + + "\030\007 \001(\t\022\032\n\022original_mime_type\030\010 \001(\t\022\031\n\rob" + + "fuscated_id\030\t \001(\003B\002\030\001\022\023\n\013audio_topic\030\n \001" + + "(\t\"\305\001\n\017InteractionType\022 \n\034INTERACTION_TY" + + "PE_UNSPECIFIED\020\000\022\016\n\nDISCUSSION\020\001\022\020\n\014PRES" + + "ENTATION\020\002\022\016\n\nPHONE_CALL\020\003\022\r\n\tVOICEMAIL\020" + + "\004\022\033\n\027PROFESSIONALLY_PRODUCED\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_D" + + "ISTANCE_UNSPECIFIED\020\000\022\r\n\tNEARFIELD\020\001\022\014\n\010" + + "MIDFIELD\020\002\022\014\n\010FARFIELD\020\003\"N\n\021OriginalMedi" + + "aType\022#\n\037ORIGINAL_MEDIA_TYPE_UNSPECIFIED" + + "\020\000\022\t\n\005AUDIO\020\001\022\t\n\005VIDEO\020\002\"\244\001\n\023RecordingDe" + + "viceType\022%\n!RECORDING_DEVICE_TYPE_UNSPEC" + + "IFIED\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_DE" + + "VICE\020\005\022\027\n\023OTHER_INDOOR_DEVICE\020\006\"/\n\rSpeec" + + "hContext\022\017\n\007phrases\030\001 \003(\t\022\r\n\005boost\030\004 \001(\002" + + "\"D\n\020RecognitionAudio\022\021\n\007content\030\001 \001(\014H\000\022" + + "\r\n\003uri\030\002 \001(\tH\000B\016\n\014audio_source\"\222\001\n\021Recog" + + "nizeResponse\022G\n\007results\030\002 \003(\01326.google.c" + + "loud.speech.v1p1beta1.SpeechRecognitionR" + + "esult\0224\n\021total_billed_time\030\003 \001(\0132\031.googl" + + "e.protobuf.Duration\"\225\002\n\034LongRunningRecog" + + "nizeResponse\022G\n\007results\030\002 \003(\01326.google.c" + + "loud.speech.v1p1beta1.SpeechRecognitionR" + + "esult\0224\n\021total_billed_time\030\003 \001(\0132\031.googl" + + "e.protobuf.Duration\022L\n\routput_config\030\006 \001" + + "(\01325.google.cloud.speech.v1p1beta1.Trans" + + "criptOutputConfig\022(\n\014output_error\030\007 \001(\0132" + + "\022.google.rpc.Status\"\203\002\n\034LongRunningRecog" + + "nizeMetadata\022\030\n\020progress_percent\030\001 \001(\005\022." + + "\n\nstart_time\030\002 \001(\0132\032.google.protobuf.Tim" + + "estamp\0224\n\020last_update_time\030\003 \001(\0132\032.googl" + + "e.protobuf.Timestamp\022\020\n\003uri\030\004 \001(\tB\003\340A\003\022Q" + + "\n\routput_config\030\005 \001(\01325.google.cloud.spe" + + "ech.v1p1beta1.TranscriptOutputConfigB\003\340A" + + "\003\"\365\002\n\032StreamingRecognizeResponse\022!\n\005erro" + + "r\030\001 \001(\0132\022.google.rpc.Status\022J\n\007results\030\002" + + " \003(\01329.google.cloud.speech.v1p1beta1.Str" + + "eamingRecognitionResult\022d\n\021speech_event_" + + "type\030\004 \001(\0162I.google.cloud.speech.v1p1bet" + + "a1.StreamingRecognizeResponse.SpeechEven" + + "tType\0224\n\021total_billed_time\030\005 \001(\0132\031.googl" + + "e.protobuf.Duration\"L\n\017SpeechEventType\022\034" + + "\n\030SPEECH_EVENT_UNSPECIFIED\020\000\022\033\n\027END_OF_S" + + "INGLE_UTTERANCE\020\001\"\371\001\n\032StreamingRecogniti" + + "onResult\022Q\n\014alternatives\030\001 \003(\0132;.google." + + "cloud.speech.v1p1beta1.SpeechRecognition" + + "Alternative\022\020\n\010is_final\030\002 \001(\010\022\021\n\tstabili" + + "ty\030\003 \001(\002\0222\n\017result_end_time\030\004 \001(\0132\031.goog" + + "le.protobuf.Duration\022\023\n\013channel_tag\030\005 \001(" + + "\005\022\032\n\rlanguage_code\030\006 \001(\tB\003\340A\003\"\321\001\n\027Speech" + + "RecognitionResult\022Q\n\014alternatives\030\001 \003(\0132" + + ";.google.cloud.speech.v1p1beta1.SpeechRe" + + "cognitionAlternative\022\023\n\013channel_tag\030\002 \001(" + + "\005\0222\n\017result_end_time\030\004 \001(\0132\031.google.prot" + + "obuf.Duration\022\032\n\rlanguage_code\030\005 \001(\tB\003\340A" + + "\003\"~\n\034SpeechRecognitionAlternative\022\022\n\ntra" + + "nscript\030\001 \001(\t\022\022\n\nconfidence\030\002 \001(\002\0226\n\005wor" + + "ds\030\003 \003(\0132\'.google.cloud.speech.v1p1beta1" + + ".WordInfo\"\242\001\n\010WordInfo\022-\n\nstart_time\030\001 \001" + + "(\0132\031.google.protobuf.Duration\022+\n\010end_tim" + + "e\030\002 \001(\0132\031.google.protobuf.Duration\022\014\n\004wo" + + "rd\030\003 \001(\t\022\022\n\nconfidence\030\004 \001(\002\022\030\n\013speaker_" + + "tag\030\005 \001(\005B\003\340A\0032\202\005\n\006Speech\022\245\001\n\tRecognize\022" + + "/.google.cloud.speech.v1p1beta1.Recogniz" + + "eRequest\0320.google.cloud.speech.v1p1beta1" + + ".RecognizeResponse\"5\202\323\344\223\002 \"\033/v1p1beta1/s" + + "peech:recognize:\001*\332A\014config,audio\022\362\001\n\024Lo" + + "ngRunningRecognize\022:.google.cloud.speech" + + ".v1p1beta1.LongRunningRecognizeRequest\032\035" + + ".google.longrunning.Operation\"\177\202\323\344\223\002+\"&/" + + "v1p1beta1/speech:longrunningrecognize:\001*" + + "\332A\014config,audio\312A<\n\034LongRunningRecognize" + + "Response\022\034LongRunningRecognizeMetadata\022\217" + + "\001\n\022StreamingRecognize\0228.google.cloud.spe" + + "ech.v1p1beta1.StreamingRecognizeRequest\032" + + "9.google.cloud.speech.v1p1beta1.Streamin" + + "gRecognizeResponse\"\000(\0010\001\032I\312A\025speech.goog" + + "leapis.com\322A.https://www.googleapis.com/" + + "auth/cloud-platformB\200\001\n!com.google.cloud" + + ".speech.v1p1beta1B\013SpeechProtoP\001ZCgoogle" + + ".golang.org/genproto/googleapis/cloud/sp" + + "eech/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.AnyProto.getDescriptor(), + com.google.protobuf.DurationProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.protobuf.WrappersProto.getDescriptor(), + com.google.rpc.StatusProto.getDescriptor(), + }); + internal_static_google_cloud_speech_v1p1beta1_RecognizeRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_speech_v1p1beta1_RecognizeRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_speech_v1p1beta1_RecognizeRequest_descriptor, + new java.lang.String[] { + "Config", "Audio", + }); + internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeRequest_descriptor, + new java.lang.String[] { + "Config", "Audio", "OutputConfig", + }); + internal_static_google_cloud_speech_v1p1beta1_TranscriptOutputConfig_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_speech_v1p1beta1_TranscriptOutputConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_speech_v1p1beta1_TranscriptOutputConfig_descriptor, + new java.lang.String[] { + "GcsUri", "OutputType", + }); + internal_static_google_cloud_speech_v1p1beta1_StreamingRecognizeRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_speech_v1p1beta1_StreamingRecognizeRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_speech_v1p1beta1_StreamingRecognizeRequest_descriptor, + new java.lang.String[] { + "StreamingConfig", "AudioContent", "StreamingRequest", + }); + internal_static_google_cloud_speech_v1p1beta1_StreamingRecognitionConfig_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_speech_v1p1beta1_StreamingRecognitionConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_speech_v1p1beta1_StreamingRecognitionConfig_descriptor, + new java.lang.String[] { + "Config", "SingleUtterance", "InterimResults", + }); + internal_static_google_cloud_speech_v1p1beta1_RecognitionConfig_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_speech_v1p1beta1_RecognitionConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_speech_v1p1beta1_RecognitionConfig_descriptor, + new java.lang.String[] { + "Encoding", + "SampleRateHertz", + "AudioChannelCount", + "EnableSeparateRecognitionPerChannel", + "LanguageCode", + "AlternativeLanguageCodes", + "MaxAlternatives", + "ProfanityFilter", + "Adaptation", + "TranscriptNormalization", + "SpeechContexts", + "EnableWordTimeOffsets", + "EnableWordConfidence", + "EnableAutomaticPunctuation", + "EnableSpokenPunctuation", + "EnableSpokenEmojis", + "EnableSpeakerDiarization", + "DiarizationSpeakerCount", + "DiarizationConfig", + "Metadata", + "Model", + "UseEnhanced", + }); + internal_static_google_cloud_speech_v1p1beta1_SpeakerDiarizationConfig_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_speech_v1p1beta1_SpeakerDiarizationConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_speech_v1p1beta1_SpeakerDiarizationConfig_descriptor, + new java.lang.String[] { + "EnableSpeakerDiarization", "MinSpeakerCount", "MaxSpeakerCount", "SpeakerTag", + }); + internal_static_google_cloud_speech_v1p1beta1_RecognitionMetadata_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_speech_v1p1beta1_RecognitionMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_speech_v1p1beta1_RecognitionMetadata_descriptor, + new java.lang.String[] { + "InteractionType", + "IndustryNaicsCodeOfAudio", + "MicrophoneDistance", + "OriginalMediaType", + "RecordingDeviceType", + "RecordingDeviceName", + "OriginalMimeType", + "ObfuscatedId", + "AudioTopic", + }); + internal_static_google_cloud_speech_v1p1beta1_SpeechContext_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_speech_v1p1beta1_SpeechContext_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_speech_v1p1beta1_SpeechContext_descriptor, + new java.lang.String[] { + "Phrases", "Boost", + }); + internal_static_google_cloud_speech_v1p1beta1_RecognitionAudio_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_speech_v1p1beta1_RecognitionAudio_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_speech_v1p1beta1_RecognitionAudio_descriptor, + new java.lang.String[] { + "Content", "Uri", "AudioSource", + }); + internal_static_google_cloud_speech_v1p1beta1_RecognizeResponse_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_speech_v1p1beta1_RecognizeResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_speech_v1p1beta1_RecognizeResponse_descriptor, + new java.lang.String[] { + "Results", "TotalBilledTime", + }); + internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeResponse_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeResponse_descriptor, + new java.lang.String[] { + "Results", "TotalBilledTime", "OutputConfig", "OutputError", + }); + internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeMetadata_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeMetadata_descriptor, + new java.lang.String[] { + "ProgressPercent", "StartTime", "LastUpdateTime", "Uri", "OutputConfig", + }); + internal_static_google_cloud_speech_v1p1beta1_StreamingRecognizeResponse_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_cloud_speech_v1p1beta1_StreamingRecognizeResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_speech_v1p1beta1_StreamingRecognizeResponse_descriptor, + new java.lang.String[] { + "Error", "Results", "SpeechEventType", "TotalBilledTime", + }); + internal_static_google_cloud_speech_v1p1beta1_StreamingRecognitionResult_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_cloud_speech_v1p1beta1_StreamingRecognitionResult_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_speech_v1p1beta1_StreamingRecognitionResult_descriptor, + new java.lang.String[] { + "Alternatives", "IsFinal", "Stability", "ResultEndTime", "ChannelTag", "LanguageCode", + }); + internal_static_google_cloud_speech_v1p1beta1_SpeechRecognitionResult_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_google_cloud_speech_v1p1beta1_SpeechRecognitionResult_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_speech_v1p1beta1_SpeechRecognitionResult_descriptor, + new java.lang.String[] { + "Alternatives", "ChannelTag", "ResultEndTime", "LanguageCode", + }); + internal_static_google_cloud_speech_v1p1beta1_SpeechRecognitionAlternative_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_google_cloud_speech_v1p1beta1_SpeechRecognitionAlternative_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_speech_v1p1beta1_SpeechRecognitionAlternative_descriptor, + new java.lang.String[] { + "Transcript", "Confidence", "Words", + }); + internal_static_google_cloud_speech_v1p1beta1_WordInfo_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_google_cloud_speech_v1p1beta1_WordInfo_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_speech_v1p1beta1_WordInfo_descriptor, + new java.lang.String[] { + "StartTime", "EndTime", "Word", "Confidence", "SpeakerTag", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.longrunning.OperationsProto.operationInfo); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.cloud.speech.v1p1beta1.SpeechResourceProto.getDescriptor(); + com.google.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.AnyProto.getDescriptor(); + com.google.protobuf.DurationProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.protobuf.WrappersProto.getDescriptor(); + com.google.rpc.StatusProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionAlternative.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionAlternative.java similarity index 75% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionAlternative.java rename to proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionAlternative.java index 28e43be4c..526199d20 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionAlternative.java +++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionAlternative.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech.proto package com.google.cloud.speech.v1p1beta1; /** + * + * *
  * Alternative hypotheses (a.k.a. n-best list).
  * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative} */ -public final class SpeechRecognitionAlternative extends - com.google.protobuf.GeneratedMessageV3 implements +public final class SpeechRecognitionAlternative extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative) SpeechRecognitionAlternativeOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use SpeechRecognitionAlternative.newBuilder() to construct. private SpeechRecognitionAlternative(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private SpeechRecognitionAlternative() { transcript_ = ""; words_ = java.util.Collections.emptyList(); @@ -26,16 +44,15 @@ private SpeechRecognitionAlternative() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new SpeechRecognitionAlternative(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private SpeechRecognitionAlternative( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,40 +72,42 @@ private SpeechRecognitionAlternative( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - transcript_ = s; - break; - } - case 21: { + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - confidence_ = input.readFloat(); - break; - } - case 26: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - words_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + transcript_ = s; + break; } - words_.add( - input.readMessage(com.google.cloud.speech.v1p1beta1.WordInfo.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 21: + { + confidence_ = input.readFloat(); + break; + } + case 26: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + words_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + words_.add( + input.readMessage( + com.google.cloud.speech.v1p1beta1.WordInfo.parser(), extensionRegistry)); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { words_ = java.util.Collections.unmodifiableList(words_); @@ -97,27 +116,33 @@ private SpeechRecognitionAlternative( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_SpeechRecognitionAlternative_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechProto + .internal_static_google_cloud_speech_v1p1beta1_SpeechRecognitionAlternative_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_SpeechRecognitionAlternative_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechProto + .internal_static_google_cloud_speech_v1p1beta1_SpeechRecognitionAlternative_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.class, com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.Builder.class); + com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.class, + com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.Builder.class); } public static final int TRANSCRIPT_FIELD_NUMBER = 1; private volatile java.lang.Object transcript_; /** + * + * *
    * Transcript text representing the words that the user spoke.
    * 
* * string transcript = 1; + * * @return The transcript. */ @java.lang.Override @@ -126,29 +151,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 { @@ -159,6 +184,8 @@ public java.lang.String getTranscript() { public static final int CONFIDENCE_FIELD_NUMBER = 2; private float confidence_; /** + * + * *
    * The confidence estimate between 0.0 and 1.0. A higher number
    * indicates an estimated greater likelihood that the recognized words are
@@ -170,6 +197,7 @@ public java.lang.String getTranscript() {
    * 
* * float confidence = 2; + * * @return The confidence. */ @java.lang.Override @@ -180,6 +208,8 @@ public float getConfidence() { public static final int WORDS_FIELD_NUMBER = 3; private java.util.List words_; /** + * + * *
    * A list of word-specific information for each recognized word.
    * Note: When `enable_speaker_diarization` is true, you will see all the words
@@ -193,6 +223,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
@@ -202,11 +234,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
@@ -220,6 +254,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
@@ -233,6 +269,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
@@ -242,12 +280,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;
@@ -259,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 {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(transcript_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, transcript_);
     }
@@ -283,12 +320,10 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, transcript_);
     }
     if (confidence_ != 0F) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeFloatSize(2, confidence_);
+      size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, confidence_);
     }
     for (int i = 0; i < words_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(3, words_.get(i));
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, words_.get(i));
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -298,20 +333,18 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative)) {
       return super.equals(obj);
     }
-    com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative other = (com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative) obj;
+    com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative other =
+        (com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative) obj;
 
-    if (!getTranscript()
-        .equals(other.getTranscript())) return false;
+    if (!getTranscript().equals(other.getTranscript())) return false;
     if (java.lang.Float.floatToIntBits(getConfidence())
-        != java.lang.Float.floatToIntBits(
-            other.getConfidence())) return false;
-    if (!getWordsList()
-        .equals(other.getWordsList())) return false;
+        != java.lang.Float.floatToIntBits(other.getConfidence())) return false;
+    if (!getWordsList().equals(other.getWordsList())) return false;
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
   }
@@ -326,8 +359,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();
@@ -338,117 +370,127 @@ public int hashCode() {
   }
 
   public static com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative parseFrom(
-      java.nio.ByteBuffer data)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative parseFrom(byte[] data)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+
+  public static com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative parseFrom(
+      byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
-  public static com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+
+  public static com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-  public static Builder newBuilder(com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative prototype) {
+
+  public static Builder newBuilder(
+      com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * Alternative hypotheses (a.k.a. n-best list).
    * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative) com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternativeOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_SpeechRecognitionAlternative_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechProto + .internal_static_google_cloud_speech_v1p1beta1_SpeechRecognitionAlternative_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_SpeechRecognitionAlternative_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechProto + .internal_static_google_cloud_speech_v1p1beta1_SpeechRecognitionAlternative_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.class, com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.Builder.class); + com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.class, + com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.Builder.class); } // Construct using com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.newBuilder() @@ -456,17 +498,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getWordsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -484,13 +526,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(); } @@ -505,7 +548,8 @@ public com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative build() { @java.lang.Override public com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative buildPartial() { - com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative result = new com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative(this); + com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative result = + new com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative(this); int from_bitField0_ = bitField0_; result.transcript_ = transcript_; result.confidence_ = confidence_; @@ -526,38 +570,39 @@ public com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative buildParti public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative) { - return mergeFrom((com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative)other); + return mergeFrom((com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative) other); } else { super.mergeFrom(other); return this; @@ -565,7 +610,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative other) { - if (other == com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.getDefaultInstance()) return this; + if (other + == com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.getDefaultInstance()) + return this; if (!other.getTranscript().isEmpty()) { transcript_ = other.transcript_; onChanged(); @@ -591,9 +638,10 @@ public Builder mergeFrom(com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlte wordsBuilder_ = null; words_ = other.words_; bitField0_ = (bitField0_ & ~0x00000001); - wordsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getWordsFieldBuilder() : null; + wordsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getWordsFieldBuilder() + : null; } else { wordsBuilder_.addAllMessages(other.words_); } @@ -618,7 +666,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -627,22 +677,25 @@ public Builder mergeFrom( } 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; @@ -651,20 +704,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 { @@ -672,61 +726,70 @@ 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) { + public Builder setTranscript(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + transcript_ = value; onChanged(); return this; } /** + * + * *
      * Transcript text representing the words that the user spoke.
      * 
* * string transcript = 1; + * * @return This builder for chaining. */ public Builder clearTranscript() { - + transcript_ = getDefaultInstance().getTranscript(); onChanged(); return this; } /** + * + * *
      * Transcript text representing the words that the user spoke.
      * 
* * string transcript = 1; + * * @param value The bytes for transcript to set. * @return This builder for chaining. */ - public Builder setTranscriptBytes( - com.google.protobuf.ByteString value) { + public Builder setTranscriptBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + transcript_ = value; onChanged(); return this; } - private float confidence_ ; + private float confidence_; /** + * + * *
      * The confidence estimate between 0.0 and 1.0. A higher number
      * indicates an estimated greater likelihood that the recognized words are
@@ -738,6 +801,7 @@ public Builder setTranscriptBytes(
      * 
* * float confidence = 2; + * * @return The confidence. */ @java.lang.Override @@ -745,6 +809,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
@@ -756,16 +822,19 @@ public float getConfidence() {
      * 
* * float confidence = 2; + * * @param value The confidence to set. * @return This builder for chaining. */ public Builder setConfidence(float value) { - + confidence_ = value; onChanged(); return this; } /** + * + * *
      * The confidence estimate between 0.0 and 1.0. A higher number
      * indicates an estimated greater likelihood that the recognized words are
@@ -777,28 +846,35 @@ public Builder setConfidence(float value) {
      * 
* * float confidence = 2; + * * @return This builder for chaining. */ public Builder clearConfidence() { - + confidence_ = 0F; onChanged(); return this; } private java.util.List words_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureWordsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { words_ = new java.util.ArrayList(words_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.WordInfo, com.google.cloud.speech.v1p1beta1.WordInfo.Builder, com.google.cloud.speech.v1p1beta1.WordInfoOrBuilder> wordsBuilder_; + com.google.cloud.speech.v1p1beta1.WordInfo, + com.google.cloud.speech.v1p1beta1.WordInfo.Builder, + com.google.cloud.speech.v1p1beta1.WordInfoOrBuilder> + wordsBuilder_; /** + * + * *
      * A list of word-specific information for each recognized word.
      * Note: When `enable_speaker_diarization` is true, you will see all the words
@@ -815,6 +891,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
@@ -831,6 +909,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
@@ -847,6 +927,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
@@ -855,8 +937,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();
@@ -870,6 +951,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
@@ -890,6 +973,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
@@ -912,6 +997,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
@@ -920,8 +1007,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();
@@ -935,6 +1021,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
@@ -943,8 +1031,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());
@@ -955,6 +1042,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
@@ -975,6 +1064,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
@@ -987,8 +1078,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 +1086,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
@@ -1015,6 +1107,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
@@ -1034,6 +1128,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
@@ -1042,11 +1138,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
@@ -1055,14 +1152,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
@@ -1071,8 +1170,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 {
@@ -1080,6 +1179,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
@@ -1089,10 +1190,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
@@ -1101,12 +1204,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
@@ -1115,27 +1219,30 @@ public com.google.cloud.speech.v1p1beta1.WordInfo.Builder addWordsBuilder(
      *
      * repeated .google.cloud.speech.v1p1beta1.WordInfo words = 3;
      */
-    public java.util.List 
-         getWordsBuilderList() {
+    public java.util.List
+        getWordsBuilderList() {
       return getWordsFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.speech.v1p1beta1.WordInfo, com.google.cloud.speech.v1p1beta1.WordInfo.Builder, com.google.cloud.speech.v1p1beta1.WordInfoOrBuilder> 
+            com.google.cloud.speech.v1p1beta1.WordInfo,
+            com.google.cloud.speech.v1p1beta1.WordInfo.Builder,
+            com.google.cloud.speech.v1p1beta1.WordInfoOrBuilder>
         getWordsFieldBuilder() {
       if (wordsBuilder_ == null) {
-        wordsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.speech.v1p1beta1.WordInfo, com.google.cloud.speech.v1p1beta1.WordInfo.Builder, com.google.cloud.speech.v1p1beta1.WordInfoOrBuilder>(
-                words_,
-                ((bitField0_ & 0x00000001) != 0),
-                getParentForChildren(),
-                isClean());
+        wordsBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.cloud.speech.v1p1beta1.WordInfo,
+                com.google.cloud.speech.v1p1beta1.WordInfo.Builder,
+                com.google.cloud.speech.v1p1beta1.WordInfoOrBuilder>(
+                words_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
         words_ = null;
       }
       return wordsBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1145,30 +1252,32 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative)
-  private static final com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative DEFAULT_INSTANCE;
+  private static final com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative
+      DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative();
   }
 
-  public static com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative getDefaultInstance() {
+  public static com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative
+      getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public SpeechRecognitionAlternative parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return new SpeechRecognitionAlternative(input, extensionRegistry);
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public SpeechRecognitionAlternative parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          return new SpeechRecognitionAlternative(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1180,9 +1289,8 @@ public com.google.protobuf.Parser getParserForType
   }
 
   @java.lang.Override
-  public com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative getDefaultInstanceForType() {
+  public com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative
+      getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionAlternativeOrBuilder.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionAlternativeOrBuilder.java
similarity index 76%
rename from owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionAlternativeOrBuilder.java
rename to proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionAlternativeOrBuilder.java
index 771996674..c2ff84253 100644
--- a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionAlternativeOrBuilder.java
+++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionAlternativeOrBuilder.java
@@ -1,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/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.
    * 
* * 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
@@ -39,11 +62,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
@@ -52,9 +78,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
@@ -65,6 +92,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
@@ -75,6 +104,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
@@ -83,9 +114,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
@@ -94,6 +127,5 @@ public interface SpeechRecognitionAlternativeOrBuilder extends
    *
    * repeated .google.cloud.speech.v1p1beta1.WordInfo words = 3;
    */
-  com.google.cloud.speech.v1p1beta1.WordInfoOrBuilder getWordsOrBuilder(
-      int index);
+  com.google.cloud.speech.v1p1beta1.WordInfoOrBuilder getWordsOrBuilder(int index);
 }
diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionResult.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionResult.java
similarity index 73%
rename from owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionResult.java
rename to proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionResult.java
index 55d3a6e69..50eda7566 100644
--- a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionResult.java
+++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionResult.java
@@ -1,24 +1,42 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/speech/v1p1beta1/cloud_speech.proto
 
 package com.google.cloud.speech.v1p1beta1;
 
 /**
+ *
+ *
  * 
  * A speech recognition result corresponding to a portion of the audio.
  * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.SpeechRecognitionResult} */ -public final class SpeechRecognitionResult extends - com.google.protobuf.GeneratedMessageV3 implements +public final class SpeechRecognitionResult extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v1p1beta1.SpeechRecognitionResult) SpeechRecognitionResultOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use SpeechRecognitionResult.newBuilder() to construct. private SpeechRecognitionResult(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private SpeechRecognitionResult() { alternatives_ = java.util.Collections.emptyList(); languageCode_ = ""; @@ -26,16 +44,15 @@ private SpeechRecognitionResult() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new SpeechRecognitionResult(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private SpeechRecognitionResult( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,53 +72,60 @@ private SpeechRecognitionResult( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - alternatives_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - alternatives_.add( - input.readMessage(com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.parser(), extensionRegistry)); - break; - } - case 16: { - - channelTag_ = input.readInt32(); - break; - } - case 34: { - com.google.protobuf.Duration.Builder subBuilder = null; - if (resultEndTime_ != null) { - subBuilder = resultEndTime_.toBuilder(); + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + alternatives_ = + new java.util.ArrayList< + com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative>(); + mutable_bitField0_ |= 0x00000001; + } + alternatives_.add( + input.readMessage( + com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.parser(), + extensionRegistry)); + break; } - resultEndTime_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(resultEndTime_); - resultEndTime_ = subBuilder.buildPartial(); + case 16: + { + channelTag_ = input.readInt32(); + break; } + case 34: + { + com.google.protobuf.Duration.Builder subBuilder = null; + if (resultEndTime_ != null) { + subBuilder = resultEndTime_.toBuilder(); + } + resultEndTime_ = + input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(resultEndTime_); + resultEndTime_ = subBuilder.buildPartial(); + } - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); - languageCode_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + languageCode_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { alternatives_ = java.util.Collections.unmodifiableList(alternatives_); @@ -110,22 +134,28 @@ private SpeechRecognitionResult( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_SpeechRecognitionResult_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechProto + .internal_static_google_cloud_speech_v1p1beta1_SpeechRecognitionResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_SpeechRecognitionResult_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechProto + .internal_static_google_cloud_speech_v1p1beta1_SpeechRecognitionResult_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult.class, com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult.Builder.class); + com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult.class, + com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult.Builder.class); } public static final int ALTERNATIVES_FIELD_NUMBER = 1; - private java.util.List alternatives_; + private java.util.List + alternatives_; /** + * + * *
    * May contain one or more recognition hypotheses (up to the
    * maximum specified in `max_alternatives`).
@@ -133,13 +163,17 @@ private SpeechRecognitionResult(
    * alternative being the most probable, as ranked by the recognizer.
    * 
* - * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; + * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; + * */ @java.lang.Override - public java.util.List getAlternativesList() { + public java.util.List + getAlternativesList() { return alternatives_; } /** + * + * *
    * May contain one or more recognition hypotheses (up to the
    * maximum specified in `max_alternatives`).
@@ -147,14 +181,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`).
@@ -162,13 +200,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`).
@@ -176,13 +217,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`).
@@ -190,17 +234,20 @@ public com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative getAlterna
    * alternative being the most probable, as ranked by the recognizer.
    * 
* - * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; + * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; + * */ @java.lang.Override - public com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternativeOrBuilder getAlternativesOrBuilder( - int index) { + public com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternativeOrBuilder + getAlternativesOrBuilder(int index) { return alternatives_.get(index); } public static final int CHANNEL_TAG_FIELD_NUMBER = 2; private int channelTag_; /** + * + * *
    * For multi-channel audio, this is the channel number corresponding to the
    * recognized result for the audio from that channel.
@@ -208,6 +255,7 @@ public com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternativeOrBuilder g
    * 
* * int32 channel_tag = 2; + * * @return The channelTag. */ @java.lang.Override @@ -218,12 +266,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 @@ -231,19 +282,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.
@@ -259,6 +317,8 @@ public com.google.protobuf.DurationOrBuilder getResultEndTimeOrBuilder() {
   public static final int LANGUAGE_CODE_FIELD_NUMBER = 5;
   private volatile java.lang.Object languageCode_;
   /**
+   *
+   *
    * 
    * Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag
    * of the language in this result. This language code was detected to have
@@ -266,6 +326,7 @@ public com.google.protobuf.DurationOrBuilder getResultEndTimeOrBuilder() {
    * 
* * string language_code = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The languageCode. */ @java.lang.Override @@ -274,14 +335,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
@@ -289,16 +351,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 { @@ -307,6 +368,7 @@ public java.lang.String getLanguageCode() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -318,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 < alternatives_.size(); i++) { output.writeMessage(1, alternatives_.get(i)); } @@ -342,16 +403,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_); @@ -364,24 +422,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult)) { return super.equals(obj); } - com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult other = (com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult) obj; + com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult other = + (com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult) obj; - if (!getAlternativesList() - .equals(other.getAlternativesList())) return false; - if (getChannelTag() - != other.getChannelTag()) return false; + if (!getAlternativesList().equals(other.getAlternativesList())) return false; + if (getChannelTag() != other.getChannelTag()) return false; if (hasResultEndTime() != other.hasResultEndTime()) return false; if (hasResultEndTime()) { - if (!getResultEndTime() - .equals(other.getResultEndTime())) return false; + if (!getResultEndTime().equals(other.getResultEndTime())) return false; } - if (!getLanguageCode() - .equals(other.getLanguageCode())) return false; + if (!getLanguageCode().equals(other.getLanguageCode())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -411,117 +466,127 @@ public int hashCode() { } public static com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult prototype) { + + public static Builder newBuilder( + com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A speech recognition result corresponding to a portion of the audio.
    * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.SpeechRecognitionResult} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1p1beta1.SpeechRecognitionResult) com.google.cloud.speech.v1p1beta1.SpeechRecognitionResultOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_SpeechRecognitionResult_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechProto + .internal_static_google_cloud_speech_v1p1beta1_SpeechRecognitionResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_SpeechRecognitionResult_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechProto + .internal_static_google_cloud_speech_v1p1beta1_SpeechRecognitionResult_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult.class, com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult.Builder.class); + com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult.class, + com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult.Builder.class); } // Construct using com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult.newBuilder() @@ -529,17 +594,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getAlternativesFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -563,9 +628,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 @@ -584,7 +649,8 @@ public com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult build() { @java.lang.Override public com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult buildPartial() { - com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult result = new com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult(this); + com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult result = + new com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult(this); int from_bitField0_ = bitField0_; if (alternativesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -610,38 +676,39 @@ public com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult buildPartial() public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult) { - return mergeFrom((com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult)other); + return mergeFrom((com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult) other); } else { super.mergeFrom(other); return this; @@ -649,7 +716,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()) { @@ -668,9 +736,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_); } @@ -705,7 +774,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -714,21 +784,30 @@ public Builder mergeFrom( } return this; } + private int bitField0_; - private java.util.List alternatives_ = - java.util.Collections.emptyList(); + private java.util.List + alternatives_ = java.util.Collections.emptyList(); + private void ensureAlternativesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - alternatives_ = new java.util.ArrayList(alternatives_); + alternatives_ = + new java.util.ArrayList( + alternatives_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative, com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.Builder, com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternativeOrBuilder> alternativesBuilder_; + com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative, + com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.Builder, + com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternativeOrBuilder> + alternativesBuilder_; /** + * + * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -736,9 +815,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 { @@ -746,6 +827,8 @@ public java.util.List * May contain one or more recognition hypotheses (up to the * maximum specified in `max_alternatives`). @@ -753,7 +836,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) { @@ -763,6 +847,8 @@ public int getAlternativesCount() { } } /** + * + * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -770,9 +856,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 { @@ -780,6 +868,8 @@ public com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative getAlterna } } /** + * + * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -787,7 +877,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) { @@ -804,6 +895,8 @@ public Builder setAlternatives( return this; } /** + * + * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -811,10 +904,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()); @@ -825,6 +920,8 @@ public Builder setAlternatives( return this; } /** + * + * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -832,9 +929,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(); @@ -848,6 +947,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`).
@@ -855,7 +956,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) { @@ -872,6 +974,8 @@ public Builder addAlternatives( return this; } /** + * + * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -879,7 +983,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) { @@ -893,6 +998,8 @@ public Builder addAlternatives( return this; } /** + * + * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -900,10 +1007,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()); @@ -914,6 +1023,8 @@ public Builder addAlternatives( return this; } /** + * + * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -921,14 +1032,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); @@ -936,6 +1048,8 @@ public Builder addAllAlternatives( return this; } /** + * + * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -943,7 +1057,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) { @@ -956,6 +1071,8 @@ public Builder clearAlternatives() { return this; } /** + * + * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -963,7 +1080,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) { @@ -976,6 +1094,8 @@ public Builder removeAlternatives(int index) { return this; } /** + * + * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -983,13 +1103,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`).
@@ -997,16 +1120,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`).
@@ -1014,10 +1141,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 { @@ -1025,6 +1154,8 @@ public com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternativeOrBuilder g } } /** + * + * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -1032,13 +1163,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`).
@@ -1046,14 +1182,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`).
@@ -1061,29 +1202,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.
@@ -1091,6 +1238,7 @@ public com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.Builder ad
      * 
* * int32 channel_tag = 2; + * * @return The channelTag. */ @java.lang.Override @@ -1098,6 +1246,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.
@@ -1105,16 +1255,19 @@ public int getChannelTag() {
      * 
* * int32 channel_tag = 2; + * * @param value The channelTag to set. * @return This builder for chaining. */ public Builder setChannelTag(int value) { - + channelTag_ = value; onChanged(); return this; } /** + * + * *
      * For multi-channel audio, this is the channel number corresponding to the
      * recognized result for the audio from that channel.
@@ -1122,10 +1275,11 @@ public Builder setChannelTag(int value) {
      * 
* * int32 channel_tag = 2; + * * @return This builder for chaining. */ public Builder clearChannelTag() { - + channelTag_ = 0; onChanged(); return this; @@ -1133,36 +1287,49 @@ public Builder clearChannelTag() { private com.google.protobuf.Duration resultEndTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> resultEndTimeBuilder_; + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + resultEndTimeBuilder_; /** + * + * *
      * Time offset of the end of this result relative to the
      * beginning of the audio.
      * 
* * .google.protobuf.Duration result_end_time = 4; + * * @return Whether the resultEndTime field is set. */ public boolean hasResultEndTime() { return resultEndTimeBuilder_ != null || resultEndTime_ != null; } /** + * + * *
      * Time offset of the end of this result relative to the
      * beginning of the audio.
      * 
* * .google.protobuf.Duration result_end_time = 4; + * * @return The resultEndTime. */ public com.google.protobuf.Duration getResultEndTime() { if (resultEndTimeBuilder_ == null) { - return resultEndTime_ == null ? com.google.protobuf.Duration.getDefaultInstance() : resultEndTime_; + return resultEndTime_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : resultEndTime_; } else { return resultEndTimeBuilder_.getMessage(); } } /** + * + * *
      * Time offset of the end of this result relative to the
      * beginning of the audio.
@@ -1184,6 +1351,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.
@@ -1191,8 +1360,7 @@ public Builder setResultEndTime(com.google.protobuf.Duration value) {
      *
      * .google.protobuf.Duration result_end_time = 4;
      */
-    public Builder setResultEndTime(
-        com.google.protobuf.Duration.Builder builderForValue) {
+    public Builder setResultEndTime(com.google.protobuf.Duration.Builder builderForValue) {
       if (resultEndTimeBuilder_ == null) {
         resultEndTime_ = builderForValue.build();
         onChanged();
@@ -1203,6 +1371,8 @@ public Builder setResultEndTime(
       return this;
     }
     /**
+     *
+     *
      * 
      * Time offset of the end of this result relative to the
      * beginning of the audio.
@@ -1214,7 +1384,9 @@ public Builder mergeResultEndTime(com.google.protobuf.Duration value) {
       if (resultEndTimeBuilder_ == null) {
         if (resultEndTime_ != null) {
           resultEndTime_ =
-            com.google.protobuf.Duration.newBuilder(resultEndTime_).mergeFrom(value).buildPartial();
+              com.google.protobuf.Duration.newBuilder(resultEndTime_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           resultEndTime_ = value;
         }
@@ -1226,6 +1398,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.
@@ -1245,6 +1419,8 @@ public Builder clearResultEndTime() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Time offset of the end of this result relative to the
      * beginning of the audio.
@@ -1253,11 +1429,13 @@ public Builder clearResultEndTime() {
      * .google.protobuf.Duration result_end_time = 4;
      */
     public com.google.protobuf.Duration.Builder getResultEndTimeBuilder() {
-      
+
       onChanged();
       return getResultEndTimeFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Time offset of the end of this result relative to the
      * beginning of the audio.
@@ -1269,11 +1447,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.
@@ -1282,14 +1463,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_;
@@ -1297,6 +1481,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
@@ -1304,13 +1490,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; @@ -1319,6 +1505,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
@@ -1326,15 +1514,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 { @@ -1342,6 +1529,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
@@ -1349,20 +1538,22 @@ public java.lang.String getLanguageCode() {
      * 
* * string language_code = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCode( - java.lang.String value) { + public Builder setLanguageCode(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + languageCode_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag
      * of the language in this result. This language code was detected to have
@@ -1370,15 +1561,18 @@ public Builder setLanguageCode(
      * 
* * string language_code = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearLanguageCode() { - + languageCode_ = getDefaultInstance().getLanguageCode(); onChanged(); return this; } /** + * + * *
      * Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag
      * of the language in this result. This language code was detected to have
@@ -1386,23 +1580,23 @@ public Builder clearLanguageCode() {
      * 
* * string language_code = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCodeBytes( - com.google.protobuf.ByteString value) { + public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + languageCode_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1412,12 +1606,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(); } @@ -1426,16 +1620,16 @@ public static com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SpeechRecognitionResult parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SpeechRecognitionResult(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SpeechRecognitionResult parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SpeechRecognitionResult(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1450,6 +1644,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionResultOrBuilder.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionResultOrBuilder.java similarity index 79% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionResultOrBuilder.java rename to proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionResultOrBuilder.java index 55e3c978e..b836a20e7 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionResultOrBuilder.java +++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionResultOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech.proto package com.google.cloud.speech.v1p1beta1; -public interface SpeechRecognitionResultOrBuilder extends +public interface SpeechRecognitionResultOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1p1beta1.SpeechRecognitionResult) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * May contain one or more recognition hypotheses (up to the
    * maximum specified in `max_alternatives`).
@@ -15,11 +33,14 @@ public interface SpeechRecognitionResultOrBuilder extends
    * alternative being the most probable, as ranked by the recognizer.
    * 
* - * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; + * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; + * */ - java.util.List + java.util.List getAlternativesList(); /** + * + * *
    * May contain one or more recognition hypotheses (up to the
    * maximum specified in `max_alternatives`).
@@ -27,10 +48,13 @@ public interface SpeechRecognitionResultOrBuilder extends
    * alternative being the most probable, as ranked by the recognizer.
    * 
* - * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; + * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; + * */ com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative getAlternatives(int index); /** + * + * *
    * May contain one or more recognition hypotheses (up to the
    * maximum specified in `max_alternatives`).
@@ -38,10 +62,13 @@ public interface SpeechRecognitionResultOrBuilder extends
    * alternative being the most probable, as ranked by the recognizer.
    * 
* - * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; + * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; + * */ int getAlternativesCount(); /** + * + * *
    * May contain one or more recognition hypotheses (up to the
    * maximum specified in `max_alternatives`).
@@ -49,11 +76,14 @@ public interface SpeechRecognitionResultOrBuilder extends
    * alternative being the most probable, as ranked by the recognizer.
    * 
* - * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; + * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; + * */ - java.util.List + java.util.List getAlternativesOrBuilderList(); /** + * + * *
    * May contain one or more recognition hypotheses (up to the
    * maximum specified in `max_alternatives`).
@@ -61,12 +91,15 @@ public interface SpeechRecognitionResultOrBuilder extends
    * alternative being the most probable, as ranked by the recognizer.
    * 
* - * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; + * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; + * */ com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternativeOrBuilder getAlternativesOrBuilder( int index); /** + * + * *
    * For multi-channel audio, this is the channel number corresponding to the
    * recognized result for the audio from that channel.
@@ -74,31 +107,40 @@ com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternativeOrBuilder getAlter
    * 
* * int32 channel_tag = 2; + * * @return The channelTag. */ int getChannelTag(); /** + * + * *
    * Time offset of the end of this result relative to the
    * beginning of the audio.
    * 
* * .google.protobuf.Duration result_end_time = 4; + * * @return Whether the resultEndTime field is set. */ boolean hasResultEndTime(); /** + * + * *
    * Time offset of the end of this result relative to the
    * beginning of the audio.
    * 
* * .google.protobuf.Duration result_end_time = 4; + * * @return The resultEndTime. */ com.google.protobuf.Duration getResultEndTime(); /** + * + * *
    * Time offset of the end of this result relative to the
    * beginning of the audio.
@@ -109,6 +151,8 @@ com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternativeOrBuilder getAlter
   com.google.protobuf.DurationOrBuilder getResultEndTimeOrBuilder();
 
   /**
+   *
+   *
    * 
    * Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag
    * of the language in this result. This language code was detected to have
@@ -116,10 +160,13 @@ com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternativeOrBuilder getAlter
    * 
* * string language_code = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The languageCode. */ java.lang.String getLanguageCode(); /** + * + * *
    * Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag
    * of the language in this result. This language code was detected to have
@@ -127,8 +174,8 @@ com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternativeOrBuilder getAlter
    * 
* * string language_code = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for languageCode. */ - com.google.protobuf.ByteString - getLanguageCodeBytes(); + com.google.protobuf.ByteString getLanguageCodeBytes(); } diff --git a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechResourceProto.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechResourceProto.java new file mode 100644 index 000000000..fd1fc79b9 --- /dev/null +++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechResourceProto.java @@ -0,0 +1,179 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/speech/v1p1beta1/resource.proto + +package com.google.cloud.speech.v1p1beta1; + +public final class SpeechResourceProto { + private SpeechResourceProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1p1beta1_CustomClass_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1p1beta1_CustomClass_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1p1beta1_CustomClass_ClassItem_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1p1beta1_CustomClass_ClassItem_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1p1beta1_PhraseSet_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1p1beta1_PhraseSet_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1p1beta1_PhraseSet_Phrase_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1p1beta1_PhraseSet_Phrase_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptation_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1p1beta1_TranscriptNormalization_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1p1beta1_TranscriptNormalization_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1p1beta1_TranscriptNormalization_Entry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1p1beta1_TranscriptNormalization_Entry_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n,google/cloud/speech/v1p1beta1/resource" + + ".proto\022\035google.cloud.speech.v1p1beta1\032\031g" + + "oogle/api/resource.proto\032\037google/protobu" + + "f/timestamp.proto\032\034google/api/annotation" + + "s.proto\"\203\002\n\013CustomClass\022\014\n\004name\030\001 \001(\t\022\027\n" + + "\017custom_class_id\030\002 \001(\t\022C\n\005items\030\003 \003(\01324." + + "google.cloud.speech.v1p1beta1.CustomClas" + + "s.ClassItem\032\032\n\tClassItem\022\r\n\005value\030\001 \001(\t:" + + "l\352Ai\n!speech.googleapis.com/CustomClass\022" + + "Dprojects/{project}/locations/{location}" + + "/customClasses/{custom_class}\"\371\001\n\tPhrase" + + "Set\022\014\n\004name\030\001 \001(\t\022@\n\007phrases\030\002 \003(\0132/.goo" + + "gle.cloud.speech.v1p1beta1.PhraseSet.Phr" + + "ase\022\r\n\005boost\030\004 \001(\002\032&\n\006Phrase\022\r\n\005value\030\001 " + + "\001(\t\022\r\n\005boost\030\002 \001(\002:e\352Ab\n\037speech.googleap" + + "is.com/PhraseSet\022?projects/{project}/loc" + + "ations/{location}/phraseSets/{phrase_set" + + "}\"\332\001\n\020SpeechAdaptation\022=\n\013phrase_sets\030\001 " + + "\003(\0132(.google.cloud.speech.v1p1beta1.Phra" + + "seSet\022C\n\025phrase_set_references\030\002 \003(\tB$\372A" + + "!\n\037speech.googleapis.com/PhraseSet\022B\n\016cu" + + "stom_classes\030\003 \003(\0132*.google.cloud.speech" + + ".v1p1beta1.CustomClass\"\252\001\n\027TranscriptNor" + + "malization\022M\n\007entries\030\001 \003(\0132<.google.clo" + + "ud.speech.v1p1beta1.TranscriptNormalizat" + + "ion.Entry\032@\n\005Entry\022\016\n\006search\030\001 \001(\t\022\017\n\007re" + + "place\030\002 \001(\t\022\026\n\016case_sensitive\030\003 \001(\010B\210\001\n!" + + "com.google.cloud.speech.v1p1beta1B\023Speec" + + "hResourceProtoP\001ZCgoogle.golang.org/genp" + + "roto/googleapis/cloud/speech/v1p1beta1;s" + + "peech\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(), + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.api.AnnotationsProto.getDescriptor(), + }); + internal_static_google_cloud_speech_v1p1beta1_CustomClass_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_speech_v1p1beta1_CustomClass_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_speech_v1p1beta1_CustomClass_descriptor, + new java.lang.String[] { + "Name", "CustomClassId", "Items", + }); + internal_static_google_cloud_speech_v1p1beta1_CustomClass_ClassItem_descriptor = + internal_static_google_cloud_speech_v1p1beta1_CustomClass_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_speech_v1p1beta1_CustomClass_ClassItem_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_speech_v1p1beta1_CustomClass_ClassItem_descriptor, + new java.lang.String[] { + "Value", + }); + internal_static_google_cloud_speech_v1p1beta1_PhraseSet_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_speech_v1p1beta1_PhraseSet_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_speech_v1p1beta1_PhraseSet_descriptor, + new java.lang.String[] { + "Name", "Phrases", "Boost", + }); + internal_static_google_cloud_speech_v1p1beta1_PhraseSet_Phrase_descriptor = + internal_static_google_cloud_speech_v1p1beta1_PhraseSet_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_speech_v1p1beta1_PhraseSet_Phrase_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_speech_v1p1beta1_PhraseSet_Phrase_descriptor, + new java.lang.String[] { + "Value", "Boost", + }); + internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptation_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptation_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptation_descriptor, + new java.lang.String[] { + "PhraseSets", "PhraseSetReferences", "CustomClasses", + }); + internal_static_google_cloud_speech_v1p1beta1_TranscriptNormalization_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_speech_v1p1beta1_TranscriptNormalization_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_speech_v1p1beta1_TranscriptNormalization_descriptor, + new java.lang.String[] { + "Entries", + }); + internal_static_google_cloud_speech_v1p1beta1_TranscriptNormalization_Entry_descriptor = + internal_static_google_cloud_speech_v1p1beta1_TranscriptNormalization_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_speech_v1p1beta1_TranscriptNormalization_Entry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_speech_v1p1beta1_TranscriptNormalization_Entry_descriptor, + new java.lang.String[] { + "Search", "Replace", "CaseSensitive", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.ResourceProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.api.AnnotationsProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionConfig.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionConfig.java similarity index 70% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionConfig.java rename to proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionConfig.java index 20d47c94d..2665d0f08 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionConfig.java +++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionConfig.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech.proto package com.google.cloud.speech.v1p1beta1; /** + * + * *
  * Provides information to the recognizer that specifies how to process the
  * request.
@@ -11,30 +28,29 @@
  *
  * Protobuf type {@code google.cloud.speech.v1p1beta1.StreamingRecognitionConfig}
  */
-public final class StreamingRecognitionConfig extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class StreamingRecognitionConfig extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.speech.v1p1beta1.StreamingRecognitionConfig)
     StreamingRecognitionConfigOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use StreamingRecognitionConfig.newBuilder() to construct.
   private StreamingRecognitionConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-  private StreamingRecognitionConfig() {
-  }
+
+  private StreamingRecognitionConfig() {}
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new StreamingRecognitionConfig();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private StreamingRecognitionConfig(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -53,70 +69,81 @@ private StreamingRecognitionConfig(
           case 0:
             done = true;
             break;
-          case 10: {
-            com.google.cloud.speech.v1p1beta1.RecognitionConfig.Builder subBuilder = null;
-            if (config_ != null) {
-              subBuilder = config_.toBuilder();
+          case 10:
+            {
+              com.google.cloud.speech.v1p1beta1.RecognitionConfig.Builder subBuilder = null;
+              if (config_ != null) {
+                subBuilder = config_.toBuilder();
+              }
+              config_ =
+                  input.readMessage(
+                      com.google.cloud.speech.v1p1beta1.RecognitionConfig.parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(config_);
+                config_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
-            config_ = input.readMessage(com.google.cloud.speech.v1p1beta1.RecognitionConfig.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(config_);
-              config_ = subBuilder.buildPartial();
+          case 16:
+            {
+              singleUtterance_ = input.readBool();
+              break;
             }
-
-            break;
-          }
-          case 16: {
-
-            singleUtterance_ = input.readBool();
-            break;
-          }
-          case 24: {
-
-            interimResults_ = input.readBool();
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          case 24:
+            {
+              interimResults_ = input.readBool();
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_StreamingRecognitionConfig_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.speech.v1p1beta1.SpeechProto
+        .internal_static_google_cloud_speech_v1p1beta1_StreamingRecognitionConfig_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_StreamingRecognitionConfig_fieldAccessorTable
+    return com.google.cloud.speech.v1p1beta1.SpeechProto
+        .internal_static_google_cloud_speech_v1p1beta1_StreamingRecognitionConfig_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig.class, com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig.Builder.class);
+            com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig.class,
+            com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig.Builder.class);
   }
 
   public static final int CONFIG_FIELD_NUMBER = 1;
   private com.google.cloud.speech.v1p1beta1.RecognitionConfig config_;
   /**
+   *
+   *
    * 
    * Required. Provides information to the recognizer that specifies how to
    * process the request.
    * 
* - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the config field is set. */ @java.lang.Override @@ -124,25 +151,36 @@ public boolean hasConfig() { return config_ != null; } /** + * + * *
    * Required. Provides information to the recognizer that specifies how to
    * process the request.
    * 
* - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The config. */ @java.lang.Override public com.google.cloud.speech.v1p1beta1.RecognitionConfig getConfig() { - return config_ == null ? com.google.cloud.speech.v1p1beta1.RecognitionConfig.getDefaultInstance() : config_; + return config_ == null + ? com.google.cloud.speech.v1p1beta1.RecognitionConfig.getDefaultInstance() + : config_; } /** + * + * *
    * Required. Provides information to the recognizer that specifies how to
    * process the request.
    * 
* - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.speech.v1p1beta1.RecognitionConfigOrBuilder getConfigOrBuilder() { @@ -152,6 +190,8 @@ public com.google.cloud.speech.v1p1beta1.RecognitionConfigOrBuilder getConfigOrB public static final int SINGLE_UTTERANCE_FIELD_NUMBER = 2; private boolean singleUtterance_; /** + * + * *
    * If `false` or omitted, the recognizer will perform continuous
    * recognition (continuing to wait for and process audio even if the user
@@ -174,6 +214,7 @@ public com.google.cloud.speech.v1p1beta1.RecognitionConfigOrBuilder getConfigOrB
    * 
* * bool single_utterance = 2; + * * @return The singleUtterance. */ @java.lang.Override @@ -184,6 +225,8 @@ public boolean getSingleUtterance() { public static final int INTERIM_RESULTS_FIELD_NUMBER = 3; private boolean interimResults_; /** + * + * *
    * If `true`, interim results (tentative hypotheses) may be
    * returned as they become available (these interim results are indicated with
@@ -192,6 +235,7 @@ public boolean getSingleUtterance() {
    * 
* * bool interim_results = 3; + * * @return The interimResults. */ @java.lang.Override @@ -200,6 +244,7 @@ public boolean getInterimResults() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -211,8 +256,7 @@ public final boolean isInitialized() { } @java.lang.Override - public 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()); } @@ -232,16 +276,13 @@ public int getSerializedSize() { size = 0; if (config_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getConfig()); } if (singleUtterance_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, singleUtterance_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, singleUtterance_); } if (interimResults_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(3, interimResults_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, interimResults_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -251,22 +292,20 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig)) { return super.equals(obj); } - com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig other = (com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig) obj; + com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig other = + (com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig) obj; if (hasConfig() != other.hasConfig()) return false; if (hasConfig()) { - if (!getConfig() - .equals(other.getConfig())) return false; + if (!getConfig().equals(other.getConfig())) return false; } - if (getSingleUtterance() - != other.getSingleUtterance()) return false; - if (getInterimResults() - != other.getInterimResults()) return false; + if (getSingleUtterance() != other.getSingleUtterance()) return false; + if (getInterimResults() != other.getInterimResults()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -283,107 +322,113 @@ public int hashCode() { hash = (53 * hash) + getConfig().hashCode(); } hash = (37 * hash) + SINGLE_UTTERANCE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getSingleUtterance()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSingleUtterance()); hash = (37 * hash) + INTERIM_RESULTS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getInterimResults()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getInterimResults()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig prototype) { + + public static Builder newBuilder( + com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Provides information to the recognizer that specifies how to process the
    * request.
@@ -391,21 +436,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.speech.v1p1beta1.StreamingRecognitionConfig}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1p1beta1.StreamingRecognitionConfig)
       com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfigOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_StreamingRecognitionConfig_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.speech.v1p1beta1.SpeechProto
+          .internal_static_google_cloud_speech_v1p1beta1_StreamingRecognitionConfig_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_StreamingRecognitionConfig_fieldAccessorTable
+      return com.google.cloud.speech.v1p1beta1.SpeechProto
+          .internal_static_google_cloud_speech_v1p1beta1_StreamingRecognitionConfig_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig.class, com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig.Builder.class);
+              com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig.class,
+              com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig.newBuilder()
@@ -413,16 +460,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -440,13 +486,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();
     }
 
@@ -461,7 +508,8 @@ public com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig buildPartial() {
-      com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig result = new com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig(this);
+      com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig result =
+          new com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig(this);
       if (configBuilder_ == null) {
         result.config_ = config_;
       } else {
@@ -477,38 +525,39 @@ public com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig buildPartial
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig) {
-        return mergeFrom((com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig)other);
+        return mergeFrom((com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -516,7 +565,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());
       }
@@ -545,7 +596,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -557,42 +609,61 @@ public Builder mergeFrom(
 
     private com.google.cloud.speech.v1p1beta1.RecognitionConfig config_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.speech.v1p1beta1.RecognitionConfig, com.google.cloud.speech.v1p1beta1.RecognitionConfig.Builder, com.google.cloud.speech.v1p1beta1.RecognitionConfigOrBuilder> configBuilder_;
+            com.google.cloud.speech.v1p1beta1.RecognitionConfig,
+            com.google.cloud.speech.v1p1beta1.RecognitionConfig.Builder,
+            com.google.cloud.speech.v1p1beta1.RecognitionConfigOrBuilder>
+        configBuilder_;
     /**
+     *
+     *
      * 
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the config field is set. */ public boolean hasConfig() { return configBuilder_ != null || config_ != null; } /** + * + * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The config. */ public com.google.cloud.speech.v1p1beta1.RecognitionConfig getConfig() { if (configBuilder_ == null) { - return config_ == null ? com.google.cloud.speech.v1p1beta1.RecognitionConfig.getDefaultInstance() : config_; + return config_ == null + ? com.google.cloud.speech.v1p1beta1.RecognitionConfig.getDefaultInstance() + : config_; } else { return configBuilder_.getMessage(); } } /** + * + * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setConfig(com.google.cloud.speech.v1p1beta1.RecognitionConfig value) { if (configBuilder_ == null) { @@ -608,12 +679,16 @@ public Builder setConfig(com.google.cloud.speech.v1p1beta1.RecognitionConfig val return this; } /** + * + * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setConfig( com.google.cloud.speech.v1p1beta1.RecognitionConfig.Builder builderForValue) { @@ -627,18 +702,24 @@ public Builder setConfig( return this; } /** + * + * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeConfig(com.google.cloud.speech.v1p1beta1.RecognitionConfig value) { if (configBuilder_ == null) { if (config_ != null) { config_ = - com.google.cloud.speech.v1p1beta1.RecognitionConfig.newBuilder(config_).mergeFrom(value).buildPartial(); + com.google.cloud.speech.v1p1beta1.RecognitionConfig.newBuilder(config_) + .mergeFrom(value) + .buildPartial(); } else { config_ = value; } @@ -650,12 +731,16 @@ public Builder mergeConfig(com.google.cloud.speech.v1p1beta1.RecognitionConfig v return this; } /** + * + * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearConfig() { if (configBuilder_ == null) { @@ -669,58 +754,76 @@ public Builder clearConfig() { return this; } /** + * + * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.speech.v1p1beta1.RecognitionConfig.Builder getConfigBuilder() { - + onChanged(); return getConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.speech.v1p1beta1.RecognitionConfigOrBuilder getConfigOrBuilder() { if (configBuilder_ != null) { return configBuilder_.getMessageOrBuilder(); } else { - return config_ == null ? - com.google.cloud.speech.v1p1beta1.RecognitionConfig.getDefaultInstance() : config_; + return config_ == null + ? com.google.cloud.speech.v1p1beta1.RecognitionConfig.getDefaultInstance() + : config_; } } /** + * + * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.RecognitionConfig, com.google.cloud.speech.v1p1beta1.RecognitionConfig.Builder, com.google.cloud.speech.v1p1beta1.RecognitionConfigOrBuilder> + com.google.cloud.speech.v1p1beta1.RecognitionConfig, + com.google.cloud.speech.v1p1beta1.RecognitionConfig.Builder, + com.google.cloud.speech.v1p1beta1.RecognitionConfigOrBuilder> getConfigFieldBuilder() { if (configBuilder_ == null) { - configBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.RecognitionConfig, com.google.cloud.speech.v1p1beta1.RecognitionConfig.Builder, com.google.cloud.speech.v1p1beta1.RecognitionConfigOrBuilder>( - getConfig(), - getParentForChildren(), - isClean()); + configBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v1p1beta1.RecognitionConfig, + com.google.cloud.speech.v1p1beta1.RecognitionConfig.Builder, + com.google.cloud.speech.v1p1beta1.RecognitionConfigOrBuilder>( + getConfig(), getParentForChildren(), isClean()); config_ = null; } return configBuilder_; } - private boolean singleUtterance_ ; + private boolean singleUtterance_; /** + * + * *
      * If `false` or omitted, the recognizer will perform continuous
      * recognition (continuing to wait for and process audio even if the user
@@ -743,6 +846,7 @@ public com.google.cloud.speech.v1p1beta1.RecognitionConfigOrBuilder getConfigOrB
      * 
* * bool single_utterance = 2; + * * @return The singleUtterance. */ @java.lang.Override @@ -750,6 +854,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
@@ -772,16 +878,19 @@ public boolean getSingleUtterance() {
      * 
* * bool single_utterance = 2; + * * @param value The singleUtterance to set. * @return This builder for chaining. */ public Builder setSingleUtterance(boolean value) { - + singleUtterance_ = value; onChanged(); return this; } /** + * + * *
      * If `false` or omitted, the recognizer will perform continuous
      * recognition (continuing to wait for and process audio even if the user
@@ -804,17 +913,20 @@ public Builder setSingleUtterance(boolean value) {
      * 
* * bool single_utterance = 2; + * * @return This builder for chaining. */ public Builder clearSingleUtterance() { - + singleUtterance_ = false; onChanged(); return this; } - private boolean interimResults_ ; + private boolean interimResults_; /** + * + * *
      * If `true`, interim results (tentative hypotheses) may be
      * returned as they become available (these interim results are indicated with
@@ -823,6 +935,7 @@ public Builder clearSingleUtterance() {
      * 
* * bool interim_results = 3; + * * @return The interimResults. */ @java.lang.Override @@ -830,6 +943,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
@@ -838,16 +953,19 @@ public boolean getInterimResults() {
      * 
* * bool interim_results = 3; + * * @param value The interimResults to set. * @return This builder for chaining. */ public Builder setInterimResults(boolean value) { - + interimResults_ = value; onChanged(); return this; } /** + * + * *
      * If `true`, interim results (tentative hypotheses) may be
      * returned as they become available (these interim results are indicated with
@@ -856,17 +974,18 @@ public Builder setInterimResults(boolean value) {
      * 
* * bool interim_results = 3; + * * @return This builder for chaining. */ public Builder clearInterimResults() { - + interimResults_ = false; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -876,12 +995,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(); } @@ -890,16 +1010,16 @@ public static com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig getDe return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StreamingRecognitionConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new StreamingRecognitionConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StreamingRecognitionConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new StreamingRecognitionConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -914,6 +1034,4 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionConfigOrBuilder.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionConfigOrBuilder.java similarity index 70% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionConfigOrBuilder.java rename to proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionConfigOrBuilder.java index 73a8d60b1..40aa63db7 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionConfigOrBuilder.java +++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionConfigOrBuilder.java @@ -1,43 +1,75 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech.proto package com.google.cloud.speech.v1p1beta1; -public interface StreamingRecognitionConfigOrBuilder extends +public interface StreamingRecognitionConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1p1beta1.StreamingRecognitionConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Provides information to the recognizer that specifies how to
    * process the request.
    * 
* - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the config field is set. */ boolean hasConfig(); /** + * + * *
    * Required. Provides information to the recognizer that specifies how to
    * process the request.
    * 
* - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The config. */ com.google.cloud.speech.v1p1beta1.RecognitionConfig getConfig(); /** + * + * *
    * Required. Provides information to the recognizer that specifies how to
    * process the request.
    * 
* - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.speech.v1p1beta1.RecognitionConfigOrBuilder getConfigOrBuilder(); /** + * + * *
    * If `false` or omitted, the recognizer will perform continuous
    * recognition (continuing to wait for and process audio even if the user
@@ -60,11 +92,14 @@ public interface StreamingRecognitionConfigOrBuilder extends
    * 
* * bool single_utterance = 2; + * * @return The singleUtterance. */ boolean getSingleUtterance(); /** + * + * *
    * If `true`, interim results (tentative hypotheses) may be
    * returned as they become available (these interim results are indicated with
@@ -73,6 +108,7 @@ public interface StreamingRecognitionConfigOrBuilder extends
    * 
* * bool interim_results = 3; + * * @return The interimResults. */ boolean getInterimResults(); diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionResult.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionResult.java similarity index 75% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionResult.java rename to proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionResult.java index d66a3bae5..3fe0804d6 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionResult.java +++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionResult.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech.proto package com.google.cloud.speech.v1p1beta1; /** + * + * *
  * A streaming speech recognition result corresponding to a portion of the audio
  * that is currently being processed.
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.cloud.speech.v1p1beta1.StreamingRecognitionResult}
  */
-public final class StreamingRecognitionResult extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class StreamingRecognitionResult extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.speech.v1p1beta1.StreamingRecognitionResult)
     StreamingRecognitionResultOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use StreamingRecognitionResult.newBuilder() to construct.
   private StreamingRecognitionResult(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private StreamingRecognitionResult() {
     alternatives_ = java.util.Collections.emptyList();
     languageCode_ = "";
@@ -27,16 +45,15 @@ private StreamingRecognitionResult() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new StreamingRecognitionResult();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private StreamingRecognitionResult(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -56,63 +73,70 @@ private StreamingRecognitionResult(
           case 0:
             done = true;
             break;
-          case 10: {
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              alternatives_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000001;
+          case 10:
+            {
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                alternatives_ =
+                    new java.util.ArrayList<
+                        com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative>();
+                mutable_bitField0_ |= 0x00000001;
+              }
+              alternatives_.add(
+                  input.readMessage(
+                      com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.parser(),
+                      extensionRegistry));
+              break;
             }
-            alternatives_.add(
-                input.readMessage(com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.parser(), extensionRegistry));
-            break;
-          }
-          case 16: {
-
-            isFinal_ = input.readBool();
-            break;
-          }
-          case 29: {
-
-            stability_ = input.readFloat();
-            break;
-          }
-          case 34: {
-            com.google.protobuf.Duration.Builder subBuilder = null;
-            if (resultEndTime_ != null) {
-              subBuilder = resultEndTime_.toBuilder();
+          case 16:
+            {
+              isFinal_ = input.readBool();
+              break;
             }
-            resultEndTime_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(resultEndTime_);
-              resultEndTime_ = subBuilder.buildPartial();
+          case 29:
+            {
+              stability_ = input.readFloat();
+              break;
             }
+          case 34:
+            {
+              com.google.protobuf.Duration.Builder subBuilder = null;
+              if (resultEndTime_ != null) {
+                subBuilder = resultEndTime_.toBuilder();
+              }
+              resultEndTime_ =
+                  input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(resultEndTime_);
+                resultEndTime_ = subBuilder.buildPartial();
+              }
+
+              break;
+            }
+          case 40:
+            {
+              channelTag_ = input.readInt32();
+              break;
+            }
+          case 50:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            break;
-          }
-          case 40: {
-
-            channelTag_ = input.readInt32();
-            break;
-          }
-          case 50: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            languageCode_ = s;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              languageCode_ = s;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         alternatives_ = java.util.Collections.unmodifiableList(alternatives_);
@@ -121,22 +145,28 @@ private StreamingRecognitionResult(
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_StreamingRecognitionResult_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.speech.v1p1beta1.SpeechProto
+        .internal_static_google_cloud_speech_v1p1beta1_StreamingRecognitionResult_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_StreamingRecognitionResult_fieldAccessorTable
+    return com.google.cloud.speech.v1p1beta1.SpeechProto
+        .internal_static_google_cloud_speech_v1p1beta1_StreamingRecognitionResult_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult.class, com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult.Builder.class);
+            com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult.class,
+            com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult.Builder.class);
   }
 
   public static final int ALTERNATIVES_FIELD_NUMBER = 1;
-  private java.util.List alternatives_;
+  private java.util.List
+      alternatives_;
   /**
+   *
+   *
    * 
    * May contain one or more recognition hypotheses (up to the
    * maximum specified in `max_alternatives`).
@@ -144,13 +174,17 @@ private StreamingRecognitionResult(
    * alternative being the most probable, as ranked by the recognizer.
    * 
* - * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; + * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; + * */ @java.lang.Override - public java.util.List getAlternativesList() { + public java.util.List + getAlternativesList() { return alternatives_; } /** + * + * *
    * May contain one or more recognition hypotheses (up to the
    * maximum specified in `max_alternatives`).
@@ -158,14 +192,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`).
@@ -173,13 +211,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`).
@@ -187,13 +228,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`).
@@ -201,17 +245,20 @@ public com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative getAlterna
    * alternative being the most probable, as ranked by the recognizer.
    * 
* - * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; + * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; + * */ @java.lang.Override - public com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternativeOrBuilder getAlternativesOrBuilder( - int index) { + public com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternativeOrBuilder + getAlternativesOrBuilder(int index) { return alternatives_.get(index); } public static final int IS_FINAL_FIELD_NUMBER = 2; private boolean isFinal_; /** + * + * *
    * If `false`, this `StreamingRecognitionResult` represents an
    * interim result that may change. If `true`, this is the final time the
@@ -221,6 +268,7 @@ public com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternativeOrBuilder g
    * 
* * bool is_final = 2; + * * @return The isFinal. */ @java.lang.Override @@ -231,6 +279,8 @@ public boolean getIsFinal() { public static final int STABILITY_FIELD_NUMBER = 3; private float stability_; /** + * + * *
    * An estimate of the likelihood that the recognizer will not
    * change its guess about this interim result. Values range from 0.0
@@ -240,6 +290,7 @@ public boolean getIsFinal() {
    * 
* * float stability = 3; + * * @return The stability. */ @java.lang.Override @@ -250,12 +301,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 @@ -263,19 +317,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.
@@ -291,6 +352,8 @@ public com.google.protobuf.DurationOrBuilder getResultEndTimeOrBuilder() {
   public static final int CHANNEL_TAG_FIELD_NUMBER = 5;
   private int channelTag_;
   /**
+   *
+   *
    * 
    * For multi-channel audio, this is the channel number corresponding to the
    * recognized result for the audio from that channel.
@@ -298,6 +361,7 @@ public com.google.protobuf.DurationOrBuilder getResultEndTimeOrBuilder() {
    * 
* * int32 channel_tag = 5; + * * @return The channelTag. */ @java.lang.Override @@ -308,6 +372,8 @@ public int getChannelTag() { public static final int LANGUAGE_CODE_FIELD_NUMBER = 6; private volatile java.lang.Object languageCode_; /** + * + * *
    * Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag
    * of the language in this result. This language code was detected to have
@@ -315,6 +381,7 @@ public int getChannelTag() {
    * 
* * string language_code = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The languageCode. */ @java.lang.Override @@ -323,14 +390,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
@@ -338,16 +406,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 { @@ -356,6 +423,7 @@ public java.lang.String getLanguageCode() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -367,8 +435,7 @@ public final boolean isInitialized() { } @java.lang.Override - 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)); } @@ -397,24 +464,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 (stability_ != 0F) { - 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_); @@ -427,29 +489,24 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult)) { return super.equals(obj); } - com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult other = (com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult) obj; + com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult other = + (com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult) obj; - if (!getAlternativesList() - .equals(other.getAlternativesList())) return false; - if (getIsFinal() - != other.getIsFinal()) return false; + if (!getAlternativesList().equals(other.getAlternativesList())) return false; + if (getIsFinal() != other.getIsFinal()) return false; if (java.lang.Float.floatToIntBits(getStability()) - != java.lang.Float.floatToIntBits( - other.getStability())) return false; + != java.lang.Float.floatToIntBits(other.getStability())) return false; if (hasResultEndTime() != other.hasResultEndTime()) return false; if (hasResultEndTime()) { - if (!getResultEndTime() - .equals(other.getResultEndTime())) return false; + if (!getResultEndTime().equals(other.getResultEndTime())) return false; } - if (getChannelTag() - != other.getChannelTag()) return false; - if (!getLanguageCode() - .equals(other.getLanguageCode())) return false; + if (getChannelTag() != other.getChannelTag()) return false; + if (!getLanguageCode().equals(other.getLanguageCode())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -466,11 +523,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(); @@ -485,96 +540,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.
@@ -582,21 +645,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.speech.v1p1beta1.StreamingRecognitionResult}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1p1beta1.StreamingRecognitionResult)
       com.google.cloud.speech.v1p1beta1.StreamingRecognitionResultOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_StreamingRecognitionResult_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.speech.v1p1beta1.SpeechProto
+          .internal_static_google_cloud_speech_v1p1beta1_StreamingRecognitionResult_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_StreamingRecognitionResult_fieldAccessorTable
+      return com.google.cloud.speech.v1p1beta1.SpeechProto
+          .internal_static_google_cloud_speech_v1p1beta1_StreamingRecognitionResult_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult.class, com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult.Builder.class);
+              com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult.class,
+              com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult.newBuilder()
@@ -604,17 +669,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
         getAlternativesFieldBuilder();
       }
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -642,13 +707,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();
     }
 
@@ -663,7 +729,8 @@ public com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult buildPartial() {
-      com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult result = new com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult(this);
+      com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult result =
+          new com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult(this);
       int from_bitField0_ = bitField0_;
       if (alternativesBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
@@ -691,38 +758,39 @@ public com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult buildPartial
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult) {
-        return mergeFrom((com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult)other);
+        return mergeFrom((com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -730,7 +798,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()) {
@@ -749,9 +819,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_);
           }
@@ -792,7 +863,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -801,21 +873,30 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
-    private java.util.List alternatives_ =
-      java.util.Collections.emptyList();
+    private java.util.List
+        alternatives_ = java.util.Collections.emptyList();
+
     private void ensureAlternativesIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
-        alternatives_ = new java.util.ArrayList(alternatives_);
+        alternatives_ =
+            new java.util.ArrayList(
+                alternatives_);
         bitField0_ |= 0x00000001;
-       }
+      }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative, com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.Builder, com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternativeOrBuilder> alternativesBuilder_;
+            com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative,
+            com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.Builder,
+            com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternativeOrBuilder>
+        alternativesBuilder_;
 
     /**
+     *
+     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -823,9 +904,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 { @@ -833,6 +916,8 @@ public java.util.List * May contain one or more recognition hypotheses (up to the * maximum specified in `max_alternatives`). @@ -840,7 +925,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) { @@ -850,6 +936,8 @@ public int getAlternativesCount() { } } /** + * + * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -857,9 +945,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 { @@ -867,6 +957,8 @@ public com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative getAlterna } } /** + * + * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -874,7 +966,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) { @@ -891,6 +984,8 @@ public Builder setAlternatives( return this; } /** + * + * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -898,10 +993,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()); @@ -912,6 +1009,8 @@ public Builder setAlternatives( return this; } /** + * + * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -919,9 +1018,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(); @@ -935,6 +1036,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`).
@@ -942,7 +1045,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) { @@ -959,6 +1063,8 @@ public Builder addAlternatives( return this; } /** + * + * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -966,7 +1072,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) { @@ -980,6 +1087,8 @@ public Builder addAlternatives( return this; } /** + * + * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -987,10 +1096,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()); @@ -1001,6 +1112,8 @@ public Builder addAlternatives( return this; } /** + * + * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -1008,14 +1121,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); @@ -1023,6 +1137,8 @@ public Builder addAllAlternatives( return this; } /** + * + * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -1030,7 +1146,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) { @@ -1043,6 +1160,8 @@ public Builder clearAlternatives() { return this; } /** + * + * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -1050,7 +1169,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) { @@ -1063,6 +1183,8 @@ public Builder removeAlternatives(int index) { return this; } /** + * + * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -1070,13 +1192,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`).
@@ -1084,16 +1209,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`).
@@ -1101,10 +1230,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 { @@ -1112,6 +1243,8 @@ public com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternativeOrBuilder g } } /** + * + * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -1119,13 +1252,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`).
@@ -1133,14 +1271,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`).
@@ -1148,29 +1291,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
@@ -1180,6 +1329,7 @@ public com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.Builder ad
      * 
* * bool is_final = 2; + * * @return The isFinal. */ @java.lang.Override @@ -1187,6 +1337,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
@@ -1196,16 +1348,19 @@ public boolean getIsFinal() {
      * 
* * bool is_final = 2; + * * @param value The isFinal to set. * @return This builder for chaining. */ public Builder setIsFinal(boolean value) { - + isFinal_ = value; onChanged(); return this; } /** + * + * *
      * If `false`, this `StreamingRecognitionResult` represents an
      * interim result that may change. If `true`, this is the final time the
@@ -1215,17 +1370,20 @@ public Builder setIsFinal(boolean value) {
      * 
* * bool is_final = 2; + * * @return This builder for chaining. */ public Builder clearIsFinal() { - + isFinal_ = false; onChanged(); return this; } - private float stability_ ; + private float stability_; /** + * + * *
      * An estimate of the likelihood that the recognizer will not
      * change its guess about this interim result. Values range from 0.0
@@ -1235,6 +1393,7 @@ public Builder clearIsFinal() {
      * 
* * float stability = 3; + * * @return The stability. */ @java.lang.Override @@ -1242,6 +1401,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
@@ -1251,16 +1412,19 @@ public float getStability() {
      * 
* * float stability = 3; + * * @param value The stability to set. * @return This builder for chaining. */ public Builder setStability(float value) { - + stability_ = value; onChanged(); return this; } /** + * + * *
      * An estimate of the likelihood that the recognizer will not
      * change its guess about this interim result. Values range from 0.0
@@ -1270,10 +1434,11 @@ public Builder setStability(float value) {
      * 
* * float stability = 3; + * * @return This builder for chaining. */ public Builder clearStability() { - + stability_ = 0F; onChanged(); return this; @@ -1281,36 +1446,49 @@ public Builder clearStability() { private com.google.protobuf.Duration resultEndTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> resultEndTimeBuilder_; + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + resultEndTimeBuilder_; /** + * + * *
      * Time offset of the end of this result relative to the
      * beginning of the audio.
      * 
* * .google.protobuf.Duration result_end_time = 4; + * * @return Whether the resultEndTime field is set. */ public boolean hasResultEndTime() { return resultEndTimeBuilder_ != null || resultEndTime_ != null; } /** + * + * *
      * Time offset of the end of this result relative to the
      * beginning of the audio.
      * 
* * .google.protobuf.Duration result_end_time = 4; + * * @return The resultEndTime. */ public com.google.protobuf.Duration getResultEndTime() { if (resultEndTimeBuilder_ == null) { - return resultEndTime_ == null ? com.google.protobuf.Duration.getDefaultInstance() : resultEndTime_; + return resultEndTime_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : resultEndTime_; } else { return resultEndTimeBuilder_.getMessage(); } } /** + * + * *
      * Time offset of the end of this result relative to the
      * beginning of the audio.
@@ -1332,6 +1510,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.
@@ -1339,8 +1519,7 @@ public Builder setResultEndTime(com.google.protobuf.Duration value) {
      *
      * .google.protobuf.Duration result_end_time = 4;
      */
-    public Builder setResultEndTime(
-        com.google.protobuf.Duration.Builder builderForValue) {
+    public Builder setResultEndTime(com.google.protobuf.Duration.Builder builderForValue) {
       if (resultEndTimeBuilder_ == null) {
         resultEndTime_ = builderForValue.build();
         onChanged();
@@ -1351,6 +1530,8 @@ public Builder setResultEndTime(
       return this;
     }
     /**
+     *
+     *
      * 
      * Time offset of the end of this result relative to the
      * beginning of the audio.
@@ -1362,7 +1543,9 @@ public Builder mergeResultEndTime(com.google.protobuf.Duration value) {
       if (resultEndTimeBuilder_ == null) {
         if (resultEndTime_ != null) {
           resultEndTime_ =
-            com.google.protobuf.Duration.newBuilder(resultEndTime_).mergeFrom(value).buildPartial();
+              com.google.protobuf.Duration.newBuilder(resultEndTime_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           resultEndTime_ = value;
         }
@@ -1374,6 +1557,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.
@@ -1393,6 +1578,8 @@ public Builder clearResultEndTime() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Time offset of the end of this result relative to the
      * beginning of the audio.
@@ -1401,11 +1588,13 @@ public Builder clearResultEndTime() {
      * .google.protobuf.Duration result_end_time = 4;
      */
     public com.google.protobuf.Duration.Builder getResultEndTimeBuilder() {
-      
+
       onChanged();
       return getResultEndTimeFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Time offset of the end of this result relative to the
      * beginning of the audio.
@@ -1417,11 +1606,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.
@@ -1430,21 +1622,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.
@@ -1452,6 +1649,7 @@ public com.google.protobuf.DurationOrBuilder getResultEndTimeOrBuilder() {
      * 
* * int32 channel_tag = 5; + * * @return The channelTag. */ @java.lang.Override @@ -1459,6 +1657,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.
@@ -1466,16 +1666,19 @@ public int getChannelTag() {
      * 
* * int32 channel_tag = 5; + * * @param value The channelTag to set. * @return This builder for chaining. */ public Builder setChannelTag(int value) { - + channelTag_ = value; onChanged(); return this; } /** + * + * *
      * For multi-channel audio, this is the channel number corresponding to the
      * recognized result for the audio from that channel.
@@ -1483,10 +1686,11 @@ public Builder setChannelTag(int value) {
      * 
* * int32 channel_tag = 5; + * * @return This builder for chaining. */ public Builder clearChannelTag() { - + channelTag_ = 0; onChanged(); return this; @@ -1494,6 +1698,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
@@ -1501,13 +1707,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; @@ -1516,6 +1722,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
@@ -1523,15 +1731,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 { @@ -1539,6 +1746,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
@@ -1546,20 +1755,22 @@ public java.lang.String getLanguageCode() {
      * 
* * string language_code = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCode( - java.lang.String value) { + public Builder setLanguageCode(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + languageCode_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag
      * of the language in this result. This language code was detected to have
@@ -1567,15 +1778,18 @@ public Builder setLanguageCode(
      * 
* * string language_code = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearLanguageCode() { - + languageCode_ = getDefaultInstance().getLanguageCode(); onChanged(); return this; } /** + * + * *
      * Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag
      * of the language in this result. This language code was detected to have
@@ -1583,23 +1797,23 @@ public Builder clearLanguageCode() {
      * 
* * string language_code = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCodeBytes( - com.google.protobuf.ByteString value) { + public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + languageCode_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1609,12 +1823,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(); } @@ -1623,16 +1838,16 @@ public static com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult getDe return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StreamingRecognitionResult parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new StreamingRecognitionResult(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StreamingRecognitionResult parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new StreamingRecognitionResult(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1647,6 +1862,4 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionResultOrBuilder.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionResultOrBuilder.java similarity index 82% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionResultOrBuilder.java rename to proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionResultOrBuilder.java index 3d6da9c0a..8a2935d37 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionResultOrBuilder.java +++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionResultOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech.proto package com.google.cloud.speech.v1p1beta1; -public interface StreamingRecognitionResultOrBuilder extends +public interface StreamingRecognitionResultOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1p1beta1.StreamingRecognitionResult) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * May contain one or more recognition hypotheses (up to the
    * maximum specified in `max_alternatives`).
@@ -15,11 +33,14 @@ public interface StreamingRecognitionResultOrBuilder extends
    * alternative being the most probable, as ranked by the recognizer.
    * 
* - * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; + * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; + * */ - java.util.List + java.util.List getAlternativesList(); /** + * + * *
    * May contain one or more recognition hypotheses (up to the
    * maximum specified in `max_alternatives`).
@@ -27,10 +48,13 @@ public interface StreamingRecognitionResultOrBuilder extends
    * alternative being the most probable, as ranked by the recognizer.
    * 
* - * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; + * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; + * */ com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative getAlternatives(int index); /** + * + * *
    * May contain one or more recognition hypotheses (up to the
    * maximum specified in `max_alternatives`).
@@ -38,10 +62,13 @@ public interface StreamingRecognitionResultOrBuilder extends
    * alternative being the most probable, as ranked by the recognizer.
    * 
* - * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; + * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; + * */ int getAlternativesCount(); /** + * + * *
    * May contain one or more recognition hypotheses (up to the
    * maximum specified in `max_alternatives`).
@@ -49,11 +76,14 @@ public interface StreamingRecognitionResultOrBuilder extends
    * alternative being the most probable, as ranked by the recognizer.
    * 
* - * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; + * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; + * */ - java.util.List + java.util.List getAlternativesOrBuilderList(); /** + * + * *
    * May contain one or more recognition hypotheses (up to the
    * maximum specified in `max_alternatives`).
@@ -61,12 +91,15 @@ public interface StreamingRecognitionResultOrBuilder extends
    * alternative being the most probable, as ranked by the recognizer.
    * 
* - * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; + * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; + * */ com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternativeOrBuilder getAlternativesOrBuilder( int index); /** + * + * *
    * If `false`, this `StreamingRecognitionResult` represents an
    * interim result that may change. If `true`, this is the final time the
@@ -76,11 +109,14 @@ com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternativeOrBuilder getAlter
    * 
* * bool is_final = 2; + * * @return The isFinal. */ boolean getIsFinal(); /** + * + * *
    * An estimate of the likelihood that the recognizer will not
    * change its guess about this interim result. Values range from 0.0
@@ -90,31 +126,40 @@ com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternativeOrBuilder getAlter
    * 
* * float stability = 3; + * * @return The stability. */ float getStability(); /** + * + * *
    * Time offset of the end of this result relative to the
    * beginning of the audio.
    * 
* * .google.protobuf.Duration result_end_time = 4; + * * @return Whether the resultEndTime field is set. */ boolean hasResultEndTime(); /** + * + * *
    * Time offset of the end of this result relative to the
    * beginning of the audio.
    * 
* * .google.protobuf.Duration result_end_time = 4; + * * @return The resultEndTime. */ com.google.protobuf.Duration getResultEndTime(); /** + * + * *
    * Time offset of the end of this result relative to the
    * beginning of the audio.
@@ -125,6 +170,8 @@ com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternativeOrBuilder getAlter
   com.google.protobuf.DurationOrBuilder getResultEndTimeOrBuilder();
 
   /**
+   *
+   *
    * 
    * For multi-channel audio, this is the channel number corresponding to the
    * recognized result for the audio from that channel.
@@ -132,11 +179,14 @@ com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternativeOrBuilder getAlter
    * 
* * int32 channel_tag = 5; + * * @return The channelTag. */ int getChannelTag(); /** + * + * *
    * Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag
    * of the language in this result. This language code was detected to have
@@ -144,10 +194,13 @@ com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternativeOrBuilder getAlter
    * 
* * string language_code = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The languageCode. */ java.lang.String getLanguageCode(); /** + * + * *
    * Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag
    * of the language in this result. This language code was detected to have
@@ -155,8 +208,8 @@ com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternativeOrBuilder getAlter
    * 
* * string language_code = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for languageCode. */ - com.google.protobuf.ByteString - getLanguageCodeBytes(); + com.google.protobuf.ByteString getLanguageCodeBytes(); } diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeRequest.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeRequest.java similarity index 72% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeRequest.java rename to proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeRequest.java index 977d7d916..e9f014285 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeRequest.java +++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeRequest.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech.proto package com.google.cloud.speech.v1p1beta1; /** + * + * *
  * The top-level message sent by the client for the `StreamingRecognize` method.
  * Multiple `StreamingRecognizeRequest` messages are sent. The first message
@@ -14,30 +31,29 @@
  *
  * Protobuf type {@code google.cloud.speech.v1p1beta1.StreamingRecognizeRequest}
  */
-public final class StreamingRecognizeRequest extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class StreamingRecognizeRequest extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.speech.v1p1beta1.StreamingRecognizeRequest)
     StreamingRecognizeRequestOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use StreamingRecognizeRequest.newBuilder() to construct.
   private StreamingRecognizeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-  private StreamingRecognizeRequest() {
-  }
+
+  private StreamingRecognizeRequest() {}
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new StreamingRecognizeRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private StreamingRecognizeRequest(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -56,66 +72,81 @@ private StreamingRecognizeRequest(
           case 0:
             done = true;
             break;
-          case 10: {
-            com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig.Builder subBuilder = null;
-            if (streamingRequestCase_ == 1) {
-              subBuilder = ((com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig) streamingRequest_).toBuilder();
+          case 10:
+            {
+              com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig.Builder subBuilder =
+                  null;
+              if (streamingRequestCase_ == 1) {
+                subBuilder =
+                    ((com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig)
+                            streamingRequest_)
+                        .toBuilder();
+              }
+              streamingRequest_ =
+                  input.readMessage(
+                      com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig.parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(
+                    (com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig)
+                        streamingRequest_);
+                streamingRequest_ = subBuilder.buildPartial();
+              }
+              streamingRequestCase_ = 1;
+              break;
             }
-            streamingRequest_ =
-                input.readMessage(com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom((com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig) streamingRequest_);
-              streamingRequest_ = subBuilder.buildPartial();
+          case 18:
+            {
+              streamingRequestCase_ = 2;
+              streamingRequest_ = input.readBytes();
+              break;
             }
-            streamingRequestCase_ = 1;
-            break;
-          }
-          case 18: {
-            streamingRequestCase_ = 2;
-            streamingRequest_ = input.readBytes();
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_StreamingRecognizeRequest_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.speech.v1p1beta1.SpeechProto
+        .internal_static_google_cloud_speech_v1p1beta1_StreamingRecognizeRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_StreamingRecognizeRequest_fieldAccessorTable
+    return com.google.cloud.speech.v1p1beta1.SpeechProto
+        .internal_static_google_cloud_speech_v1p1beta1_StreamingRecognizeRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest.class, com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest.Builder.class);
+            com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest.class,
+            com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest.Builder.class);
   }
 
   private int streamingRequestCase_ = 0;
   private java.lang.Object streamingRequest_;
+
   public enum StreamingRequestCase
-      implements com.google.protobuf.Internal.EnumLite,
+      implements
+          com.google.protobuf.Internal.EnumLite,
           com.google.protobuf.AbstractMessage.InternalOneOfEnum {
     STREAMING_CONFIG(1),
     AUDIO_CONTENT(2),
     STREAMINGREQUEST_NOT_SET(0);
     private final int value;
+
     private StreamingRequestCase(int value) {
       this.value = value;
     }
@@ -131,25 +162,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
@@ -157,6 +193,7 @@ public int getNumber() {
    * 
* * .google.cloud.speech.v1p1beta1.StreamingRecognitionConfig streaming_config = 1; + * * @return Whether the streamingConfig field is set. */ @java.lang.Override @@ -164,6 +201,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
@@ -171,16 +210,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
@@ -190,15 +232,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
@@ -211,6 +256,7 @@ public com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfigOrBuilder get
    * 
* * bytes audio_content = 2; + * * @return Whether the audioContent field is set. */ @java.lang.Override @@ -218,6 +264,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
@@ -230,6 +278,7 @@ public boolean hasAudioContent() {
    * 
* * bytes audio_content = 2; + * * @return The audioContent. */ @java.lang.Override @@ -241,6 +290,7 @@ public com.google.protobuf.ByteString getAudioContent() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -252,14 +302,13 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (streamingRequestCase_ == 1) { - output.writeMessage(1, (com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig) streamingRequest_); + output.writeMessage( + 1, (com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig) streamingRequest_); } if (streamingRequestCase_ == 2) { - output.writeBytes( - 2, (com.google.protobuf.ByteString) streamingRequest_); + output.writeBytes(2, (com.google.protobuf.ByteString) streamingRequest_); } unknownFields.writeTo(output); } @@ -271,13 +320,14 @@ public int getSerializedSize() { size = 0; if (streamingRequestCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, (com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig) streamingRequest_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, (com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig) streamingRequest_); } if (streamingRequestCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize( - 2, (com.google.protobuf.ByteString) streamingRequest_); + size += + com.google.protobuf.CodedOutputStream.computeBytesSize( + 2, (com.google.protobuf.ByteString) streamingRequest_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -287,22 +337,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: @@ -336,96 +385,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
@@ -436,21 +493,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.speech.v1p1beta1.StreamingRecognizeRequest}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1p1beta1.StreamingRecognizeRequest)
       com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_StreamingRecognizeRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.speech.v1p1beta1.SpeechProto
+          .internal_static_google_cloud_speech_v1p1beta1_StreamingRecognizeRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_StreamingRecognizeRequest_fieldAccessorTable
+      return com.google.cloud.speech.v1p1beta1.SpeechProto
+          .internal_static_google_cloud_speech_v1p1beta1_StreamingRecognizeRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest.class, com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest.Builder.class);
+              com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest.class,
+              com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest.newBuilder()
@@ -458,16 +517,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -477,9 +535,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_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
@@ -498,7 +556,8 @@ public com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest buildPartial() {
-      com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest result = new com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest(this);
+      com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest result =
+          new com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest(this);
       if (streamingRequestCase_ == 1) {
         if (streamingConfigBuilder_ == null) {
           result.streamingRequest_ = streamingRequest_;
@@ -518,38 +577,39 @@ public com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest buildPartial(
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest) {
-        return mergeFrom((com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest)other);
+        return mergeFrom((com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -557,19 +617,23 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest other) {
-      if (other == com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest.getDefaultInstance()) return this;
+      if (other == com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest.getDefaultInstance())
+        return this;
       switch (other.getStreamingRequestCase()) {
-        case STREAMING_CONFIG: {
-          mergeStreamingConfig(other.getStreamingConfig());
-          break;
-        }
-        case AUDIO_CONTENT: {
-          setAudioContent(other.getAudioContent());
-          break;
-        }
-        case STREAMINGREQUEST_NOT_SET: {
-          break;
-        }
+        case STREAMING_CONFIG:
+          {
+            mergeStreamingConfig(other.getStreamingConfig());
+            break;
+          }
+        case AUDIO_CONTENT:
+          {
+            setAudioContent(other.getAudioContent());
+            break;
+          }
+        case STREAMINGREQUEST_NOT_SET:
+          {
+            break;
+          }
       }
       this.mergeUnknownFields(other.unknownFields);
       onChanged();
@@ -590,7 +654,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -599,12 +664,12 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int streamingRequestCase_ = 0;
     private java.lang.Object streamingRequest_;
-    public StreamingRequestCase
-        getStreamingRequestCase() {
-      return StreamingRequestCase.forNumber(
-          streamingRequestCase_);
+
+    public StreamingRequestCase getStreamingRequestCase() {
+      return StreamingRequestCase.forNumber(streamingRequestCase_);
     }
 
     public Builder clearStreamingRequest() {
@@ -614,10 +679,14 @@ public Builder clearStreamingRequest() {
       return this;
     }
 
-
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig, com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig.Builder, com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfigOrBuilder> streamingConfigBuilder_;
+            com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig,
+            com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig.Builder,
+            com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfigOrBuilder>
+        streamingConfigBuilder_;
     /**
+     *
+     *
      * 
      * Provides information to the recognizer that specifies how to process the
      * request. The first `StreamingRecognizeRequest` message must contain a
@@ -625,6 +694,7 @@ public Builder clearStreamingRequest() {
      * 
* * .google.cloud.speech.v1p1beta1.StreamingRecognitionConfig streaming_config = 1; + * * @return Whether the streamingConfig field is set. */ @java.lang.Override @@ -632,6 +702,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
@@ -639,6 +711,7 @@ public boolean hasStreamingConfig() {
      * 
* * .google.cloud.speech.v1p1beta1.StreamingRecognitionConfig streaming_config = 1; + * * @return The streamingConfig. */ @java.lang.Override @@ -656,6 +729,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
@@ -664,7 +739,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();
@@ -678,6 +754,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
@@ -698,6 +776,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
@@ -706,12 +786,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;
         }
@@ -726,6 +813,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
@@ -751,6 +840,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
@@ -759,10 +850,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
@@ -772,7 +866,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 {
@@ -783,6 +878,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
@@ -792,25 +889,34 @@ public com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfigOrBuilder get
      * .google.cloud.speech.v1p1beta1.StreamingRecognitionConfig streaming_config = 1;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig, com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig.Builder, com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfigOrBuilder> 
+            com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig,
+            com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig.Builder,
+            com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfigOrBuilder>
         getStreamingConfigFieldBuilder() {
       if (streamingConfigBuilder_ == null) {
         if (!(streamingRequestCase_ == 1)) {
-          streamingRequest_ = com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig.getDefaultInstance();
+          streamingRequest_ =
+              com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig.getDefaultInstance();
         }
-        streamingConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig, com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig.Builder, com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfigOrBuilder>(
+        streamingConfigBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig,
+                com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig.Builder,
+                com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfigOrBuilder>(
                 (com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig) streamingRequest_,
                 getParentForChildren(),
                 isClean());
         streamingRequest_ = null;
       }
       streamingRequestCase_ = 1;
-      onChanged();;
+      onChanged();
+      ;
       return streamingConfigBuilder_;
     }
 
     /**
+     *
+     *
      * 
      * The audio data to be recognized. Sequential chunks of audio data are sent
      * in sequential `StreamingRecognizeRequest` messages. The first
@@ -823,12 +929,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
@@ -841,6 +950,7 @@ public boolean hasAudioContent() {
      * 
* * bytes audio_content = 2; + * * @return The audioContent. */ public com.google.protobuf.ByteString getAudioContent() { @@ -850,6 +960,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
@@ -862,19 +974,22 @@ public com.google.protobuf.ByteString getAudioContent() {
      * 
* * bytes audio_content = 2; + * * @param value The audioContent to set. * @return This builder for chaining. */ public Builder setAudioContent(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - streamingRequestCase_ = 2; + throw new NullPointerException(); + } + streamingRequestCase_ = 2; streamingRequest_ = value; onChanged(); return this; } /** + * + * *
      * The audio data to be recognized. Sequential chunks of audio data are sent
      * in sequential `StreamingRecognizeRequest` messages. The first
@@ -887,6 +1002,7 @@ public Builder setAudioContent(com.google.protobuf.ByteString value) {
      * 
* * bytes audio_content = 2; + * * @return This builder for chaining. */ public Builder clearAudioContent() { @@ -897,9 +1013,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); } @@ -909,12 +1025,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(); } @@ -923,16 +1039,16 @@ public static com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StreamingRecognizeRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new StreamingRecognizeRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StreamingRecognizeRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new StreamingRecognizeRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -947,6 +1063,4 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeRequestOrBuilder.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeRequestOrBuilder.java similarity index 78% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeRequestOrBuilder.java rename to proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeRequestOrBuilder.java index e77bf66cf..f6b61734f 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeRequestOrBuilder.java +++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeRequestOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech.proto package com.google.cloud.speech.v1p1beta1; -public interface StreamingRecognizeRequestOrBuilder extends +public interface StreamingRecognizeRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1p1beta1.StreamingRecognizeRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Provides information to the recognizer that specifies how to process the
    * request. The first `StreamingRecognizeRequest` message must contain a
@@ -15,10 +33,13 @@ public interface StreamingRecognizeRequestOrBuilder extends
    * 
* * .google.cloud.speech.v1p1beta1.StreamingRecognitionConfig streaming_config = 1; + * * @return Whether the streamingConfig field is set. */ boolean hasStreamingConfig(); /** + * + * *
    * Provides information to the recognizer that specifies how to process the
    * request. The first `StreamingRecognizeRequest` message must contain a
@@ -26,10 +47,13 @@ public interface StreamingRecognizeRequestOrBuilder extends
    * 
* * .google.cloud.speech.v1p1beta1.StreamingRecognitionConfig streaming_config = 1; + * * @return The streamingConfig. */ com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig getStreamingConfig(); /** + * + * *
    * Provides information to the recognizer that specifies how to process the
    * request. The first `StreamingRecognizeRequest` message must contain a
@@ -38,9 +62,12 @@ public interface StreamingRecognizeRequestOrBuilder extends
    *
    * .google.cloud.speech.v1p1beta1.StreamingRecognitionConfig streaming_config = 1;
    */
-  com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfigOrBuilder getStreamingConfigOrBuilder();
+  com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfigOrBuilder
+      getStreamingConfigOrBuilder();
 
   /**
+   *
+   *
    * 
    * The audio data to be recognized. Sequential chunks of audio data are sent
    * in sequential `StreamingRecognizeRequest` messages. The first
@@ -53,10 +80,13 @@ public interface StreamingRecognizeRequestOrBuilder extends
    * 
* * bytes audio_content = 2; + * * @return Whether the audioContent field is set. */ boolean hasAudioContent(); /** + * + * *
    * The audio data to be recognized. Sequential chunks of audio data are sent
    * in sequential `StreamingRecognizeRequest` messages. The first
@@ -69,9 +99,11 @@ public interface StreamingRecognizeRequestOrBuilder extends
    * 
* * bytes audio_content = 2; + * * @return The audioContent. */ com.google.protobuf.ByteString getAudioContent(); - public com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest.StreamingRequestCase getStreamingRequestCase(); + public com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest.StreamingRequestCase + getStreamingRequestCase(); } diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeResponse.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeResponse.java similarity index 75% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeResponse.java rename to proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeResponse.java index f978fe4f6..8ad4ceba0 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeResponse.java +++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeResponse.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech.proto package com.google.cloud.speech.v1p1beta1; /** + * + * *
  * `StreamingRecognizeResponse` is the only message returned to the client by
  * `StreamingRecognize`. A series of zero or more `StreamingRecognizeResponse`
@@ -45,15 +62,16 @@
  *
  * Protobuf type {@code google.cloud.speech.v1p1beta1.StreamingRecognizeResponse}
  */
-public final class StreamingRecognizeResponse extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class StreamingRecognizeResponse extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.speech.v1p1beta1.StreamingRecognizeResponse)
     StreamingRecognizeResponseOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use StreamingRecognizeResponse.newBuilder() to construct.
   private StreamingRecognizeResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private StreamingRecognizeResponse() {
     results_ = java.util.Collections.emptyList();
     speechEventType_ = 0;
@@ -61,16 +79,15 @@ private StreamingRecognizeResponse() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new StreamingRecognizeResponse();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private StreamingRecognizeResponse(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -90,61 +107,69 @@ private StreamingRecognizeResponse(
           case 0:
             done = true;
             break;
-          case 10: {
-            com.google.rpc.Status.Builder subBuilder = null;
-            if (error_ != null) {
-              subBuilder = error_.toBuilder();
+          case 10:
+            {
+              com.google.rpc.Status.Builder subBuilder = null;
+              if (error_ != null) {
+                subBuilder = error_.toBuilder();
+              }
+              error_ = input.readMessage(com.google.rpc.Status.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(error_);
+                error_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
-            error_ = input.readMessage(com.google.rpc.Status.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(error_);
-              error_ = subBuilder.buildPartial();
+          case 18:
+            {
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                results_ =
+                    new java.util.ArrayList<
+                        com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult>();
+                mutable_bitField0_ |= 0x00000001;
+              }
+              results_.add(
+                  input.readMessage(
+                      com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult.parser(),
+                      extensionRegistry));
+              break;
             }
+          case 32:
+            {
+              int rawValue = input.readEnum();
 
-            break;
-          }
-          case 18: {
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              results_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000001;
+              speechEventType_ = rawValue;
+              break;
             }
-            results_.add(
-                input.readMessage(com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult.parser(), extensionRegistry));
-            break;
-          }
-          case 32: {
-            int rawValue = input.readEnum();
-
-            speechEventType_ = rawValue;
-            break;
-          }
-          case 42: {
-            com.google.protobuf.Duration.Builder subBuilder = null;
-            if (totalBilledTime_ != null) {
-              subBuilder = totalBilledTime_.toBuilder();
+          case 42:
+            {
+              com.google.protobuf.Duration.Builder subBuilder = null;
+              if (totalBilledTime_ != null) {
+                subBuilder = totalBilledTime_.toBuilder();
+              }
+              totalBilledTime_ =
+                  input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(totalBilledTime_);
+                totalBilledTime_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
-            totalBilledTime_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(totalBilledTime_);
-              totalBilledTime_ = subBuilder.buildPartial();
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
-            }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         results_ = java.util.Collections.unmodifiableList(results_);
@@ -153,29 +178,35 @@ private StreamingRecognizeResponse(
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_StreamingRecognizeResponse_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.speech.v1p1beta1.SpeechProto
+        .internal_static_google_cloud_speech_v1p1beta1_StreamingRecognizeResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_StreamingRecognizeResponse_fieldAccessorTable
+    return com.google.cloud.speech.v1p1beta1.SpeechProto
+        .internal_static_google_cloud_speech_v1p1beta1_StreamingRecognizeResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.class, com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.Builder.class);
+            com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.class,
+            com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.Builder.class);
   }
 
   /**
+   *
+   *
    * 
    * Indicates the type of speech event.
    * 
* * Protobuf enum {@code google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType} */ - public enum SpeechEventType - implements com.google.protobuf.ProtocolMessageEnum { + public enum SpeechEventType implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * No speech event specified.
      * 
@@ -184,6 +215,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
@@ -201,6 +234,8 @@ public enum SpeechEventType
     ;
 
     /**
+     *
+     *
      * 
      * No speech event specified.
      * 
@@ -209,6 +244,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
@@ -223,7 +260,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(
@@ -248,39 +284,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();
@@ -288,8 +328,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;
@@ -309,12 +348,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 @@ -322,12 +364,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 @@ -335,6 +380,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.
@@ -350,6 +397,8 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() {
   public static final int RESULTS_FIELD_NUMBER = 2;
   private java.util.List results_;
   /**
+   *
+   *
    * 
    * This repeated list contains zero or more results that
    * correspond to consecutive portions of the audio currently being processed.
@@ -360,10 +409,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.
@@ -374,11 +426,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.
@@ -393,6 +448,8 @@ public int getResultsCount() {
     return results_.size();
   }
   /**
+   *
+   *
    * 
    * This repeated list contains zero or more results that
    * correspond to consecutive portions of the audio currently being processed.
@@ -407,6 +464,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.
@@ -425,39 +484,59 @@ public com.google.cloud.speech.v1p1beta1.StreamingRecognitionResultOrBuilder get
   public static final int SPEECH_EVENT_TYPE_FIELD_NUMBER = 4;
   private int speechEventType_;
   /**
+   *
+   *
    * 
    * Indicates the type of speech event.
    * 
* - * .google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType speech_event_type = 4; + * + * .google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType speech_event_type = 4; + * + * * @return The enum numeric value on the wire for speechEventType. */ - @java.lang.Override public int getSpeechEventTypeValue() { + @java.lang.Override + public int getSpeechEventTypeValue() { return speechEventType_; } /** + * + * *
    * Indicates the type of speech event.
    * 
* - * .google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType speech_event_type = 4; + * + * .google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType speech_event_type = 4; + * + * * @return The speechEventType. */ - @java.lang.Override public com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType getSpeechEventType() { + @java.lang.Override + public com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType + getSpeechEventType() { @SuppressWarnings("deprecation") - com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType result = com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType.valueOf(speechEventType_); - return result == null ? com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType.UNRECOGNIZED : result; + com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType result = + com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType.valueOf( + speechEventType_); + return result == null + ? com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType.UNRECOGNIZED + : result; } public static final int TOTAL_BILLED_TIME_FIELD_NUMBER = 5; private com.google.protobuf.Duration totalBilledTime_; /** + * + * *
    * When available, billed audio seconds for the stream.
    * Set only if this is the last response in the stream.
    * 
* * .google.protobuf.Duration total_billed_time = 5; + * * @return Whether the totalBilledTime field is set. */ @java.lang.Override @@ -465,19 +544,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.
@@ -491,6 +577,7 @@ public com.google.protobuf.DurationOrBuilder getTotalBilledTimeOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -502,15 +589,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) {
@@ -526,20 +615,19 @@ public int getSerializedSize() {
 
     size = 0;
     if (error_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(1, getError());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getError());
     }
     for (int i = 0; i < results_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(2, results_.get(i));
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, results_.get(i));
     }
-    if (speechEventType_ != com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType.SPEECH_EVENT_UNSPECIFIED.getNumber()) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeEnumSize(4, speechEventType_);
+    if (speechEventType_
+        != com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType
+            .SPEECH_EVENT_UNSPECIFIED
+            .getNumber()) {
+      size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, speechEventType_);
     }
     if (totalBilledTime_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(5, getTotalBilledTime());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getTotalBilledTime());
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -549,25 +637,23 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse)) {
       return super.equals(obj);
     }
-    com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse other = (com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse) obj;
+    com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse other =
+        (com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse) obj;
 
     if (hasError() != other.hasError()) return false;
     if (hasError()) {
-      if (!getError()
-          .equals(other.getError())) return false;
+      if (!getError().equals(other.getError())) return false;
     }
-    if (!getResultsList()
-        .equals(other.getResultsList())) return false;
+    if (!getResultsList().equals(other.getResultsList())) return false;
     if (speechEventType_ != other.speechEventType_) return false;
     if (hasTotalBilledTime() != other.hasTotalBilledTime()) return false;
     if (hasTotalBilledTime()) {
-      if (!getTotalBilledTime()
-          .equals(other.getTotalBilledTime())) return false;
+      if (!getTotalBilledTime().equals(other.getTotalBilledTime())) return false;
     }
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
@@ -600,96 +686,104 @@ public int hashCode() {
   }
 
   public static com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse parseFrom(
-      java.nio.ByteBuffer data)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
-  public static com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+
+  public static com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-  public static Builder newBuilder(com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse prototype) {
+
+  public static Builder newBuilder(
+      com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * `StreamingRecognizeResponse` is the only message returned to the client by
    * `StreamingRecognize`. A series of zero or more `StreamingRecognizeResponse`
@@ -731,21 +825,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.speech.v1p1beta1.StreamingRecognizeResponse}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1p1beta1.StreamingRecognizeResponse)
       com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_StreamingRecognizeResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.speech.v1p1beta1.SpeechProto
+          .internal_static_google_cloud_speech_v1p1beta1_StreamingRecognizeResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_StreamingRecognizeResponse_fieldAccessorTable
+      return com.google.cloud.speech.v1p1beta1.SpeechProto
+          .internal_static_google_cloud_speech_v1p1beta1_StreamingRecognizeResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.class, com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.Builder.class);
+              com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.class,
+              com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.newBuilder()
@@ -753,17 +849,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
         getResultsFieldBuilder();
       }
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -791,13 +887,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();
     }
 
@@ -812,7 +909,8 @@ public com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse buildPartial() {
-      com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse result = new com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse(this);
+      com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse result =
+          new com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse(this);
       int from_bitField0_ = bitField0_;
       if (errorBuilder_ == null) {
         result.error_ = error_;
@@ -842,38 +940,39 @@ public com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse buildPartial
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse) {
-        return mergeFrom((com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse)other);
+        return mergeFrom((com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -881,7 +980,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());
       }
@@ -903,9 +1004,10 @@ public Builder mergeFrom(com.google.cloud.speech.v1p1beta1.StreamingRecognizeRes
             resultsBuilder_ = null;
             results_ = other.results_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            resultsBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getResultsFieldBuilder() : null;
+            resultsBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getResultsFieldBuilder()
+                    : null;
           } else {
             resultsBuilder_.addAllMessages(other.results_);
           }
@@ -936,7 +1038,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -945,30 +1048,38 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
     private com.google.rpc.Status error_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> errorBuilder_;
+            com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>
+        errorBuilder_;
     /**
+     *
+     *
      * 
      * If set, returns a [google.rpc.Status][google.rpc.Status] message that
      * specifies the error for the operation.
      * 
* * .google.rpc.Status error = 1; + * * @return Whether the error field is set. */ public boolean hasError() { return errorBuilder_ != null || error_ != null; } /** + * + * *
      * If set, returns a [google.rpc.Status][google.rpc.Status] message that
      * specifies the error for the operation.
      * 
* * .google.rpc.Status error = 1; + * * @return The error. */ public com.google.rpc.Status getError() { @@ -979,6 +1090,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.
@@ -1000,6 +1113,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.
@@ -1007,8 +1122,7 @@ public Builder setError(com.google.rpc.Status value) {
      *
      * .google.rpc.Status error = 1;
      */
-    public Builder setError(
-        com.google.rpc.Status.Builder builderForValue) {
+    public Builder setError(com.google.rpc.Status.Builder builderForValue) {
       if (errorBuilder_ == null) {
         error_ = builderForValue.build();
         onChanged();
@@ -1019,6 +1133,8 @@ public Builder setError(
       return this;
     }
     /**
+     *
+     *
      * 
      * If set, returns a [google.rpc.Status][google.rpc.Status] message that
      * specifies the error for the operation.
@@ -1029,8 +1145,7 @@ public Builder setError(
     public Builder mergeError(com.google.rpc.Status value) {
       if (errorBuilder_ == null) {
         if (error_ != null) {
-          error_ =
-            com.google.rpc.Status.newBuilder(error_).mergeFrom(value).buildPartial();
+          error_ = com.google.rpc.Status.newBuilder(error_).mergeFrom(value).buildPartial();
         } else {
           error_ = value;
         }
@@ -1042,6 +1157,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.
@@ -1061,6 +1178,8 @@ public Builder clearError() {
       return this;
     }
     /**
+     *
+     *
      * 
      * If set, returns a [google.rpc.Status][google.rpc.Status] message that
      * specifies the error for the operation.
@@ -1069,11 +1188,13 @@ public Builder clearError() {
      * .google.rpc.Status error = 1;
      */
     public com.google.rpc.Status.Builder getErrorBuilder() {
-      
+
       onChanged();
       return getErrorFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * If set, returns a [google.rpc.Status][google.rpc.Status] message that
      * specifies the error for the operation.
@@ -1085,11 +1206,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.
@@ -1098,32 +1220,40 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() {
      * .google.rpc.Status error = 1;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> 
+            com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>
         getErrorFieldBuilder() {
       if (errorBuilder_ == null) {
-        errorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>(
-                getError(),
-                getParentForChildren(),
-                isClean());
+        errorBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.rpc.Status,
+                com.google.rpc.Status.Builder,
+                com.google.rpc.StatusOrBuilder>(getError(), getParentForChildren(), isClean());
         error_ = null;
       }
       return errorBuilder_;
     }
 
     private java.util.List results_ =
-      java.util.Collections.emptyList();
+        java.util.Collections.emptyList();
+
     private void ensureResultsIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
-        results_ = new java.util.ArrayList(results_);
+        results_ =
+            new java.util.ArrayList(
+                results_);
         bitField0_ |= 0x00000001;
-       }
+      }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult, com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult.Builder, com.google.cloud.speech.v1p1beta1.StreamingRecognitionResultOrBuilder> resultsBuilder_;
+            com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult,
+            com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult.Builder,
+            com.google.cloud.speech.v1p1beta1.StreamingRecognitionResultOrBuilder>
+        resultsBuilder_;
 
     /**
+     *
+     *
      * 
      * This repeated list contains zero or more results that
      * correspond to consecutive portions of the audio currently being processed.
@@ -1133,7 +1263,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 {
@@ -1141,6 +1272,8 @@ public java.util.List
      * This repeated list contains zero or more results that
      * correspond to consecutive portions of the audio currently being processed.
@@ -1158,6 +1291,8 @@ public int getResultsCount() {
       }
     }
     /**
+     *
+     *
      * 
      * This repeated list contains zero or more results that
      * correspond to consecutive portions of the audio currently being processed.
@@ -1175,6 +1310,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.
@@ -1199,6 +1336,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.
@@ -1209,7 +1348,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());
@@ -1220,6 +1360,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.
@@ -1243,6 +1385,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.
@@ -1267,6 +1411,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.
@@ -1288,6 +1434,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.
@@ -1298,7 +1446,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());
@@ -1309,6 +1458,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.
@@ -1319,11 +1470,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);
@@ -1331,6 +1482,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.
@@ -1351,6 +1504,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.
@@ -1371,6 +1526,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.
@@ -1385,6 +1542,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.
@@ -1394,14 +1553,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.
@@ -1411,8 +1573,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 {
@@ -1420,6 +1583,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.
@@ -1429,11 +1594,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.
@@ -1445,10 +1614,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.
@@ -1458,20 +1631,23 @@ public com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult.Builder addR
      *
      * repeated .google.cloud.speech.v1p1beta1.StreamingRecognitionResult results = 2;
      */
-    public java.util.List 
-         getResultsBuilderList() {
+    public java.util.List
+        getResultsBuilderList() {
       return getResultsFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult, com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult.Builder, com.google.cloud.speech.v1p1beta1.StreamingRecognitionResultOrBuilder> 
+            com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult,
+            com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult.Builder,
+            com.google.cloud.speech.v1p1beta1.StreamingRecognitionResultOrBuilder>
         getResultsFieldBuilder() {
       if (resultsBuilder_ == null) {
-        resultsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult, com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult.Builder, com.google.cloud.speech.v1p1beta1.StreamingRecognitionResultOrBuilder>(
-                results_,
-                ((bitField0_ & 0x00000001) != 0),
-                getParentForChildren(),
-                isClean());
+        resultsBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult,
+                com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult.Builder,
+                com.google.cloud.speech.v1p1beta1.StreamingRecognitionResultOrBuilder>(
+                results_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
         results_ = null;
       }
       return resultsBuilder_;
@@ -1479,73 +1655,106 @@ public com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult.Builder addR
 
     private int speechEventType_ = 0;
     /**
+     *
+     *
      * 
      * Indicates the type of speech event.
      * 
* - * .google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType speech_event_type = 4; + * + * .google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType speech_event_type = 4; + * + * * @return The enum numeric value on the wire for speechEventType. */ - @java.lang.Override public int getSpeechEventTypeValue() { + @java.lang.Override + public int getSpeechEventTypeValue() { return speechEventType_; } /** + * + * *
      * Indicates the type of speech event.
      * 
* - * .google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType speech_event_type = 4; + * + * .google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType speech_event_type = 4; + * + * * @param value The enum numeric value on the wire for speechEventType to set. * @return This builder for chaining. */ public Builder setSpeechEventTypeValue(int value) { - + speechEventType_ = value; onChanged(); return this; } /** + * + * *
      * Indicates the type of speech event.
      * 
* - * .google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType speech_event_type = 4; + * + * .google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType speech_event_type = 4; + * + * * @return The speechEventType. */ @java.lang.Override - public com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType getSpeechEventType() { + public com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType + getSpeechEventType() { @SuppressWarnings("deprecation") - com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType result = com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType.valueOf(speechEventType_); - return result == null ? com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType.UNRECOGNIZED : result; + com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType result = + com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType.valueOf( + speechEventType_); + return result == null + ? com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType + .UNRECOGNIZED + : result; } /** + * + * *
      * Indicates the type of speech event.
      * 
* - * .google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType speech_event_type = 4; + * + * .google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType speech_event_type = 4; + * + * * @param value The speechEventType to set. * @return This builder for chaining. */ - public Builder setSpeechEventType(com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType value) { + public Builder setSpeechEventType( + com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType value) { if (value == null) { throw new NullPointerException(); } - + speechEventType_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Indicates the type of speech event.
      * 
* - * .google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType speech_event_type = 4; + * + * .google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType speech_event_type = 4; + * + * * @return This builder for chaining. */ public Builder clearSpeechEventType() { - + speechEventType_ = 0; onChanged(); return this; @@ -1553,36 +1762,49 @@ public Builder clearSpeechEventType() { private com.google.protobuf.Duration totalBilledTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> totalBilledTimeBuilder_; + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + totalBilledTimeBuilder_; /** + * + * *
      * When available, billed audio seconds for the stream.
      * Set only if this is the last response in the stream.
      * 
* * .google.protobuf.Duration total_billed_time = 5; + * * @return Whether the totalBilledTime field is set. */ public boolean hasTotalBilledTime() { return totalBilledTimeBuilder_ != null || totalBilledTime_ != null; } /** + * + * *
      * When available, billed audio seconds for the stream.
      * Set only if this is the last response in the stream.
      * 
* * .google.protobuf.Duration total_billed_time = 5; + * * @return The totalBilledTime. */ public com.google.protobuf.Duration getTotalBilledTime() { if (totalBilledTimeBuilder_ == null) { - return totalBilledTime_ == null ? com.google.protobuf.Duration.getDefaultInstance() : totalBilledTime_; + return totalBilledTime_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : totalBilledTime_; } else { return totalBilledTimeBuilder_.getMessage(); } } /** + * + * *
      * When available, billed audio seconds for the stream.
      * Set only if this is the last response in the stream.
@@ -1604,6 +1826,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.
@@ -1611,8 +1835,7 @@ public Builder setTotalBilledTime(com.google.protobuf.Duration value) {
      *
      * .google.protobuf.Duration total_billed_time = 5;
      */
-    public Builder setTotalBilledTime(
-        com.google.protobuf.Duration.Builder builderForValue) {
+    public Builder setTotalBilledTime(com.google.protobuf.Duration.Builder builderForValue) {
       if (totalBilledTimeBuilder_ == null) {
         totalBilledTime_ = builderForValue.build();
         onChanged();
@@ -1623,6 +1846,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.
@@ -1634,7 +1859,9 @@ public Builder mergeTotalBilledTime(com.google.protobuf.Duration value) {
       if (totalBilledTimeBuilder_ == null) {
         if (totalBilledTime_ != null) {
           totalBilledTime_ =
-            com.google.protobuf.Duration.newBuilder(totalBilledTime_).mergeFrom(value).buildPartial();
+              com.google.protobuf.Duration.newBuilder(totalBilledTime_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           totalBilledTime_ = value;
         }
@@ -1646,6 +1873,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.
@@ -1665,6 +1894,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.
@@ -1673,11 +1904,13 @@ public Builder clearTotalBilledTime() {
      * .google.protobuf.Duration total_billed_time = 5;
      */
     public com.google.protobuf.Duration.Builder getTotalBilledTimeBuilder() {
-      
+
       onChanged();
       return getTotalBilledTimeFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * When available, billed audio seconds for the stream.
      * Set only if this is the last response in the stream.
@@ -1689,11 +1922,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.
@@ -1702,21 +1938,24 @@ public com.google.protobuf.DurationOrBuilder getTotalBilledTimeOrBuilder() {
      * .google.protobuf.Duration total_billed_time = 5;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> 
+            com.google.protobuf.Duration,
+            com.google.protobuf.Duration.Builder,
+            com.google.protobuf.DurationOrBuilder>
         getTotalBilledTimeFieldBuilder() {
       if (totalBilledTimeBuilder_ == null) {
-        totalBilledTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
-                getTotalBilledTime(),
-                getParentForChildren(),
-                isClean());
+        totalBilledTimeBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.Duration,
+                com.google.protobuf.Duration.Builder,
+                com.google.protobuf.DurationOrBuilder>(
+                getTotalBilledTime(), getParentForChildren(), isClean());
         totalBilledTime_ = null;
       }
       return totalBilledTimeBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1726,12 +1965,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();
   }
@@ -1740,16 +1980,16 @@ public static com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse getDe
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public StreamingRecognizeResponse parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return new StreamingRecognizeResponse(input, extensionRegistry);
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public StreamingRecognizeResponse parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          return new StreamingRecognizeResponse(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1764,6 +2004,4 @@ public com.google.protobuf.Parser getParserForType()
   public com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeResponseOrBuilder.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeResponseOrBuilder.java
similarity index 81%
rename from owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeResponseOrBuilder.java
rename to proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeResponseOrBuilder.java
index f8b30e427..d58bc6551 100644
--- a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeResponseOrBuilder.java
+++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeResponseOrBuilder.java
@@ -1,33 +1,57 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/speech/v1p1beta1/cloud_speech.proto
 
 package com.google.cloud.speech.v1p1beta1;
 
-public interface StreamingRecognizeResponseOrBuilder extends
+public interface StreamingRecognizeResponseOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1p1beta1.StreamingRecognizeResponse)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * If set, returns a [google.rpc.Status][google.rpc.Status] message that
    * specifies the error for the operation.
    * 
* * .google.rpc.Status error = 1; + * * @return Whether the error field is set. */ boolean hasError(); /** + * + * *
    * If set, returns a [google.rpc.Status][google.rpc.Status] message that
    * specifies the error for the operation.
    * 
* * .google.rpc.Status error = 1; + * * @return The error. */ com.google.rpc.Status getError(); /** + * + * *
    * If set, returns a [google.rpc.Status][google.rpc.Status] message that
    * specifies the error for the operation.
@@ -38,6 +62,8 @@ public interface StreamingRecognizeResponseOrBuilder extends
   com.google.rpc.StatusOrBuilder getErrorOrBuilder();
 
   /**
+   *
+   *
    * 
    * This repeated list contains zero or more results that
    * correspond to consecutive portions of the audio currently being processed.
@@ -47,9 +73,10 @@ public interface StreamingRecognizeResponseOrBuilder extends
    *
    * repeated .google.cloud.speech.v1p1beta1.StreamingRecognitionResult results = 2;
    */
-  java.util.List 
-      getResultsList();
+  java.util.List getResultsList();
   /**
+   *
+   *
    * 
    * This repeated list contains zero or more results that
    * correspond to consecutive portions of the audio currently being processed.
@@ -61,6 +88,8 @@ public interface StreamingRecognizeResponseOrBuilder extends
    */
   com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult getResults(int index);
   /**
+   *
+   *
    * 
    * This repeated list contains zero or more results that
    * correspond to consecutive portions of the audio currently being processed.
@@ -72,6 +101,8 @@ public interface StreamingRecognizeResponseOrBuilder extends
    */
   int getResultsCount();
   /**
+   *
+   *
    * 
    * This repeated list contains zero or more results that
    * correspond to consecutive portions of the audio currently being processed.
@@ -81,9 +112,11 @@ public interface StreamingRecognizeResponseOrBuilder extends
    *
    * repeated .google.cloud.speech.v1p1beta1.StreamingRecognitionResult results = 2;
    */
-  java.util.List 
+  java.util.List
       getResultsOrBuilderList();
   /**
+   *
+   *
    * 
    * This repeated list contains zero or more results that
    * correspond to consecutive portions of the audio currently being processed.
@@ -97,45 +130,63 @@ com.google.cloud.speech.v1p1beta1.StreamingRecognitionResultOrBuilder getResults
       int index);
 
   /**
+   *
+   *
    * 
    * Indicates the type of speech event.
    * 
* - * .google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType speech_event_type = 4; + * + * .google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType speech_event_type = 4; + * + * * @return The enum numeric value on the wire for speechEventType. */ int getSpeechEventTypeValue(); /** + * + * *
    * Indicates the type of speech event.
    * 
* - * .google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType speech_event_type = 4; + * + * .google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType speech_event_type = 4; + * + * * @return The speechEventType. */ com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType getSpeechEventType(); /** + * + * *
    * When available, billed audio seconds for the stream.
    * Set only if this is the last response in the stream.
    * 
* * .google.protobuf.Duration total_billed_time = 5; + * * @return Whether the totalBilledTime field is set. */ boolean hasTotalBilledTime(); /** + * + * *
    * When available, billed audio seconds for the stream.
    * Set only if this is the last response in the stream.
    * 
* * .google.protobuf.Duration total_billed_time = 5; + * * @return The totalBilledTime. */ com.google.protobuf.Duration getTotalBilledTime(); /** + * + * *
    * When available, billed audio seconds for the stream.
    * Set only if this is the last response in the stream.
diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptNormalization.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptNormalization.java
similarity index 73%
rename from owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptNormalization.java
rename to proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptNormalization.java
index b50006be7..3eb99c278 100644
--- a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptNormalization.java
+++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptNormalization.java
@@ -1,9 +1,26 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/speech/v1p1beta1/resource.proto
 
 package com.google.cloud.speech.v1p1beta1;
 
 /**
+ *
+ *
  * 
  * Transcription normalization configuration. Use transcription normalization
  * to automatically replace parts of the transcript with phrases of your
@@ -13,31 +30,31 @@
  *
  * Protobuf type {@code google.cloud.speech.v1p1beta1.TranscriptNormalization}
  */
-public final class TranscriptNormalization extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class TranscriptNormalization extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.speech.v1p1beta1.TranscriptNormalization)
     TranscriptNormalizationOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use TranscriptNormalization.newBuilder() to construct.
   private TranscriptNormalization(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private TranscriptNormalization() {
     entries_ = java.util.Collections.emptyList();
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new TranscriptNormalization();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private TranscriptNormalization(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -57,29 +74,33 @@ private TranscriptNormalization(
           case 0:
             done = true;
             break;
-          case 10: {
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              entries_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000001;
+          case 10:
+            {
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                entries_ =
+                    new java.util.ArrayList<
+                        com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry>();
+                mutable_bitField0_ |= 0x00000001;
+              }
+              entries_.add(
+                  input.readMessage(
+                      com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry.parser(),
+                      extensionRegistry));
+              break;
             }
-            entries_.add(
-                input.readMessage(com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry.parser(), extensionRegistry));
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         entries_ = java.util.Collections.unmodifiableList(entries_);
@@ -88,89 +109,109 @@ private TranscriptNormalization(
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.speech.v1p1beta1.SpeechResourceProto.internal_static_google_cloud_speech_v1p1beta1_TranscriptNormalization_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.speech.v1p1beta1.SpeechResourceProto
+        .internal_static_google_cloud_speech_v1p1beta1_TranscriptNormalization_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v1p1beta1.SpeechResourceProto.internal_static_google_cloud_speech_v1p1beta1_TranscriptNormalization_fieldAccessorTable
+    return com.google.cloud.speech.v1p1beta1.SpeechResourceProto
+        .internal_static_google_cloud_speech_v1p1beta1_TranscriptNormalization_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v1p1beta1.TranscriptNormalization.class, com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Builder.class);
+            com.google.cloud.speech.v1p1beta1.TranscriptNormalization.class,
+            com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Builder.class);
   }
 
-  public interface EntryOrBuilder extends
+  public interface EntryOrBuilder
+      extends
       // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry)
       com.google.protobuf.MessageOrBuilder {
 
     /**
+     *
+     *
      * 
      * What to replace. Max length is 100 characters.
      * 
* * string search = 1; + * * @return The search. */ java.lang.String getSearch(); /** + * + * *
      * What to replace. Max length is 100 characters.
      * 
* * string search = 1; + * * @return The bytes for search. */ - com.google.protobuf.ByteString - getSearchBytes(); + com.google.protobuf.ByteString getSearchBytes(); /** + * + * *
      * What to replace with. Max length is 100 characters.
      * 
* * string replace = 2; + * * @return The replace. */ java.lang.String getReplace(); /** + * + * *
      * What to replace with. Max length is 100 characters.
      * 
* * string replace = 2; + * * @return The bytes for replace. */ - com.google.protobuf.ByteString - getReplaceBytes(); + com.google.protobuf.ByteString getReplaceBytes(); /** + * + * *
      * Whether the search is case sensitive.
      * 
* * bool case_sensitive = 3; + * * @return The caseSensitive. */ boolean getCaseSensitive(); } /** + * + * *
    * A single replacement configuration.
    * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry} */ - public static final class Entry extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class Entry extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry) EntryOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Entry.newBuilder() to construct. private Entry(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Entry() { search_ = ""; replace_ = ""; @@ -178,16 +219,15 @@ private Entry() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Entry(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private Entry( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -206,63 +246,70 @@ private Entry( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - search_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - replace_ = s; - break; - } - case 24: { + search_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - caseSensitive_ = input.readBool(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + replace_ = s; + break; + } + case 24: + { + caseSensitive_ = input.readBool(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechResourceProto.internal_static_google_cloud_speech_v1p1beta1_TranscriptNormalization_Entry_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechResourceProto + .internal_static_google_cloud_speech_v1p1beta1_TranscriptNormalization_Entry_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechResourceProto.internal_static_google_cloud_speech_v1p1beta1_TranscriptNormalization_Entry_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechResourceProto + .internal_static_google_cloud_speech_v1p1beta1_TranscriptNormalization_Entry_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry.class, com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry.Builder.class); + com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry.class, + com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry.Builder.class); } public static final int SEARCH_FIELD_NUMBER = 1; private volatile java.lang.Object search_; /** + * + * *
      * What to replace. Max length is 100 characters.
      * 
* * string search = 1; + * * @return The search. */ @java.lang.Override @@ -271,29 +318,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 { @@ -304,11 +351,14 @@ public java.lang.String getSearch() { public static final int REPLACE_FIELD_NUMBER = 2; private volatile java.lang.Object replace_; /** + * + * *
      * What to replace with. Max length is 100 characters.
      * 
* * string replace = 2; + * * @return The replace. */ @java.lang.Override @@ -317,29 +367,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 { @@ -350,11 +400,14 @@ public java.lang.String getReplace() { public static final int CASE_SENSITIVE_FIELD_NUMBER = 3; private boolean caseSensitive_; /** + * + * *
      * Whether the search is case sensitive.
      * 
* * bool case_sensitive = 3; + * * @return The caseSensitive. */ @java.lang.Override @@ -363,6 +416,7 @@ public boolean getCaseSensitive() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -374,8 +428,7 @@ public final boolean isInitialized() { } @java.lang.Override - public 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_); } @@ -401,8 +454,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, replace_); } if (caseSensitive_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(3, caseSensitive_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, caseSensitive_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -412,19 +464,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry)) { return super.equals(obj); } - com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry other = (com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry) obj; + com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry other = + (com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry) obj; - if (!getSearch() - .equals(other.getSearch())) return false; - if (!getReplace() - .equals(other.getReplace())) return false; - if (getCaseSensitive() - != other.getCaseSensitive()) return false; + if (!getSearch().equals(other.getSearch())) return false; + if (!getReplace().equals(other.getReplace())) return false; + if (getCaseSensitive() != other.getCaseSensitive()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -441,95 +491,102 @@ public int hashCode() { hash = (37 * hash) + REPLACE_FIELD_NUMBER; hash = (53 * hash) + getReplace().hashCode(); hash = (37 * hash) + CASE_SENSITIVE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getCaseSensitive()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getCaseSensitive()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry prototype) { + + public static Builder newBuilder( + com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -539,44 +596,49 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * A single replacement configuration.
      * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry) com.google.cloud.speech.v1p1beta1.TranscriptNormalization.EntryOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechResourceProto.internal_static_google_cloud_speech_v1p1beta1_TranscriptNormalization_Entry_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechResourceProto + .internal_static_google_cloud_speech_v1p1beta1_TranscriptNormalization_Entry_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechResourceProto.internal_static_google_cloud_speech_v1p1beta1_TranscriptNormalization_Entry_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechResourceProto + .internal_static_google_cloud_speech_v1p1beta1_TranscriptNormalization_Entry_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry.class, com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry.Builder.class); + com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry.class, + com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry.Builder.class); } - // Construct using com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry.newBuilder() + // Construct using + // com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -590,13 +652,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(); } @@ -611,7 +674,8 @@ public com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry build() { @java.lang.Override public com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry buildPartial() { - com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry result = new com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry(this); + com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry result = + new com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry(this); result.search_ = search_; result.replace_ = replace_; result.caseSensitive_ = caseSensitive_; @@ -623,46 +687,52 @@ public com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry buildPart public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry) { - return mergeFrom((com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry)other); + return mergeFrom((com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry other) { - if (other == com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry other) { + if (other + == com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry.getDefaultInstance()) + return this; if (!other.getSearch().isEmpty()) { search_ = other.search_; onChanged(); @@ -693,7 +763,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -705,18 +777,20 @@ public Builder mergeFrom( private java.lang.Object search_ = ""; /** + * + * *
        * What to replace. Max length is 100 characters.
        * 
* * string search = 1; + * * @return The search. */ public java.lang.String getSearch() { java.lang.Object ref = search_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); search_ = s; return s; @@ -725,20 +799,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 { @@ -746,54 +821,61 @@ public java.lang.String getSearch() { } } /** + * + * *
        * What to replace. Max length is 100 characters.
        * 
* * string search = 1; + * * @param value The search to set. * @return This builder for chaining. */ - public Builder setSearch( - java.lang.String value) { + public Builder setSearch(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + search_ = value; onChanged(); return this; } /** + * + * *
        * What to replace. Max length is 100 characters.
        * 
* * string search = 1; + * * @return This builder for chaining. */ public Builder clearSearch() { - + search_ = getDefaultInstance().getSearch(); onChanged(); return this; } /** + * + * *
        * What to replace. Max length is 100 characters.
        * 
* * string search = 1; + * * @param value The bytes for search to set. * @return This builder for chaining. */ - public Builder setSearchBytes( - com.google.protobuf.ByteString value) { + public Builder setSearchBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + search_ = value; onChanged(); return this; @@ -801,18 +883,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; @@ -821,20 +905,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 { @@ -842,66 +927,76 @@ public java.lang.String getReplace() { } } /** + * + * *
        * What to replace with. Max length is 100 characters.
        * 
* * string replace = 2; + * * @param value The replace to set. * @return This builder for chaining. */ - public Builder setReplace( - java.lang.String value) { + public Builder setReplace(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + replace_ = value; onChanged(); return this; } /** + * + * *
        * What to replace with. Max length is 100 characters.
        * 
* * string replace = 2; + * * @return This builder for chaining. */ public Builder clearReplace() { - + replace_ = getDefaultInstance().getReplace(); onChanged(); return this; } /** + * + * *
        * What to replace with. Max length is 100 characters.
        * 
* * string replace = 2; + * * @param value The bytes for replace to set. * @return This builder for chaining. */ - public Builder setReplaceBytes( - com.google.protobuf.ByteString value) { + public Builder setReplaceBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + replace_ = value; onChanged(); return this; } - private boolean caseSensitive_ ; + private boolean caseSensitive_; /** + * + * *
        * Whether the search is case sensitive.
        * 
* * bool case_sensitive = 3; + * * @return The caseSensitive. */ @java.lang.Override @@ -909,34 +1004,41 @@ public boolean getCaseSensitive() { return caseSensitive_; } /** + * + * *
        * Whether the search is case sensitive.
        * 
* * bool case_sensitive = 3; + * * @param value The caseSensitive to set. * @return This builder for chaining. */ public Builder setCaseSensitive(boolean value) { - + caseSensitive_ = value; onChanged(); return this; } /** + * + * *
        * Whether the search is case sensitive.
        * 
* * bool case_sensitive = 3; + * * @return This builder for chaining. */ public Builder clearCaseSensitive() { - + caseSensitive_ = false; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -949,30 +1051,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry) - private static final com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry DEFAULT_INSTANCE; + private static final com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry(); } - public static com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry getDefaultInstance() { + public static com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Entry parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Entry(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Entry parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Entry(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -984,15 +1088,17 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry getDefaultInstanceForType() { + public com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } public static final int ENTRIES_FIELD_NUMBER = 1; private java.util.List entries_; /** + * + * *
    * A list of replacement entries. We will perform replacement with one entry
    * at a time. For example, the second entry in ["cat" => "dog", "mountain cat"
@@ -1003,10 +1109,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"
@@ -1017,11 +1126,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"
@@ -1036,6 +1148,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"
@@ -1050,6 +1164,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"
@@ -1060,12 +1176,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;
@@ -1077,8 +1194,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  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));
     }
@@ -1092,8 +1208,7 @@ public int getSerializedSize() {
 
     size = 0;
     for (int i = 0; i < entries_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(1, entries_.get(i));
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, entries_.get(i));
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -1103,15 +1218,15 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.speech.v1p1beta1.TranscriptNormalization)) {
       return super.equals(obj);
     }
-    com.google.cloud.speech.v1p1beta1.TranscriptNormalization other = (com.google.cloud.speech.v1p1beta1.TranscriptNormalization) obj;
+    com.google.cloud.speech.v1p1beta1.TranscriptNormalization other =
+        (com.google.cloud.speech.v1p1beta1.TranscriptNormalization) obj;
 
-    if (!getEntriesList()
-        .equals(other.getEntriesList())) return false;
+    if (!getEntriesList().equals(other.getEntriesList())) return false;
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
   }
@@ -1133,96 +1248,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
@@ -1232,21 +1355,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.speech.v1p1beta1.TranscriptNormalization}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1p1beta1.TranscriptNormalization)
       com.google.cloud.speech.v1p1beta1.TranscriptNormalizationOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.speech.v1p1beta1.SpeechResourceProto.internal_static_google_cloud_speech_v1p1beta1_TranscriptNormalization_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.speech.v1p1beta1.SpeechResourceProto
+          .internal_static_google_cloud_speech_v1p1beta1_TranscriptNormalization_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v1p1beta1.SpeechResourceProto.internal_static_google_cloud_speech_v1p1beta1_TranscriptNormalization_fieldAccessorTable
+      return com.google.cloud.speech.v1p1beta1.SpeechResourceProto
+          .internal_static_google_cloud_speech_v1p1beta1_TranscriptNormalization_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v1p1beta1.TranscriptNormalization.class, com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Builder.class);
+              com.google.cloud.speech.v1p1beta1.TranscriptNormalization.class,
+              com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v1p1beta1.TranscriptNormalization.newBuilder()
@@ -1254,17 +1379,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
         getEntriesFieldBuilder();
       }
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1278,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_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
@@ -1299,7 +1424,8 @@ public com.google.cloud.speech.v1p1beta1.TranscriptNormalization build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v1p1beta1.TranscriptNormalization buildPartial() {
-      com.google.cloud.speech.v1p1beta1.TranscriptNormalization result = new com.google.cloud.speech.v1p1beta1.TranscriptNormalization(this);
+      com.google.cloud.speech.v1p1beta1.TranscriptNormalization result =
+          new com.google.cloud.speech.v1p1beta1.TranscriptNormalization(this);
       int from_bitField0_ = bitField0_;
       if (entriesBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
@@ -1318,38 +1444,39 @@ public com.google.cloud.speech.v1p1beta1.TranscriptNormalization buildPartial()
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.speech.v1p1beta1.TranscriptNormalization) {
-        return mergeFrom((com.google.cloud.speech.v1p1beta1.TranscriptNormalization)other);
+        return mergeFrom((com.google.cloud.speech.v1p1beta1.TranscriptNormalization) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1357,7 +1484,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()) {
@@ -1376,9 +1504,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_);
           }
@@ -1403,7 +1532,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.speech.v1p1beta1.TranscriptNormalization) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.speech.v1p1beta1.TranscriptNormalization) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -1412,21 +1542,30 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
-    private java.util.List entries_ =
-      java.util.Collections.emptyList();
+    private java.util.List
+        entries_ = java.util.Collections.emptyList();
+
     private void ensureEntriesIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
-        entries_ = new java.util.ArrayList(entries_);
+        entries_ =
+            new java.util.ArrayList<
+                com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry>(entries_);
         bitField0_ |= 0x00000001;
-       }
+      }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry, com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry.Builder, com.google.cloud.speech.v1p1beta1.TranscriptNormalization.EntryOrBuilder> entriesBuilder_;
+            com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry,
+            com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry.Builder,
+            com.google.cloud.speech.v1p1beta1.TranscriptNormalization.EntryOrBuilder>
+        entriesBuilder_;
 
     /**
+     *
+     *
      * 
      * A list of replacement entries. We will perform replacement with one entry
      * at a time. For example, the second entry in ["cat" => "dog", "mountain cat"
@@ -1434,9 +1573,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 { @@ -1444,6 +1585,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" @@ -1451,7 +1594,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) { @@ -1461,6 +1605,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"
@@ -1468,7 +1614,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) { @@ -1478,6 +1625,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"
@@ -1485,7 +1634,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) { @@ -1502,6 +1652,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"
@@ -1509,10 +1661,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()); @@ -1523,6 +1677,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"
@@ -1530,9 +1686,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(); @@ -1546,6 +1704,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"
@@ -1553,7 +1713,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) { @@ -1570,6 +1731,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"
@@ -1577,7 +1740,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) { @@ -1591,6 +1755,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"
@@ -1598,10 +1764,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()); @@ -1612,6 +1780,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"
@@ -1619,14 +1789,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); @@ -1634,6 +1806,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"
@@ -1641,7 +1815,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) { @@ -1654,6 +1829,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"
@@ -1661,7 +1838,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) { @@ -1674,6 +1852,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"
@@ -1681,13 +1861,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"
@@ -1695,16 +1878,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"
@@ -1712,10 +1899,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 { @@ -1723,6 +1912,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"
@@ -1730,13 +1921,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"
@@ -1744,14 +1940,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"
@@ -1759,29 +1960,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); } @@ -1791,12 +1996,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(); } @@ -1805,16 +2010,16 @@ public static com.google.cloud.speech.v1p1beta1.TranscriptNormalization getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TranscriptNormalization parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TranscriptNormalization(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TranscriptNormalization parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TranscriptNormalization(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1829,6 +2034,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.TranscriptNormalization getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptNormalizationOrBuilder.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptNormalizationOrBuilder.java similarity index 78% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptNormalizationOrBuilder.java rename to proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptNormalizationOrBuilder.java index fa51b40b7..11549b4c3 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptNormalizationOrBuilder.java +++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptNormalizationOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/resource.proto package com.google.cloud.speech.v1p1beta1; -public interface TranscriptNormalizationOrBuilder extends +public interface TranscriptNormalizationOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1p1beta1.TranscriptNormalization) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * A list of replacement entries. We will perform replacement with one entry
    * at a time. For example, the second entry in ["cat" => "dog", "mountain cat"
@@ -17,9 +35,10 @@ public interface TranscriptNormalizationOrBuilder extends
    *
    * repeated .google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry entries = 1;
    */
-  java.util.List 
-      getEntriesList();
+  java.util.List getEntriesList();
   /**
+   *
+   *
    * 
    * A list of replacement entries. We will perform replacement with one entry
    * at a time. For example, the second entry in ["cat" => "dog", "mountain cat"
@@ -31,6 +50,8 @@ public interface TranscriptNormalizationOrBuilder extends
    */
   com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry getEntries(int index);
   /**
+   *
+   *
    * 
    * A list of replacement entries. We will perform replacement with one entry
    * at a time. For example, the second entry in ["cat" => "dog", "mountain cat"
@@ -42,6 +63,8 @@ public interface TranscriptNormalizationOrBuilder extends
    */
   int getEntriesCount();
   /**
+   *
+   *
    * 
    * A list of replacement entries. We will perform replacement with one entry
    * at a time. For example, the second entry in ["cat" => "dog", "mountain cat"
@@ -51,9 +74,11 @@ public interface TranscriptNormalizationOrBuilder extends
    *
    * repeated .google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry entries = 1;
    */
-  java.util.List 
+  java.util.List
       getEntriesOrBuilderList();
   /**
+   *
+   *
    * 
    * A list of replacement entries. We will perform replacement with one entry
    * at a time. For example, the second entry in ["cat" => "dog", "mountain cat"
diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptOutputConfig.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptOutputConfig.java
similarity index 70%
rename from owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptOutputConfig.java
rename to proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptOutputConfig.java
index 21deb461b..1fc12e9f4 100644
--- a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptOutputConfig.java
+++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptOutputConfig.java
@@ -1,39 +1,55 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/speech/v1p1beta1/cloud_speech.proto
 
 package com.google.cloud.speech.v1p1beta1;
 
 /**
+ *
+ *
  * 
  * Specifies an optional destination for the recognition results.
  * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.TranscriptOutputConfig} */ -public final class TranscriptOutputConfig extends - com.google.protobuf.GeneratedMessageV3 implements +public final class TranscriptOutputConfig extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v1p1beta1.TranscriptOutputConfig) TranscriptOutputConfigOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use TranscriptOutputConfig.newBuilder() to construct. private TranscriptOutputConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private TranscriptOutputConfig() { - } + + private TranscriptOutputConfig() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new TranscriptOutputConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private TranscriptOutputConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,52 +68,58 @@ private TranscriptOutputConfig( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - outputTypeCase_ = 1; - outputType_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + outputTypeCase_ = 1; + outputType_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_TranscriptOutputConfig_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechProto + .internal_static_google_cloud_speech_v1p1beta1_TranscriptOutputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_TranscriptOutputConfig_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechProto + .internal_static_google_cloud_speech_v1p1beta1_TranscriptOutputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.class, com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.Builder.class); + com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.class, + com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.Builder.class); } private int outputTypeCase_ = 0; private java.lang.Object outputType_; + public enum OutputTypeCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { GCS_URI(1), OUTPUTTYPE_NOT_SET(0); private final int value; + private OutputTypeCase(int value) { this.value = value; } @@ -113,24 +135,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
@@ -138,12 +164,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
@@ -151,6 +180,7 @@ public boolean hasGcsUri() {
    * 
* * string gcs_uri = 1; + * * @return The gcsUri. */ public java.lang.String getGcsUri() { @@ -161,8 +191,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; @@ -171,6 +200,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
@@ -178,18 +209,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; } @@ -200,6 +230,7 @@ public java.lang.String getGcsUri() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -211,8 +242,7 @@ public final boolean isInitialized() { } @java.lang.Override - public 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_); } @@ -236,18 +266,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: @@ -277,117 +307,127 @@ public int hashCode() { } public static com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig prototype) { + + public static Builder newBuilder( + com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Specifies an optional destination for the recognition results.
    * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.TranscriptOutputConfig} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1p1beta1.TranscriptOutputConfig) com.google.cloud.speech.v1p1beta1.TranscriptOutputConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_TranscriptOutputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechProto + .internal_static_google_cloud_speech_v1p1beta1_TranscriptOutputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_TranscriptOutputConfig_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechProto + .internal_static_google_cloud_speech_v1p1beta1_TranscriptOutputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.class, com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.Builder.class); + com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.class, + com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.Builder.class); } // Construct using com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.newBuilder() @@ -395,16 +435,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -414,9 +453,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 @@ -435,7 +474,8 @@ public com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig build() { @java.lang.Override public com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig buildPartial() { - com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig result = new com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig(this); + com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig result = + new com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig(this); if (outputTypeCase_ == 1) { result.outputType_ = outputType_; } @@ -448,38 +488,39 @@ public com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig) { - return mergeFrom((com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig)other); + return mergeFrom((com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig) other); } else { super.mergeFrom(other); return this; @@ -487,17 +528,20 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig other) { - if (other == com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.getDefaultInstance()) return this; + if (other == com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.getDefaultInstance()) + return this; switch (other.getOutputTypeCase()) { - case GCS_URI: { - outputTypeCase_ = 1; - outputType_ = other.outputType_; - onChanged(); - break; - } - case OUTPUTTYPE_NOT_SET: { - break; - } + case GCS_URI: + { + outputTypeCase_ = 1; + outputType_ = other.outputType_; + onChanged(); + break; + } + case OUTPUTTYPE_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -518,7 +562,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -527,12 +572,12 @@ public Builder mergeFrom( } return this; } + private int outputTypeCase_ = 0; private java.lang.Object outputType_; - public OutputTypeCase - getOutputTypeCase() { - return OutputTypeCase.forNumber( - outputTypeCase_); + + public OutputTypeCase getOutputTypeCase() { + return OutputTypeCase.forNumber(outputTypeCase_); } public Builder clearOutputType() { @@ -542,8 +587,9 @@ public Builder clearOutputType() { return this; } - /** + * + * *
      * Specifies a Cloud Storage URI for the recognition results. Must be
      * specified in the format: `gs://bucket_name/object_name`, and the bucket
@@ -551,6 +597,7 @@ public Builder clearOutputType() {
      * 
* * string gcs_uri = 1; + * * @return Whether the gcsUri field is set. */ @java.lang.Override @@ -558,6 +605,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
@@ -565,6 +614,7 @@ public boolean hasGcsUri() {
      * 
* * string gcs_uri = 1; + * * @return The gcsUri. */ @java.lang.Override @@ -574,8 +624,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; @@ -586,6 +635,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
@@ -593,19 +644,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; } @@ -615,6 +665,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
@@ -622,20 +674,22 @@ public java.lang.String getGcsUri() {
      * 
* * string gcs_uri = 1; + * * @param value The gcsUri to set. * @return This builder for chaining. */ - public Builder setGcsUri( - java.lang.String value) { + public Builder setGcsUri(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - outputTypeCase_ = 1; + throw new NullPointerException(); + } + outputTypeCase_ = 1; outputType_ = value; onChanged(); return this; } /** + * + * *
      * Specifies a Cloud Storage URI for the recognition results. Must be
      * specified in the format: `gs://bucket_name/object_name`, and the bucket
@@ -643,6 +697,7 @@ public Builder setGcsUri(
      * 
* * string gcs_uri = 1; + * * @return This builder for chaining. */ public Builder clearGcsUri() { @@ -654,6 +709,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
@@ -661,23 +718,23 @@ public Builder clearGcsUri() {
      * 
* * string gcs_uri = 1; + * * @param value The bytes for gcsUri to set. * @return This builder for chaining. */ - public Builder setGcsUriBytes( - com.google.protobuf.ByteString value) { + public Builder setGcsUriBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); outputTypeCase_ = 1; outputType_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -687,12 +744,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(); } @@ -701,16 +758,16 @@ public static com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TranscriptOutputConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TranscriptOutputConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TranscriptOutputConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TranscriptOutputConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -725,6 +782,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptOutputConfigOrBuilder.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptOutputConfigOrBuilder.java similarity index 61% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptOutputConfigOrBuilder.java rename to proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptOutputConfigOrBuilder.java index 3733fac7b..102d1f01e 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptOutputConfigOrBuilder.java +++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptOutputConfigOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech.proto package com.google.cloud.speech.v1p1beta1; -public interface TranscriptOutputConfigOrBuilder extends +public interface TranscriptOutputConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1p1beta1.TranscriptOutputConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Specifies a Cloud Storage URI for the recognition results. Must be
    * specified in the format: `gs://bucket_name/object_name`, and the bucket
@@ -15,10 +33,13 @@ public interface TranscriptOutputConfigOrBuilder extends
    * 
* * string gcs_uri = 1; + * * @return Whether the gcsUri field is set. */ boolean hasGcsUri(); /** + * + * *
    * Specifies a Cloud Storage URI for the recognition results. Must be
    * specified in the format: `gs://bucket_name/object_name`, and the bucket
@@ -26,10 +47,13 @@ public interface TranscriptOutputConfigOrBuilder extends
    * 
* * string gcs_uri = 1; + * * @return The gcsUri. */ java.lang.String getGcsUri(); /** + * + * *
    * Specifies a Cloud Storage URI for the recognition results. Must be
    * specified in the format: `gs://bucket_name/object_name`, and the bucket
@@ -37,10 +61,11 @@ public interface TranscriptOutputConfigOrBuilder extends
    * 
* * string gcs_uri = 1; + * * @return The bytes for gcsUri. */ - com.google.protobuf.ByteString - getGcsUriBytes(); + com.google.protobuf.ByteString getGcsUriBytes(); - public com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.OutputTypeCase getOutputTypeCase(); + public com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.OutputTypeCase + getOutputTypeCase(); } diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdateCustomClassRequest.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdateCustomClassRequest.java similarity index 71% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdateCustomClassRequest.java rename to proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdateCustomClassRequest.java index 526bfc112..f230d3ae4 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdateCustomClassRequest.java +++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdateCustomClassRequest.java @@ -1,39 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech_adaptation.proto package com.google.cloud.speech.v1p1beta1; /** + * + * *
  * Message sent by the client for the `UpdateCustomClass` method.
  * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.UpdateCustomClassRequest} */ -public final class UpdateCustomClassRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class UpdateCustomClassRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v1p1beta1.UpdateCustomClassRequest) UpdateCustomClassRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use UpdateCustomClassRequest.newBuilder() to construct. private UpdateCustomClassRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private UpdateCustomClassRequest() { - } + + private UpdateCustomClassRequest() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UpdateCustomClassRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private UpdateCustomClassRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,67 +68,76 @@ private UpdateCustomClassRequest( case 0: done = true; break; - case 10: { - com.google.cloud.speech.v1p1beta1.CustomClass.Builder subBuilder = null; - if (customClass_ != null) { - subBuilder = customClass_.toBuilder(); - } - customClass_ = input.readMessage(com.google.cloud.speech.v1p1beta1.CustomClass.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(customClass_); - customClass_ = subBuilder.buildPartial(); - } + case 10: + { + com.google.cloud.speech.v1p1beta1.CustomClass.Builder subBuilder = null; + if (customClass_ != null) { + subBuilder = customClass_.toBuilder(); + } + customClass_ = + input.readMessage( + com.google.cloud.speech.v1p1beta1.CustomClass.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(customClass_); + customClass_ = subBuilder.buildPartial(); + } - break; - } - case 18: { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (updateMask_ != null) { - subBuilder = updateMask_.toBuilder(); - } - updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateMask_); - updateMask_ = subBuilder.buildPartial(); + break; } + case 18: + { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); + } + updateMask_ = + input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); + } - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_UpdateCustomClassRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1p1beta1_UpdateCustomClassRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_UpdateCustomClassRequest_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1p1beta1_UpdateCustomClassRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest.class, com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest.Builder.class); + com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest.class, + com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest.Builder.class); } public static final int CUSTOM_CLASS_FIELD_NUMBER = 1; private com.google.cloud.speech.v1p1beta1.CustomClass customClass_; /** + * + * *
    * Required. The custom class to update.
    * The custom class's `name` field is used to identify the custom class to be
@@ -125,7 +150,10 @@ private UpdateCustomClassRequest(
    * with matching `us` or `eu` location value.
    * 
* - * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the customClass field is set. */ @java.lang.Override @@ -133,6 +161,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
@@ -145,14 +175,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
@@ -165,7 +202,9 @@ public com.google.cloud.speech.v1p1beta1.CustomClass getCustomClass() {
    * with matching `us` or `eu` location value.
    * 
* - * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.speech.v1p1beta1.CustomClassOrBuilder getCustomClassOrBuilder() { @@ -175,11 +214,14 @@ public com.google.cloud.speech.v1p1beta1.CustomClassOrBuilder getCustomClassOrBu public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** + * + * *
    * The list of fields to be updated.
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -187,11 +229,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 @@ -199,6 +244,8 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** + * + * *
    * The list of fields to be updated.
    * 
@@ -211,6 +258,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -222,8 +270,7 @@ public final boolean isInitialized() { } @java.lang.Override - public 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()); } @@ -240,12 +287,10 @@ public int getSerializedSize() { size = 0; if (customClass_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getCustomClass()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCustomClass()); } if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -255,22 +300,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest)) { return super.equals(obj); } - com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest other = (com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest) obj; + com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest other = + (com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest) obj; if (hasCustomClass() != other.hasCustomClass()) return false; if (hasCustomClass()) { - if (!getCustomClass() - .equals(other.getCustomClass())) return false; + if (!getCustomClass().equals(other.getCustomClass())) return false; } if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask() - .equals(other.getUpdateMask())) return false; + if (!getUpdateMask().equals(other.getUpdateMask())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -297,117 +341,127 @@ public int hashCode() { } public static com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Message sent by the client for the `UpdateCustomClass` method.
    * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.UpdateCustomClassRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1p1beta1.UpdateCustomClassRequest) com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_UpdateCustomClassRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1p1beta1_UpdateCustomClassRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_UpdateCustomClassRequest_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1p1beta1_UpdateCustomClassRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest.class, com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest.Builder.class); + com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest.class, + com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest.Builder.class); } // Construct using com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest.newBuilder() @@ -415,16 +469,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -444,9 +497,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_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 @@ -465,7 +518,8 @@ public com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest build() { @java.lang.Override public com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest buildPartial() { - com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest result = new com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest(this); + com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest result = + new com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest(this); if (customClassBuilder_ == null) { result.customClass_ = customClass_; } else { @@ -484,38 +538,39 @@ public com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest buildPartial() public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest) { - return mergeFrom((com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest)other); + return mergeFrom((com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest) other); } else { super.mergeFrom(other); return this; @@ -523,7 +578,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()); } @@ -549,7 +605,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -561,8 +618,13 @@ public Builder mergeFrom( private com.google.cloud.speech.v1p1beta1.CustomClass customClass_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.CustomClass, com.google.cloud.speech.v1p1beta1.CustomClass.Builder, com.google.cloud.speech.v1p1beta1.CustomClassOrBuilder> customClassBuilder_; + com.google.cloud.speech.v1p1beta1.CustomClass, + com.google.cloud.speech.v1p1beta1.CustomClass.Builder, + com.google.cloud.speech.v1p1beta1.CustomClassOrBuilder> + customClassBuilder_; /** + * + * *
      * Required. The custom class to update.
      * The custom class's `name` field is used to identify the custom class to be
@@ -575,13 +637,18 @@ public Builder mergeFrom(
      * with matching `us` or `eu` location value.
      * 
* - * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the customClass field is set. */ public boolean hasCustomClass() { return customClassBuilder_ != null || customClass_ != null; } /** + * + * *
      * Required. The custom class to update.
      * The custom class's `name` field is used to identify the custom class to be
@@ -594,17 +661,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
@@ -617,7 +691,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) { @@ -633,6 +709,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
@@ -645,7 +723,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) { @@ -659,6 +739,8 @@ public Builder setCustomClass( return this; } /** + * + * *
      * Required. The custom class to update.
      * The custom class's `name` field is used to identify the custom class to be
@@ -671,13 +753,17 @@ public Builder setCustomClass(
      * with matching `us` or `eu` location value.
      * 
* - * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeCustomClass(com.google.cloud.speech.v1p1beta1.CustomClass value) { if (customClassBuilder_ == null) { if (customClass_ != null) { customClass_ = - com.google.cloud.speech.v1p1beta1.CustomClass.newBuilder(customClass_).mergeFrom(value).buildPartial(); + com.google.cloud.speech.v1p1beta1.CustomClass.newBuilder(customClass_) + .mergeFrom(value) + .buildPartial(); } else { customClass_ = value; } @@ -689,6 +775,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
@@ -701,7 +789,9 @@ public Builder mergeCustomClass(com.google.cloud.speech.v1p1beta1.CustomClass va
      * with matching `us` or `eu` location value.
      * 
* - * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearCustomClass() { if (customClassBuilder_ == null) { @@ -715,6 +805,8 @@ public Builder clearCustomClass() { return this; } /** + * + * *
      * Required. The custom class to update.
      * The custom class's `name` field is used to identify the custom class to be
@@ -727,14 +819,18 @@ public Builder clearCustomClass() {
      * with matching `us` or `eu` location value.
      * 
* - * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.speech.v1p1beta1.CustomClass.Builder getCustomClassBuilder() { - + onChanged(); return getCustomClassFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The custom class to update.
      * The custom class's `name` field is used to identify the custom class to be
@@ -747,17 +843,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
@@ -770,17 +871,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_; @@ -788,34 +894,47 @@ public com.google.cloud.speech.v1p1beta1.CustomClassOrBuilder getCustomClassOrBu private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; /** + * + * *
      * The list of fields to be updated.
      * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** + * + * *
      * The list of fields to be updated.
      * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** + * + * *
      * The list of fields to be updated.
      * 
@@ -836,14 +955,15 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * The list of fields to be updated.
      * 
* * .google.protobuf.FieldMask update_mask = 2; */ - public Builder setUpdateMask( - com.google.protobuf.FieldMask.Builder builderForValue) { + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); onChanged(); @@ -854,6 +974,8 @@ public Builder setUpdateMask( return this; } /** + * + * *
      * The list of fields to be updated.
      * 
@@ -864,7 +986,7 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { if (updateMask_ != null) { updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); } else { updateMask_ = value; } @@ -876,6 +998,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * The list of fields to be updated.
      * 
@@ -894,6 +1018,8 @@ public Builder clearUpdateMask() { return this; } /** + * + * *
      * The list of fields to be updated.
      * 
@@ -901,11 +1027,13 @@ public Builder clearUpdateMask() { * .google.protobuf.FieldMask update_mask = 2; */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - + onChanged(); return getUpdateMaskFieldBuilder().getBuilder(); } /** + * + * *
      * The list of fields to be updated.
      * 
@@ -916,11 +1044,14 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { if (updateMaskBuilder_ != null) { return updateMaskBuilder_.getMessageOrBuilder(); } else { - return updateMask_ == null ? - com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; } } /** + * + * *
      * The list of fields to be updated.
      * 
@@ -928,21 +1059,24 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { * .google.protobuf.FieldMask update_mask = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> getUpdateMaskFieldBuilder() { if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), - getParentForChildren(), - isClean()); + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); updateMask_ = null; } return updateMaskBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -952,12 +1086,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(); } @@ -966,16 +1100,16 @@ public static com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateCustomClassRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UpdateCustomClassRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateCustomClassRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpdateCustomClassRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -990,6 +1124,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdateCustomClassRequestOrBuilder.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdateCustomClassRequestOrBuilder.java similarity index 72% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdateCustomClassRequestOrBuilder.java rename to proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdateCustomClassRequestOrBuilder.java index 5ffdf4623..debebb143 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdateCustomClassRequestOrBuilder.java +++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdateCustomClassRequestOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech_adaptation.proto package com.google.cloud.speech.v1p1beta1; -public interface UpdateCustomClassRequestOrBuilder extends +public interface UpdateCustomClassRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1p1beta1.UpdateCustomClassRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The custom class to update.
    * The custom class's `name` field is used to identify the custom class to be
@@ -20,11 +38,16 @@ public interface UpdateCustomClassRequestOrBuilder extends
    * with matching `us` or `eu` location value.
    * 
* - * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the customClass field is set. */ boolean hasCustomClass(); /** + * + * *
    * Required. The custom class to update.
    * The custom class's `name` field is used to identify the custom class to be
@@ -37,11 +60,16 @@ public interface UpdateCustomClassRequestOrBuilder extends
    * with matching `us` or `eu` location value.
    * 
* - * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The customClass. */ com.google.cloud.speech.v1p1beta1.CustomClass getCustomClass(); /** + * + * *
    * Required. The custom class to update.
    * The custom class's `name` field is used to identify the custom class to be
@@ -54,29 +82,39 @@ public interface UpdateCustomClassRequestOrBuilder extends
    * with matching `us` or `eu` location value.
    * 
* - * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.speech.v1p1beta1.CustomClassOrBuilder getCustomClassOrBuilder(); /** + * + * *
    * The list of fields to be updated.
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** + * + * *
    * The list of fields to be updated.
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** + * + * *
    * The list of fields to be updated.
    * 
diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdatePhraseSetRequest.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdatePhraseSetRequest.java similarity index 71% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdatePhraseSetRequest.java rename to proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdatePhraseSetRequest.java index f7e0c565c..52fa0a1be 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdatePhraseSetRequest.java +++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdatePhraseSetRequest.java @@ -1,39 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech_adaptation.proto package com.google.cloud.speech.v1p1beta1; /** + * + * *
  * Message sent by the client for the `UpdatePhraseSet` method.
  * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest} */ -public final class UpdatePhraseSetRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class UpdatePhraseSetRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest) UpdatePhraseSetRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use UpdatePhraseSetRequest.newBuilder() to construct. private UpdatePhraseSetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private UpdatePhraseSetRequest() { - } + + private UpdatePhraseSetRequest() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UpdatePhraseSetRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private UpdatePhraseSetRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,67 +68,76 @@ private UpdatePhraseSetRequest( case 0: done = true; break; - case 10: { - com.google.cloud.speech.v1p1beta1.PhraseSet.Builder subBuilder = null; - if (phraseSet_ != null) { - subBuilder = phraseSet_.toBuilder(); - } - phraseSet_ = input.readMessage(com.google.cloud.speech.v1p1beta1.PhraseSet.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(phraseSet_); - phraseSet_ = subBuilder.buildPartial(); - } + case 10: + { + com.google.cloud.speech.v1p1beta1.PhraseSet.Builder subBuilder = null; + if (phraseSet_ != null) { + subBuilder = phraseSet_.toBuilder(); + } + phraseSet_ = + input.readMessage( + com.google.cloud.speech.v1p1beta1.PhraseSet.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(phraseSet_); + phraseSet_ = subBuilder.buildPartial(); + } - break; - } - case 18: { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (updateMask_ != null) { - subBuilder = updateMask_.toBuilder(); - } - updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateMask_); - updateMask_ = subBuilder.buildPartial(); + break; } + case 18: + { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); + } + updateMask_ = + input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); + } - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_UpdatePhraseSetRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1p1beta1_UpdatePhraseSetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_UpdatePhraseSetRequest_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1p1beta1_UpdatePhraseSetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest.class, com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest.Builder.class); + com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest.class, + com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest.Builder.class); } public static final int PHRASE_SET_FIELD_NUMBER = 1; private com.google.cloud.speech.v1p1beta1.PhraseSet phraseSet_; /** + * + * *
    * Required. The phrase set to update.
    * The phrase set's `name` field is used to identify the set to be
@@ -125,7 +150,10 @@ private UpdatePhraseSetRequest(
    * with matching `us` or `eu` location value.
    * 
* - * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the phraseSet field is set. */ @java.lang.Override @@ -133,6 +161,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
@@ -145,14 +175,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
@@ -165,7 +202,9 @@ public com.google.cloud.speech.v1p1beta1.PhraseSet getPhraseSet() {
    * with matching `us` or `eu` location value.
    * 
* - * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.speech.v1p1beta1.PhraseSetOrBuilder getPhraseSetOrBuilder() { @@ -175,11 +214,14 @@ public com.google.cloud.speech.v1p1beta1.PhraseSetOrBuilder getPhraseSetOrBuilde public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** + * + * *
    * The list of fields to be updated.
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -187,11 +229,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 @@ -199,6 +244,8 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** + * + * *
    * The list of fields to be updated.
    * 
@@ -211,6 +258,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -222,8 +270,7 @@ public final boolean isInitialized() { } @java.lang.Override - public 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()); } @@ -240,12 +287,10 @@ public int getSerializedSize() { size = 0; if (phraseSet_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getPhraseSet()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getPhraseSet()); } if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -255,22 +300,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest)) { return super.equals(obj); } - com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest other = (com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest) obj; + com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest other = + (com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest) obj; if (hasPhraseSet() != other.hasPhraseSet()) return false; if (hasPhraseSet()) { - if (!getPhraseSet() - .equals(other.getPhraseSet())) return false; + if (!getPhraseSet().equals(other.getPhraseSet())) return false; } if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask() - .equals(other.getUpdateMask())) return false; + if (!getUpdateMask().equals(other.getUpdateMask())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -297,117 +341,127 @@ public int hashCode() { } public static com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Message sent by the client for the `UpdatePhraseSet` method.
    * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest) com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_UpdatePhraseSetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1p1beta1_UpdatePhraseSetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_UpdatePhraseSetRequest_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1p1beta1_UpdatePhraseSetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest.class, com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest.Builder.class); + com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest.class, + com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest.Builder.class); } // Construct using com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest.newBuilder() @@ -415,16 +469,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -444,9 +497,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_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 @@ -465,7 +518,8 @@ public com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest build() { @java.lang.Override public com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest buildPartial() { - com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest result = new com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest(this); + com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest result = + new com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest(this); if (phraseSetBuilder_ == null) { result.phraseSet_ = phraseSet_; } else { @@ -484,38 +538,39 @@ public com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest) { - return mergeFrom((com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest)other); + return mergeFrom((com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest) other); } else { super.mergeFrom(other); return this; @@ -523,7 +578,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()); } @@ -549,7 +605,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -561,8 +618,13 @@ public Builder mergeFrom( private com.google.cloud.speech.v1p1beta1.PhraseSet phraseSet_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.PhraseSet, com.google.cloud.speech.v1p1beta1.PhraseSet.Builder, com.google.cloud.speech.v1p1beta1.PhraseSetOrBuilder> phraseSetBuilder_; + com.google.cloud.speech.v1p1beta1.PhraseSet, + com.google.cloud.speech.v1p1beta1.PhraseSet.Builder, + com.google.cloud.speech.v1p1beta1.PhraseSetOrBuilder> + phraseSetBuilder_; /** + * + * *
      * Required. The phrase set to update.
      * The phrase set's `name` field is used to identify the set to be
@@ -575,13 +637,18 @@ public Builder mergeFrom(
      * with matching `us` or `eu` location value.
      * 
* - * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the phraseSet field is set. */ public boolean hasPhraseSet() { return phraseSetBuilder_ != null || phraseSet_ != null; } /** + * + * *
      * Required. The phrase set to update.
      * The phrase set's `name` field is used to identify the set to be
@@ -594,17 +661,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
@@ -617,7 +691,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) { @@ -633,6 +709,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
@@ -645,7 +723,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) { @@ -659,6 +739,8 @@ public Builder setPhraseSet( return this; } /** + * + * *
      * Required. The phrase set to update.
      * The phrase set's `name` field is used to identify the set to be
@@ -671,13 +753,17 @@ public Builder setPhraseSet(
      * with matching `us` or `eu` location value.
      * 
* - * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergePhraseSet(com.google.cloud.speech.v1p1beta1.PhraseSet value) { if (phraseSetBuilder_ == null) { if (phraseSet_ != null) { phraseSet_ = - com.google.cloud.speech.v1p1beta1.PhraseSet.newBuilder(phraseSet_).mergeFrom(value).buildPartial(); + com.google.cloud.speech.v1p1beta1.PhraseSet.newBuilder(phraseSet_) + .mergeFrom(value) + .buildPartial(); } else { phraseSet_ = value; } @@ -689,6 +775,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
@@ -701,7 +789,9 @@ public Builder mergePhraseSet(com.google.cloud.speech.v1p1beta1.PhraseSet value)
      * with matching `us` or `eu` location value.
      * 
* - * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearPhraseSet() { if (phraseSetBuilder_ == null) { @@ -715,6 +805,8 @@ public Builder clearPhraseSet() { return this; } /** + * + * *
      * Required. The phrase set to update.
      * The phrase set's `name` field is used to identify the set to be
@@ -727,14 +819,18 @@ public Builder clearPhraseSet() {
      * with matching `us` or `eu` location value.
      * 
* - * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.speech.v1p1beta1.PhraseSet.Builder getPhraseSetBuilder() { - + onChanged(); return getPhraseSetFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The phrase set to update.
      * The phrase set's `name` field is used to identify the set to be
@@ -747,17 +843,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
@@ -770,17 +871,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_; @@ -788,34 +894,47 @@ public com.google.cloud.speech.v1p1beta1.PhraseSetOrBuilder getPhraseSetOrBuilde private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; /** + * + * *
      * The list of fields to be updated.
      * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** + * + * *
      * The list of fields to be updated.
      * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** + * + * *
      * The list of fields to be updated.
      * 
@@ -836,14 +955,15 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * The list of fields to be updated.
      * 
* * .google.protobuf.FieldMask update_mask = 2; */ - public Builder setUpdateMask( - com.google.protobuf.FieldMask.Builder builderForValue) { + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); onChanged(); @@ -854,6 +974,8 @@ public Builder setUpdateMask( return this; } /** + * + * *
      * The list of fields to be updated.
      * 
@@ -864,7 +986,7 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { if (updateMask_ != null) { updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); } else { updateMask_ = value; } @@ -876,6 +998,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * The list of fields to be updated.
      * 
@@ -894,6 +1018,8 @@ public Builder clearUpdateMask() { return this; } /** + * + * *
      * The list of fields to be updated.
      * 
@@ -901,11 +1027,13 @@ public Builder clearUpdateMask() { * .google.protobuf.FieldMask update_mask = 2; */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - + onChanged(); return getUpdateMaskFieldBuilder().getBuilder(); } /** + * + * *
      * The list of fields to be updated.
      * 
@@ -916,11 +1044,14 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { if (updateMaskBuilder_ != null) { return updateMaskBuilder_.getMessageOrBuilder(); } else { - return updateMask_ == null ? - com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; } } /** + * + * *
      * The list of fields to be updated.
      * 
@@ -928,21 +1059,24 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { * .google.protobuf.FieldMask update_mask = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> getUpdateMaskFieldBuilder() { if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), - getParentForChildren(), - isClean()); + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); updateMask_ = null; } return updateMaskBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -952,12 +1086,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(); } @@ -966,16 +1100,16 @@ public static com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdatePhraseSetRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UpdatePhraseSetRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdatePhraseSetRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpdatePhraseSetRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -990,6 +1124,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdatePhraseSetRequestOrBuilder.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdatePhraseSetRequestOrBuilder.java similarity index 72% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdatePhraseSetRequestOrBuilder.java rename to proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdatePhraseSetRequestOrBuilder.java index ae3c2a999..5bb289426 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdatePhraseSetRequestOrBuilder.java +++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdatePhraseSetRequestOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech_adaptation.proto package com.google.cloud.speech.v1p1beta1; -public interface UpdatePhraseSetRequestOrBuilder extends +public interface UpdatePhraseSetRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The phrase set to update.
    * The phrase set's `name` field is used to identify the set to be
@@ -20,11 +38,16 @@ public interface UpdatePhraseSetRequestOrBuilder extends
    * with matching `us` or `eu` location value.
    * 
* - * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the phraseSet field is set. */ boolean hasPhraseSet(); /** + * + * *
    * Required. The phrase set to update.
    * The phrase set's `name` field is used to identify the set to be
@@ -37,11 +60,16 @@ public interface UpdatePhraseSetRequestOrBuilder extends
    * with matching `us` or `eu` location value.
    * 
* - * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The phraseSet. */ com.google.cloud.speech.v1p1beta1.PhraseSet getPhraseSet(); /** + * + * *
    * Required. The phrase set to update.
    * The phrase set's `name` field is used to identify the set to be
@@ -54,29 +82,39 @@ public interface UpdatePhraseSetRequestOrBuilder extends
    * with matching `us` or `eu` location value.
    * 
* - * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.speech.v1p1beta1.PhraseSetOrBuilder getPhraseSetOrBuilder(); /** + * + * *
    * The list of fields to be updated.
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** + * + * *
    * The list of fields to be updated.
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** + * + * *
    * The list of fields to be updated.
    * 
diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/WordInfo.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/WordInfo.java similarity index 77% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/WordInfo.java rename to proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/WordInfo.java index f1431e288..92938a44c 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/WordInfo.java +++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/WordInfo.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech.proto package com.google.cloud.speech.v1p1beta1; /** + * + * *
  * Word-specific information for recognized words.
  * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.WordInfo} */ -public final class WordInfo extends - com.google.protobuf.GeneratedMessageV3 implements +public final class WordInfo extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v1p1beta1.WordInfo) WordInfoOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use WordInfo.newBuilder() to construct. private WordInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private WordInfo() { word_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new WordInfo(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private WordInfo( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,83 +70,92 @@ private WordInfo( case 0: done = true; break; - case 10: { - com.google.protobuf.Duration.Builder subBuilder = null; - if (startTime_ != null) { - subBuilder = startTime_.toBuilder(); + case 10: + { + com.google.protobuf.Duration.Builder subBuilder = null; + if (startTime_ != null) { + subBuilder = startTime_.toBuilder(); + } + startTime_ = + input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(startTime_); + startTime_ = subBuilder.buildPartial(); + } + + break; } - startTime_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(startTime_); - startTime_ = subBuilder.buildPartial(); + case 18: + { + com.google.protobuf.Duration.Builder subBuilder = null; + if (endTime_ != null) { + subBuilder = endTime_.toBuilder(); + } + endTime_ = + input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(endTime_); + endTime_ = subBuilder.buildPartial(); + } + + break; } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - break; - } - case 18: { - com.google.protobuf.Duration.Builder subBuilder = null; - if (endTime_ != null) { - subBuilder = endTime_.toBuilder(); + word_ = s; + break; } - endTime_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(endTime_); - endTime_ = subBuilder.buildPartial(); + case 37: + { + confidence_ = input.readFloat(); + break; } - - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - word_ = s; - break; - } - case 37: { - - confidence_ = input.readFloat(); - break; - } - case 40: { - - speakerTag_ = input.readInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 40: + { + speakerTag_ = input.readInt32(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_WordInfo_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechProto + .internal_static_google_cloud_speech_v1p1beta1_WordInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_WordInfo_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechProto + .internal_static_google_cloud_speech_v1p1beta1_WordInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.WordInfo.class, com.google.cloud.speech.v1p1beta1.WordInfo.Builder.class); + com.google.cloud.speech.v1p1beta1.WordInfo.class, + com.google.cloud.speech.v1p1beta1.WordInfo.Builder.class); } public static final int START_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Duration startTime_; /** + * + * *
    * Time offset relative to the beginning of the audio,
    * and corresponding to the start of the spoken word.
@@ -140,6 +166,7 @@ private WordInfo(
    * 
* * .google.protobuf.Duration start_time = 1; + * * @return Whether the startTime field is set. */ @java.lang.Override @@ -147,6 +174,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.
@@ -157,6 +186,7 @@ public boolean hasStartTime() {
    * 
* * .google.protobuf.Duration start_time = 1; + * * @return The startTime. */ @java.lang.Override @@ -164,6 +194,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.
@@ -183,6 +215,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.
@@ -193,6 +227,7 @@ public com.google.protobuf.DurationOrBuilder getStartTimeOrBuilder() {
    * 
* * .google.protobuf.Duration end_time = 2; + * * @return Whether the endTime field is set. */ @java.lang.Override @@ -200,6 +235,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.
@@ -210,6 +247,7 @@ public boolean hasEndTime() {
    * 
* * .google.protobuf.Duration end_time = 2; + * * @return The endTime. */ @java.lang.Override @@ -217,6 +255,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.
@@ -236,11 +276,14 @@ public com.google.protobuf.DurationOrBuilder getEndTimeOrBuilder() {
   public static final int WORD_FIELD_NUMBER = 3;
   private volatile java.lang.Object word_;
   /**
+   *
+   *
    * 
    * The word corresponding to this set of information.
    * 
* * string word = 3; + * * @return The word. */ @java.lang.Override @@ -249,29 +292,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 { @@ -282,6 +325,8 @@ public java.lang.String getWord() { public static final int CONFIDENCE_FIELD_NUMBER = 4; private float confidence_; /** + * + * *
    * The confidence estimate between 0.0 and 1.0. A higher number
    * indicates an estimated greater likelihood that the recognized words are
@@ -293,6 +338,7 @@ public java.lang.String getWord() {
    * 
* * float confidence = 4; + * * @return The confidence. */ @java.lang.Override @@ -303,6 +349,8 @@ public float getConfidence() { public static final int SPEAKER_TAG_FIELD_NUMBER = 5; private int speakerTag_; /** + * + * *
    * Output only. A distinct integer value is assigned for every speaker within
    * the audio. This field specifies which one of those speakers was detected to
@@ -312,6 +360,7 @@ public float getConfidence() {
    * 
* * int32 speaker_tag = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The speakerTag. */ @java.lang.Override @@ -320,6 +369,7 @@ public int getSpeakerTag() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -331,8 +381,7 @@ public final boolean isInitialized() { } @java.lang.Override - public 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()); } @@ -358,23 +407,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 (confidence_ != 0F) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(4, confidence_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(4, confidence_); } if (speakerTag_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(5, speakerTag_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, speakerTag_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -384,30 +429,26 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1p1beta1.WordInfo)) { return super.equals(obj); } - com.google.cloud.speech.v1p1beta1.WordInfo other = (com.google.cloud.speech.v1p1beta1.WordInfo) obj; + com.google.cloud.speech.v1p1beta1.WordInfo other = + (com.google.cloud.speech.v1p1beta1.WordInfo) obj; if (hasStartTime() != other.hasStartTime()) return false; if (hasStartTime()) { - if (!getStartTime() - .equals(other.getStartTime())) return false; + if (!getStartTime().equals(other.getStartTime())) return false; } if (hasEndTime() != other.hasEndTime()) return false; if (hasEndTime()) { - if (!getEndTime() - .equals(other.getEndTime())) return false; + if (!getEndTime().equals(other.getEndTime())) return false; } - if (!getWord() - .equals(other.getWord())) return false; + if (!getWord().equals(other.getWord())) return false; if (java.lang.Float.floatToIntBits(getConfidence()) - != java.lang.Float.floatToIntBits( - other.getConfidence())) return false; - if (getSpeakerTag() - != other.getSpeakerTag()) return false; + != java.lang.Float.floatToIntBits(other.getConfidence())) return false; + if (getSpeakerTag() != other.getSpeakerTag()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -430,8 +471,7 @@ public int hashCode() { hash = (37 * hash) + WORD_FIELD_NUMBER; hash = (53 * hash) + getWord().hashCode(); hash = (37 * hash) + CONFIDENCE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getConfidence()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getConfidence()); hash = (37 * hash) + SPEAKER_TAG_FIELD_NUMBER; hash = (53 * hash) + getSpeakerTag(); hash = (29 * hash) + unknownFields.hashCode(); @@ -439,118 +479,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.speech.v1p1beta1.WordInfo parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.speech.v1p1beta1.WordInfo parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.WordInfo parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.WordInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.WordInfo parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.WordInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.WordInfo parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.WordInfo parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.WordInfo parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.WordInfo parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1p1beta1.WordInfo parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.WordInfo parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.WordInfo parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.WordInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.speech.v1p1beta1.WordInfo prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Word-specific information for recognized words.
    * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.WordInfo} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1p1beta1.WordInfo) com.google.cloud.speech.v1p1beta1.WordInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_WordInfo_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechProto + .internal_static_google_cloud_speech_v1p1beta1_WordInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_WordInfo_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechProto + .internal_static_google_cloud_speech_v1p1beta1_WordInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.WordInfo.class, com.google.cloud.speech.v1p1beta1.WordInfo.Builder.class); + com.google.cloud.speech.v1p1beta1.WordInfo.class, + com.google.cloud.speech.v1p1beta1.WordInfo.Builder.class); } // Construct using com.google.cloud.speech.v1p1beta1.WordInfo.newBuilder() @@ -558,16 +607,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -593,9 +641,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 @@ -614,7 +662,8 @@ public com.google.cloud.speech.v1p1beta1.WordInfo build() { @java.lang.Override public com.google.cloud.speech.v1p1beta1.WordInfo buildPartial() { - com.google.cloud.speech.v1p1beta1.WordInfo result = new com.google.cloud.speech.v1p1beta1.WordInfo(this); + com.google.cloud.speech.v1p1beta1.WordInfo result = + new com.google.cloud.speech.v1p1beta1.WordInfo(this); if (startTimeBuilder_ == null) { result.startTime_ = startTime_; } else { @@ -636,38 +685,39 @@ public com.google.cloud.speech.v1p1beta1.WordInfo buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.speech.v1p1beta1.WordInfo) { - return mergeFrom((com.google.cloud.speech.v1p1beta1.WordInfo)other); + return mergeFrom((com.google.cloud.speech.v1p1beta1.WordInfo) other); } else { super.mergeFrom(other); return this; @@ -723,8 +773,13 @@ public Builder mergeFrom( private com.google.protobuf.Duration startTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> startTimeBuilder_; + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + startTimeBuilder_; /** + * + * *
      * Time offset relative to the beginning of the audio,
      * and corresponding to the start of the spoken word.
@@ -735,12 +790,15 @@ public Builder mergeFrom(
      * 
* * .google.protobuf.Duration start_time = 1; + * * @return Whether the startTime field is set. */ public boolean hasStartTime() { return startTimeBuilder_ != null || startTime_ != null; } /** + * + * *
      * Time offset relative to the beginning of the audio,
      * and corresponding to the start of the spoken word.
@@ -751,6 +809,7 @@ public boolean hasStartTime() {
      * 
* * .google.protobuf.Duration start_time = 1; + * * @return The startTime. */ public com.google.protobuf.Duration getStartTime() { @@ -761,6 +820,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.
@@ -786,6 +847,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.
@@ -797,8 +860,7 @@ public Builder setStartTime(com.google.protobuf.Duration value) {
      *
      * .google.protobuf.Duration start_time = 1;
      */
-    public Builder setStartTime(
-        com.google.protobuf.Duration.Builder builderForValue) {
+    public Builder setStartTime(com.google.protobuf.Duration.Builder builderForValue) {
       if (startTimeBuilder_ == null) {
         startTime_ = builderForValue.build();
         onChanged();
@@ -809,6 +871,8 @@ public Builder setStartTime(
       return this;
     }
     /**
+     *
+     *
      * 
      * Time offset relative to the beginning of the audio,
      * and corresponding to the start of the spoken word.
@@ -824,7 +888,7 @@ public Builder mergeStartTime(com.google.protobuf.Duration value) {
       if (startTimeBuilder_ == null) {
         if (startTime_ != null) {
           startTime_ =
-            com.google.protobuf.Duration.newBuilder(startTime_).mergeFrom(value).buildPartial();
+              com.google.protobuf.Duration.newBuilder(startTime_).mergeFrom(value).buildPartial();
         } else {
           startTime_ = value;
         }
@@ -836,6 +900,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.
@@ -859,6 +925,8 @@ public Builder clearStartTime() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Time offset relative to the beginning of the audio,
      * and corresponding to the start of the spoken word.
@@ -871,11 +939,13 @@ public Builder clearStartTime() {
      * .google.protobuf.Duration start_time = 1;
      */
     public com.google.protobuf.Duration.Builder getStartTimeBuilder() {
-      
+
       onChanged();
       return getStartTimeFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Time offset relative to the beginning of the audio,
      * and corresponding to the start of the spoken word.
@@ -891,11 +961,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.
@@ -908,14 +979,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_;
@@ -923,8 +997,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.
@@ -935,12 +1014,15 @@ public com.google.protobuf.DurationOrBuilder getStartTimeOrBuilder() {
      * 
* * .google.protobuf.Duration end_time = 2; + * * @return Whether the endTime field is set. */ public boolean hasEndTime() { return endTimeBuilder_ != null || endTime_ != null; } /** + * + * *
      * Time offset relative to the beginning of the audio,
      * and corresponding to the end of the spoken word.
@@ -951,6 +1033,7 @@ public boolean hasEndTime() {
      * 
* * .google.protobuf.Duration end_time = 2; + * * @return The endTime. */ public com.google.protobuf.Duration getEndTime() { @@ -961,6 +1044,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.
@@ -986,6 +1071,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.
@@ -997,8 +1084,7 @@ public Builder setEndTime(com.google.protobuf.Duration value) {
      *
      * .google.protobuf.Duration end_time = 2;
      */
-    public Builder setEndTime(
-        com.google.protobuf.Duration.Builder builderForValue) {
+    public Builder setEndTime(com.google.protobuf.Duration.Builder builderForValue) {
       if (endTimeBuilder_ == null) {
         endTime_ = builderForValue.build();
         onChanged();
@@ -1009,6 +1095,8 @@ public Builder setEndTime(
       return this;
     }
     /**
+     *
+     *
      * 
      * Time offset relative to the beginning of the audio,
      * and corresponding to the end of the spoken word.
@@ -1024,7 +1112,7 @@ public Builder mergeEndTime(com.google.protobuf.Duration value) {
       if (endTimeBuilder_ == null) {
         if (endTime_ != null) {
           endTime_ =
-            com.google.protobuf.Duration.newBuilder(endTime_).mergeFrom(value).buildPartial();
+              com.google.protobuf.Duration.newBuilder(endTime_).mergeFrom(value).buildPartial();
         } else {
           endTime_ = value;
         }
@@ -1036,6 +1124,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.
@@ -1059,6 +1149,8 @@ public Builder clearEndTime() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Time offset relative to the beginning of the audio,
      * and corresponding to the end of the spoken word.
@@ -1071,11 +1163,13 @@ public Builder clearEndTime() {
      * .google.protobuf.Duration end_time = 2;
      */
     public com.google.protobuf.Duration.Builder getEndTimeBuilder() {
-      
+
       onChanged();
       return getEndTimeFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Time offset relative to the beginning of the audio,
      * and corresponding to the end of the spoken word.
@@ -1091,11 +1185,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.
@@ -1108,14 +1203,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_;
@@ -1123,18 +1221,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; @@ -1143,20 +1243,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 { @@ -1164,61 +1265,70 @@ public java.lang.String getWord() { } } /** + * + * *
      * The word corresponding to this set of information.
      * 
* * string word = 3; + * * @param value The word to set. * @return This builder for chaining. */ - public Builder setWord( - java.lang.String value) { + public Builder setWord(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + word_ = value; onChanged(); return this; } /** + * + * *
      * The word corresponding to this set of information.
      * 
* * string word = 3; + * * @return This builder for chaining. */ public Builder clearWord() { - + word_ = getDefaultInstance().getWord(); onChanged(); return this; } /** + * + * *
      * The word corresponding to this set of information.
      * 
* * string word = 3; + * * @param value The bytes for word to set. * @return This builder for chaining. */ - public Builder setWordBytes( - com.google.protobuf.ByteString value) { + public Builder setWordBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + word_ = value; onChanged(); return this; } - private float confidence_ ; + private float confidence_; /** + * + * *
      * The confidence estimate between 0.0 and 1.0. A higher number
      * indicates an estimated greater likelihood that the recognized words are
@@ -1230,6 +1340,7 @@ public Builder setWordBytes(
      * 
* * float confidence = 4; + * * @return The confidence. */ @java.lang.Override @@ -1237,6 +1348,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
@@ -1248,16 +1361,19 @@ public float getConfidence() {
      * 
* * float confidence = 4; + * * @param value The confidence to set. * @return This builder for chaining. */ public Builder setConfidence(float value) { - + confidence_ = value; onChanged(); return this; } /** + * + * *
      * The confidence estimate between 0.0 and 1.0. A higher number
      * indicates an estimated greater likelihood that the recognized words are
@@ -1269,17 +1385,20 @@ public Builder setConfidence(float value) {
      * 
* * float confidence = 4; + * * @return This builder for chaining. */ public Builder clearConfidence() { - + confidence_ = 0F; onChanged(); return this; } - private int speakerTag_ ; + private int speakerTag_; /** + * + * *
      * Output only. A distinct integer value is assigned for every speaker within
      * the audio. This field specifies which one of those speakers was detected to
@@ -1289,6 +1408,7 @@ public Builder clearConfidence() {
      * 
* * int32 speaker_tag = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The speakerTag. */ @java.lang.Override @@ -1296,6 +1416,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
@@ -1305,16 +1427,19 @@ public int getSpeakerTag() {
      * 
* * int32 speaker_tag = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The speakerTag to set. * @return This builder for chaining. */ public Builder setSpeakerTag(int value) { - + speakerTag_ = value; onChanged(); return this; } /** + * + * *
      * Output only. A distinct integer value is assigned for every speaker within
      * the audio. This field specifies which one of those speakers was detected to
@@ -1324,17 +1449,18 @@ public Builder setSpeakerTag(int value) {
      * 
* * int32 speaker_tag = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearSpeakerTag() { - + speakerTag_ = 0; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1344,12 +1470,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(); } @@ -1358,16 +1484,16 @@ public static com.google.cloud.speech.v1p1beta1.WordInfo getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WordInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new WordInfo(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WordInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WordInfo(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1382,6 +1508,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.WordInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/WordInfoOrBuilder.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/WordInfoOrBuilder.java similarity index 84% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/WordInfoOrBuilder.java rename to proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/WordInfoOrBuilder.java index b811f0f30..0bdb11ab4 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/WordInfoOrBuilder.java +++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/WordInfoOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech.proto package com.google.cloud.speech.v1p1beta1; -public interface WordInfoOrBuilder extends +public interface WordInfoOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1p1beta1.WordInfo) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Time offset relative to the beginning of the audio,
    * and corresponding to the start of the spoken word.
@@ -18,10 +36,13 @@ public interface WordInfoOrBuilder extends
    * 
* * .google.protobuf.Duration start_time = 1; + * * @return Whether the startTime field is set. */ boolean hasStartTime(); /** + * + * *
    * Time offset relative to the beginning of the audio,
    * and corresponding to the start of the spoken word.
@@ -32,10 +53,13 @@ public interface WordInfoOrBuilder extends
    * 
* * .google.protobuf.Duration start_time = 1; + * * @return The startTime. */ com.google.protobuf.Duration getStartTime(); /** + * + * *
    * Time offset relative to the beginning of the audio,
    * and corresponding to the start of the spoken word.
@@ -50,6 +74,8 @@ public interface WordInfoOrBuilder extends
   com.google.protobuf.DurationOrBuilder getStartTimeOrBuilder();
 
   /**
+   *
+   *
    * 
    * Time offset relative to the beginning of the audio,
    * and corresponding to the end of the spoken word.
@@ -60,10 +86,13 @@ public interface WordInfoOrBuilder extends
    * 
* * .google.protobuf.Duration end_time = 2; + * * @return Whether the endTime field is set. */ boolean hasEndTime(); /** + * + * *
    * Time offset relative to the beginning of the audio,
    * and corresponding to the end of the spoken word.
@@ -74,10 +103,13 @@ public interface WordInfoOrBuilder extends
    * 
* * .google.protobuf.Duration end_time = 2; + * * @return The endTime. */ com.google.protobuf.Duration getEndTime(); /** + * + * *
    * Time offset relative to the beginning of the audio,
    * and corresponding to the end of the spoken word.
@@ -92,26 +124,33 @@ public interface WordInfoOrBuilder extends
   com.google.protobuf.DurationOrBuilder getEndTimeOrBuilder();
 
   /**
+   *
+   *
    * 
    * The word corresponding to this set of information.
    * 
* * string word = 3; + * * @return The word. */ java.lang.String getWord(); /** + * + * *
    * The word corresponding to this set of information.
    * 
* * string word = 3; + * * @return The bytes for word. */ - com.google.protobuf.ByteString - getWordBytes(); + com.google.protobuf.ByteString getWordBytes(); /** + * + * *
    * The confidence estimate between 0.0 and 1.0. A higher number
    * indicates an estimated greater likelihood that the recognized words are
@@ -123,11 +162,14 @@ public interface WordInfoOrBuilder extends
    * 
* * float confidence = 4; + * * @return The confidence. */ float getConfidence(); /** + * + * *
    * Output only. A distinct integer value is assigned for every speaker within
    * the audio. This field specifies which one of those speakers was detected to
@@ -137,6 +179,7 @@ public interface WordInfoOrBuilder extends
    * 
* * int32 speaker_tag = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The speakerTag. */ int getSpeakerTag(); diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/proto/google/cloud/speech/v1p1beta1/cloud_speech.proto b/proto-google-cloud-speech-v1p1beta1/src/main/proto/google/cloud/speech/v1p1beta1/cloud_speech.proto similarity index 100% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/proto/google/cloud/speech/v1p1beta1/cloud_speech.proto rename to proto-google-cloud-speech-v1p1beta1/src/main/proto/google/cloud/speech/v1p1beta1/cloud_speech.proto diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/proto/google/cloud/speech/v1p1beta1/cloud_speech_adaptation.proto b/proto-google-cloud-speech-v1p1beta1/src/main/proto/google/cloud/speech/v1p1beta1/cloud_speech_adaptation.proto similarity index 100% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/proto/google/cloud/speech/v1p1beta1/cloud_speech_adaptation.proto rename to proto-google-cloud-speech-v1p1beta1/src/main/proto/google/cloud/speech/v1p1beta1/cloud_speech_adaptation.proto diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/proto/google/cloud/speech/v1p1beta1/resource.proto b/proto-google-cloud-speech-v1p1beta1/src/main/proto/google/cloud/speech/v1p1beta1/resource.proto similarity index 100% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/proto/google/cloud/speech/v1p1beta1/resource.proto rename to proto-google-cloud-speech-v1p1beta1/src/main/proto/google/cloud/speech/v1p1beta1/resource.proto